/* ============================================================
   PERFUME BATTLE — LOWKEY PARFUMS
   Tarjetas de combate estilo RPG premium (negro + oro + ADN)
   ============================================================ */

.bt-hero { position: relative; overflow: hidden; padding: clamp(7rem,16vh,11rem) 0 clamp(2.5rem,6vw,4rem); text-align: center; }
.bt-hero h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); }
.bt-hero h1 em { color: var(--gold); font-style: italic; }
.bt-sub { color: var(--ivory-dim); font-family: var(--display); font-style: italic; font-size: clamp(1.1rem, 3vw, 1.5rem); margin-top: 1rem; }

/* ---------- Selector de contendientes ---------- */
.bt-select { position: relative; z-index: 2; }
.bt-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.7rem,1.5vw,1.2rem); margin: 2rem 0 1.4rem; }
.bt-slot { position: relative; border: 1px dashed rgba(200,162,75,.4); background: linear-gradient(165deg,#121116,#0a0a0b);
  min-height: 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  cursor: pointer; transition: border-color .3s, box-shadow .3s; padding: 1rem; }
.bt-slot:hover { border-color: var(--gold-soft); box-shadow: 0 0 18px rgba(200,162,75,.18); }
.bt-slot .plus { font-size: 2rem; color: var(--gold); line-height: 1; }
.bt-slot .lbl { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-mute); }
.bt-slot img { height: 92px; width: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
.bt-slot .nm { font-family: var(--display); color: var(--ivory); font-size: .95rem; text-align: center; line-height: 1.15; }
.bt-slot .x { position: absolute; top: .4rem; right: .6rem; color: var(--ivory-mute); font-size: .85rem; }
.bt-slot .x:hover { color: #d98b6f; }
.bt-vs { text-align: center; font-family: "Cinzel", var(--display); color: var(--gold); letter-spacing: .3em; font-size: .8rem; margin-bottom: 1.2rem; }

/* Picker */
.bt-picker { position: fixed; inset: 0; z-index: 9600; background: rgba(6,6,7,.94); backdrop-filter: blur(8px);
  display: none; flex-direction: column; align-items: center; padding: clamp(1rem,4vw,3rem); }
.bt-picker.open { display: flex; }
.bt-picker input { width: min(560px, 94vw); background: #16161a; border: 1px solid var(--gold); color: var(--ivory);
  padding: 1em 1.2em; font-family: var(--sans); font-size: 1rem; margin-bottom: 1rem; }
.bt-picker input:focus { outline: none; }
.bt-list { width: min(560px, 94vw); overflow-y: auto; flex: 1; }
.bt-item { display: grid; grid-template-columns: 52px 1fr auto; gap: .9rem; align-items: center; width: 100%;
  padding: .7rem .6rem; border-bottom: 1px solid var(--line-soft); cursor: pointer; text-align: left;
  background: none; border-left: none; border-right: none; border-top: none; color: var(--ivory); transition: background .2s; }
.bt-item:hover { background: rgba(200,162,75,.07); }
.bt-item img { height: 48px; width: 40px; object-fit: contain; }
.bt-item .b { color: var(--ivory-mute); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.bt-item .n { font-family: var(--display); font-size: 1.05rem; }
.bt-item .p { color: var(--gold-soft); font-size: .8rem; }
.bt-close { margin-top: 1rem; color: var(--ivory-dim); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; background: none; border: 1px solid var(--line); padding: .7em 1.6em; cursor: pointer; }

/* ---------- Modos de ocasión ---------- */
.bt-modes { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin: 1.8rem 0; position: relative; z-index: 2; }
.bt-mode { border: 1px solid var(--line); border-radius: 999px; padding: .55em 1.1em; font-size: .72rem;
  letter-spacing: .1em; color: var(--ivory-dim); background: rgba(255,255,255,.02); cursor: pointer; transition: all .3s; }
.bt-mode:hover { border-color: var(--gold-soft); color: var(--ivory); }
.bt-mode.on { background: var(--gold); border-color: var(--gold); color: #0a0a0b; font-weight: 500;
  box-shadow: 0 0 16px rgba(200,162,75,.4); }

/* ---------- Arena ---------- */
.bt-arena { display: grid; gap: clamp(.8rem,1.6vw,1.4rem); margin-top: 1.5rem; }
.bt-arena.n2 { grid-template-columns: repeat(2, 1fr); }
.bt-arena.n3 { grid-template-columns: repeat(3, 1fr); }
.bt-arena.n4 { grid-template-columns: repeat(4, 1fr); }
.bt-card { position: relative; border: 1px solid var(--line); background-size: cover; background-position: center;
  overflow: hidden; isolation: isolate; padding: 1.4rem 1.1rem; opacity: 0; transform: translateY(26px); }
.bt-card.in { animation: btIn .8s var(--ease) forwards; }
@keyframes btIn { to { opacity: 1; transform: none; } }
.bt-card::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,8,9,.82), rgba(8,8,9,.6) 38%, rgba(8,8,9,.93) 70%); }
.bt-card.winner { border-color: var(--gold-soft); box-shadow: 0 0 34px rgba(200,162,75,.4); }
.bt-card .crown { position: absolute; top: .6rem; right: .7rem; font-size: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(243,220,142,.8)); animation: btCrown 2.4s ease-in-out infinite alternate; }
@keyframes btCrown { from { transform: rotate(-7deg) scale(1); } to { transform: rotate(7deg) scale(1.12); } }
.bt-card .fig { text-align: center; height: 150px; display: flex; align-items: flex-end; justify-content: center; }
.bt-card .fig img { max-height: 140px; width: auto; filter: drop-shadow(0 16px 20px rgba(0,0,0,.65));
  animation: btFloat 4.5s ease-in-out infinite alternate; }
