/* 가격 맞추기 — app.css, blocks/style.css(랭킹·카카오 버튼) 위에 이 게임에만 필요한 것 */

/* 소개 */
.pr-intro { display: flex; flex-direction: column; }
/* 카테고리 칩이 두 줄이라, 무대는 정해진 높이 대신 남는 자리를 써요 (썸네일이 그 높이에 맞춰 줄어요) */
#vIntro > .stage--intro { flex: 1 1 0; height: auto; min-height: 132px; max-height: 400px; padding: 18px 24px 10px; }
.pr-intro__art { flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; container-type: size; }
/* 고른 카테고리의 상품 사진 다섯 장을 부채꼴로. 선 없이 흰 카드와 그림자만 써요 */
.fan { --fw: min(124px, 34cqw, 58cqh); position: relative; flex: none; width: calc(var(--fw) * 3.3); height: calc(var(--fw) * 1.5); margin: 0 -24px; }
.fan__card { position: absolute; left: 50%; top: calc(var(--fw) * 0.08); width: var(--fw); height: var(--fw); margin-left: calc(var(--fw) / -2); box-sizing: border-box; padding: calc(var(--fw) * 0.055); border-radius: calc(var(--fw) * 0.2); background: #fff;
  box-shadow: 0 1px 2px rgba(18, 22, 19, 0.08), 0 12px 24px -12px rgba(18, 22, 19, 0.32);
  transform: translate(calc(var(--i) * var(--fw) * 0.55), calc(var(--a) * var(--a) * var(--fw) * 0.045)) rotate(calc(var(--i) * 7deg)) scale(calc(1.16 - var(--a) * 0.1));
  z-index: calc(3 - var(--a)); animation: fan-in 460ms var(--ease-out) backwards; animation-delay: calc(var(--a) * 55ms); }
