:root{
  --bg: #0b0f19;
  --panel: #0f172a;
  --card: #111c33;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.35);

  --primary: #60a5fa;
  --primary-2: #3b82f6;

  --radius: 14px;
  --radius-sm: 10px;

    /* Riftbound brand */
  --rift-orange: #f59e0b;        /* naranja Riftbound */
  --rift-orange-soft: #fbbf24;   /* hover */
  --rift-orange-dim: rgba(245,158,11,.35);
}

* { box-sizing: border-box; }

html{
  min-height: 100%;
  background:
    radial-gradient(1200px 800px at 20% 0%, rgba(59,130,246,.25), transparent 55%),
    radial-gradient(1000px 700px at 90% 10%, rgba(96,165,250,.18), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body{
  min-height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: transparent;
}

a { color: inherit; }

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}

.header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 50;

  background: rgba(11,15,25,.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;

  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;

  color: var(--text);
  transition: color .15s ease;
}

/* Puntito del logo */
.brand-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rift-orange), var(--rift-orange-soft));
  box-shadow:
    0 0 0 4px rgba(245,158,11,.15),
    0 0 18px rgba(245,158,11,.45);
  transition: box-shadow .2s ease, transform .2s ease;
}

/* Glow al hover */
.brand:hover{
  color: var(--rift-orange-soft);
}

.brand:hover .brand-dot{
  box-shadow:
    0 0 0 6px rgba(245,158,11,.22),
    0 0 28px rgba(245,158,11,.65);
  transform: scale(1.1);
}

.nav-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links .link{
  position: relative;
  text-decoration: none;

  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;

  font-weight: 600;
  letter-spacing: .2px;

  transition: color .15s ease, background .15s ease;
}

.nav-links .link::after{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;

  background: linear-gradient(90deg, var(--rift-orange), var(--rift-orange-soft));
  border-radius: 999px;

  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.nav-links .link:hover{
  color: var(--text);
  background: rgba(255,255,255,.05);
}

.nav-links .link:hover::after{
  transform: scaleX(1);
  opacity: 1;
}

.nav-links .link:focus-visible{
  outline: 2px solid var(--rift-orange-dim);
  outline-offset: 2px;
}

/* Item activo */
.nav-links .link.is-active{
  color: var(--rift-orange-soft);
  background: rgba(245,158,11,.10);
}

.nav-links .link.is-active::after{
  transform: scaleX(1);
  opacity: 1;
}

h1{ font-size: 28px; margin: 10px 0 6px; }
h2{ font-size: 18px; margin: 18px 0 10px; color: #dbeafe; }
p{ line-height: 1.55; }

.muted{ color: var(--muted); }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.card + .card{ margin-top: 12px; }

.row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}
.btn:hover{
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.07);
}
.btn-primary{
  border-color: rgba(59,130,246,.45);
  background: linear-gradient(135deg, rgba(59,130,246,.35), rgba(96,165,250,.20));
}
.btn-primary:hover{
  background: linear-gradient(135deg, rgba(59,130,246,.45), rgba(96,165,250,.26));
}

.table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.table th, .table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-align: left;
  vertical-align: middle;
}
.table th{
  font-weight: 650;
  color: #dbeafe;
  background: rgba(255,255,255,.03);
}
.table tr:hover td{
  background: rgba(255,255,255,.04);
}

.right{ text-align: right; }
.nowrap{ white-space: nowrap; }

.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255,255,255,.04);
  font-size: 12px;
}

input, select{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
}
label{ color: var(--muted); font-size: 12px; }

.avatar{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  vertical-align: middle;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  margin-right: 8px;
}
.name-with-avatar{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.avatar-fallback{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  display: inline-block;
}

.avatar.player{
  border-color: rgba(245,158,11,.35);
}

html::after{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.08) 25%,
    rgba(0,0,0,0.18) 55%,
    rgba(0,0,0,0.35) 100%
  );
}

/* =========================================================
   Podio Top 3 (cards destacadas)
   ========================================================= */

.podium{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 14px;
}

@media (max-width: 860px){
  .podium{ grid-template-columns: 1fr; }
}

.podium-card{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}

.podium-card.is-1{
  border-color: rgba(96,165,250,.50);
  background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(255,255,255,.05));
}

.podium-card.is-2{
  border-color: rgba(255,255,255,.18);
}

.podium-card.is-3{
  border-color: rgba(255,255,255,.14);
}

.podium-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.podium-medal{
  font-size: 20px;
}

.podium-rank{
  color: var(--muted);
  font-size: 12px;
}

.podium-main{
  display: flex;
  align-items: center;
  gap: 10px;
}

.podium-avatar{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 18px rgba(0,0,0,.30);
}

.podium-avatar-fallback{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

.podium-name{
  font-weight: 700;
  line-height: 1.1;
}

.podium-sub{
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.podium-metrics{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.podium-metrics .badge{
  background: rgba(255,255,255,.04);
}


/* =========================================================
   Badges por Game Set
   ========================================================= */

.badge-set{
  font-weight: 600;
  letter-spacing: .2px;
}

/* Origins — azul arcano */
.badge-origins{
  color: #dbeafe;
  border-color: rgba(59,130,246,.45);
  background: linear-gradient(
    135deg,
    rgba(59,130,246,.35),
    rgba(96,165,250,.20)
  );
}

/* Spiritforged — púrpura/energía */
.badge-spiritforged{
  color: #f5d0fe;
  border-color: rgba(168,85,247,.45);
  background: linear-gradient(
    135deg,
    rgba(168,85,247,.35),
    rgba(192,132,252,.20)
  );
}

/* Fallback genérico (por si aparece un set nuevo) */
.badge-set-unknown{
  color: var(--muted);
  background: rgba(255,255,255,.04);
}


main.container{
  padding-top: 86px;
}

tr.row-pad td {
  height: 44px;
  border-color: transparent;
  opacity: 0;
}