/* ===== Street Clash v2: fighter select, VS, levels, locks ===== */
.sx,
.lvx {
  box-sizing: border-box;
  justify-content: flex-start !important;
  align-items: center;
  gap: 0.6em;
  background: linear-gradient(180deg, #0a0f33f2, #04061ff7) !important;
  padding: max(0.7em, env(safe-area-inset-top))
    max(1.4em, env(safe-area-inset-right))
    max(0.7em, env(safe-area-inset-bottom))
    max(1.4em, env(safe-area-inset-left)) !important;
  overflow: hidden;
}

.sxh {
  width: 100%;
  max-width: 52em;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  flex: none;
  min-height: 2.6em;
}

.sxh .sxt {
  font-family: Bungee, Impact, sans-serif;
  font-size: 1.9em;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.04em #1a2a70;
  text-shadow:
    0 0.07em 0 #0b1745,
    0 0 0.5em #ffd54a88;
  text-align: center;
  white-space: nowrap;
}

.sxh .coins {
  justify-self: end;
}

.sxh .bk {
  justify-self: start;
}

.sxb {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 52em;
  display: flex;
  gap: 1.3em;
  align-items: center;
  justify-content: center;
}

.sxg {
  display: grid;
  grid-template-columns: repeat(3, 9.4em);
  grid-auto-rows: 11em;
  gap: 0.8em;
  flex: none;
}

.fc {
  position: relative;
  border-radius: 1em;
  overflow: hidden;
  border: 0.2em solid #3a4780;
  background: linear-gradient(180deg, #1b2562, #090d2c);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
}

.fc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 78%, var(--cc) 0%, #0000 64%);
  opacity: 0.34;
  pointer-events: none;
}

.fc:hover {
  transform: translateY(-0.3em);
}

.fc.on {
  border-color: var(--cc);
  box-shadow:
    0 0 1.2em var(--cc),
    0 0.5em 1em #000a;
  transform: translateY(-0.3em);
}

.fc .fi {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.5em;
  bottom: 2.7em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fc .fi img {
  height: min(7.6em, calc(400px / var(--dpr, 1)));
  width: auto;
  filter: drop-shadow(0 0.3em 0.25em #000c);
}

.fc .fn {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 2.8em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#0000, #000e 40%);
  font-family: Bungee, Impact, sans-serif;
  font-size: 0.85em;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
}

.fc .fn small {
  font-family: Russo, Impact, sans-serif;
  font-size: 0.5em;
  letter-spacing: 0.22em;
  color: var(--cc);
  margin-top: 0.35em;
}

.fc.lk .fi img {
  filter: brightness(0.16) saturate(0) contrast(1.1);
}

.fc.lk .fn b {
  color: #9aa4d8;
}

.fc .lkb {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 38%;
  width: 3em;
  height: 3em;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #000b;
  border: 0.14em solid #ffd54a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc .lkb svg,
.lkx svg {
  width: 1.6em;
  height: 1.6em;
  fill: #ffd54a;
}

.fc .pr {
  position: absolute;
  z-index: 3;
  top: 0.45em;
  right: 0.45em;
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.2em 0.6em 0.2em 0.3em;
  border-radius: 2em;
  background: #000c;
  border: 0.12em solid #ffd54a;
  font:
    400 0.8em/1 Bungee,
    Impact,
    sans-serif;
  color: #ffe9a0;
}

.fc .pr i {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  background: var(--coin) center/contain no-repeat;
}

.fc .p1t {
  position: absolute;
  z-index: 3;
  top: 0.45em;
  left: 0.45em;
  padding: 0.2em 0.6em;
  border-radius: 0.4em;
  background: var(--cc);
  color: #101020;
  font:
    400 0.75em/1 Bungee,
    Impact,
    sans-serif;
}

.fc.fl {
  animation: fcfl 0.9s ease-out;
}

@keyframes fcfl {
  0% {
    box-shadow: 0 0 0 #ffd54a;
  }
  30% {
    box-shadow: 0 0 2.6em 0.6em #ffd54a;
    transform: scale(1.07);
  }
  100% {
    box-shadow: 0 0 1.2em var(--cc);
  }
}

.sxp {
  width: 19.5em;
  height: 22.8em;
  flex: none;
  box-sizing: border-box;
  padding: 0.9em 1.1em;
  border-radius: 1.1em;
  border: 0.2em solid var(--cc, #34406f);
  background: linear-gradient(#17205a, #090d2b);
  box-shadow:
    0 0.6em 1.6em #000a,
    inset 0 0 1.5em #000a;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}

.sxp .pn {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  flex-wrap: wrap;
}

.sxp .pn b {
  font-family: Bungee, Impact, sans-serif;
  font-size: 1.9em;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sxp .pn small {
  font-family: Russo, Impact, sans-serif;
  font-size: 0.78em;
  letter-spacing: 0.22em;
  color: var(--cc);
}

.sxp .sr {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.1em;
}

.sxp .sr svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: var(--cc);
  filter: drop-shadow(0 0.1em 0.15em #000);
}

.sxp .sr span {
  flex: 0 0 4.4em;
  font-family: Russo, Impact, sans-serif;
  font-size: 0.74em;
  letter-spacing: 0.1em;
  color: #d5ddff;
}

.sxp .sr s {
  flex: 1;
  position: relative;
  height: 0.95em;
  border-radius: 0.3em;
  background: #04061a;
  border: 0.1em solid #2a3566;
  overflow: hidden;
}

.sxp .sr s i {
  display: block;
  height: 100%;
  background: linear-gradient(#fff3a8, #ffb300 55%, #ff7a00);
}

.sxp .sr s::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    #0000 0 9.2%,
    #04061acc 9.2% 10%
  );
}

.sxp .sr em {
  flex: 0 0 1.5em;
  text-align: right;
  font-style: normal;
  font:
    400 0.8em Bungee,
    Impact,
    sans-serif;
  color: #ffd54a;
}

.sxp .mvs {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  margin-top: 0.2em;
  overflow: hidden;
}

.sxp .mv {
  padding: 0.45em 0.7em;
  border-radius: 0.6em;
  background: #ffffff0f;
  border: 0.1em solid #ffffff1c;
}

.sxp .mv .mh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}

.sxp .mv .mh b {
  font-family: Bungee, Impact, sans-serif;
  font-size: 0.8em;
  color: var(--cc);
  text-transform: uppercase;
}

.sxp .kk {
  display: inline-block;
  min-width: 1.2em;
  padding: 0.1em 0.3em;
  margin: 0 0.05em;
  border-radius: 0.3em;
  background: #fff;
  color: #14183a;
  font:
    400 0.62em Bungee,
    Impact,
    sans-serif;
  text-align: center;
  font-style: normal;
}

.sxp .mv p {
  margin: 0.25em 0 0;
  font:
    800 0.68em/1.25 Nunito,
    sans-serif;
  color: #dfe6ff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sxp .lkn {
  font:
    800 0.72em/1.3 Nunito,
    sans-serif;
  color: #ffe9a0;
  text-align: center;
}

.sxp .btn {
  width: 100%;
  flex: none;
}

.sxp .btn.no {
  filter: grayscale(0.8) brightness(0.8);
  cursor: not-allowed;
}

.sxf {
  width: 100%;
  max-width: 52em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  min-height: 2.8em;
}

.sxf .seg {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* levels */
.chs {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  flex: none;
}

.chb {
  font:
    400 0.9em/1 Bungee,
    Impact,
    sans-serif;
  width: 3.2em;
  height: 2.1em;
  border-radius: 0.6em;
  border: 0.15em solid #3a4780;
  background: #12195a;
  color: #cfd8ff;
  cursor: pointer;
}

.chb.on {
  background: linear-gradient(#ffe36b, #ffb300);
  color: #3a1a00;
  border-color: #fff3a8;
}

.chb.off {
  opacity: 0.4;
}

.lg {
  display: grid;
  grid-template-columns: repeat(5, 8.6em);
  grid-auto-rows: 4.3em;
  gap: 0.6em;
  flex: none;
}

.ln {
  position: relative;
  border-radius: 0.8em;
  border: 0.17em solid var(--tc, #4a58a0);
  background: linear-gradient(#1c2766, #0a0f33);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}

.ln:hover {
  transform: translateY(-0.2em);
  box-shadow: 0 0 0.9em var(--tc, #4a58a0);
}

.ln b {
  font:
    400 1.55em/1 Bungee,
    Impact,
    sans-serif;
  color: #fff;
  text-shadow: 0 0.07em 0 #000;
}

.ln u {
  position: absolute;
  top: 0.3em;
  right: 0.4em;
  text-decoration: none;
  font:
    400 0.52em/1 Russo,
    Impact,
    sans-serif;
  letter-spacing: 0.12em;
  color: var(--tc);
}

.ln .sts {
  display: flex;
  gap: 0.25em;
  margin-top: 0.3em;
}

.stx {
  width: 0.95em;
  height: 0.95em;
  background: #2a3566;
  clip-path: polygon(
    50% 0,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.stx.on {
  background: linear-gradient(#fff3a8, #ffb300);
}

.ln.cur {
  animation: lncur 1s ease-in-out infinite alternate;
  background: linear-gradient(#3a3270, #1a1650);
}

@keyframes lncur {
  from {
    box-shadow: 0 0 0.3em #ffd54a;
  }
  to {
    box-shadow: 0 0 1.3em 0.1em #ffd54a;
  }
}

.ln.lock {
  opacity: 0.55;
  filter: saturate(0.4);
}

.ln.lock b {
  opacity: 0.5;
}

.ln .lkx {
  margin-top: 0.2em;
}

.ln .lkx svg {
  width: 1.1em;
  height: 1.1em;
}

.lvf {
  display: flex;
  justify-content: center;
  gap: 0.6em;
  align-items: center;
  font:
    400 1.05em Bungee,
    Impact,
    sans-serif;
  color: #fff;
  margin: 0.2em 0 0.5em;
}

.lvf i {
  font-style: normal;
  color: #ffd54a;
  font-size: 0.8em;
}

.lvt {
  display: table;
  margin: 0 auto 0.4em;
  padding: 0.25em 0.9em;
  border-radius: 99em;
  border: 0.12em solid var(--tc);
  color: var(--tc);
  font:
    400 0.85em Bungee,
    Impact,
    sans-serif;
  letter-spacing: 0.1em;
}

.lvi p {
  margin: 0.3em 0 0.5em;
  font:
    800 0.95em/1.35 Nunito,
    sans-serif;
  color: #e4e9ff;
  text-align: center;
}

.lvr {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4em;
  font:
    400 1em Bungee,
    Impact,
    sans-serif;
  color: #ffe9a0;
  margin-bottom: 0.6em;
}

.lvr .ci {
  height: 1.3em;
}

/* VS */
.vz {
  overflow: hidden;
  background: #04051a !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
}

.vzbg {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: center;
  filter: blur(0.4em) brightness(0.32) saturate(1.2);
}

.vzl,
.vzr,
.vzs {
  position: absolute;
  inset: 0;
}

.vzl {
  clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%);
  background:
    radial-gradient(ellipse at 24% 64%, var(--c1) -10%, #0000 58%),
    linear-gradient(105deg, #0d1f7ad0, #060c3ad0);
  animation: vzin1 0.45s ease-out both;
}

.vzr {
  clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%);
  background:
    radial-gradient(ellipse at 76% 64%, var(--c2) -10%, #0000 58%),
    linear-gradient(255deg, #7a0d1fd0, #3a060fd0);
  animation: vzin2 0.45s ease-out both;
}

.vzs {
  clip-path: polygon(55.5% 0, 56.5% 0, 44.5% 100%, 43.5% 100%);
  background: linear-gradient(#ffd54a00, #ffd54a 30%, #ffd54a 70%, #ffd54a00);
}

@keyframes vzin1 {
  from {
    transform: translateX(-12%);
  }
  to {
    transform: none;
  }
}

@keyframes vzin2 {
  from {
    transform: translateX(12%);
  }
  to {
    transform: none;
  }
}

.vzt {
  position: absolute;
  z-index: 4;
  top: max(0.9em, env(safe-area-inset-top));
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
}

.vzt .vh {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font:
    400 1.5em/1 Bungee,
    Impact,
    sans-serif;
  color: #fff;
  text-shadow: 0 0.07em 0 #000;
}

.vzt .vh span {
  font-size: 0.55em;
  padding: 0.3em 0.9em;
  border-radius: 99em;
  border: 0.14em solid var(--tc);
  color: var(--tc);
  background: #000a;
  letter-spacing: 0.1em;
}

.vzt .vh em {
  font-style: normal;
  font-size: 0.5em;
  color: #ffd54a;
}

.vzt .vr {
  font:
    800 0.9em Nunito,
    sans-serif;
  color: #ffe9a0;
  background: #000a;
  padding: 0.3em 1em;
  border-radius: 99em;
  text-shadow: 0 0.1em 0.2em #000;
}

.vzp {
  position: relative;
  z-index: 2;
  width: 30%;
  height: auto;
  margin-top: 4.6em;
  margin-bottom: 2.8em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.vzp.l {
  margin-right: 7em;
  animation: vzp1 0.5s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

.vzp.r {
  margin-left: 7em;
  animation: vzp2 0.5s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

@keyframes vzp1 {
  from {
    transform: translateX(-25%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes vzp2 {
  from {
    transform: translateX(25%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.vzp img {
  height: min(12em, calc(400px / var(--dpr, 1)));
  width: auto;
  filter: drop-shadow(0 0.5em 0.4em #000c) drop-shadow(0 0 0.7em var(--c));
}

.vzp.r img {
  transform: scaleX(-1);
}

.vzp .vn {
  font:
    400 2.4em/1 Bungee,
    Impact,
    sans-serif;
  color: #fff;
  margin-top: 0.2em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.03em #000;
  text-shadow:
    0 0.07em 0 #000,
    0 0 0.5em var(--c);
}

.vzp .vo {
  font:
    400 0.9em Russo,
    Impact,
    sans-serif;
  letter-spacing: 0.3em;
  color: #fff;
  margin: 0.3em 0 0.5em;
  text-shadow:
    0 0.1em 0.2em #000,
    0 0 0.5em var(--c),
    0 0 0.15em #000;
}

.vzp .vt {
  font:
    400 0.7em Russo,
    Impact,
    sans-serif;
  letter-spacing: 0.1em;
  color: #cfd8ff;
  padding: 0.2em 0.8em;
  border-radius: 0.4em;
  background: #000a;
  border: 0.1em solid var(--c);
  margin-bottom: 0.5em;
}

.vzv {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font:
    400 5.6em/1 Bungee,
    Impact,
    sans-serif;
  color: #ffd54a;
  -webkit-text-stroke: 0.04em #8a2a00;
  text-shadow:
    0 0.06em 0 #b33a00,
    0 0 0.6em #ff7a00,
    0 0.3em 0.5em #000;
  animation: vzv 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) 0.15s both;
}

@keyframes vzv {
  from {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.vzg {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: max(0.8em, env(safe-area-inset-bottom));
  text-align: center;
  font:
    400 1.2em Bungee,
    Impact,
    sans-serif;
  letter-spacing: 0.2em;
  color: #fff;
  text-shadow:
    0 0.08em 0 #000,
    0 0 0.6em #ffd54a;
  animation: vrdy 0.9s ease-in-out infinite alternate;
}

@media (max-aspect-ratio: 7/5) {
  .sxg {
    grid-template-columns: repeat(3, 8.4em);
  }
  .sxp {
    width: 17.5em;
  }
}
