:root {
  --bg: #080b10;
  --surf: #0d1117;
  --surf2: #131920;
  --brd: rgba(255, 255, 255, .06);
  --txt: #e8eaf0;
  --mut: #5a6070;
  --dim: #3a4050;
  --s: #e53935;
  --sg: rgba(229, 57, 53, .18);
  --sh: rgba(229, 57, 53, .55);
  --a: #00e5ff;
  --ag: rgba(0, 229, 255, .12);
  --ah: rgba(0, 229, 255, .45);
  --b: #69B41E;
  --bgg: #0D5B11;
  --bh: #187C19;
  --c: #e6c400;
  --cg: #e47200;
  --ch: #e69b00;
  --d: #909090;
  --dg: #494848;
  --dh: #636363;
  --gold: #ffd700;
  --goldg: rgba(255, 215, 0, .55);
  --c1: #888;
  --c2: #4caf50;
  --c3: #2196f3;
  --c4: #9c27b0;
  --c5: #ffd700;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: .4;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

/* ADS */
.ad-top {
  width: 100%;
  background: var(--surf);
  border-bottom: 1px solid var(--brd);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  position: relative;
  z-index: 10;
}

.ad-top-in {
  width: 728px;
  height: 90px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .005));
  border: 1px dashed rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ad-side {
  width: 100%;
  min-height: 250px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .005));
  border: 1px dashed rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 16px;
}

.ad-inline {
  width: 100%;
  height: 90px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .005));
  border: 1px dashed rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 4px;
  margin: 28px 0;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 16, .95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--brd);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 0;
}

.logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--s);
  text-shadow: 0 0 20px var(--sh);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 40px;
}

.nav-tabs {
  display: flex;
  height: 60px;
  flex: 1;
  gap: 0;
}

.nav-tab {
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: var(--mut);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--txt);
  border-bottom-color: rgba(255, 255, 255, .15);
}

.nav-tab.on {
  color: var(--a);
  border-bottom-color: var(--a);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.patch {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--mut);
}

/* LAYOUT */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  gap: 32px;
}

.main {
  flex: 1;
  min-width: 0;
}

.side {
  width: 280px;
  flex-shrink: 0;
}

.ph {
  margin-bottom: 28px;
}

.ph h1 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 6px;
}

.ph p {
  color: var(--mut);
  font-size: 14px;
}

/* SEARCH / FILTER */
.swrap {
  position: relative;
  margin-bottom: 20px;
}

.swrap input {
  width: 100%;
  background: var(--surf);
  border: 1px solid var(--brd);
  border-radius: 4px;
  color: var(--txt);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  padding: 10px 16px 10px 40px;
  outline: none;
  transition: border-color .2s;
}

.swrap input:focus {
  border-color: rgba(0, 229, 255, .4);
}

.swrap input::placeholder {
  color: var(--dim);
}

.si {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  font-size: 14px;
}

