/* Buscar rival (search) y presentación VS de la partida (.vs-intro, la monta game.js con playerBig()
   de search.js). Raíz de Buscar: .screen.ui.s-search (spec 8.3). La .vs-intro NO está dentro de .ui (va
   en la partida): sus reglas van sin ámbito .ui, pero solo con .vs-intro / .pcard-big / .potbox (el HUD
   no los usa). El marco dorado de .pcard-big (salvo .searching) está en base.css. */

.s-search .search-body {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 30px;
  background: radial-gradient(ellipse 50% 70% at 50% 40%, rgba(72,142,255,.22), rgba(72,142,255,0));
}
.s-search .search-body > .spot { width: calc(260px * var(--art-k)); height: 80%; }
.s-search .vs-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 30px; }
#stage[data-h="l"] .s-search .vs-row, #stage[data-h="xl"] .s-search .vs-row { transform: scale(1.1); }
.s-search .search-cancel { position: absolute; z-index: 3; left: 12px; bottom: 12px; }

/* ---- Ficha grande del jugador (Buscar y VS) ------------------------------------------------------- */
.pcard-big {
  position: relative; flex: none; width: 236px; height: 270px; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 6px;
  border: 2px solid transparent; background-clip: padding-box;
  background: linear-gradient(180deg, var(--sf-top) 0%, var(--sf-mid) 52%, var(--sf-bot) 100%) padding-box;
  box-shadow: inset 0 0 0 1px var(--sf-line), inset 0 1px 0 var(--sf-hi), var(--sh-card);
}
.pcard-big > .avf { flex: none; }
.pcard-big .pb-name { display: flex; align-items: center; justify-content: center; gap: 7px; max-width: calc(100% - 24px); margin-top: 14px; }
.pcard-big .pb-n {
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 2px;
  font-family: var(--f-disp); font-style: italic; font-weight: 800; font-size: 22px; line-height: 1.05; letter-spacing: .4px; text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 0 rgba(0,8,30,.55), 0 0 1px rgba(0,8,30,.6);
}
.pcard-big .pb-ia { height: 16px; padding: 0 5px; font-size: 9px; border-radius: 4px; }
.pcard-big .st2 { display: flex; justify-content: space-between; align-items: center; width: calc(100% - 36px); height: 26px; font: 700 12px/1 var(--f-ui); color: var(--tx-2); border-bottom: 1px solid var(--hair); }
.pcard-big .st2:first-of-type { margin-top: 8px; }
.pcard-big .st2 b { font-size: 16px; color: #fff; }
.pcard-big .pb-cue { margin-top: 12px; }
.pcard-big .cue { width: 214px; height: 5px; margin-top: 7px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.6)); }

/* Rival mientras se busca: aspecto de .pnl (sin marco dorado), tragaperras de bolas y radar */
.pcard-big.searching { gap: 14px; padding-bottom: 0; }
.pcard-big .slot-wrap { position: relative; width: 92px; height: 92px; flex: none; }
/* La regla .slot de fx.css se queda tal cual (el HUD también usa .slot): aquí solo lo de la ficha */
.pcard-big .slot { position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 20px; border: 3px solid transparent; box-shadow: 0 6px 12px rgba(0,0,0,.5);
  background: radial-gradient(circle at 40% 30%, #3a7be6, #143b8c 75%) padding-box, var(--gold-frame) border-box; }
.pcard-big .slot .reel img { width: 70px; height: 70px; margin: 8px; }
.pcard-big .radar { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.pcard-big .radar i { position: absolute; left: -62px; top: -62px; width: 124px; height: 124px; border-radius: 50%; border: 2px solid rgba(255,211,77,.55); opacity: 0; animation: ping 2s ease-out infinite; }
.pcard-big .radar i:nth-child(2) { animation-delay: .66s; } .pcard-big .radar i:nth-child(3) { animation-delay: 1.33s; }
@keyframes ping { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.pcard-big .stitle { font-size: 20px; text-align: center; }
.pcard-big .secs { margin-top: -6px; font-size: 16px; color: var(--tx-3); }
.pcard-big .rcode { display: flex; flex-direction: column; align-items: center; gap: 10px; width: calc(100% - 36px); margin-top: -2px; }
.s-search .pcard-big .rcode input.txt.code { height: 44px; font-size: 26px; cursor: default; }

/* ---- Centro: VS y bote (Buscar y la .vs-intro de la partida) ---------------------------------------- */
.vs-mid { display: flex; flex-direction: column; align-items: center; width: 200px; flex: none; }
.vs {
  font-family: var(--f-disp); font-size: 64px; line-height: 1; font-style: italic; font-weight: 800; letter-spacing: .6px; padding: 0 6px;
  background: linear-gradient(180deg, #fff8d8 0%, #ffe07a 45%, #f2b126 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 rgba(70,36,0,.75));
}
.potbox {
  margin-top: 12px; padding: 8px 18px 9px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: linear-gradient(180deg, var(--well-top), var(--well-bot)); box-shadow: inset 0 2px 6px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,211,77,.55), 0 1px 0 rgba(255,255,255,.05);
}
.potbox span { font: 800 9.5px/1 var(--f-ui); color: var(--gold-1); letter-spacing: 1.1px; text-transform: uppercase; }
.potbox b { display: flex; align-items: center; gap: 6px; font-family: var(--f-disp); font-style: italic; font-weight: 700; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 2px 0 rgba(0,8,30,.55); }
.potbox img { width: 30px; height: 30px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.vs-mid .vs-venue { margin-top: 10px; }

/* ---- Presentación VS al empezar la partida (sin rayos) --------------------------------------------- */
.vs-intro { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 28px; pointer-events: auto;
  background: radial-gradient(ellipse 55% 70% at 50% 45%, rgba(20,56,120,.97) 0%, rgba(8,28,67,.98) 55%, rgba(4,11,28,.99) 100%);
  transition: opacity .35s; }
.vs-intro::before { content: none; }
.vs-intro.out { opacity: 0; pointer-events: none; }
.vs-intro .pcard-big { animation: slideL .45s ease-out both; }
.vs-intro .pcard-big + div + .pcard-big { animation-name: slideR; }
@keyframes slideL { from { transform: translateX(-60px); opacity: 0; } }
@keyframes slideR { from { transform: translateX(60px); opacity: 0; } }
.vs-intro .vs { animation: vs-slam .55s .25s cubic-bezier(.2,1.6,.4,1) both !important; }
@keyframes vs-slam { from { transform: scale(3.2); opacity: 0; } 60% { opacity: 1; } }
.vs-intro .small { font: 700 10px/1.3 var(--f-ui); color: var(--tx-3); text-transform: uppercase; letter-spacing: 1px; }

/* Menos movimiento: el radar se queda quieto */
@media (prefers-reduced-motion: reduce) {
  .s-search .radar i { animation: none; opacity: .35; transform: scale(1.1); }
}
