/* 운세 SNS(친구 탭)·내 방(미니홈피) 전용. 접두사 .sns- / .rm- 만 쓴다. d01 토큰 그대로. */
.sns-mt { margin-top: 8px; }
.sns-mt2 { margin-top: 14px; }
.sns-c { text-align: center; margin-top: 6px; }
.sns-dot { position: absolute; top: 6px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 900; font-style: normal; display: grid; place-items: center; }
.sns-av { font-style: normal; font-size: 18px; }
.sns-star { color: var(--gold); font-size: 13px; }
.sns-nm { font-size: 17px; }

/* 스토리 줄 (P52) */
.sns-stories { gap: 12px; padding: 2px 2px 8px; margin: 0 -2px; }
.sns-story { flex: none; width: 62px; text-align: center; text-decoration: none; color: var(--text); }
.sns-story .ring { position: relative; display: block; width: 60px; height: 60px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--c, var(--pink)), var(--purple), var(--c, var(--pink))); }
.sns-story .ring i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); font-style: normal; font-weight: 900; font-size: 20px; color: #fff; }
.sns-story.add .ring { background: var(--surface-2); }
.sns-story.add .ring i { background: var(--surface); color: var(--sub); font-size: 24px; }
.sns-story.me .ring { background: linear-gradient(135deg, var(--gold), var(--pink)); }
.sns-story.manual .ring { background: repeating-conic-gradient(var(--faint) 0 10deg, transparent 10deg 20deg); }
.sns-story small { display: block; font-size: 11px; margin-top: 4px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sns-story .star { position: absolute; right: -2px; top: -2px; font-size: 12px; color: var(--gold); background: var(--bg); border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; }
.sns-story .peek { position: absolute; right: -3px; bottom: -2px; font-size: 13px; background: var(--bg); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; }

.sns-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 8px 0 12px; }
.sns-quick .sns-qc { position: relative; display: grid; gap: 2px; text-decoration: none; color: inherit; padding: 12px; }
.sns-qc .e { font-size: 26px; line-height: 1; }
.sns-qc b { font-size: 14px; }
.sns-qc small { color: var(--sub); font-size: 12px; }
.sns-quick .card + .card { margin-top: 0; }