.filt {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.fl {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  font-family: 'Space Mono', monospace;
  margin-right: 4px;
}

.fb {
  background: var(--surf);
  border: 1px solid var(--brd);
  color: var(--mut);
  padding: 6px 16px;
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .18s;
}

.fb:hover {
  border-color: rgba(255, 255, 255, .15);
  color: var(--txt);
  background: var(--surf2);
}

.fb.on {
  background: rgba(0, 229, 255, .08);
  border-color: var(--a);
  color: var(--a);
}

/* TIER */
.ts {
  margin-bottom: 12px;
}

.tlr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.tb {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .05em;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.tb.S {
  color: var(--s);
  text-shadow: 0 0 16px var(--sh);
}

.tb.A {
  color: var(--a);
  text-shadow: 0 0 16px var(--ah);
}

.tdiv {
  flex: 1;
  height: 1px;
}

.tdiv.S {
  background: linear-gradient(90deg, var(--s), transparent);
  opacity: .35;
}

.tdiv.A {
  background: linear-gradient(90deg, var(--a), transparent);
  opacity: .25;
}

.tdiv.B {
  background: linear-gradient(90deg, var(--b), transparent);
  opacity: .25;
}

.tdiv.C {
  background: linear-gradient(90deg, var(--c), transparent);
  opacity: .25;
}

.tdiv.D {
  background: linear-gradient(90deg, var(--d), transparent);
  opacity: .25;
}


.tc {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--dim);
}

/* COMP CARD */
.cg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc {
  background: var(--surf);
  border: 1px solid var(--brd);
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .22s cubic-bezier(.4, 0, .2, 1);
  animation: fiu .4s ease both;
}

@keyframes fiu {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cc::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 6px 0 0 6px;
  opacity: .85;
}

.cc.S::before {
  background: var(--s);
  box-shadow: 0 0 10px var(--sh);
}

.cc.A::before {
  background: var(--a);
  box-shadow: 0 0 10px var(--ah);
}

.cc.B::before {
  background: var(--b);
  box-shadow: 0 0 10px var(--bh);
}

.cc.C::before {
  background: var(--c);
  box-shadow: 0 0 10px var(--ch);
}

.cc.D::before {
  background: var(--d);
  box-shadow: 0 0 10px var(--dh);
}

.cc:hover {
  border-color: rgba(255, 255, 255, .10);
  transform: translateX(2px);
}

.cc.S:hover {
  background: var(--surf2);
  box-shadow: 0 0 20px var(--sg);
}

.cc.A:hover {
  background: var(--surf2);
  box-shadow: 0 0 20px var(--ag);
}

.cc.B:hover {
  background: var(--surf2);
  box-shadow: 0 0 20px var(--bgg);
}

.cc.C:hover {
  background: var(--surf2);
  box-shadow: 0 0 20px var(--cg);
}

.cc.D:hover {
  background: var(--surf2);
  box-shadow: 0 0 20px var(--dg);
}

.cc.exp {
  flex-wrap: wrap;
}

.cc.S.exp {
  background: var(--surf2);
  box-shadow: 0 0 30px var(--sg);
  border-color: rgba(229, 57, 53, .18);
}

.cc.A.exp {
  background: var(--surf2);
  box-shadow: 0 0 30px var(--ag);
  border-color: rgba(0, 229, 255, .12);
}

.cc.B.exp {
  background: var(--surf2);
  box-shadow: 0 0 30px var(--bgg);
  border-color: rgba(60, 255, 0, 0.12);
}

.cc.C.exp {
  background: var(--surf2);
  box-shadow: 0 0 30px var(--cg);
  border-color: rgba(255, 145, 0, 0.12);
}

.cc.D.exp {
  background: var(--surf2);
  box-shadow: 0 0 30px var(--dg);
  border-color: rgba(65, 65, 65, 0.12);
}

/* COMP INFO */
.ci {
  min-width: 140px;
  flex-shrink: 0;
}

.cn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--txt);
  line-height: 1.1;
  margin-bottom: 4px;
}

