/* ===== Kurš maksā vairāk? — Spēļotavas tumšais dizains =====
   Pārtaisīts uz portāla paleti (navy + lime/pink akcents).
   Klases un izkārtojums palikuši, mainītas tikai krāsas/virsmas.
   Spēles loģika (vairak.js) nav skarta. */

.hidden { display: none !important; }

.vm-start,
.vm-end {
  max-width: 620px;
  margin: 22px auto 0;
  text-align: center;
}

.vm-end-title {
  margin: 0;
  color: var(--text);
  line-height: 1.05;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
}

.vm-kicker {
  margin: 0 0 0.35rem;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.vm-start-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 6px 0 18px;
}

.vm-start-panel > div {
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: 14px;
  padding: 16px 12px;
}

.vm-stat-label {
  display: block;
  font-size: 10px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.vm-start-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.vm-primary-btn,
.vm-link-btn {
  font-family: inherit;
  cursor: pointer;
}

.vm-primary-btn {
  border: 0;
  border-radius: 12px;
  padding: 14px 26px;
  background: linear-gradient(120deg, var(--lime), #a5e32c);
  color: #131f05;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(200, 245, 66, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vm-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(200, 245, 66, 0.3);
}

.vm-error {
  margin-top: 0.8rem;
  color: var(--red);
  font-size: 13px;
}

.vm-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.vm-link-btn {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  border-radius: 99px;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.vm-link-btn:hover {
  color: var(--text);
  border-color: rgba(200, 245, 66, 0.4);
}

.vm-scoreline {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.vm-scoreline strong {
  color: var(--lime);
  font-family: var(--font-display);
}

.vm-question {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  text-align: center;
}

.vm-duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.vm-card {
  --tone: #ff6da9;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel-solid);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-width: 0;
  box-shadow: 0 14px 40px rgba(2, 6, 14, 0.4);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.vm-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tone) 55%, transparent);
  box-shadow: 0 20px 46px rgba(2, 6, 14, 0.55);
}

.vm-card.vm-locked { cursor: default; }
.vm-card.vm-locked:hover { transform: none; }

.vm-card.vm-correct {
  border-color: rgba(61, 220, 132, 0.7);
  box-shadow: 0 0 0 2px rgba(61, 220, 132, 0.3), 0 14px 40px rgba(2, 6, 14, 0.5);
}

.vm-card.vm-wrong {
  border-color: rgba(255, 100, 116, 0.65);
  box-shadow: 0 0 0 2px rgba(255, 100, 116, 0.28), 0 14px 40px rgba(2, 6, 14, 0.5);
}

.vm-pick-label {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.vm-image-wrap {
  display: block;
  aspect-ratio: 16 / 10;
  background: #05080f;
  overflow: hidden;
}

.vm-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vm-card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.vm-card-title {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  font-size: 17px;
}

.vm-details {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.vm-detail-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.vm-detail-line span:first-child { color: var(--muted-2); }

.vm-detail-line span:last-child {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.vm-price {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.vm-hidden-price { color: rgba(158, 182, 214, 0.25); }

.vm-versus {
  align-self: center;
  justify-self: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(150deg, #131b30, #0a101d);
  border: 1px solid rgba(255, 109, 169, 0.4);
  color: #ff6da9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(2, 6, 14, 0.5);
}

.vm-feedback {
  margin: 16px auto 0;
  max-width: 540px;
  text-align: center;
  color: var(--text);
  font-weight: 700;
}

.vm-next {
  display: block;
  margin: 14px auto 0;
}

.vm-final-score {
  margin: 16px 0 20px;
}

.vm-final-score span {
  display: block;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
}

.vm-final-score small {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
}

@media (max-width: 780px) {
  .vm-title { font-size: 34px; }

  .vm-duel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vm-versus {
    width: 44px;
    height: 44px;
    margin: -2px 0;
  }

  .vm-card {
    grid-template-columns: 128px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .vm-pick-label { grid-column: 1 / -1; }

  .vm-image-wrap {
    aspect-ratio: auto;
    height: 100%;
    min-height: 150px;
  }

  .vm-card-title { font-size: 15px; }
  .vm-price { font-size: 25px; }
}

@media (max-width: 520px) {
  .vm-start-panel { grid-template-columns: 1fr; }
  .vm-topbar { align-items: flex-start; }

  .vm-scoreline {
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
  }

  .vm-card { grid-template-columns: 112px minmax(0, 1fr); }
  .vm-image-wrap { min-height: 138px; }

  .vm-card-body { padding: 14px; gap: 7px; }
  .vm-details { font-size: 12px; }

  .vm-detail-line { display: block; }
  .vm-detail-line span { display: block; }
}
