/* A practice round for a village skill (js/screens/practice.js): the round's
   top bar and hearts (.play in css/styles.css) around the village's problem
   card (.vg-qcard and .vg-input in css/village.css), dressed as the round's
   card: a crown on top in the palace, a racing flag in Speedy Town. The end
   is the results screen's look (.results, the chest, the breakdown). */

.pr-play { max-width: 820px; }
.pr-card { display: flex; flex-direction: column; gap: 16px; }
.pr-card .vg-qcard {
  padding: 54px 70px 18px 20px;
  border: 6px solid #ffd0e6;
  border-radius: 34px;
  background:
    radial-gradient(circle at 6% 92%, #fff2f8 0 20px, transparent 21px),
    radial-gradient(circle at 96% 86%, #f4eeff 0 14px, transparent 15px),
    #fff;
  box-shadow: 0 10px 0 #f7bcd9, 0 22px 40px rgba(150, 70, 150, 0.2);
}
.pr-card .vg-qcard::before {
  content: '👑';
  position: absolute;
  top: -36px;
  left: 50%;
  translate: -50% 0;
  font-size: 46px;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.12));
}
.pr-card .vg-qcard.pr-in { animation: card-in 0.45s var(--bounce); }
.pr-tag { max-width: calc(100% - 140px); overflow: hidden; text-overflow: ellipsis; }
.pr-card .vg-pad { padding-bottom: 6px; }
/* The coin tray's ⌫ and ✓ sit after the coins, not in the keypad's named spots. */
.pr-card .vg-tray .key { grid-area: auto; }
.pr-skill { margin-top: 4px; font-size: 18px; font-weight: 600; color: var(--ink-soft); }
.pr-end .pay-tip, .pr-end .bloomed { max-width: 560px; }

html[data-theme='town'] .pr-card .vg-qcard {
  border-color: #cfe2fb;
  background:
    radial-gradient(circle at 6% 92%, #eef6ff 0 20px, transparent 21px),
    radial-gradient(circle at 96% 86%, #fff3e8 0 14px, transparent 15px),
    #fff;
  box-shadow: 0 10px 0 #b9d4f5, 0 22px 40px rgba(40, 80, 150, 0.2);
}
html[data-theme='town'] .pr-card .vg-qcard::before { content: '🏁'; }

@media (max-width: 760px) {
  .pr-card .vg-qcard { padding: 50px 58px 14px 14px; }
  .pr-tag { max-width: calc(100% - 120px); }
}
@media (prefers-reduced-motion: reduce) {
  .pr-card .vg-qcard.pr-in { animation: none; }
}