@keyframes btFloat { from { transform: translateY(0); } to { transform: translateY(-9px); } }
.bt-card h3 { font-family: var(--display); font-weight: 400; text-align: center; font-size: clamp(1.05rem,2vw,1.4rem);
  margin-top: .8rem; line-height: 1.1; }
.bt-card .meta { text-align: center; color: var(--ivory-mute); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; margin: .35rem 0 1rem; }
.bt-total { text-align: center; margin-bottom: 1.1rem; }
.bt-total b { font-family: var(--display); font-size: 2rem; color: var(--gold-soft); font-variant-numeric: lining-nums; }
.bt-total span { display: block; font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ivory-mute); }

/* Barras RPG */
.bt-stat { margin-bottom: .55rem; transition: opacity .4s; }
.bt-stat.dim { opacity: .32; }
.bt-stat .t { display: flex; justify-content: space-between; font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ivory-dim); margin-bottom: .22rem; }
.bt-stat .t b { color: var(--ivory); font-variant-numeric: lining-nums; }
.bt-stat .bar { height: 7px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; }
.bt-stat .bar i { display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--bt-c1,#8c6f2f), var(--bt-c2,#e6cf94));
  box-shadow: 0 0 8px var(--bt-glow, rgba(200,162,75,.5)); transition: width 1.1s var(--ease); }
.bt-stat.best .t b { color: var(--gold-soft); }
.bt-stat.best .t::after { content: " ✦"; color: var(--gold); }

/* Voto */
.bt-vote { margin-top: 1rem; text-align: center; }
.bt-vote button { width: 100%; padding: .75em; border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--ivory); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: all .3s; }
.bt-vote button:hover { border-color: var(--gold); color: var(--gold-soft); }
.bt-vote button.voted { background: var(--gold); color: #0a0a0b; border-color: var(--gold); }
.bt-vote .pct { font-family: var(--display); color: var(--gold-soft); font-size: 1.1rem; margin-top: .4rem; }

/* ---------- Veredicto ---------- */
.bt-verdict { margin-top: clamp(2rem,5vw,3.5rem); text-align: center; position: relative; z-index: 2; }
.bt-champ { font-family: "Cinzel", var(--display); font-size: clamp(1.3rem,4vw,2.2rem); color: var(--gold-soft);
  text-shadow: 0 0 26px rgba(200,162,75,.5); }
.bt-cats { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.4rem; }
.bt-cat { border: 1px solid rgba(200,162,75,.35); border-radius: 999px; background: rgba(200,162,75,.06);
  padding: .5em 1.1em; font-size: .74rem; color: var(--ivory); }
.bt-cat b { color: var(--gold-soft); }
.bt-who { display: grid; gap: 1rem; margin-top: 2.2rem; text-align: left; }
.bt-who.n2 { grid-template-columns: repeat(2,1fr); } .bt-who.n3 { grid-template-columns: repeat(3,1fr); } .bt-who.n4 { grid-template-columns: repeat(4,1fr); }
.bt-who .w { border: 1px solid var(--line); padding: 1.1rem 1.2rem; background: linear-gradient(165deg,#111016,#0a0a0b); }
.bt-who .w h4 { font-family: var(--display); font-weight: 400; font-size: 1.05rem; color: var(--gold-soft); margin-bottom: .5rem; }
.bt-who .w li { color: var(--ivory-dim); font-size: .8rem; padding: .18rem 0 .18rem 1.1rem; position: relative; }
.bt-who .w li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .6rem; top: .42rem; }
.bt-share { margin-top: 2.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bt-arena.n3, .bt-arena.n4 { grid-template-columns: repeat(2, 1fr); }
  .bt-who.n3, .bt-who.n4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bt-slots { grid-template-columns: repeat(2, 1fr); }
  .bt-arena.n2, .bt-arena.n3, .bt-arena.n4 { grid-template-columns: 1fr; }
  .bt-who.n2, .bt-who.n3, .bt-who.n4 { grid-template-columns: 1fr; }
  .bt-card .fig { height: 120px; } .bt-card .fig img { max-height: 112px; }
}
