/* ───────── 결과 화면 (UI 2.40 묶음 C — docs/UI_240.md 7장) ─────────
   배치: 카드(곡 · [캐릭터 | 등급·별·칩] · 점수 · 판정 5칸 · 한 줄 평 · 받은 것 칩 + 자세히) → 맥락 띠 1개 → 아래 고정(주 버튼 1 + 글자 버튼)
   요소 이동은 js/screens/result.js layout(). 색·글자·모서리는 4장 토큰(css/tokens.css — 묶음 A)을 쓰고, 토큰이 들어오기 전에도 같게 보이도록 폴백 값을 같이 적는다.
   움직임은 transform · opacity 만. 저사양 · 움직임 줄이기(#result.lowfx · prefers-reduced-motion)는 전부 즉시. 이 파일은 맨 뒤에 불러 결과 화면만 덮어쓴다. */

#result.screen{justify-content:flex-start;gap:12px;padding:14px 16px calc(128px + env(safe-area-inset-bottom))}
#result.screen>.card.result{margin:auto 0 0}
#result.screen>.r-band{margin-bottom:auto}
#result.screen:has(>.r-band.hidden)>.card.result{margin-bottom:auto}

.card.result{max-width:400px;gap:10px;padding:16px 16px 14px;border-radius:var(--r3,24px);background:var(--surf,#fff);
  box-shadow:var(--sh1,0 2px 0 rgba(160,120,190,.18),0 6px 16px rgba(120,80,160,.08));word-break:keep-all}
.result .rs-song{font-size:13px;line-height:18px;font-weight:700;color:var(--ink2,#6B5A7E);min-height:18px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:1}

/* ── 윗줄: 캐릭터 칸 | 등급 칸 (등급 글자가 캐릭터에 가리지 않게 나란히) ── */
.r-hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;width:100%;min-height:124px}
.r-char{display:flex;justify-content:center;align-items:flex-end;height:124px;min-width:0;overflow:hidden}
#rCharBox{display:flex;align-items:flex-end;justify-content:center;gap:0;margin:0;height:100%}
#rCharBox .av-cv{height:124px !important;width:auto !important}
.r-grade{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0}
#result .rank{font-size:72px;line-height:.92;font-weight:800;letter-spacing:-1px;padding:0 4px;
  background:linear-gradient(180deg,#FF8FBE,var(--pinkD,#F0518F) 55%,var(--lil,#B98BFF));-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 3px 0 #fff) drop-shadow(0 6px 8px rgba(240,81,143,.22));animation:none}
#rStars{display:flex;gap:6px;min-height:0;letter-spacing:0;font-size:24px;line-height:1}
#rStars i{font-style:normal;color:#EDE4F7;-webkit-text-stroke:1.5px #D9CCE8}
#rStars i.on{color:var(--yel,#FFC845);-webkit-text-stroke:1.5px var(--yelD,#E0951A)}
#rStars:empty{display:none}
#result .badge{min-height:0;font-size:13px;line-height:16px;font-weight:800;padding:6px 12px;border-radius:var(--rp,999px);white-space:nowrap;text-align:center}
#result .badge.ap{background:var(--yelS,#FFF3D1);color:var(--yelT,#A86A00)}
#result .badge.fc{background:var(--pinkS,#FFE3EF);color:var(--pinkT,#C2428A)}
#result .badge.cl{background:var(--mintS,#DDF7EF);color:#1F7A62}
#result .badge.fail{background:none;padding:0;font-size:15px;line-height:20px;font-weight:700;color:var(--ink2,#6B5A7E);white-space:normal}
.r-failface{width:96px;height:96px;display:flex;align-items:flex-end;justify-content:center}
.r-failface svg{width:96px;height:auto}

/* ── 점수 ── */
.r-score{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;margin:0}
.result .score{font-size:40px;line-height:44px;font-weight:800;letter-spacing:-.5px;color:var(--ink,#3D2C4E);font-variant-numeric:tabular-nums}
.result .new{font-size:12px;line-height:16px;font-weight:800;padding:4px 12px;background:var(--pinkD,#F0518F);animation:none}
.r-fail .score{color:var(--ink2,#6B5A7E)}

/* ── 판정 5칸: 정확도 · PERFECT · GREAT · GOOD · MISS (2.49.3, 예전 3칸) ── */
.r-stats{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(4,minmax(0,1fr));gap:6px;width:100%;margin:0}   /* 정확도 · PERFECT · GREAT · GOOD · MISS (2.49.3) */
.rst{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 2px;min-width:0;border-radius:var(--r2,16px);background:var(--surf2,#FFF6FA);box-shadow:none}
.rst small{font-size:11px;line-height:15px;font-weight:700;color:var(--ink2,#6B5A7E);white-space:nowrap}
.rst b{font-size:17px;line-height:22px;font-weight:800;color:var(--ink,#3D2C4E);font-variant-numeric:tabular-nums;white-space:nowrap}
.rst.cP b{color:var(--pinkT,#C2428A)}.rst.cG b{color:#17709F}.rst.cO b{color:#267A41}.rst.cM b{color:var(--ink3,#8E7CA6)}

/* ── 대장 젤리 한 줄 평 ── */
.r-verdict{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border-radius:var(--r2,16px);background:var(--pinkS,#FFE3EF);text-align:left}
.rv-face{flex:none;width:40px;height:44px;display:flex;align-items:flex-end;justify-content:center}
.rv-face svg{width:40px;height:auto}
.rv-t{min-width:0;display:flex;flex-direction:column;gap:1px}
.rv-t small{font-size:12px;line-height:16px;font-weight:700;color:var(--pinkT,#C2428A)}
.rv-t p{margin:0;font-size:15px;line-height:21px;font-weight:800;color:var(--ink,#3D2C4E);word-break:keep-all}

/* ── 받은 것: 칩 한 줄 + 「자세히」 ── */
#rGet.r-get{display:block;width:100%;max-width:none;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
#rRew{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;width:100%}
#result .rew-chips{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px;width:100%}
#result .rchip{display:inline-flex;flex-direction:row;align-items:center;gap:4px;height:32px;padding:0 10px;border-radius:var(--rp,999px);
  background:var(--surf2,#FFF6FA);color:var(--ink,#3D2C4E);box-shadow:none;line-height:1;white-space:nowrap}
#result .rchip b{font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
#result .rchip small{font-size:12px;font-weight:700;color:var(--ink2,#6B5A7E);margin:0 0 0 2px}
#result .rchip.coin{background:var(--yelS,#FFF3D1)}
#result .rchip.coin small{color:var(--yelT,#A86A00)}
#result .rchip.gem{background:var(--skyS,#E3F2FF)}
#result .rchip.lvup{background:var(--pinkS,#FFE3EF);color:var(--pinkT,#C2428A)}
#result .rchip.lvup small{color:var(--pinkT,#C2428A)}
#result .rchip.open{background:var(--mintS,#DDF7EF);color:#1F7A62}
#result .rchip.char{background:var(--lilS,#EFE6FF);color:var(--lilD,#7A55E8)}
#result .rchip.item,#result .rchip.al,#result .rchip.seed{background:var(--surf2,#FFF6FA)}
#result .rchip .ic{flex:none;margin-right:2px}
#result .rew-st{font-size:12px;line-height:16px;font-weight:700;color:var(--ink2,#6B5A7E);text-align:left}
#result #rRew .rew-open{font-size:13px;line-height:18px;font-weight:700;color:var(--ink,#3D2C4E);text-align:left}
.r-moreb{font-family:inherit;display:inline-flex;align-items:center;gap:2px;height:44px;margin:-6px -6px -6px auto;padding:0 8px;border:0;background:none;cursor:pointer;
  font-size:13px;font-weight:700;color:var(--ink2,#6B5A7E);white-space:nowrap}
.r-moreb i{display:inline-block;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);margin-left:4px}
.r-moreb.on i{transform:rotate(45deg) translate(-2px,-2px)}

/* ── 자세히(접힘): 점수 막대 · 경험치 · 코인/보석 내역 · 판정 막대 · 최대 콤보 · 점수 내역 · 단계 계수 · 실력 지수 ── */
.r-more{width:100%;max-width:none}
.r-more>summary{display:none}
.r-more-in{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px;border-radius:var(--r2,16px);background:var(--surf2,#FFF6FA)}
.r-more-in>*{max-width:100%}
#result .r-more-in small{font-size:12px}
.r-bar{width:100%}
.result .sbar{margin:0}
.result .sb-top{font-size:12px;margin-bottom:2px}
.result .sb-track{height:10px}
.result .exp{font-size:13px;gap:7px;margin:0;justify-content:center}
.result .exp .expbar{width:96px;height:7px}
.r-why{display:flex;flex-direction:column;gap:2px}
.r-why:empty{display:none}
.result .jbars{margin:0}
.result .jb{font-size:13px;grid-template-columns:62px 1fr 72px}
.result .meta{font-size:13px;text-align:center}
.result .rbreak{margin:0}
.result .tu-res{gap:4px;margin:0}
.result .tu-res .tu-base{font-size:13px;padding:4px 12px}
.result .tu-res .tu-rk{font-size:12px}
.r-tv{display:none}

/* 카드 맨 아래 작은 줄(도전 결과 · 주간 랭킹) */
.result .chal,.result .rkline{font-size:13px;line-height:18px;font-weight:700;color:var(--ink2,#6B5A7E);min-height:0;margin:0}
.result .chal:empty,.result .rkline:empty{display:none}
.result .rkline a{color:var(--pinkT,#C2428A)}

/* 2.40: 평소 판 싱크 제안(result.js syncOffer) — 정확도 줄 바로 아래(S1 자리 그대로) */
.r-sync{width:100%;max-width:none;background:var(--skyS,#E3F2FF);border-radius:var(--r2,16px);padding:10px;display:flex;flex-direction:column;gap:8px;box-sizing:border-box}
.r-sync p{margin:0;font-size:15px;line-height:21px;font-weight:700;text-align:center}
.r-sync small{display:block;font-size:12px;line-height:16px;color:var(--ink2,#6B5A7E);margin-top:2px}
.r-sync .rs-boss{font-size:13px;line-height:18px;background:#fff;border-radius:12px;padding:6px 10px;text-align:left}
.r-sync .rs-boss em{font-style:normal;font-weight:800;color:var(--pinkT,#C2428A);margin-right:6px}
.r-sync .row{flex-wrap:nowrap;gap:8px}
.r-sync .btn{flex:1;width:auto;min-height:44px;font-size:15px;padding:8px;box-shadow:none}
.r-sync .btn.sub{background:var(--skyD,#2F86D6)}
.r-sync .btn.ghost{background:#fff;color:var(--pinkT,#C2428A);box-shadow:inset 0 0 0 2px #F7C6DC}

/* ── 맥락 띠 1개 ── */
.r-band{width:100%;max-width:400px}
.r-bandb{font-family:inherit;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:10px 16px;border:0;cursor:pointer;
  border-radius:var(--r2,16px);background:var(--surf,#fff);color:var(--ink,#3D2C4E);box-shadow:var(--sh1,0 2px 0 rgba(160,120,190,.18),0 6px 16px rgba(120,80,160,.08));
  text-align:left;font-size:15px;line-height:20px;font-weight:700;word-break:keep-all;animation:none;filter:none}
.r-bandb>span{min-width:0;display:flex;flex-direction:column;gap:1px}
.r-bandb small{font-size:12px;line-height:16px;font-weight:700;color:var(--ink2,#6B5A7E)}
.r-bandb em{flex:none;font-style:normal;font-weight:800;color:var(--pinkT,#C2428A);white-space:nowrap}
.r-bandb em::after{content:"";display:inline-block;width:7px;height:7px;margin-left:5px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-1px) rotate(-45deg)}
.r-bandb.place{background:var(--skyS,#E3F2FF)}
.r-bandb.place em{color:var(--skyD,#2F86D6)}
/* 이야기 띠와 함께 뜰 때의 작은 실력 체크 카드(QA1 중1) — 한 줄 · 설명 줄 숨김 · 터치 44px */
.r-bandb.place.sm{min-height:44px;margin-top:6px;padding:6px 16px;font-size:14px;box-shadow:none}
.r-bandb.place.sm small{display:none}
.r-band>.r-bandb.place.sm:first-child,.r-band>.r-bandb.hidden+.r-bandb.place.sm{margin-top:-4px}   /* 혼자 뜰 때(낮은 화면)는 카드 쪽으로 4px 당겨 아래 버튼 판과 8px 이상 띄움(QA2 하7) */
/* 이미 본 화를 이번 시즌에 다시 깼을 때 「N화 이야기 다시 보기」(2.42.8) — 가장 낮은 순위라 작게 · 터치 44px */
.r-bandb.replay{min-height:44px;padding:6px 16px;font-size:14px;box-shadow:none;background:var(--surf2,#F6F1FA)}
.r-bandb.tsinv{min-height:36px;padding:3px 16px;font-size:13px;line-height:18px}   /* 테스터 권유(2.48.2) — 한 줄 얇게 */
.r-bandb.wip{cursor:default}.r-bandb.wip em::after{display:none}   /* 이야기 준비 중 안내(2.43.0) — 누를 것 없음 */
.r-bandb:active{transform:translateY(2px)}
/* 한 줄 의견(가끔 — 3판째 · 이후 하루 1번) */
.r-bandb.fb{background:var(--mintS,#DDF7EE)}
.r-bandb.fb em{color:var(--ink,#3D2C4E)}

/* ── 아래 고정: 주 버튼 1 + 글자 버튼 ── */
.r-dock{position:fixed;left:0;right:0;bottom:0;z-index:4;max-width:520px;margin:0 auto;display:flex;flex-direction:column;gap:4px;
  padding:12px 16px calc(4px + env(safe-area-inset-bottom));background:var(--surf,#fff);border-radius:var(--r4,32px) var(--r4,32px) 0 0;
  box-shadow:var(--sh2,0 8px 24px rgba(90,60,130,.16))}
#result:not(.r-live) .r-dock{pointer-events:none}
.r-pri{display:flex}
.r-pri:empty{display:none}
.rpb{font-family:inherit;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:56px;min-width:0;padding:0 20px;border:0;cursor:pointer;
  border-radius:var(--rp,999px);background:var(--pinkD,#F0518F);color:#fff;font-size:17px;font-weight:800;box-shadow:0 4px 0 var(--pinkL,#C93A75);transition:transform .08s}
.rpb>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rpb>.rpb-2{display:flex;flex-direction:column;align-items:flex-start;gap:0;line-height:1.2}
.rpb-2 small{font-size:12px;line-height:16px;font-weight:700;opacity:.92}
.rpb-2 b{max-width:100%;font-size:16px;line-height:20px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rpb:active{transform:translateY(3px);box-shadow:0 1px 0 var(--pinkL,#C93A75)}
.rpb .ic,.rtb .ic{flex:none}
.r-txt{display:flex;justify-content:space-around;gap:4px}
.rtb{font-family:inherit;flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:5px;height:48px;padding:0 4px;border:0;cursor:pointer;
  border-radius:var(--r1,12px);background:none;color:var(--ink2,#6B5A7E);font-size:15px;font-weight:700;white-space:nowrap;box-shadow:none}
.rtb>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.rtb:active{background:var(--surf2,#FFF6FA)}
#bShare.rtb{color:var(--pinkT,#C2428A)}
.r-txt[data-n="2"]{justify-content:center;gap:24px}
.r-txt[data-n="2"] .rtb{flex:0 1 auto;padding:0 16px}

/* ── 등장 순서(UI_240 7-2): 카드 · 등급 0초 → 점수 0.35초 → 버튼 0.6초 → 판정 칸 0.9초 → 한 줄 평 1.2초 → 칩 1.5초(0.06초 간격). 누르면 r-skip ── */
@keyframes rIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes rPop{0%{opacity:0;transform:scale(.3)}60%{opacity:1;transform:scale(1.15)}100%{opacity:1;transform:scale(1)}}
@keyframes rSlide{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}
@keyframes rChip{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}
@keyframes rUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
#result.r-in .card.result{animation:rIn .28s ease-out both}
#result.r-in #rRank,#result.r-in .r-failface{animation:rPop .5s cubic-bezier(.2,1.4,.4,1) both}
#result.r-in #rStars,#result.r-in #rBadge{animation:rIn .3s .3s ease-out both}
#result.r-in .r-dock{animation:rUp .3s .3s ease-out both}
#result.r-in #rNew{animation:rChip .25s .95s ease-out both}
#result.r-in .r-stats{animation:rIn .3s .9s ease-out both}
#result.r-in .r-verdict{animation:rSlide .3s 1.2s ease-out both}
#result.r-in .rchip{animation:rChip .22s ease-out both;animation-delay:calc(1.5s + var(--i,0) * .06s)}
#result.r-in .r-band{animation:rIn .3s 1.3s ease-out both}
#result.r-skip *,#result.r-skip *::before,#result.r-skip *::after{animation:none !important}

/* 반짝임 줄이기: 모션 줄이기 설정·저사양 모드 */
#result.lowfx *,#result.lowfx *::before,#result.lowfx *::after{animation:none !important;transition:none !important}
@media (prefers-reduced-motion:reduce){
  #result *,#result *::before,#result *::after{animation:none !important;transition:none !important}
}

/* 낮은 화면(360×640 등): 받은 것 칩 줄까지 스크롤 없이 */
@media (max-height:700px){
  #result.screen{gap:8px;padding-top:8px;padding-bottom:calc(118px + env(safe-area-inset-bottom))}
  .card.result{gap:8px;padding:12px 14px 12px}
  .r-hero{min-height:100px}.r-char{height:100px}#rCharBox .av-cv{height:100px !important}
  #result .rank{font-size:60px}
  .result .score{font-size:34px;line-height:38px}
  .rst{padding:6px 4px}
  .r-verdict{padding:8px 10px}
  .r-dock{padding-top:10px;gap:2px}
  .rpb{height:52px}
  .rtb{height:44px}
}
/* 아주 좁은 화면(360px 이하) */
@media (max-width:365px){
  .card.result{padding-left:12px;padding-right:12px}
  .rst b{font-size:14px;line-height:20px}
  .rst small{font-size:10px;letter-spacing:-.2px}
  .r-stats{gap:4px}
  .rtb{font-size:14px;gap:4px}
}

/* ───────── 공유 시트 (js/screens/resultCard.js) ───────── */
@keyframes rcFade{from{opacity:0}to{opacity:1}}
.rc-ov{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-end;justify-content:center;background:rgba(40,24,60,.42);animation:rcFade .18s ease-out both;word-break:keep-all}
.rc-sh{width:100%;max-width:520px;display:flex;flex-direction:column;gap:10px;padding:12px 20px calc(16px + env(safe-area-inset-bottom));
  background:var(--surf,#fff);border-radius:var(--r4,32px) var(--r4,32px) 0 0;box-shadow:var(--sh2,0 8px 24px rgba(90,60,130,.16));animation:rUp .22s ease-out both;color:var(--ink,#3D2C4E)}
.rc-hd{display:flex;align-items:center;justify-content:space-between}
.rc-hd b{font-size:19px;line-height:24px;font-weight:800}
.rc-x{width:44px;height:44px;margin-right:-10px;display:grid;place-items:center;border:0;background:none;color:var(--ink2,#6B5A7E);cursor:pointer}
.rc-x svg{width:24px;height:24px}
.rc-pv{align-self:center;height:min(300px,36vh);aspect-ratio:4/5;display:grid;place-items:center;border-radius:var(--r2,16px);overflow:hidden;background:var(--surf2,#FFF6FA);
  box-shadow:var(--sh1,0 2px 0 rgba(160,120,190,.18),0 6px 16px rgba(120,80,160,.08))}
.rc-pv>*{grid-area:1/1}
.rc-pv img{width:100%;height:100%;object-fit:contain}
.rc-wait{font-size:13px;font-weight:700;color:var(--ink2,#6B5A7E)}
.rc-tg{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;min-height:44px;font-size:15px;font-weight:700;cursor:pointer}
.rc-tg input{position:absolute;opacity:0;width:1px;height:1px}
.rc-tg i{position:relative;width:44px;height:26px;border-radius:999px;background:var(--line,#F1DCE8);transition:background .15s}
.rc-tg i::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:transform .15s}
.rc-tg input:checked+i{background:var(--pinkD,#F0518F)}
.rc-tg input:checked+i::after{transform:translateX(18px)}
.rc-tg input:focus-visible+i{outline:2px solid var(--pinkT,#C2428A);outline-offset:2px}
.rc-tg small{width:100%;font-size:12px;line-height:16px;color:var(--ink2,#6B5A7E)}
.rc-tg.off{cursor:default;color:var(--ink3,#8E7CA6)}
.rc-pri{font-family:inherit;height:56px;border:0;border-radius:var(--rp,999px);background:var(--pinkD,#F0518F);color:#fff;font-size:17px;font-weight:800;box-shadow:0 4px 0 var(--pinkL,#C93A75);cursor:pointer}
.rc-pri:disabled{opacity:.5;cursor:default}
.rc-pri:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 var(--pinkL,#C93A75)}
.rc-sec{font-family:inherit;height:52px;border:0;border-radius:var(--rp,999px);background:#fff;color:var(--pinkT,#C2428A);font-size:15px;font-weight:800;box-shadow:inset 0 0 0 2px #F7C6DC;cursor:pointer}
@media (prefers-reduced-motion:reduce){ .rc-ov,.rc-sh,.rc-tg i,.rc-tg i::after{animation:none !important;transition:none !important} }

/* ── RIVAL 1차(FEATURE.rival · js/screens/resultRival.js): ① 순위 칩(NEW RECORD 와 같은 줄) ② 목표 띠(맥락 띠 자리 · 높이 52 고정) ③ 한 번 더 ──
   움직임은 transform · opacity 만 · #result.lowfx / r-skip 은 위 규칙대로 즉시. 칩 줄은 칩이 올 것 같은 판에 자리를 미리(rsv) — 늦게 와도 카드가 밀리지 않게 */
.r-nrow{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;min-height:0}
.r-nrow.rsv{min-height:24px}
.r-nrow.fold{display:none}
.r-nrow:not(.rsv):not(:has(>:not(.hidden))){display:none}
.r-rvchip{position:relative;display:inline-flex;align-items:center;gap:4px;height:24px;max-width:100%;padding:0 10px 0 7px;border:0;border-radius:999px;font-family:inherit;
  font-size:12px;line-height:16px;font-weight:800;color:var(--ink,#3D2C4E);background:var(--surf2,#F6F1FA);cursor:pointer;white-space:nowrap}
.r-rvchip.hidden{display:none}
.r-rvchip::after{content:'';position:absolute;left:-4px;right:-4px;top:-10px;bottom:-10px}   /* 누르는 자리 44px(보이는 높이 24 그대로) */
.r-rvchip{z-index:1}   /* 누르는 자리(::after)가 아래 점수 칸(.r-stats — 등장 연출로 따로 쌓임)에 덮이지 않게 — 320×568 에서 약 41px 이던 것(QA B-2) · 점수 칸은 누를 것 없음 */
.r-rvchip .ic{flex:none;width:16px;height:16px}
.r-rvchip .rv-ct{min-width:0;overflow:hidden;text-overflow:ellipsis}
.r-rvchip.crown{background:#FFE9A8;color:#5A3D00}
.r-rvchip.m2{background:#E9EDF3;color:#2E3A4C}
.r-rvchip.m3{background:#F6E1CF;color:#5A2F12}
.r-rvchip.dotted{background:transparent;outline:1.5px dashed var(--lilD,#9C7BD0);outline-offset:-1.5px}
.r-rvchip .rv-up{font-weight:900;color:#1E8C5A;transition:opacity .2s}
.r-rvchip .rv-up.wait{opacity:0}
.r-rvchip small{font-size:12px;font-weight:700;color:var(--ink2,#6B5A7E)}
.r-rvchip.rv-pop{animation:rvPop .5s ease-out both}
.r-rvchip .rv-dots{position:absolute;inset:0;pointer-events:none}
.r-rvchip .rv-dots>i{position:absolute;left:50%;top:50%;width:5px;height:5px;margin:-2.5px;border-radius:50%;background:#F5B700;opacity:0}
.r-rvchip.rv-crownfx .ic{animation:rvCrown .6s cubic-bezier(.2,1.4,.4,1) both}
.r-rvchip.rv-crownfx .rv-dots>i{animation:rvDot .6s ease-out both}
.r-rvchip .rv-dots>i:nth-child(1){--dx:-34px;--dy:-14px}.r-rvchip .rv-dots>i:nth-child(2){--dx:34px;--dy:-14px}
.r-rvchip .rv-dots>i:nth-child(3){--dx:-46px;--dy:4px}.r-rvchip .rv-dots>i:nth-child(4){--dx:46px;--dy:4px}
.r-rvchip .rv-dots>i:nth-child(5){--dx:-22px;--dy:16px}.r-rvchip .rv-dots>i:nth-child(6){--dx:22px;--dy:16px}
.r-rvchip .rv-dots>i:nth-child(7){--dx:-8px;--dy:-20px}.r-rvchip .rv-dots>i:nth-child(8){--dx:8px;--dy:-20px}
#result.r-in #rRvChip{animation:rChip .25s .95s ease-out both}
#result.r-in #rRvChip.rv-pop{animation:rvPop .5s ease-out both}
@keyframes rvPop{0%{transform:scale(1)}40%{transform:scale(1.14)}100%{transform:scale(1)}}
@keyframes rvCrown{from{transform:translateY(-10px) scale(.6);opacity:0}to{transform:none;opacity:1}}
@keyframes rvDot{0%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(var(--dx),var(--dy))}}
.r-bandb.goal{background:var(--pinkS,#FFE8F1);padding:8px 16px}
.r-bandb.goal>span{flex:1 1 0;min-width:0}
.r-bandb.goal .rv-l1{font-size:15px;line-height:19px;font-weight:800;color:var(--ink,#3D2C4E);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.r-bandb.goal .rv-l2{display:block;font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.r-bandb.goal .rv-nk{display:inline-block;max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;font-style:normal}
.r-bandb.goal .rv-fold{font-weight:800;color:var(--ink,#3D2C4E)}
.r-bandb.goal.tight .rv-l1{color:var(--pinkT,#C2428A);font-weight:900}
#result:not(.r-skip):not(.lowfx) .r-bandb.goal.tight em{animation:rvNudge .3s 1.6s ease-in-out both}
@keyframes rvNudge{0%,100%{transform:none}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
.rpb .rpb-2 small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.rv-det .rew-st:last-child{color:var(--ink2,#6B5A7E);font-weight:600}
@media (prefers-reduced-motion:reduce){.r-rvchip,.r-rvchip *,.r-bandb.goal em{animation:none !important;transition:none !important}.r-rvchip .rv-up.wait{opacity:1}}
.r-bandb.goal.sm{min-height:44px;padding:6px 16px}
.r-bandb.goal.sm .rv-l2{display:none}