/* 계급 배지 */
.sns-lv { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--sub); border: 1px solid var(--line); white-space: nowrap; }
.sns-lv.t2 { border-color: #9a6a40; color: #e0a070; }
.sns-lv.t3 { color: #c9e7c9; }
.sns-lv.t4 { border-color: #9aa0b8; color: #d6d6e6; }
.sns-lv.t5 { color: #a9c3ff; }
.sns-lv.t6, .sns-lv.t7, .sns-lv.t8, .sns-lv.t9 { border-color: var(--gold); color: var(--gold); }

/* 몰래 보기 안내 */
.sns-peek { font-size: 13px; color: #d9d2ff; background: rgba(123, 92, 250, .12); border: 1px dashed rgba(156, 133, 255, .45); border-radius: 12px; padding: 8px 12px; margin-bottom: 6px; }
.sns-peek.big { font-size: 15px; font-weight: 800; text-align: center; padding: 12px; margin-bottom: 12px; }

/* 궁합 지도 */
.sns-mapcard { padding: 10px 12px 6px; }
.sns-map { width: 100%; height: auto; display: block; }
.sns-map line { stroke: #3a3466; stroke-width: 2; stroke-dasharray: 4 4; }
.sns-map line.on { stroke: var(--pink); stroke-dasharray: none; }
.sns-map text { fill: #fff; font-size: 12px; font-weight: 800; text-anchor: middle; }
.sns-map text.nm { font-size: 15px; font-weight: 900; }
.sns-map .sns-mid { cursor: pointer; }
.sns-map .sns-mid circle { fill: #191630; stroke: #4a4180; }
.sns-pair .sns-pn { display: flex; flex: none; }
.sns-pn i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 12px; color: #fff; border: 2px solid var(--surface); }
.sns-pn i + i { margin-left: -9px; }
.sns-pair .grow small.lock-blur { filter: blur(3px); }

/* 지인 추가 폼 */
.sns-form input[type=date], .sns-form input[type=time] { color-scheme: dark; }
.sns-form .row2 .input { flex: 1; }
.sns-form .row2 .chip2 { flex: none; white-space: nowrap; }
.sns-yaja { margin-top: 10px; }
.sns-yaja .seg button { font-size: 12px; }
.sns-city { position: relative; }
.sns-sug { display: none; position: absolute; left: 0; right: 0; top: 54px; z-index: 30; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; }
.sns-sug.on { display: block; }
.sns-sug button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; }
.sns-sug button:hover { background: rgba(255,255,255,.06); }
.sns-sug button b { display: block; font-size: 14px; }
.sns-sug button small { color: var(--sub); font-size: 12px; }
.sns-sug p { padding: 10px; }
.sns-auto { margin-top: 6px; }
.sns-ok { font-size: 17px; font-weight: 900; color: var(--mint); }
.sns-fix { font-size: 14px; font-weight: 700; margin: 4px 0 2px; word-break: keep-all; }
.sns-fix .faint { display: block; font-weight: 600; }
.sns-mse { text-align: center; font-weight: 900; margin: 12px 0 8px; color: var(--purple-2); }
.gz.sns-unk { background: var(--bg-2); color: var(--faint); border: 1px dashed var(--line); }

/* 친구 방 */
.sns-fhead { margin-bottom: 12px; }
.sns-fhead .grow { min-width: 0; }
.sns-fhead .faint { font-weight: 600; }
.sns-alinks .sns-al { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; text-decoration: none; color: inherit; }
.sns-alinks .card + .card { margin-top: 0; }
.sns-al span { font-size: 26px; }
.sns-al b { font-size: 13px; }
.sns-groom { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; border-color: rgba(255, 92, 138, .45); background: rgba(255, 92, 138, .08); }
.sns-groom .e { font-size: 28px; }
.sns-groom b { display: block; }
.sns-groom small { color: var(--sub); font-size: 12px; }
.sns-memo .row2 { margin-bottom: 8px; }
.sns-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.sns-tbl td { padding: 7px 0; border-top: 1px dashed rgba(255,255,255,.1); }
.sns-tbl td:first-child { color: var(--sub); width: 34%; }
.sns-tbl td:last-child { font-weight: 700; }
.sns-room-none { text-align: center; margin-top: 18px; color: var(--faint); font-size: 13px; }
.sns-room-none span { font-size: 34px; display: block; filter: grayscale(.6); }

/* 담벼락 */
.sns-write { padding: 12px; }
.sns-write textarea.input { height: 64px; }
.sns-write .row2 { justify-content: space-between; }
.sns-pubseg { flex: 1; max-width: 220px; }
.sns-pubseg button { font-size: 12px; padding: 7px 0; }
.sns-wall { display: grid; gap: 2px; margin-top: 8px; }
.sns-wl { display: flex; gap: 10px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px solid var(--line); animation: rise .3s ease; }
.sns-wl .av32 { font-style: normal; font-size: 14px; }
.sns-wl .grow { flex: 1; min-width: 0; }
.sns-wl .grow b { font-size: 13px; display: block; }
.sns-wl .grow p { font-size: 14px; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.sns-wl > small { color: var(--faint); font-size: 11px; flex: none; }
.sns-wl.secret p { color: var(--faint); font-style: italic; }
.sns-wl.gift .grow p { color: #ffd0dd; }

/* 선물 떨어뜨리기 */
.sns-drop { position: absolute; z-index: 4; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.sns-drop b { display: block; font-size: 28px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.sns-drop small { display: block; font-size: 9px; color: #fff; background: rgba(14,13,24,.7); border-radius: 99px; padding: 0 5px; white-space: nowrap; }
.sns-drop.fall b { animation: snsFall .9s cubic-bezier(.3,.1,.5,1) both; }
.sns-drop.fall small { animation: rise .3s .9s ease both; }
@keyframes snsFall { 0% { transform: translateY(-260px) rotate(-30deg); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(0) rotate(8deg); } 82% { transform: translateY(-16px) rotate(-4deg); } 100% { transform: translateY(0) rotate(0); } }

/* 맞팔 */
.sns-fhero { text-align: center; }
.sns-fhero > .e { font-size: 44px; display: block; }
.sns-share { list-style: none; text-align: left; margin-top: 12px; display: grid; gap: 6px; }
.sns-share li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; word-break: keep-all; }
.sns-share li i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: rgba(78,216,166,.15); color: var(--mint); font-weight: 900; }
.sns-share li.no i { background: rgba(255,92,138,.15); color: var(--pink); }
.sns-link { display: flex; align-items: center; gap: 8px; }
.sns-link code { flex: 1; min-width: 0; font-size: 13px; padding: 9px 10px; border-radius: 10px; background: var(--bg-2); color: var(--purple-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sns-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sns-table th { font-size: 11px; color: var(--faint); font-weight: 700; text-align: left; padding: 8px 8px; background: var(--bg-2); }
.sns-table td { padding: 8px 8px; border-top: 1px solid var(--line); word-break: keep-all; vertical-align: middle; }
.sns-table td:first-child { width: 30px; text-align: center; }
.sns-table td b:not([class]) { color: var(--text); }
.rm-hrow .grow { flex: 1; min-width: 0; }
.rm-hrow .grow b { display: block; }
.sns-fhead .grow .sns-nm { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-shelf { position: absolute; left: 8%; top: 30%; width: 26%; height: 6px; border-radius: 3px; background: rgba(0,0,0,.35); box-shadow: 0 6px 10px rgba(0,0,0,.25); }
.rm-mat { position: absolute; left: 50%; bottom: 10%; width: 130px; height: 30px; margin-left: -65px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 92, 138, .55), rgba(142, 42, 58, .7) 60%, transparent 72%); z-index: 1; }

/* ── 내 방 장면 ── */
.rm-scene { position: relative; height: 290px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--wall2); box-shadow: inset 0 -30px 60px rgba(0,0,0,.25); }
.rm-wall { position: absolute; left: 0; right: 0; top: 0; height: 60%; background: linear-gradient(180deg, var(--wall2), var(--wall)); }
.rm-wall::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 44px); }
.rm-wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: rgba(0,0,0,.35); }
.rm-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 1px, transparent 1px 38px), linear-gradient(180deg, var(--floor), rgba(0,0,0,.5)); }
.rm-win { position: absolute; left: 62%; top: 12%; width: 70px; height: 62px; border-radius: 10px; background: radial-gradient(circle at 70% 30%, rgba(242,193,78,.25), transparent 50%), #0b0a1a; border: 4px solid rgba(0,0,0,.4); box-shadow: 0 0 0 2px rgba(255,255,255,.06); display: grid; place-items: center; }
.rm-win::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: rgba(0,0,0,.4); }
.rm-win span { font-size: 22px; filter: drop-shadow(0 0 10px rgba(242,193,78,.6)); }
.rm-bglbl { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 800; color: rgba(255,255,255,.8); background: rgba(14,13,24,.55); padding: 3px 9px; border-radius: 99px; }
.rm-visit { position: absolute; right: 10px; bottom: 10px; font-size: 11px; color: rgba(255,255,255,.85); background: rgba(14,13,24,.55); padding: 3px 9px; border-radius: 99px; z-index: 5; }
.rm-item { position: absolute; z-index: 2; transform: translate(-50%, -50%); font-size: 30px; filter: drop-shadow(0 5px 6px rgba(0,0,0,.5)); }
.rm-char { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%); z-index: 3; width: 96px; height: 104px; }
.rm-ragu { position: absolute; left: 6px; bottom: 6px; width: 84px; height: 84px; border-radius: 30px; border: 3px solid #fff; box-shadow: 0 8px 18px rgba(0,0,0,.45); animation: rmBob 3s ease-in-out infinite; }
.rm-shadow { position: absolute; left: 14px; right: 14px; bottom: -4px; height: 12px; border-radius: 50%; background: rgba(0,0,0,.4); }
.rm-hat { position: absolute; left: 50%; top: -14px; transform: translateX(-50%) rotate(-6deg); font-size: 38px; z-index: 2; filter: drop-shadow(0 4px 4px rgba(0,0,0,.4)); animation: rmBob 3s ease-in-out infinite; }
.rm-acc { position: absolute; z-index: 2; font-size: 24px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.4)); }
.rm-acc.a0 { right: -14px; bottom: 6px; } .rm-acc.a1 { left: -14px; bottom: 8px; } .rm-acc.a2 { right: -10px; top: 18px; } .rm-acc.a3 { left: -10px; top: 20px; }
@keyframes rmBob { 50% { transform: translateY(-4px); } }
.rm-hat { animation-name: rmBobHat; }
@keyframes rmBobHat { 50% { transform: translateX(-50%) translateY(-4px) rotate(-6deg); } }
/* 내 얼굴 캐릭터 (3버전) */
.rm-face { position: absolute; left: 8px; bottom: 6px; width: 80px; height: 84px; border-radius: 40px 40px 34px 34px; background: #f6d2b8; border: 3px solid #fff; box-shadow: 0 8px 18px rgba(0,0,0,.45); animation: rmBob 3s ease-in-out infinite; overflow: hidden; }
.rm-face::before { content: ""; position: absolute; left: -4px; right: -4px; top: -6px; height: 30px; background: #2b1d18; border-radius: 40px 40px 12px 12px; }
.rm-face .e1, .rm-face .e2 { position: absolute; top: 38px; width: 8px; height: 10px; border-radius: 50%; background: #2b1d18; }
.rm-face .e1 { left: 22px; } .rm-face .e2 { right: 22px; }
.rm-face .mo { position: absolute; left: 50%; top: 56px; width: 16px; height: 8px; margin-left: -8px; border-radius: 0 0 10px 10px; background: #c8454f; }
.rm-face .bl { position: absolute; left: 10px; right: 10px; top: 50px; height: 8px; background: radial-gradient(circle at 8px 4px, rgba(255,120,140,.5) 0 5px, transparent 6px), radial-gradient(circle at calc(100% - 8px) 4px, rgba(255,120,140,.5) 0 5px, transparent 6px); }
.rm-face.v2 { background: #f0c8aa; border-color: var(--gold); }
.rm-face.v2::before { background: #111; height: 22px; border-radius: 6px; left: -10px; right: -10px; top: 4px; box-shadow: 0 -10px 0 -2px #111; }
.rm-face.v2 .e1, .rm-face.v2 .e2 { height: 4px; top: 42px; border-radius: 4px; }
.rm-face.v3 { width: 84px; height: 80px; border-radius: 50%; background: #ffdcc4; border-color: var(--pink); }
.rm-face.v3::before { height: 26px; border-radius: 50% 50% 30% 30%; background: #5a3a2a; }
.rm-face.v3 .e1, .rm-face.v3 .e2 { width: 12px; height: 14px; top: 36px; box-shadow: inset 3px 3px 0 #fff; }
.rm-char.sm { position: relative; left: auto; bottom: auto; transform: scale(.62); transform-origin: top left; }

/* 선물 수거 */
.rm-gift { position: absolute; z-index: 4; transform: translate(-50%, -50%); text-align: center; animation: rmGift 1.4s ease-in-out infinite; }
.rm-gift b { display: block; font-size: 32px; filter: drop-shadow(0 0 12px rgba(255, 92, 138, .7)); }
.rm-gift small { display: block; font-size: 10px; font-weight: 800; color: #fff; background: var(--pink); border-radius: 99px; padding: 0 6px; white-space: nowrap; }
.rm-gift.pick { animation: rmPick .7s ease forwards; }
@keyframes rmGift { 50% { transform: translate(-50%, -58%); } }
@keyframes rmPick { to { transform: translate(-50%, -220%) scale(1.4); opacity: 0; } }
.rm-arrive { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; background: rgba(255, 92, 138, .12); border: 1px solid rgba(255, 92, 138, .4); animation: rise .4s ease; }
.rm-arrive > span { font-size: 26px; animation: rmGift 1.4s ease-in-out infinite; display: inline-block; }
.rm-arrive b { display: block; font-size: 14px; }
.rm-arrive small { color: #ffd0dd; font-size: 12px; }

/* 내 방 머리·메뉴 */
.rm-prof { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-bottom: 12px; }
.rm-prof .grow { flex: 1; min-width: 0; }
.rm-nick { display: block; font-size: 18px; }
.rm-nick .faint { font-weight: 600; }
.rm-exp { margin: 8px 0 4px; }
.rm-prof .chev { color: var(--faint); font-size: 22px; }
.rm-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.rm-grid4 > * { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 2px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--text); text-decoration: none; }
.rm-grid4 span { font-size: 26px; line-height: 1.1; }
.rm-grid4 .sns-dot { top: 4px; right: 6px; }
.rm-recent { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.rm-recent .grow { flex: 1; min-width: 0; }
.rm-recent b { display: block; font-size: 15px; line-height: 1.4; word-break: keep-all; }
.rm-upd b { font-size: 14px; word-break: keep-all; }
.rm-upd .btn { font-size: 12px; padding: 9px 6px; }
.rm-row { padding: 12px 2px; }
.rm-ri { width: 40px; height: 40px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; flex: none; }

/* 꾸미기 시트 */
.rm-chars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rm-cpick { display: grid; justify-items: center; padding: 8px 2px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.rm-cpick.on { border-color: var(--pink); background: rgba(255, 92, 138, .1); }
.rm-cpick b { font-size: 12px; }
.rm-cpick small { font-size: 10px; color: var(--sub); }
.rm-mini { display: block; width: 60px; height: 66px; overflow: hidden; }
.rm-igrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rm-ic { position: relative; display: grid; justify-items: center; gap: 1px; padding: 12px 4px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.rm-ic.on { border-color: var(--pink); background: rgba(255, 92, 138, .1); }
.rm-ic .e { font-size: 34px; line-height: 1.15; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
.rm-ic b { font-size: 12px; line-height: 1.3; word-break: keep-all; }
.rm-ic small { font-size: 11px; font-weight: 800; }
.rm-eqt, .rm-pr { font-style: normal; font-size: 11px; font-weight: 800; margin-top: 4px; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--sub); }
.rm-ic.on .rm-eqt { background: var(--pink); color: #fff; }
.rm-ic.shop .rm-pr { color: var(--text); }

/* 레벨 */
.rm-lvhero { display: flex; gap: 14px; align-items: center; }
.rm-lvhero .grow { flex: 1; min-width: 0; }
.rm-lvhero .bar { margin: 6px 0 4px; }
.rm-big { font-size: 52px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.rm-big.sm { font-size: 34px; }
.rm-safe { margin-top: 10px; font-size: 13px; color: #bff3df; background: rgba(78, 216, 166, .1); border: 1px solid rgba(78, 216, 166, .3); border-radius: 12px; padding: 8px 12px; }
.rm-ladder { display: grid; gap: 6px; }
.rm-step { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.rm-step .ic { font-size: 24px; width: 30px; text-align: center; }
.rm-step .grow { flex: 1; min-width: 0; }
.rm-step b { font-size: 14px; display: block; }
.rm-step b small { color: var(--faint); font-weight: 600; font-size: 11px; }
.rm-step .grow > small { display: block; font-size: 11px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-step.here { border-color: var(--pink); background: rgba(255, 92, 138, .1); box-shadow: 0 0 0 3px rgba(255, 92, 138, .12); }
.rm-step.next { opacity: .75; }
.rm-step.done { opacity: .6; }
.rm-peek { font-size: 11px; font-weight: 800; color: var(--purple-2); padding: 5px 9px; border-radius: 99px; border: 1px solid rgba(156,133,255,.4); flex: none; }
.rm-rank.me { background: rgba(123, 92, 250, .12); border-radius: 14px; padding-left: 8px; padding-right: 8px; }
.rm-no { width: 24px; text-align: center; font-weight: 900; color: var(--sub); flex: none; }
.rm-w { font-variant-numeric: tabular-nums; }
.rm-rank .tag { flex: none; }
.rm-league .grow { flex: 1; }
.rm-league b { display: block; }
.rm-pushex { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px; background: rgba(35, 32, 64, .98); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rm-pushex .grow { flex: 1; min-width: 0; }
.rm-pushex b { display: block; font-size: 13px; }
.rm-pushex small { color: var(--sub); font-size: 12px; }

/* 상담 기록 */
.rm-chips { gap: 6px; }
.rm-chips .chip2 { flex: none; white-space: nowrap; }
.rm-rec { padding: 12px; }
.rm-rec .rm-rl { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit; }
.rm-rec .grow { flex: 1; min-width: 0; }
.rm-rec b { display: block; font-size: 15px; line-height: 1.4; margin: 3px 0 2px; word-break: keep-all; }
.rm-rec small { font-size: 12px; color: var(--sub); display: block; }
.rm-ra { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; }
.rm-rec.unpaid { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; border-style: dashed; background: linear-gradient(120deg, rgba(123,92,250,.12), rgba(255,92,138,.08)); }
.rm-uic { font-size: 32px; width: 48px; text-align: center; flex: none; }

/* 상점 */
.rm-shophead { display: flex; gap: 12px; align-items: center; }
.rm-shophead .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rm-prev { position: relative; width: 96px; height: 110px; flex: none; }
.rm-prev .rm-char { bottom: 2px; }
.rm-prevItem { position: absolute; right: -6px; bottom: 0; font-size: 30px; z-index: 4; animation: pop .4s ease; }
.rm-tip { font-size: 12px; color: var(--gold); word-break: keep-all; }
.rm-bigprev { position: relative; height: 130px; margin: 0 auto 10px; width: 140px; }
.rm-bigprev .rm-char { bottom: 8px; }
.rm-prevItem.big { right: 0; font-size: 40px; }
.rm-buy .tag { margin-right: 2px; }
.rm-buy .tag[class*="rarity-"] { background: var(--surface-2); }

/* 뽑기 */
.rm-machine { width: 200px; margin: 6px auto 14px; display: grid; justify-items: center; }
.rm-dome { width: 170px; height: 150px; border-radius: 50% 50% 18px 18px; background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.25), transparent 35%), rgba(123, 92, 250, .18); border: 3px solid rgba(156, 133, 255, .55); display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center; gap: 0 2px; padding: 12px 14px; font-size: 30px; }
.rm-mbody { width: 190px; height: 70px; margin-top: -4px; border-radius: 16px; background: linear-gradient(180deg, var(--wine), #6a1f2b); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.rm-mbody b { font-size: 18px; font-weight: 900; color: #fff; }
.rm-knob { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); border: 4px solid #fff3; position: relative; }
.rm-knob::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 6px; margin-left: -3px; background: #7a5a10; border-radius: 3px; }
.rm-machine.shake .rm-dome { animation: rmShake .9s ease; }
.rm-machine.shake .rm-knob { animation: rmTurn .9s ease; }
@keyframes rmShake { 10%, 50%, 90% { transform: translateX(-6px) rotate(-3deg); } 30%, 70% { transform: translateX(6px) rotate(3deg); } }
@keyframes rmTurn { to { transform: rotate(360deg); } }
.rm-rate td:last-child { font-size: 16px; letter-spacing: 1px; }
.rm-reveal { position: relative; }
.rm-glow { position: absolute; left: 50%; top: 40px; width: 160px; height: 160px; margin-left: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(242,193,78,.35), transparent 65%); animation: pulse 1.2s infinite; pointer-events: none; }
.r-초희귀 .rm-glow { background: radial-gradient(circle, rgba(255,143,216,.55), transparent 65%); }
.r-희귀 .rm-glow { background: radial-gradient(circle, rgba(180,155,255,.5), transparent 65%); }
.r-동 .rm-glow, .r-은 .rm-glow { background: radial-gradient(circle, rgba(214,214,230,.2), transparent 65%); }
.rm-got { position: relative; display: block; font-size: 84px; animation: stk .7s cubic-bezier(.2,1.6,.4,1) both; }
.rm-gr { font-weight: 900; font-size: 15px; }
.rm-ten { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0; }
.rm-ten span { display: grid; justify-items: center; padding: 6px 0; border-radius: 12px; background: var(--bg-2); animation: pop .4s ease both; }
.rm-ten span:nth-child(n) { animation-delay: calc(var(--i, 0) * 1ms); }
.rm-ten span.dup { opacity: .6; }
.rm-ten b { font-size: 24px; }
.rm-ten small { font-size: 10px; font-weight: 800; }

/* 출석·퀘스트·업적 */
.rm-stamps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rm-stamp { display: grid; justify-items: center; padding: 6px 0; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 10px; color: var(--sub); }
.rm-stamp b { font-size: 20px; filter: grayscale(.8); opacity: .6; }
.rm-stamp.on { border-color: var(--pink); background: rgba(255, 92, 138, .12); color: var(--text); }
.rm-stamp.on b { filter: none; opacity: 1; }
.rm-stamp.today { border-color: var(--gold); animation: glow 2s infinite; }
.rm-quest .grow b, .rm-ach .grow b { font-size: 14px; }
.rm-abar { margin: 5px 0 3px; height: 6px; }
.rm-ach .tag, .rm-quest .tag { flex: none; }
