:root{
  --bg:#0b1220;
  --panel:#0f172a;
  --line:#1e293b;
  --blue:#2563eb;
  --blue2:#3b82f6;
  --text:#e5e7eb;
  --muted:#9ca3af;
}

/* RESET */
*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Inter,system-ui,Arial;
  background:var(--bg);
  color:var(--text);
}

a{
  text-decoration:none;
  color:inherit;
}

/* ===============================
   HERO
================================ */

.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.hero-inner{
  max-width:900px;
  padding:40px 20px;
}

.hero-actions{
  display:flex;
  gap:18px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ===============================
   NAV
================================ */

.nav{
  position:fixed;
  top:20px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(15,23,42,.9);
  padding:12px 20px;
  border-radius:999px;
  z-index:10;
}

.nav a{
  margin:0 10px;
  color:#c7d2fe;
  font-weight:600;
}

/* ===============================
   SECTIONS
================================ */

section{
  max-width:1100px;
  margin:auto;
  padding:90px 20px;
}

h2{
  font-size:36px;
  margin-bottom:24px;
}

/* ===============================
   GRID & CARD
================================ */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:22px;
}

.card{
  background:linear-gradient(180deg,#0f172a,#0b1220);
  border:1px solid var(--line);
  border-radius:18px;
  padding:26px;
  text-align:center;
}

/* ===============================
   BUTTONS
================================ */

.btn{
  display:inline-block;
  margin-top:20px;
  padding:16px 36px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  font-weight:800;
}

.btn-secondary{
  background:linear-gradient(135deg,#f6851b,#e2761b);
  box-shadow:0 20px 40px rgba(246,133,27,.35);
}

/* ===============================
   LANGUAGE
================================ */

.lang{
  position:fixed;
  top:20px;
  right:20px;
}

.lang button{
  margin-left:6px;
  padding:8px 12px;
  border-radius:10px;
  background:var(--panel);
  border:1px solid var(--line);
  color:#c7d2fe;
}

/* ===============================
   TABLE
================================ */

.crypto-table{
  width:100%;
  border-collapse:collapse;
  margin-top:30px;
}

.crypto-table th,
.crypto-table td{
  padding:14px;
  border-bottom:1px solid var(--line);
}

/* ===============================
   FOOTER
================================ */

footer{
  text-align:center;
  padding:40px;
  border-top:1px solid var(--line);
  color:var(--muted);
}

.muted{
  color:var(--muted);
}

/* ===============================
   CHARACTER MARKETPLACE (RANKS)
================================ */

.ranks-grid{
  align-items:stretch;
}

/* CARD DE PERSONAGEM */
.character-card{
  position:relative;
  padding:20px; /* mais compacto */
}

/* IMAGEM – AJUSTE FINAL */
.character-card img{
  width:100%;
  height:260px;          /* CORRIGIDO (antes 320px) */
  object-fit:contain;
  background:#020617;
  border-radius:14px;
  padding:8px;
  margin-bottom:10px;
}

/* TITULO DO RANK */
.character-card strong{
  display:block;
  font-size:18px;
  margin-bottom:6px;
}

/* DESCRIÇÃO */
.character-card .desc{
  font-size:13px;
  color:var(--muted);
  margin:6px 0 10px;
  line-height:1.4;
}

/* PREÇO */
.character-card .price{
  display:inline-block;
  background:#020617;
  border:1px solid var(--line);
  padding:6px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  color:var(--text);
}

/* TOOLTIP (LORE) */
.character-card::after{
  content:attr(data-lore);
  position:absolute;
  bottom:110%;
  left:50%;
  transform:translateX(-50%);
  background:#020617;
  color:var(--text);
  padding:10px 14px;
  border-radius:10px;
  font-size:13px;
  line-height:1.4;
  width:220px;
  text-align:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  border:1px solid var(--line);
  box-shadow:0 10px 30px rgba(0,0,0,.6);
  z-index:20;
}

.character-card:hover::after{
  opacity:1;
  transform:translateX(-50%) translateY(-6px);
}

/* MOBILE */
@media (max-width:600px){
  .character-card img{
    height:220px;
  }
}
/* ===============================
   GALLERY – SIZE FIX
================================ */

.gallery-grid{
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

.gallery-item{
  padding:16px;
}

.gallery-item img,
.gallery-item video{
  width:100%;
  height:160px;          /* 👈 DIMINUIU BEM */
  object-fit:contain;   /* não corta */
  background:#020617;
  border-radius:12px;
}

.gallery-item p{
  margin-top:8px;
  font-size:12px;
  text-align:center;
  color:var(--muted);
}

/* MOBILE */
@media (max-width:600px){
  .gallery-item img,
  .gallery-item video{
    height:140px;
  }
}
