/* ─────────────────────────────────────────────────────────────────────────────
   PREMIOS (js/ui/screens/screens-rewards.js y el premio del Frente Batalla)
   Una hoja por zona, como js/ui/screens/. Ver "Estilos (CSS)" en AGENTS.md.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── ITEM REWARD ───────────────────────────────────────────────────────────── */

.item-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-md) var(--sp-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.item-card:hover  { transform: translate(-2px,-2px); box-shadow: var(--shadow-md); }
.item-card:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--black); }

.item-card__icon {
  font-size: 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-card__name { font-family: var(--font-pixel); font-size: var(--fs-6); color: var(--black); line-height: 1.6; }
.item-card { position: relative; }
.item-card__note { font-family: var(--font-pixel); font-size: var(--fs-6); line-height: 1.4; letter-spacing: 1px; margin-top: 2px; }
.item-card__note--caught { color: var(--yellow); }
/* Premio que ya no cabe en la mochila (YA LO TIENES): no se puede elegir */
.item-card--owned { opacity: .45; filter: grayscale(1); cursor: default; pointer-events: none; }
.item-card__note--shiny  { color: var(--yellow-dark); }
/* Etiqueta en la esquina: NUEVO / DESBLOQUEADO */
.item-card__tag {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 5px;
  border-radius: 2px;
  font-family: var(--font-pixel);
  font-size: var(--fs-5);
  line-height: 1.4;
  color: var(--grey);
  background: rgba(128,128,128,.25);
}
.item-card__tag--new { color: var(--black); background: var(--yellow); }
.item-card__shiny { position: absolute; top: 0; right: 0; width: 14px; height: 14px; image-rendering: pixelated; }
/* Tienda (screens-shop.js): precio, vendido y sin dinero suficiente */
/* Lista de la tienda (Screens._shopListHtml): filas como las de la mochila */
.shop-list { max-width: 320px; }
.btn.shop-row { justify-content: flex-start; padding: 8px 12px; }
.shop-row__icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.shop-row__icon > img, .shop-row__icon > svg { width: 28px; height: 28px; }
.shop-row__name { display: block; font-family: var(--font-pixel); font-size: var(--fs-7); line-height: 1.6; }
.shop-row__left { display: block; font-family: var(--font-pixel); font-size: var(--fs-6); line-height: 1.6; color: var(--grey); }
.shop-row__price { font-family: var(--font-pixel); font-size: 8px; white-space: nowrap; color: var(--black); }
.shop-row--locked { cursor: not-allowed; }
.shop-row--locked .shop-row__price { color: var(--red); }
.shop-row--sold .shop-row__price { color: var(--grey); }
/* Saldo de Pokécuartos en la esquina superior derecha de la tienda (Screens._moneyHtml) */
.shop-money {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  font-family: var(--font-pixel);
  font-size: 8px;
  line-height: 1.4;
  color: var(--white);
  white-space: nowrap;
}

/* Pantalla de premio: fin de ruta (Screens._showItemReward) y bloque del Frente Batalla */
.reward-screen {
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 24px;
  text-align: center;
  background: url('../../assets/bg/price.png') center/cover no-repeat;
}
.reward-screen__kicker { font-family: var(--font-pixel); font-size: 8px; letter-spacing: 2px; color: rgba(255,255,255,.7); }
.reward-screen__title  { font-family: var(--font-pixel); font-size: 16px; line-height: 1.6; color: var(--white); text-shadow: 3px 3px 0 rgba(0,0,0,.3); }
.reward-screen__hint   { font-family: var(--font-pixel); font-size: 8px; color: var(--yellow); }
/* Tarjetas del ancho de 3 columnas, centradas: con 1 o 2 premios quedan en el centro */
.reward-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; max-width: 340px; }
.reward-grid > .item-card { flex: 0 0 calc((100% - 20px) / 3); min-width: 0; }
.reward-screen__continue { width: 100%; max-width: 340px; }

/* Pokédex y Compendio flotantes arriba a la derecha de la pantalla de premio */
.global-dex-btn { position: fixed; top: 12px; right: 12px; z-index: 1000; display: flex; gap: 4px; }
.btn.global-dex-btn__btn {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 10px;
  background: rgba(255,255,255,.92);
  border-color: var(--black);
  box-shadow: var(--shadow-sm);
}

/* MO obtenida al completar la ruta (rewardHM) */
.hm-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  background: rgba(0,0,0,.45);
  border: 2px solid var(--yellow);
  border-radius: 8px;
}
.hm-card__fallback { font-size: 32px; }
.hm-card__kicker { font-family: var(--font-pixel); font-size: var(--fs-7); color: var(--yellow); letter-spacing: 1px; margin-bottom: 3px; }
.hm-card__desc { color: rgba(255,255,255,.65); margin-top: 3px; }

/* Icono de un consumible en las tarjetas de premio (consumableIcon) */
.prize-icon { width: 40px; height: 40px; image-rendering: pixelated; object-fit: contain; }
