/* Galeones — px a propósito (no depende de la escala rem de cada página) */

/* Saldo en la cabecera (en móvil se oculta para no romper la barra; se ve en la portada y en Gringotts) */
.ph-gal-chip { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(212,168,50,.45); background: rgba(212,168,50,.08); color: var(--gold-300); font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s; }
.ph-gal-chip:hover { background: rgba(212,168,50,.16); border-color: var(--gold-400); color: var(--gold-200); }
.ph-gal-chip b { font-weight: 700; }
@media (max-width: 900px) { .ph-gal-chip { display: none; } }

/* Tarjetas de la portada */
.gr-wallet__n { margin: 0 0 12px; font-family: 'Cinzel', serif; font-size: 30px; line-height: 1; color: var(--gold-300); }
.gr-wallet__n small { font-family: system-ui, sans-serif; font-size: 13px; color: var(--text-muted); letter-spacing: .05em; }
.gr-wallet__btn { display: block; text-align: center; }

/* Lista de ricos */
.gr-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gr-top li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.03); border-left: 3px solid var(--h, #d4a832); }
.gr-top__n { text-align: center; font-size: 16px; color: var(--text-muted); }
.gr-top a { min-width: 0; text-decoration: none; display: flex; flex-direction: column; }
.gr-top strong { color: var(--text-bright); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-top small { color: var(--text-muted); font-size: 12px; }
.gr-top__amt { color: var(--gold-300); font-size: 14px; font-weight: 700; white-space: nowrap; }

/* Página Gringotts */
.gr__wrap { padding-top: 24px; padding-bottom: 60px; display: flex; flex-direction: column; gap: 20px; }
.gr-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border: 1px solid rgba(212,168,50,.35); border-radius: 20px; background: linear-gradient(160deg, rgba(212,168,50,.12), var(--ink-850)); }
.gr-eyebrow { margin: 0 0 6px; color: var(--teal-300, #1ed8c8); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.gr-hero h1 { margin: 0 0 8px; font-family: 'Cinzel Decorative', 'Cinzel', serif; font-size: 40px; color: var(--gold-300); }
.gr-lead { margin: 0; max-width: 520px; color: var(--text-primary); font-size: 16px; line-height: 1.55; }
.gr-balance { min-width: 200px; padding: 16px 22px; border-radius: 16px; background: var(--ink-800); border: 1px solid var(--border-strong); text-align: center; display: flex; flex-direction: column; gap: 6px; }
.gr-balance b { font-family: 'Cinzel', serif; font-size: 36px; color: var(--gold-300); line-height: 1.1; }
.gr-balance small { color: var(--text-muted); font-size: 13px; }
.gr-balance--guest { gap: 10px; }

.gr-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.gr-card { padding: 22px; border: 1px solid var(--border-default); border-radius: 18px; background: linear-gradient(165deg, var(--ink-800), var(--ink-850)); min-width: 0; }
.gr-card h2 { margin: 0 0 14px; font-family: 'Cinzel', serif; font-size: 20px; color: var(--gold-200); }
.gr-muted { margin: 10px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.gr-note { font-size: 13px; }

.gr-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.gr-tabs button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-default); background: transparent; color: var(--text-muted); font: inherit; font-size: 14px; cursor: pointer; min-height: 40px; }
.gr-tabs button.is-on { border-color: var(--gold-400); color: var(--gold-200); background: rgba(212,168,50,.12); }

.gr-earn, .gr-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gr-earn li, .gr-hist li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); font-size: 14px; color: var(--text-primary); }
.gr-earn b { color: var(--gold-300); white-space: nowrap; }
.gr-hist li span { display: flex; flex-direction: column; min-width: 0; }
.gr-hist small { color: var(--text-faint, #5a6a8c); font-size: 12px; }
.gr-hist b { font-size: 15px; white-space: nowrap; }
.gr-hist .is-in { color: #5be3a1; } .gr-hist .is-out { color: #ff9a9a; }

.gr-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.gr-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; text-align: center; border: 1px solid var(--border-default); border-radius: 14px; background: var(--ink-800); }
.gr-item.is-equipped { border-color: var(--teal-400); box-shadow: 0 0 0 1px rgba(30,216,200,.3) inset; }
.gr-item__ico { font-size: 30px; line-height: 1; }
.gr-item strong { color: var(--text-bright); font-size: 14px; line-height: 1.3; }
.gr-item__price { color: var(--gold-300); font-size: 14px; }
.gr-item .btn { min-height: 40px; }

.gr-donate { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gr-donate input { width: 130px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-default); background: var(--ink-850); color: var(--text-bright); font: inherit; font-size: 16px; }

.gr-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 500; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; font-size: 15px; background: var(--ink-700); border: 1px solid var(--border-strong); color: var(--text-bright); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.gr-toast[hidden] { display: none; }
.gr-toast.is-ok { border-color: #27a05a; } .gr-toast.is-err { border-color: #c93030; }

@media (max-width: 800px) {
  .gr-grid { grid-template-columns: 1fr; }
  .gr-hero { padding: 20px; } .gr-hero h1 { font-size: 32px; }
  .gr-balance { width: 100%; }
}