.cm {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.cps {
  font-size: 11px;
  font-family: 'Space Mono', monospace;
  color: var(--mut);
  background: rgba(255, 255, 255, .04);
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid var(--brd);
}

.ctag {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid;
  font-weight: 600;
}

.tag-augment {
  color: #ff9800;
  border-color: rgba(255, 152, 0, .3);
  background: rgba(255, 152, 0, .06);
}

/* CHAMPION AVATAR */
.chl {
  display: flex;
  gap: 5px;
  align-items: center;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}

.chm {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.av {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid var(--brd);
  display: flex;
  align-items: center;
  justify-content: center;
}

.av.c1 { border-color: var(--c1); background: linear-gradient(150deg, #2e2e2e, #1a1a1a); }
.av.c2 { border-color: var(--c2); background: linear-gradient(150deg, #1a4a25, #0d2e18); }
.av.c3 { border-color: var(--c3); background: linear-gradient(150deg, #0c2a5e, #071838); }
.av.c4 { border-color: var(--c4); background: linear-gradient(150deg, #3e0a60, #220535); }
.av.c5 {
  border-color: var(--c5);
  background: linear-gradient(150deg, #5e4200, #3a2800);
  box-shadow: 0 0 8px rgba(255, 215, 0, .4);
}

.av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 2;
  display: block;
}

.av .ini {
  position: relative;
  z-index: 1;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}

.carry-pip {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 13px;
  height: 13px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 8px var(--goldg);
  z-index: 5;
  line-height: 1;
}

.istrip {
  position: absolute;
  bottom: 1px;
  left: 1px;
  right: 1px;
  display: flex;
  gap: 1px;
  justify-content: flex-end;
  z-index: 4;
}

.idot {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(30, 30, 30, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  position: relative;
}

.idot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}

.chmn {
  font-size: 8px;
  color: var(--dim);
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  max-width: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* STATS + SHARE */
.card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.csi {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
  min-width: 68px;
}

.csir {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.csiv {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.csil {
  font-size: 9px;
  color: var(--dim);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-family: 'Space Mono', monospace;
}

.gold-v .csiv { color: var(--gold); }
.cyan-v .csiv { color: var(--a); }

.share-btn {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--brd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mut);
  font-size: 13px;
  cursor: pointer;
  transition: all .18s;
  flex-shrink: 0;
  position: relative;
}

.share-btn:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .15);
  color: var(--txt);
}

.share-btn.copied {
  border-color: var(--a);
  color: var(--a);
  background: rgba(0, 229, 255, .08);
}

.share-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #1a2332;
  border: 1px solid var(--brd);
  color: var(--a);
  font-size: 10px;
  font-family: 'Space Mono', monospace;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}

.share-btn.copied .share-tooltip {
  opacity: 1;
}

.ctog {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--brd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 16px;
  line-height: 1;
  transition: all .2s;
}

.cc.exp .ctog {
  background: rgba(255, 255, 255, .09);
  transform: rotate(45deg);
  color: var(--txt);
}

/* EXPANDED */
.cdet {
  width: 100%;
  border-top: 1px solid var(--brd);
  padding-top: 20px;
  margin-top: 6px;
  display: none;
  animation: fid .25s ease;
}

@keyframes fid {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cc.exp .cdet {
  display: block;
}

.dl {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* HEX BOARD */

.hbo {
  flex-shrink: 0;
}

.hbl {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}

.hb {
  display: flex;
  flex-direction: column;
}

.hr {
  display: flex;
  margin-bottom: -10px;
}

.hr.off {
  margin-left: 30px;
}

.hc {
  width: 56px;
  height: 64px;
  margin: 0 3px;
  position: relative;
  flex-shrink: 0;
  /* Sustituimos clip-path por mask para permitir bordes redondeados */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 2L95 25V75L50 98L5 75V25L50 2Z' stroke-width='8' stroke-linejoin='round' stroke='%23000' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 2L95 25V75L50 98L5 75V25L50 2Z' stroke-width='8' stroke-linejoin='round' stroke='%23000' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: transform .15s, filter .15s;
  cursor: default;
  overflow: hidden;
}

.hc:hover {
  transform: scale(1.08);
  z-index: 10;
  filter: brightness(1.15);
}

.hc.emp { background: rgba(255, 255, 255, .025); }
.hc.c1 { background: linear-gradient(150deg, #3a3a3a, #1a1a1a); }
.hc.c2 { background: linear-gradient(150deg, #1e5230, #0d2e1a); }
.hc.c3 { background: linear-gradient(150deg, #0e3068, #071a3e); }
.hc.c4 { background: linear-gradient(150deg, #4a0e70, #280640); }
.hc.c5 { background: linear-gradient(150deg, #6e5000, #3e2d00); }

.hc.c5::before,
.hc.car::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  pointer-events: none;
  z-index: 3;
}

.hc.c5::before { box-shadow: inset 0 0 14px rgba(255, 215, 0, .4); }
.hc.car::before { box-shadow: inset 0 0 20px rgba(255, 215, 0, .65); }

.hi {
  position: absolute;
  inset: 0;
  display: block !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.himg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 0 !important;
}

.hini {
  display: none !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}

.hn {
  display: none !important;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  text-align: center;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hstar {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  color: var(--gold);
  text-shadow: 0 0 8px var(--goldg);
  z-index: 5;
}

.hitms {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  z-index: 5;
}

.hitm {
  width: 17px;
  height: 17px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .2);
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(20, 20, 20, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  position: relative;
}

.hitm img {
  position: absolute;
  inset: 0;
  width: 50%;
  height: 50%;
  display: block;
  z-index: 2;
 
}

.hrw {
  margin-bottom: 28px;
}

/* RIGHT PANEL */
.rp {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.sg3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sp {
  background: var(--bg);
  border: 1px solid var(--brd);
  border-radius: 4px;
  padding: 8px 10px;
  text-align: center;
}

.spl {
  font-size: 9px;
  font-family: 'Space Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}

.spv {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.vg { color: var(--gold); }
.vc { color: var(--a); }

/* ITEMS BLOCK */
.iblock {
  background: var(--bg);
  border: 1px solid var(--brd);
  border-radius: 5px;
  padding: 12px 16px;
}

.iblock h4,
.aug-block h4,
.car-block h4 {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  font-family: 'Space Mono', monospace;
  margin-bottom: 10px;
}

.crow-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cav {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 8px var(--goldg);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, .9);
}

.cav img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 2;
  display: block;
}

.cav .ini {
  position: relative;
  z-index: 1;
}

.cname {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 60px;
  flex-shrink: 0;
}

.citems {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.icard2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ibox2 {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .15);
  overflow: hidden;
  background: var(--surf2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
}

.ibox2 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}

.ibox2 .fbk {
  position: relative;
  z-index: 1;
  font-size: 14px;
}

.iname2 {
  font-size: 7.5px;
  color: var(--mut);
  text-align: center;
  max-width: 44px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* AUGMENTS BLOCK */
.aug-block {
  background: var(--bg);
  border: 1px solid var(--brd);
  border-radius: 5px;
  padding: 12px 16px;
}

.aug-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.aug-icon-wrap {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  position: relative;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.aug-icon-wrap.gold { background: linear-gradient(135deg, #b8860b, #6b4c00); }
.aug-icon-wrap.silver { background: linear-gradient(135deg, #607d8b, #37474f); }
.aug-icon-wrap.prismatic { background: linear-gradient(135deg, #7b1fa2, #311b92); }

.aug-icon-wrap img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
}

.aug-icon-wrap .aug-fbk {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
}

.aug-icon-wrap img.loaded + .aug-fbk {
  display: none;
}

.aug-info {
  flex: 1;
  min-width: 0;
}

.aug-name {
  font-size: 13px;
  color: var(--txt);
  font-weight: 500;
  line-height: 1.2;
}

.aug-tier-label {
  font-size: 9px;
  font-family: 'Space Mono', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 1px;
}

.aug-icon-wrap.gold ~ .aug-info .aug-tier-label { color: #ffd700; }
.aug-icon-wrap.silver ~ .aug-info .aug-tier-label { color: #90a4ae; }
.aug-icon-wrap.prismatic ~ .aug-info .aug-tier-label { color: #ce93d8; }

/* CAROUSEL BLOCK */
.car-block {
  background: var(--bg);
  border: 1px solid var(--brd);
  border-radius: 5px;
  padding: 12px 16px;
}

.car-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.car-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.car-img {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .15);
  overflow: hidden;
  background: var(--surf2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
}

.car-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}

.car-img .fbk {
  position: relative;
  z-index: 1;
  font-size: 14px;
}

.car-name {
  font-size: 7.5px;
  color: var(--mut);
  text-align: center;
  max-width: 44px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-item.high .car-img { border-color: var(--gold); box-shadow: 0 0 6px rgba(255, 215, 0, .3); }
.car-item.med .car-img { border-color: var(--a); box-shadow: 0 0 6px rgba(0, 229, 255, .2); }

.db h4 {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  font-family: 'Space Mono', monospace;
  margin-bottom: 5px;
}

.db p {
  font-size: 13px;
  color: var(--mut);
  line-height: 1.6;
}

.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.leg {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--dim);
}

.legsw {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* SIDEBAR */
.widget {
  background: var(--surf);
  border: 1px solid var(--brd);
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 16px;
}

.widget h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--brd);
  padding-bottom: 10px;
}

.qr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--brd);
  font-size: 13px;
  cursor: pointer;
}

.qr:last-child {
  border-bottom: none;
}

.qr:hover .qn {
  color: var(--txt);
}

.qd {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dS { background: var(--s); box-shadow: 0 0 6px var(--s); }
.dA { background: var(--a); box-shadow: 0 0 6px var(--a); }
.dB { background: var(--b); box-shadow: 0 0 6px var(--b); }
.dC { background: var(--c); box-shadow: 0 0 6px var(--c); }
.dD { background: var(--d); box-shadow: 0 0 6px var(--d); }

.qn {
  flex: 1;
  color: var(--mut);
  font-weight: 500;
  transition: color .15s;
}

.qt {
  font-size: 10px;
  font-family: 'Space Mono', monospace;
  color: var(--dim);
}

.sr {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--brd);
}

.sr:last-child {
  border-bottom: none;
}

.sl {
  color: var(--mut);
}

.sv {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--txt);
}

.builder-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.traits-col {
  width: 170px;
  flex-shrink: 0;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--dim) transparent;
}

.traits-header {
  margin-bottom: 10px;
}

.traits-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mut);
  display: block;
}

.traits-hint {
  font-size: 10px;
  color: var(--dim);
  display: block;
}

.traits-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.traits-empty {
  font-size: 11px;
  color: var(--dim);
  font-family: 'Space Mono', monospace;
  line-height: 1.5;
}

.trait-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid var(--brd);
  background: var(--surf);
  transition: all .15s;
}

.trait-row.active {
  border-color: rgba(0, 229, 255, .3);
  background: rgba(0, 229, 255, .05);
}

.trait-row.active-gold {
  border-color: rgba(255, 215, 0, .35);
  background: rgba(255, 215, 0, .06);
}

.trait-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trait-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trait-name {
  flex: 1;
  font-size: 11px;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trait-row.active .trait-name {
  color: var(--txt);
}

.trait-count {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--surf2);
  color: var(--dim);
  flex-shrink: 0;
}

.trait-row.active .trait-count {
  background: rgba(0, 229, 255, .12);
  color: var(--a);
}

.trait-row.active-gold .trait-count {
  background: rgba(255, 215, 0, .12);
  color: var(--gold);
}


footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--brd);
  padding: 24px;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  letter-spacing: .05em;
  margin-top: 40px;
}


/* ── HEX BOARD + TRAITS COLUMN ─────────────────────────────────── */
/* El .hbo-col agrupa el tablero y el panel de rasgos en columna */
.hbo-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

/* ── PANEL DE RASGOS ────────────────────────────────────────────── */
.traits-block {
  background: var(--bg);
  border: 1px solid var(--brd);
  border-radius: 6px;
  padding: 10px 12px;
  min-width: 200px;
  max-width: 300px;
}

.traits-block-title {
  font-size: 9px;
  font-family: 'Space Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.traits-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Badge de rasgo */
.tr-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all .15s;
}

/* Rasgo inactivo — tenue */
.tr-badge.dim {
  border-color: var(--brd);
  opacity: .45;
}

/* Rasgo activo — umbral alcanzado */
.tr-badge.active {
  border-color: rgba(0,229,255,.25);
  background: rgba(0,229,255,.05);
}

/* Rasgo en tier máximo — dorado */
.tr-badge.gold {
  border-color: rgba(255,215,0,.35);
  background: rgba(255,215,0,.07);
}

/* Icono del rasgo */
.tr-badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: .7;
}
.tr-badge.active img,
.tr-badge.gold img {
  opacity: 1;
}

/* Nombre del rasgo */
.tr-name {
  flex: 1;
  font-size: 11px;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tr-badge.active .tr-name { color: var(--txt); }
.tr-badge.gold .tr-name   { color: var(--gold); }

/* Conteo (ej: "4/6") */
.tr-count {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--surf2);
  color: var(--dim);
  flex-shrink: 0;
}
.tr-badge.active .tr-count {
  background: rgba(0,229,255,.12);
  color: var(--a);
}
.tr-badge.gold .tr-count {
  background: rgba(255,215,0,.12);
  color: var(--gold);
}

@media(max-width:1000px) {
  .side {
    display: none;
  }
}

@media(max-width:700px) {
  .wrap {
    padding: 16px 12px;
  }
  .cc {
    padding: 12px 14px;
    gap: 10px;
  }
  .ci {
    min-width: 110px;
  }
  nav {
    padding: 0 16px;
  }
  .dl {
    flex-direction: column;
  }
  .nav-tab {
    padding: 0 10px;
    font-size: 11px;
  }
}