/* Mennyibe került? (prices) — prefix pr- */
.pr-frame {
  width: min(520px, 100cqw);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  touch-action: manipulation;
}

/* --- Progress --------------------------------------------------------------------- */
.pr-head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pr-count { font-weight: 500; font-size: .9rem; color: var(--muted); }
.pr-dots { display: flex; gap: 7px; }
.pr-dots i {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14);
  transition: background-color .25s, transform .35s var(--ease-spring), box-shadow .25s;
}
.pr-dots i.now { background: #fff; transform: scale(1.2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--game) 40%, transparent); }
.pr-dots i.ok { background: var(--good); }
.pr-dots i.bad { background: var(--danger); }

.pr-q { margin: 0; font-weight: 600; font-size: clamp(1.25rem, 5cqw, 1.6rem); letter-spacing: -.03em; text-align: center; }

/* --- The pair ---------------------------------------------------------------------- */
.pr-pair {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 10px;
}
.pr-pair.pr-in { animation: pr-in .4s var(--ease-out); }
@keyframes pr-in { from { opacity: 0; transform: translateX(18px); } }
.pr-vs { align-self: center; font-weight: 500; font-size: .8rem; color: var(--muted); }

.pr-opt {
  position: relative; overflow: hidden;
  min-width: 0; min-height: 170px; padding: 16px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; cursor: pointer;
  background: #1c1c1e; color: #fff; font: inherit; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .2s, background-color .25s, transform .35s var(--ease-spring), opacity .25s;
  -webkit-tap-highlight-color: transparent;
}
.pr-pair:not(.answered) .pr-opt:hover:not(:disabled) { border-color: color-mix(in srgb, var(--game) 70%, #fff); background: #232325; }
.pr-pair:not(.answered) .pr-opt:active:not(:disabled) { transform: scale(.96); transition-duration: .08s; }
.pr-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pr-opt:disabled { cursor: default; }
.pr-year {
  padding: 3px 11px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; letter-spacing: -.01em;
  color: var(--accent); background: color-mix(in srgb, var(--game) 22%, transparent);
}
.pr-name {
  font-weight: 550; line-height: 1.22; letter-spacing: -.01em;
  font-size: clamp(.9rem, 3.6cqw, 1.08rem); overflow-wrap: break-word; hyphens: auto;
}
.pr-price { font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; min-height: 1.3em; white-space: nowrap; }
.pr-price:empty { visibility: hidden; }

.pr-pair.answered .pr-opt { cursor: pointer; }
.pr-pair.answered .pr-opt:not(.win) { opacity: .55; }
.pr-opt.win { border-color: color-mix(in srgb, var(--good) 65%, transparent); background: color-mix(in srgb, var(--good) 16%, #1c1c1e); }
.pr-opt.win .pr-price { color: var(--good); }
.pr-opt.wrong { opacity: 1 !important; border-color: color-mix(in srgb, var(--danger) 65%, transparent); background: color-mix(in srgb, var(--danger) 14%, #1c1c1e); }
.pr-opt.wrong .pr-price { color: var(--danger); }
.pr-opt.win.picked .pr-price::after { content: " ✓"; color: var(--good); }
.pr-opt.wrong .pr-price::after { content: " ✗"; color: var(--danger); }
.pr-press { animation: fx-pop .35s var(--ease-spring); }
.pr-hit { animation: pr-hit .7s var(--ease-spring); }
@keyframes pr-hit { 35% { transform: scale(1.06) translateY(-3px); } }
.pr-hit::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--good) 45%, transparent), transparent 70%);
  animation: pr-flash .7s var(--ease-out) forwards;
}
@keyframes pr-flash { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.3); } }

.pr-note { margin: 0; font-size: .8rem; font-weight: 450; color: var(--muted); text-align: center; }
.pr-src { margin: 0; font-size: .7rem; color: var(--muted); opacity: .7; text-align: center; }

/* --- Summary after the tenth answer ---------------------------------------------------- */
.pr-done .pr-q, .pr-done .pr-pair, .pr-done .pr-note { display: none; }
.pr-list {
  width: 100%; margin: 0; padding: 6px; list-style: none;
  display: flex; flex-direction: column; gap: 3px;
  background: #1c1c1e; border: 1px solid rgba(255, 255, 255, .06); border-radius: 22px;
  animation: pr-in .45s var(--ease-out);
}
.pr-list[hidden] { display: none; }
.pr-list li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 14px;
}
.pr-list li:nth-child(odd) { background: rgba(255, 255, 255, .04); }
.pr-li-mark {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-weight: 650; font-size: .75rem; color: #000;
}
.pr-list li.ok .pr-li-mark { background: var(--good); }
.pr-list li.bad .pr-li-mark { background: var(--danger); }
.pr-li-side { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pr-li-side b { font-weight: 550; font-size: .9rem; overflow-wrap: anywhere; }
.pr-li-side small { font-size: .74rem; color: var(--muted); }
.pr-li-side.win b { color: var(--good); }

@media (max-width: 380px) {
  .pr-pair { gap: 6px; }
  .pr-opt { min-height: 140px; padding: 12px 6px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-pair.pr-in { animation: none; }
}
/* The shared shine stays put once it stops (repeating tile / tall boxes leave a grey band): fade it out. */