.fan__card::before { content: ""; position: absolute; inset: calc(var(--fw) * 0.055); border-radius: calc(var(--fw) * 0.15); background: #F1F3EE; }
.fan__card img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; border-radius: calc(var(--fw) * 0.15); background: #fff; opacity: 0; transition: opacity 220ms var(--ease-out); }
.fan__card img.is-in { opacity: 1; }
.fan__tag { position: absolute; left: 50%; top: calc(var(--fw) * 1.1); z-index: 5; transform: translateX(-50%) rotate(-4deg); padding: 7px 13px 6px; border-radius: var(--radius-pill); background: var(--on-stage); color: var(--stage); font: 600 15px/1 var(--font-mono); white-space: nowrap; box-shadow: 0 8px 16px -8px rgba(18, 22, 19, 0.5); }
@keyframes fan-in { from { opacity: 0; transform: translate(0, calc(var(--fw) * 0.14)) rotate(0deg) scale(0.88); } }
.cats-wrap { display: flex; flex-direction: column; gap: 8px; }
/* 카테고리가 많아서 두 줄로 놓고 옆으로 밀어요 */
.chips { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; margin: 0 -12px; padding: 2px 14px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips__row { display: flex; gap: 6px; width: max-content; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--paper-raised); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: 600 14px/1 var(--font-sans); cursor: pointer; }
.chip[aria-checked="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip--special { background: #FFF1C2; box-shadow: inset 0 0 0 1.5px #FFC53D; color: #121613; }
.chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pr-off { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); text-align: center; }

/* 플레이 무대 */
.stage--price { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; user-select: none; -webkit-user-select: none; }
.pr-top { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.pr-cat { font: 600 12px/1 var(--font-sans); color: var(--on-stage-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer { width: 36px; height: 36px; flex: none; }
.timer__bg { fill: none; stroke: var(--stage-raised); stroke-width: 3; }
.timer__fg { fill: none; stroke: var(--on-stage); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 18px 18px; stroke-dasharray: 94.25; transition: stroke 200ms; }
.timer text { fill: var(--on-stage); font: 600 12px/1 var(--font-mono); text-anchor: middle; }
.timer.is-hurry .timer__fg { stroke: var(--grain); }
.timer.is-hurry text { fill: var(--grain); }

/* 상품 카드: 사진과 이름을 세로 카드 하나로 묶어요. 남는 높이에 맞춰 카드가 커져요. */
.pcard { flex: 1; min-height: 0; display: grid; place-items: center; container-type: size; }
.pcard__box { --name-h: 62px; --name-top: 10px; --name-x: 8px; --name-lh: 20px; --pad: 8px; box-sizing: border-box; width: min(100%, 250px); width: min(100cqw, 280px, calc(100cqh - var(--name-h) - 14px)); padding: var(--pad) var(--pad) 0; display: flex; flex-direction: column; border-radius: 26px; background: var(--stage-raised); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 24px 38px -22px rgba(0, 0, 0, 0.6); }
:root:not([data-theme="dark"]) .pcard__box { background: #F1F3EE; box-shadow: 0 1px 1px rgba(18, 22, 19, 0.04), 0 20px 36px -22px rgba(18, 22, 19, 0.3); }
.pcard__img { width: 100%; aspect-ratio: 1; border-radius: calc(26px - var(--pad)); overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(18, 22, 19, 0.06), 0 10px 20px -12px rgba(18, 22, 19, 0.25); }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; display: block; opacity: 0; transition: opacity 240ms var(--ease-out); }
.pcard__img img.is-in { opacity: 1; }
/* 이름은 딱 두 줄 높이예요 (셋째 줄이 아래 여백에 비치지 않게 여백은 margin으로 둬요) */
.pcard__name { height: calc(var(--name-lh) * 2); margin: var(--name-top) var(--name-x) calc(var(--name-h) - var(--name-top) - var(--name-lh) * 2); padding: 0; font: 600 15px/var(--name-lh) var(--font-sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__meta:empty { display: none; }
.pcard__meta { margin: -2px 0 0; display: flex; gap: 6px; align-items: center; font: 500 12px/16px var(--font-sans); color: var(--on-stage-muted); }
.pcard__meta .rocket { padding: 2px 6px; border-radius: 6px; background: var(--stage-raised); color: var(--on-stage); font-weight: 600; }

.pr-score { display: inline-flex; align-items: baseline; gap: 2px; }
.pr-score[hidden] { display: none !important; }
.pr-score__v { font: 400 30px/1 var(--font-pixel); color: var(--sprout); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pr-score__v.is-pop { animation: kk-pop 420ms var(--ease-pop); }
.pr-score .score__of { font: 500 13px/1 var(--font-mono); color: var(--on-stage-muted); }
.pr-score.is-low .pr-score__v { color: var(--p1); }
.pr-score.is-mid .pr-score__v { color: var(--grain); }

/* 가격 읽기 */
.pr-read { display: flex; flex-direction: column; gap: 6px; margin-top: -2px; }
.pr-read__row { display: flex; align-items: center; gap: 10px; }
.pr-read__k { width: 56px; flex: none; font: 600 12px/1 var(--font-sans); color: var(--on-stage-muted); }
.pr-read__row.is-ans .pr-read__k { color: var(--sprout); }
.pr-read__row[hidden] { display: flex !important; visibility: hidden; }
.pr-comment { margin: 14px 0 0; min-height: 20px; font: 400 15px/20px var(--font-display); }
.stage--price.is-revealed .pr-read__row:first-child .odo__d { color: var(--grain); }

/* 숫자판 */
.odo { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.odo__d { display: inline-block; }
.odo__win { display: block; height: 1em; overflow: hidden; }
.odo__col { display: flex; flex-direction: column; transition: transform 160ms var(--ease-out); }
.odo__col > span { height: 1em; line-height: 1; text-align: center; }
.odo__sep { width: 0.3em; text-align: center; }
.odo__won { margin-left: 0.25em; font: 600 13px/1 var(--font-sans); color: var(--on-stage-muted); }
.odo--tile { font: 600 20px/1 var(--font-mono); }
.odo--tile .odo__d { width: 0.72em; padding: 6px 4px; margin-right: 2px; border-radius: 5px; background: var(--stage-raised); box-shadow: inset 0 -1px 0 rgba(var(--stage-ink), 0.06); }
.odo--tile .odo__col { margin: 0; }
.pr-read__row.is-ans .odo__d { color: var(--sprout); }

/* 자 */
.ruler { position: relative; flex: none; height: 74px; margin: 8px -16px -14px; border-top: 1px solid rgba(var(--stage-ink), 0.08); border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; touch-action: none; cursor: grab; outline: none; }
.ruler:active { cursor: grabbing; }
.ruler:focus-visible { box-shadow: inset 0 0 0 3px var(--focus); }
.ruler canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ruler::before, .ruler::after { content: ""; position: absolute; top: 0; bottom: 0; width: 36px; z-index: 1; pointer-events: none; }
.ruler::before { left: 0; background: linear-gradient(90deg, var(--stage), transparent); }
.ruler::after { right: 0; background: linear-gradient(-90deg, var(--stage), transparent); }
.ruler__hint { position: absolute; left: 50%; top: 6px; translate: -50% 0; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(18, 22, 19, 0.72); color: #fff; font: 600 12px/1 var(--font-sans); pointer-events: none; opacity: 0; transition: opacity 200ms; z-index: 2; }
.ruler.is-hint .ruler__hint { opacity: 1; animation: pr-nudge 1.6s ease-in-out infinite; }
@keyframes pr-nudge { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(10px); } }
.stage--price.is-revealed .ruler { cursor: default; }
.stage--price.is-revealed .ruler__hint { opacity: 0; animation: none; }

.pr-foot { gap: 8px; min-height: 0; padding-top: 2px; }

/* 결과 */
.pr-total { overflow-y: auto; padding-bottom: 8px; scrollbar-width: none; }
.pr-total::-webkit-scrollbar { display: none; }
.pr-res { padding: 20px 18px 22px; text-align: center; }
.pr-res__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.pr-res .total { margin: 20px 0 0; }
.pr-res .total { white-space: nowrap; }
.pr-res .total__v { font-size: min(96px, 23vw); }
.pr-res .total__comment { word-break: keep-all; text-wrap: balance; }
.pr-rankline { margin: 0; font: 600 14px/1 var(--font-mono); color: var(--on-stage-muted); }
.pr-rankline b { color: var(--sprout); font-weight: 600; }
.pr-res .pgrid { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(var(--stage-ink), 0.1); }
.pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ptile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; opacity: 0; transform: translateY(8px); transition: opacity 260ms var(--ease-out) var(--d, 0ms), transform 260ms var(--ease-out) var(--d, 0ms); }
.pgrid.is-in .ptile { opacity: 1; transform: none; }
.ptile__img { width: 100%; aspect-ratio: 1; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(var(--stage-ink), 0.1); }
.ptile__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ptile.is-worst .ptile__img { box-shadow: 0 0 0 2px var(--p1); }
.ptile__s { margin-top: 6px; font: 400 20px/1 var(--font-pixel); color: var(--sprout); font-variant-numeric: tabular-nums; }
.ptile.is-mid .ptile__s { color: var(--grain); }
.ptile.is-low .ptile__s { color: var(--p1); }
.pr-worst { margin: 18px 4px 0; font: 400 16px/23px var(--font-display); color: var(--on-stage-muted); text-align: left; opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.pr-worst.is-in { opacity: 1; transform: none; }
.pr-worst b { color: var(--on-stage); font-weight: 400; }
.pr-worst__g { color: var(--p1); }

.pr-side { display: contents; }
.buy { display: flex; flex-direction: column; gap: 10px; }
.buy__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.buy__row { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px 8px 8px; border-radius: var(--radius-md); background: var(--paper-raised); box-shadow: inset 0 0 0 1.5px var(--line); }
.buy__img { width: 48px; height: 48px; border-radius: 10px; background: #fff; object-fit: contain; box-shadow: inset 0 0 0 1px var(--line); }
.buy__txt { min-width: 0; display: grid; gap: 2px; }
.buy__name { font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy__price { font: 600 13px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy__mine { font-weight: 500; color: var(--ink-muted); font-size: 11px; }
.buy__go { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font: 600 13px/1 var(--font-sans); text-decoration: none; white-space: nowrap; }
.buy__go:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.buy__note { margin: 0; font-size: 12px; line-height: 17px; color: var(--ink-muted); }
.pr-disclose { margin: 6px 0 0; text-align: left; font-size: 12px; line-height: 17px; color: var(--ink-muted); }

/* 친구 도전 — 소개의 도전장 */
.pr-intro__art[hidden], .ch[hidden] { display: none; }
.ch { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; text-align: center; }
.ch__from { margin: 0; font: 600 14px/20px var(--font-sans); color: var(--on-stage-muted); }
.ch__from b { color: var(--on-stage); }
.ch__total { margin: 0; }
.ch__total .total__v { font-size: 72px; }
.ch__items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; max-width: 300px; margin-top: 8px; }
.ch__items img { width: 100%; aspect-ratio: 1; border-radius: 10px; background: #fff; object-fit: contain; display: block; box-shadow: 0 0 0 1px rgba(var(--stage-ink), 0.1); }
.ch__count { margin: 4px 0 0; font: 500 12px/16px var(--font-sans); color: var(--on-stage-muted); }

/* 친구 도전 — 결과 비교 */
.vs { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 10px; border-radius: var(--radius-md); background: var(--paper-raised); box-shadow: inset 0 0 0 1.5px var(--line); }
.vs[hidden], .cb[hidden] { display: none; }
.vs__head { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs__rows { display: grid; gap: 8px; }
.vs__row { display: grid; grid-template-columns: 76px 1fr 54px; align-items: center; gap: 8px; }
.vs__who { font-size: 13px; font-weight: 600; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs__row.is-me .vs__who { color: var(--ink); }
.vs__bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.vs__bar i { display: block; height: 100%; border-radius: 5px; background: var(--ink-muted); }
.vs__row.is-me .vs__bar i { background: var(--sprout-strong); }
.vs__t { font: 600 14px/1 var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.vs__tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font: 500 13px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.vs__tbl th { width: 76px; padding: 8px 0; text-align: left; font: 600 12px/1 var(--font-sans); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs__tbl td { padding: 8px 0; text-align: center; color: var(--ink-muted); }
.vs__tbl tr + tr > * { border-top: 1px solid var(--line); }
.vs__tbl td.is-win { color: var(--sprout-strong); font-weight: 600; }
.vs__tbl td.vs__n { font-size: 11px; }

/* 친구 도전 — 이 판 순위 */
.cb { display: flex; flex-direction: column; gap: 10px; }
.cb__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cb__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cb .rank-row small { margin-left: 4px; font-size: 11px; font-weight: 500; opacity: 0.7; }
.cb .rank-row.is-ghost { background: none; box-shadow: none; outline: 1.5px dashed var(--ink-muted); outline-offset: -1.5px; }

/* 도전장 보내기 창 */
.dlg { width: min(400px, calc(100vw - 32px)); box-sizing: border-box; margin: 12vh auto auto; padding: 22px 20px 18px; border: 0; border-radius: var(--radius-lg); background: var(--paper-raised); color: var(--ink); box-shadow: var(--shadow-lift); }
.dlg::backdrop { background: rgba(18, 22, 19, 0.55); }
.dlg__x { position: absolute; top: 10px; right: 10px; }
.dlg__title { margin: 0 44px 8px 0; font: 400 26px/32px var(--font-display); letter-spacing: -0.01em; }
.dlg__step { display: flex; flex-direction: column; gap: 10px; }
.dlg__step[hidden] { display: none; }
.dlg__sub { margin: 0 0 6px; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.name-in { width: 100%; height: 54px; box-sizing: border-box; padding: 0 16px; border: 0; border-radius: var(--radius-sm); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: 600 17px/1 var(--font-sans); outline: none; }
.name-in::placeholder { color: var(--ink-muted); font-weight: 500; opacity: 0.7; }
.name-in:focus-visible { box-shadow: inset 0 0 0 2.5px var(--focus); }
.dlg__err { margin: -2px 0 0; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--stamp-strong); }
.dlg__err[hidden], .dlg__card[hidden] { display: none; }
.dlg__card { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; }
.linkbox { display: block; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font: 500 13px/19px var(--font-mono); word-break: break-all; user-select: all; -webkit-user-select: all; }
.dlg .btn-row { margin-top: 4px; }
.dlg .btn-row .mn-btn[hidden] { display: none; }
.dlg .link-btn { align-self: center; }
.dlg .link-btn[hidden] { display: none; }

@media (max-height: 700px) {
  .pcard__box { --name-h: 56px; --name-top: 8px; }
  .pcard__name { font-size: 14px; }
  .ruler { height: 66px; }
  .odo--tile { font-size: 18px; }
  .pr-res .total__v { font-size: min(80px, 23vw); }
  .ch { gap: 4px; }
  .ch__total .total__v { font-size: 52px; }
  .ch__items { max-width: 240px; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ptile, .pr-worst { transition: none; }
  .pr-score__v.is-pop { animation: none; }
  .odo__col { transition: none; }
  .ruler.is-hint .ruler__hint { animation: none; }
  .fan__card { animation: none; }
}

/* ---------------- 넓은 화면 (PC) ----------------
   휴대폰 세로 화면을 가운데 세워 두지 않고 두 단으로 펼쳐요. 창이 낮으면(720px 미만) 휴대폰 배치 그대로예요. */
@media (min-width: 960px) and (min-height: 620px) {
  .app { max-width: 1000px; height: min(100dvh, 900px); margin-top: max(0px, calc((100dvh - 900px) / 2)); padding: 16px 28px 28px; }
  .top { min-height: 56px; margin-bottom: 4px; }

  /* 소개: 왼쪽 무대, 오른쪽 설명·시작 */
  #vIntro.is-on { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 48px; row-gap: 18px; }
  #vIntro > .stage--intro { grid-column: 1; grid-row: 1 / -1; align-self: center; flex: none; height: min(100%, 540px); max-height: none; padding: 24px; }
  #vIntro > .intro-copy { grid-column: 2; grid-row: 2; }
  #vIntro > .cats-wrap { grid-column: 2; grid-row: 3; }
  #vIntro > .intro-foot { grid-column: 2; grid-row: 4; margin-top: 10px; }
  .intro-copy h1 { font-size: 52px; line-height: 56px; margin-bottom: 12px; }
  .intro-copy p { font-size: 18px; line-height: 27px; }
  .intro-copy p.muted { font-size: 14px; line-height: 20px; }
  .chips { flex-direction: row; flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px; }
  .chips__row { display: contents; }
  .fan { --fw: min(168px, 33cqw, 50cqh); }
  .fan__tag { font-size: 17px; padding: 8px 15px 7px; }
  .ch { gap: 12px; }
  .ch__total .total__v { font-size: 96px; }
  .ch__items { max-width: 380px; gap: 10px; }
  .ch__from { font-size: 16px; }
  .ch__count { font-size: 13px; }

  /* 플레이: 왼쪽 상품 카드, 오른쪽 가격, 아래에 넓은 자 */
  .stage--price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top top" "card read" "ruler ruler"; column-gap: 40px; row-gap: 12px; padding: 20px 32px 14px; }
  .pr-top { grid-area: top; }
  .pcard { grid-area: card; }
  .pcard__box { --name-h: 72px; --name-top: 12px; --name-x: 10px; --name-lh: 24px; --pad: 10px; border-radius: 32px; width: min(100cqw, 400px, calc(100cqh - var(--name-h) - 24px)); }
  .pcard__img { border-radius: 22px; }
  .pcard__name { font-size: 17px; }
  .pr-read { grid-area: read; align-self: center; gap: 14px; margin: 0; }
  .pr-read__row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pr-read__k { width: auto; font-size: 14px; }
  .odo--tile { font-size: 34px; }
  .odo--tile .odo__d { padding: 9px 5px; margin-right: 3px; border-radius: 8px; }
  .odo__won { font-size: 18px; }
  .pr-comment { margin-top: 10px; min-height: 52px; font-size: 20px; line-height: 26px; }
  .pr-score__v { font-size: 40px; }
  .stage--price .ruler { grid-area: ruler; height: 104px; margin: 4px -32px -14px; }
  .stage--price .ruler::before, .stage--price .ruler::after { width: 72px; }
  .ruler__hint { font-size: 13px; padding: 6px 12px; }
  .pr-foot { align-items: center; padding-top: 6px; }
  .pr-foot .mn-btn { max-width: 440px; }

  /* 결과: 왼쪽 점수와 버튼, 오른쪽 비교·순위·상품 목록 */
  #vTotal.is-on { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 14px; overflow: visible; padding-bottom: 0; }
  #vTotal > .pr-res { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 28px; }
  #vTotal > .total-foot { grid-column: 1; grid-row: 2; margin: 0; }
  .pr-side { grid-column: 2; grid-row: 1 / -1; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; padding: 2px 2px 2px; margin: -2px; scrollbar-width: thin; }
  .pr-res .total { margin-top: 12px; }
  .pr-res .total__v { font-size: 96px; }
  .pgrid { gap: 10px; }
  .ptile__s { font-size: 24px; }
  .buy__name { font-size: 14px; }

  /* 랭킹: 한 단을 가운데에 */
  #vRank.is-on { width: 100%; max-width: 560px; margin: 0 auto; }
  .toast { bottom: 40px; }
  .dlg { margin-top: 18vh; }
}

/* PC인데 창이 낮을 때 (작은 노트북): 자와 여백을 줄여 상품 카드에 자리를 줘요 */
@media (min-width: 960px) and (min-height: 620px) and (max-height: 759px) {
  .app { padding: 10px 28px 18px; }
  .top { min-height: 48px; margin-bottom: 0; }
  .stage--price { row-gap: 6px; padding: 14px 28px 12px; }
  .pcard__box { --name-h: 60px; --name-top: 10px; --name-x: 8px; --name-lh: 20px; --pad: 8px; border-radius: 26px; width: min(100cqw, 400px, calc(100cqh - var(--name-h) - 12px)); }
  .pcard__img { border-radius: 18px; }
  .pcard__name { font-size: 15px; }
  .stage--price .ruler { height: 84px; margin: 0 -28px -12px; }
  .odo--tile { font-size: 30px; }
  .pr-comment { min-height: 46px; font-size: 18px; line-height: 23px; }
  #vTotal > .pr-res { padding: 16px 24px; }
  .pr-res .total { margin-top: 6px; }
  .pr-res .total__v { font-size: 76px; }
  .pr-res .pgrid { margin-top: 14px; padding-top: 12px; }
  .intro-copy h1 { font-size: 44px; line-height: 48px; }
  .ch__total .total__v { font-size: 80px; }
}

/* 폰: 무대가 화면 전체라 눈금자 아래 모서리도 곧게 */
@media (max-width: 480px) {
  .ruler { border-radius: 0; }
}
