/* LIZZYLANDIA · gemas (docs/GEMS.md): la píldora 💎 del HUD, su panel (saldo, paquetes y cambio por
   monedas), el elegidor de duración de la videollamada, los pases y fotos pagados con gemas y los
   precios de Lizzy. Mismos tokens que lizzy.css; celular primero. */

/* ---------- píldora del HUD (es un botón: abre el panel) ---------- */
.pill.gems {
  position: relative; cursor: pointer; color: #f6dcff; font-weight: 700;
  background: linear-gradient(180deg, rgba(74, 36, 78, 0.9), rgba(36, 18, 40, 0.92));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 14px rgba(255, 135, 189, 0.28);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.pill.gems:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 135, 189, 0.5); }
.pill.gems:active { transform: scale(0.97); }
.pill.gems::after { content: ''; position: absolute; inset: -5px -2px; } /* zona de toque de 44 px */
/* en el celular, con gemas, el puesto del ranking deja su lugar (se ve en «Fans») */
@media (max-width: 420px) { .hud-top.has-gems .pill.rank { display: none; } }

/* paneles cortos (gemas, duración de la llamada, precios de Lizzy): más angostos en la PC */
.dialog:has(.gems-panel, .call-pick, .prices) { width: min(640px, 100%); }

/* ---------- panel de gemas ---------- */
.gems-wallet {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(circle at 12% 30%, rgba(255, 135, 189, 0.3), transparent 60%), linear-gradient(180deg, rgba(90, 40, 74, 0.85), rgba(40, 20, 36, 0.9));
}
.gems-wallet .gem { font-size: 38px; line-height: 1; filter: drop-shadow(0 4px 12px rgba(255, 135, 189, 0.6)); }
.gems-wallet b { font-family: var(--serif); font-size: 34px; color: var(--cream); font-variant-numeric: tabular-nums; }
.gems-wallet small { color: var(--muted); }
.gems-wallet .coins { margin-left: auto; color: var(--gold-2); font-weight: 700; font-size: 15px; }
.gems-uses { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gems-uses li { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; color: var(--pink-2); }
.gems-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gems-pack {
  display: grid; gap: 6px; justify-items: center; align-content: center; min-height: 88px; padding: 14px 10px; border-radius: 16px;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.gems-pack:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 92, 157, 0.3); }
.gems-pack:active:not([disabled]) { transform: scale(0.97); }
.gems-pack .n { font-family: var(--serif); font-size: 22px; color: var(--cream); }
.gems-pack .ars { padding: 4px 12px; border-radius: 999px; color: #fff; font-size: 14px; background: linear-gradient(180deg, #33b5ff, #009ee3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.gems-pack[disabled] { opacity: 0.55; cursor: not-allowed; }
.gems-pack[disabled] .ars { background: rgba(0, 0, 0, 0.4); color: var(--muted); box-shadow: none; }
.gems-status { min-height: 1.3em; margin: 8px 0; font-weight: 700; color: var(--pink-2); }
.gems-status:empty { min-height: 0; margin: 0; }
.gems-rate { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.gems-exchange { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.gems-exchange input, .media-row .fields .gems-price input {
  width: 120px; min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.32); font-variant-numeric: tabular-nums;
}
.gems-exchange input:focus, .media-row .fields .gems-price input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(227, 183, 99, 0.2); }
.gems-preview { flex: 1 1 110px; font-weight: 700; color: var(--gold-2); }

/* ---------- «No te alcanzan las gemas» y pagar con gemas ---------- */
.gems-short { display: grid; gap: 8px; justify-items: start; margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: rgba(255, 135, 189, 0.1); border: 1px solid rgba(255, 135, 189, 0.45); }
.gems-short-text { margin: 0; color: var(--pink-2); font-weight: 600; line-height: 1.4; }
.gems-buy { margin-top: 10px; }
.chat-pass { margin: 10px 0 0; padding: 12px; border-radius: 14px; background: rgba(255, 135, 189, 0.08); border: 1px solid var(--line-soft); }
.chat-pass p { margin: 0 0 6px; }
/* «Comprar · 20 💎» del Museo: 44 px de alto también en el celular */
.frame .btn { min-height: 44px; padding: 6px 12px; text-align: center; line-height: 1.2; }
.media-row .fields .gems-price { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.media-row .fields .gems-price small { color: var(--muted); }

/* ---------- videollamada: elegir la duración ---------- */
.call-balance { margin: 0 0 6px; font-weight: 700; color: var(--pink-2); }
.call-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.call-option {
  display: grid; gap: 4px; justify-items: center; align-content: center; min-height: 80px; padding: 12px 8px; border-radius: 16px; font-weight: 700;
  border: 1px solid rgba(127, 227, 180, 0.7); background: linear-gradient(180deg, rgba(71, 224, 154, 0.18), rgba(20, 168, 101, 0.08));
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.call-option:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20, 168, 101, 0.35); }
.call-option:active { transform: scale(0.97); }
.call-option b { font-family: var(--serif); font-size: 22px; color: var(--cream); }
.call-option .price { color: var(--gold-2); font-size: 14px; }

/* ---------- precios de Lizzy ---------- */
.prices-form { display: grid; gap: 12px; }
.prices-section { margin: 0; min-width: 0; padding: 10px 12px 12px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.04); display: grid; gap: 8px; }
.prices-section legend { padding: 0 6px; font-family: var(--serif); font-weight: 700; color: var(--pink-2); }
.prices-section small { color: var(--muted); line-height: 1.4; }
.prices-section > .btn { justify-self: start; }
.prices-line { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.prices-pair { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.prices-form input[type='number'] {
  width: 92px; min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.32); font-variant-numeric: tabular-nums;
}
.prices-form input[type='number']:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(227, 183, 99, 0.2); }
.prices-form .invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(255, 122, 143, 0.25); }
.prices-calls { display: grid; gap: 8px; border-radius: 12px; border: 1px solid transparent; }
.prices-call { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, 0.18); }
.prices-call .check { margin: 0; align-items: center; }
.prices-call .btn.icon { margin-left: auto; }
.prices-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prices-log li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-soft); font-size: 14px; }
.prices-log time { color: var(--gold-2); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .gems-packs { grid-template-columns: repeat(2, 1fr); }
  .gems-wallet b { font-size: 30px; }
  .gems-exchange input { flex: 1 1 100px; width: auto; }
  .prices-form input[type='number'] { width: 84px; }
}
