:root {
  --bg: #0b1622;
  --panel: #16202f;
  --elixir: #d35bd6;
  --gold: #ffd23d;
  --blue: #3fa9ff;
  --red: #ff5d6c;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}
.coll-grid,
.pdx-grid,
.lobby-body {
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
body {
  background: radial-gradient(80% 60% at 50% -10%, #234a2e 0%, transparent 60%),
    radial-gradient(120% 90% at 50% 120%, #142033 0%, transparent 55%),
    linear-gradient(160deg, #0e1c2b, #0a121d 55%, #070d15);
}
#app {
  height: 100dvh;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  max-width: min(440px, calc((100dvh - 20px) * 0.6));
  padding: 6px 8px 8px;
}
.topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 6px;
  flex-shrink: 0;
}
.brand {
  font-weight: 900;
  letter-spacing: -0.5px;
  font-size: 17px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.brand .ro {
  color: var(--gold);
}
.crowns {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 17px;
}
.crowns .me {
  color: var(--blue);
}
.crowns .foe {
  color: var(--red);
}
.crowns .vs {
  font-size: 11px;
  opacity: 0.5;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 16px;
  background: #00000059;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.timer.double {
  color: var(--elixir);
  animation: pulse 0.7s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
.stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #1c2c1c;
  box-shadow: 0 0 0 4px #0006, 0 18px 50px #0009, inset 0 2px 12px #0000004d;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.hint {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
  pointer-events: none;
  text-shadow: 0 1px 3px #000;
}
.hud {
  width: 100%;
  padding-top: 7px;
  flex-shrink: 0;
}
.hand {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 7px;
}
.card {
  position: relative;
  border-radius: 11px;
  padding: 4px 3px 3px;
  cursor: grab;
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: none;
  background: linear-gradient(180deg, #314660, #18222f);
  border: 2px solid #3a5476;
  box-shadow: 0 3px #0006, inset 0 1px #ffffff1a;
  transition: transform 0.08s, opacity 0.1s;
}
.card:hover {
  transform: translateY(-2px);
}
.card:active {
  cursor: grabbing;
}
.card.dragging {
  opacity: 0.3;
}
.card.cant {
  filter: grayscale(0.75) brightness(0.62);
}
.card.cant:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 9px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 5px,
    rgba(0, 0, 0, 0.2) 5px,
    rgba(0, 0, 0, 0.2) 10px
  );
}
.card .art {
  width: 100%;
  aspect-ratio: 1.25;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: radial-gradient(
    circle at 50% 32%,
    rgba(255, 255, 255, 0.14),
    transparent 70%
  );
}
.card img {
  width: 72%;
  height: 88%;
  image-rendering: pixelated;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}
.card .nm {
  font-size: 9px;
  font-weight: 800;
  margin-top: 1px;
  white-space: nowrap;
  text-shadow: 0 1px 1px #000;
  opacity: 0.92;
}
.card .cost {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 35% 30%, #ff8df0, var(--elixir));
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  border: 2px solid #0b1622;
  box-shadow: 0 2px 4px #00000080;
  z-index: 2;
}
.card.rar-rare {
  border-color: #4fd0e6;
  background: linear-gradient(180deg, #1f3a44, #142028);
  box-shadow: 0 3px #0006, inset 0 0 16px -7px #4fd0e6;
}
.card.rar-epic {
  border-color: #b07aff;
  background: linear-gradient(180deg, #2e2348, #1a1428);
  box-shadow: 0 3px #0006, inset 0 0 16px -6px #b07aff, 0 0 14px -5px #b07aff;
}
.card.rar-legendary {
  border-color: var(--gold);
  background: linear-gradient(180deg, #3a3014, #221a08);
  box-shadow: 0 3px #0006, inset 0 0 18px -5px #ffce4d,
    0 0 18px -4px var(--gold);
  animation: legShimmer 2.2s ease-in-out infinite;
}
@keyframes legShimmer {
  50% {
    box-shadow: 0 3px #0006, inset 0 0 22px -4px #ffe98a,
      0 0 24px -3px var(--gold);
  }
}
.card.rar-legendary .art {
  background: radial-gradient(
    circle at 50% 30%,
    rgba(255, 206, 77, 0.3),
    transparent 72%
  );
}
.card.rar-epic .art {
  background: radial-gradient(
    circle at 50% 30%,
    rgba(176, 122, 255, 0.24),
    transparent 72%
  );
}
.card.rar-rare .art {
  background: radial-gradient(
    circle at 50% 30%,
    rgba(79, 208, 230, 0.22),
    transparent 72%
  );
}
.elixir-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.elixir-drop {
  font-size: 16px;
  filter: drop-shadow(0 0 6px var(--elixir));
}
.elixir-bar {
  flex: 1;
  height: 16px;
  background: #2a1730;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 2px 5px #00000073;
}
.elixir-fill {
  height: 100%;
  background: linear-gradient(90deg, #a83cad, var(--elixir), #ff8df0);
  box-shadow: 0 0 14px -2px var(--elixir);
  transition: width 0.1s linear;
}
.elixir-pips {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
}
.elixir-pips span {
  flex: 1;
  border-right: 1px solid rgba(0, 0, 0, 0.45);
}
.elixir-pips span:last-child {
  border: 0;
}
.elixir-num {
  font-weight: 900;
  color: var(--elixir);
  min-width: 22px;
  text-align: center;
  font-size: 16px;
  text-shadow: 0 1px 2px #000;
}
.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #060c14e6;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  overflow-y: auto;
  padding: 20px;
}
.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  animation: pop 0.32s cubic-bezier(0.2, 1.4, 0.4, 1);
  max-height: 100%;
  width: 100%;
  max-width: 360px;
}
@keyframes pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
}
.result h1 {
  font-size: 42px;
  letter-spacing: -1px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
}
@media (max-height: 740px) {
  .result {
    gap: 8px;
  }
  .result h1,
  .result-title {
    font-size: 34px;
  }
  .result-crowns .rc-crown {
    font-size: 30px;
  }
  .result p {
    font-size: 13px;
  }
  .rewards .rw {
    font-size: 13px;
    padding: 4px 10px;
  }
  .btn {
    padding: 11px 24px;
    font-size: 15px;
  }
}
.result.win h1 {
  color: var(--gold);
}
.result.lose h1 {
  color: var(--red);
}
.result.draw h1 {
  color: #cbd5e1;
}
.result .score {
  display: flex;
  gap: 16px;
  font-size: 24px;
  font-weight: 900;
}
.result .score .me {
  color: var(--blue);
}
.result .score .foe {
  color: var(--red);
}
.result p {
  opacity: 0.75;
  max-width: 300px;
  line-height: 1.5;
  font-size: 14px;
}
.btn {
  background: linear-gradient(180deg, #ffe066, var(--gold));
  color: #2a1d00;
  font-weight: 900;
  border: 0;
  padding: 14px 32px;
  border-radius: 14px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 5px #b8930a;
  margin-top: 4px;
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px #b8930a;
}
.lobby {
  width: 100%;
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: radial-gradient(120% 50% at 50% 0%, #2a3d57 0%, transparent 60%),
    linear-gradient(180deg, #16202f, #0d141e);
}
.lobby-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  gap: 10px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.avatar {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #3a5070, #1a2533);
  border: 2.5px solid var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px #0006;
}
.avatar img {
  width: 78%;
  height: 78%;
  image-rendering: pixelated;
  object-fit: contain;
}
.avatar .lvl {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translate(-50%);
  background: var(--gold);
  color: #1a1200;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 999px;
  border: 2px solid #0d141e;
}
.pinfo {
  min-width: 0;
}
.pname {
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}
.xpbar {
  width: 90px;
  height: 6px;
  background: #0006;
  border-radius: 999px;
  margin-top: 3px;
  overflow: hidden;
}
.xpfill {
  height: 100%;
  background: linear-gradient(90deg, #57d0ff, #3fa9ff);
}
.currencies {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.cur {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 12px;
  background: #00000052;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 70px;
  justify-content: flex-end;
}
.cur .ic {
  font-size: 13px;
}
.cur.trophy {
  color: #ffd23d;
}
.cur.gold {
  color: #ffcf6b;
}
.cur.gem {
  color: #8fe3ff;
}
.lobby-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 14px 8px;
  display: flex;
  flex-direction: column;
}
.battle-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.arena-banner {
  position: relative;
  border-radius: 20px;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #2f6e4a, #245c63 55%, #2a4a78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px #0006, inset 0 1px #ffffff1f;
  min-height: 168px;
  display: flex;
  flex-direction: column;
}
.arena-glow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    70% 80% at 50% 120%,
    rgba(255, 210, 61, 0.25),
    transparent 70%
  );
}
.arena-label {
  position: relative;
  text-align: center;
}
.arena-tier {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff9;
}
.arena-name {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.banner-mons {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 6px 0;
}
.banner-mons .bm {
  width: 50px;
  height: 50px;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.4));
  animation: bob 2.4s ease-in-out infinite;
}
.banner-mons .bm1 {
  animation-delay: 0.3s;
}
.banner-mons .bm2 {
  animation-delay: 0.6s;
  width: 60px;
  height: 60px;
}
.banner-mons .bm3 {
  animation-delay: 0.9s;
}
.banner-mons .bm4 {
  animation-delay: 1.2s;
}
@keyframes bob {
  50% {
    transform: translateY(-7px);
  }
}
.trophy-progress {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
}
.tp-bar {
  width: 130px;
  height: 8px;
  background: #00000059;
  border-radius: 999px;
  overflow: hidden;
}
.tp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffe066, #ffd23d);
}
.tp-next {
  opacity: 0.7;
}
.play-btn {
  position: relative;
  border: 0;
  cursor: pointer;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: linear-gradient(180deg, #ffe273, #ffd23d, #f3b211);
  color: #3a2800;
  box-shadow: 0 7px #b8870a, 0 14px 24px #f3b21159;
  transition: transform 0.08s, box-shadow 0.08s;
}
.play-btn:active {
  transform: translateY(4px);
  box-shadow: 0 3px #b8870a, 0 8px 14px #f3b2114d;
}
.pb-icon {
  font-size: 26px;
  line-height: 1;
}
.pb-text {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}
.pb-sub {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
}
.quick-stats {
  display: flex;
  gap: 10px;
}
.qs {
  flex: 1;
  background: #ffffff0d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qs .qv {
  font-size: 17px;
  font-weight: 900;
}
.qs .ql {
  font-size: 10px;
  opacity: 0.55;
}
.mini-deck {
  background: #00000038;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px;
}
.md-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 8px;
}
.md-edit {
  color: var(--gold);
  cursor: pointer;
  opacity: 1;
}
.md-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.md-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 9px;
  border: 2px solid #3a5476;
  background: linear-gradient(180deg, #2a3a52, #18222f);
  display: grid;
  place-items: center;
  box-shadow: 0 2px #0000004d;
}
.md-card img {
  width: 88%;
  height: 88%;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}
.md-card .cost {
  position: absolute;
  top: -6px;
  left: -5px;
  width: 19px;
  height: 19px;
  font-size: 11px;
  background: radial-gradient(circle at 35% 30%, #ff8df0, var(--elixir));
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  border: 2px solid #131c29;
  z-index: 2;
}
.md-card.rar-common {
  border-color: #6b7a90;
}
.md-card.rar-rare {
  border-color: #4fd0e6;
  box-shadow: 0 2px #0000004d, inset 0 0 12px -6px #4fd0e6;
}
.md-card.rar-epic {
  border-color: #b07aff;
  box-shadow: 0 2px #0000004d, 0 0 10px -5px #b07aff;
}
.md-card.rar-legendary {
  border-color: var(--gold);
  box-shadow: 0 2px #0000004d, 0 0 12px -4px var(--gold);
}
.cards-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.deck-panel {
  flex-shrink: 0;
  background: linear-gradient(180deg, #1b2535, #131c29);
  border: 1px solid #2c3a4f;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
}
.deck-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.deck-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  opacity: 0.7;
}
.avg {
  font-weight: 900;
  color: var(--elixir);
  font-size: 15px;
}
.deck-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.deck-card,
.coll-card {
  position: relative;
  border-radius: 10px;
  padding: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, #2a3a52, #18222f);
  border: 2px solid #3a5476;
  box-shadow: 0 3px #00000059;
  transition: transform 0.08s;
}
.deck-card:active,
.coll-card:active {
  transform: scale(0.96);
}
.deck-card.sel {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 3px #00000059;
  transform: translateY(-3px);
}
.deck-card .art,
.coll-card .art {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: radial-gradient(
    circle at 50% 32%,
    rgba(255, 255, 255, 0.13),
    transparent 70%
  );
}
.deck-card img,
.coll-card img {
  width: 92%;
  height: 92%;
  image-rendering: pixelated;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}
.deck-card .nm,
.coll-card .nm {
  font-size: 9.5px;
  font-weight: 800;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  opacity: 0.92;
}
.deck-card .cost,
.coll-card .cost {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 35% 30%, #ff8df0, var(--elixir));
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  border: 2px solid #131c29;
  z-index: 2;
}
.rar-rare {
  border-color: #4fb6d6;
}
.rar-epic {
  border-color: #b07aff;
}
.rar-legendary {
  border-color: var(--gold);
}
.swap-hint {
  text-align: center;
  font-size: 11px;
  margin-top: 10px;
  color: var(--gold);
}
.swap-hint.dim {
  color: #ffffff73;
}
.swap-hint span {
  text-decoration: underline;
  cursor: pointer;
}
.coll-head {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  opacity: 0.7;
  padding: 2px 2px 8px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.coll-count {
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 0;
}
.coll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  overflow-y: auto;
  padding: 4px 2px 14px;
  flex: 1;
  min-height: 0;
}
.coll-card.in-deck {
  opacity: 0.5;
}
.coll-card .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 19px;
  height: 19px;
  background: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  border: 2px solid #131c29;
}
.shop-screen {
  padding-top: 6px;
}
.chest-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.chest {
  background: linear-gradient(180deg, #1d293a, #131c29);
  border: 2px solid var(--cc);
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: 0 6px 16px #0000004d, 0 0 18px -8px var(--cc);
}
.chest-ic {
  font-size: 40px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}
.chest-name {
  font-size: 11px;
  font-weight: 800;
  margin: 6px 0 9px;
}
.chest-buy {
  width: 100%;
  background: var(--gold);
  color: #2a1d00;
  border: 0;
  font-weight: 900;
  padding: 8px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 3px #b8930a;
}
.chest-buy.cant {
  filter: grayscale(0.6) brightness(0.7);
}
.shop-note {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.6;
  text-align: center;
  background: #ffffff0a;
  padding: 14px;
  border-radius: 12px;
}
.lobby-nav {
  flex-shrink: 0;
  display: flex;
  background: linear-gradient(180deg, #16202f, #0c131d);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 18px #0000004d;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.1s, transform 0.08s;
  opacity: 0.55;
}
.nav-item:active {
  transform: scale(0.94);
}
.nav-item.on {
  opacity: 1;
  background: #ffffff0f;
}
.nav-item.on .ni-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(255, 210, 61, 0.5));
}
.ni-icon {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.12s;
}
.ni-label {
  font-size: 10px;
  font-weight: 800;
}
.nav-item.on[data-tab="battle"] .ni-label {
  color: var(--gold);
}
.result-btns {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.result-btns .btn {
  flex: 1;
  min-width: 130px;
}
.btn.ghost {
  background: #ffffff1a;
  color: #fff;
  box-shadow: 0 5px #0006;
}
.rewards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.rewards .rw {
  font-size: 15px;
  font-weight: 900;
  background: #ffffff14;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.result-crowns {
  flex-wrap: wrap;
}
.rewards .rw.up {
  color: #57d98a;
}
.rewards .rw.down {
  color: var(--red);
}
.exit-btn {
  background: #00000059;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.exit-btn:active {
  transform: scale(0.94);
}
.card-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #060c14db;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.card-detail {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(180deg, #1d2838, #141d2a);
  border: 2.5px solid #3a5476;
  border-radius: 20px;
  padding: 18px;
  position: relative;
  animation: pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
  box-shadow: 0 20px 50px #0009;
}
.card-detail .close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff1a;
  border: 0;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.cd-art {
  width: 110px;
  height: 110px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
  border-radius: 14px;
}
.cd-art img {
  width: 88%;
  height: 88%;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.55));
}
.cd-name {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  margin-top: 6px;
}
.cd-tags {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}
.cd-tags .tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffffff1a;
}
.cd-tags .tag.elixir {
  background: #d35bd640;
  color: #f3a9f5;
}
.cd-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 12px;
}
.cd-stat {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 3px;
}
.cd-stat .l {
  opacity: 0.6;
}
.cd-stat .v {
  font-weight: 800;
}
.cd-blurb {
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.85;
  text-align: center;
}
.cd-deckstate {
  text-align: center;
  font-size: 12px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--blue);
}
.setup-modal,
.profile-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  background: #060c14eb;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.setup-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
  background: linear-gradient(180deg, #1d2838, #131c29);
  border: 2px solid #3a5476;
  border-radius: 22px;
  padding: 22px 20px;
  animation: pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
  box-shadow: 0 20px 50px #0009;
}
.setup-logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.setup-logo .ro {
  color: var(--gold);
}
.setup-sub {
  font-size: 13px;
  opacity: 0.65;
  margin-top: 4px;
  margin-bottom: 16px;
}
.setup-avatar-preview {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #3a5070, #1a2533);
  border: 3px solid var(--gold);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px #0006;
}
.setup-avatar-preview img {
  width: 80%;
  height: 80%;
  image-rendering: pixelated;
  object-fit: contain;
}
.setup-label {
  display: block;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0.55;
  margin: 12px 0 7px;
}
.avatar-pick {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.ap {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px solid #2c3a4f;
  cursor: pointer;
  background: #ffffff0a;
  display: grid;
  place-items: center;
  transition: transform 0.08s;
}
.ap:active {
  transform: scale(0.92);
}
.ap.on {
  border-color: var(--gold);
  background: #ffd23d1f;
  box-shadow: 0 0 0 1px var(--gold);
}
.ap img {
  width: 82%;
  height: 82%;
  image-rendering: pixelated;
  object-fit: contain;
}
.setup-input,
.rename-input {
  width: 100%;
  background: #00000059;
  border: 2px solid #2c3a4f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 12px;
  outline: none;
  text-align: center;
}
.setup-input:focus,
.rename-input:focus {
  border-color: var(--blue);
}
.setup-go {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font-size: 17px;
}
.profile-card {
  width: 100%;
  max-width: 340px;
  position: relative;
  background: linear-gradient(180deg, #1d2838, #131c29);
  border: 2px solid #3a5476;
  border-radius: 22px;
  padding: 22px 20px 20px;
  animation: pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
  box-shadow: 0 20px 50px #0009;
}
.profile-card .close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff1a;
  border: 0;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.pc-top {
  text-align: center;
}
.pc-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #3a5070, #1a2533);
  border: 3px solid var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px #0006;
}
.pc-avatar img {
  width: 80%;
  height: 80%;
  image-rendering: pixelated;
  object-fit: contain;
}
.pc-avatar .lvl {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translate(-50%);
  background: var(--gold);
  color: #1a1200;
  font-size: 11px;
  font-weight: 900;
  padding: 1px 9px;
  border-radius: 999px;
  border: 2px solid #131c29;
}
.pc-avatar .edit-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  background: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  border: 2px solid #131c29;
}
.pc-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pc-name {
  font-size: 22px;
  font-weight: 900;
}
.pc-rename {
  background: #ffffff1a;
  border: 0;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.pc-uid {
  font-size: 10px;
  color: #8b97a6;
  margin-top: 3px;
  letter-spacing: 0.3px;
  cursor: pointer;
  word-break: break-all;
  line-height: 1.2;
}
.pc-arena {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 2px;
}
.pc-xp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 11px;
  opacity: 0.7;
}
.pc-xp-bar {
  flex: 1;
  height: 8px;
  background: #0006;
  border-radius: 999px;
  overflow: hidden;
}
.pc-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #57d0ff, #3fa9ff);
}
.pc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.pc-stat {
  background: #ffffff0d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 9px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.pcs-ic {
  font-size: 16px;
}
.pcs-v {
  font-size: 16px;
  font-weight: 900;
}
.pcs-l {
  font-size: 9px;
  opacity: 0.55;
}
.pc-wallet {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.pc-wallet .cur {
  font-size: 13px;
  font-weight: 800;
  background: #0000004d;
  padding: 6px 14px;
  border-radius: 999px;
}
.pc-wallet .gold {
  color: #ffcf6b;
}
.pc-wallet .gem {
  color: #8fe3ff;
}
.pc-avatar-pick,
.pc-wallet-link {
  margin-top: 14px;
}
.wl-connect {
  width: 100%;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 11px;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #9b7bff, #6f4ff0);
  box-shadow: 0 3px #4f33b8;
}
.wl-connect:active {
  transform: translateY(1px);
  box-shadow: 0 2px #4f33b8;
}
.wl-connect:disabled {
  opacity: 0.6;
  cursor: default;
}
.wl-bound {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  background: #9b7bff24;
  border: 1.5px solid rgba(155, 123, 255, 0.4);
  border-radius: 12px;
  padding: 10px;
}
.wl-bound b {
  color: #c9b6ff;
  font-variant-numeric: tabular-nums;
}
.wl-bound .wl-ok {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8fe0a0;
}
.wl-msg {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffb3bd;
  min-height: 0;
  margin-top: 6px;
}
.wl-msg:empty {
  display: none;
}
.wl-exchange {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 11px;
  font-weight: 900;
  font-size: 14px;
  color: #1a1a1a;
  background: linear-gradient(135deg, #ffe27a, #ffc93d);
  box-shadow: 0 3px #c8901f;
}
.wl-exchange:active {
  transform: translateY(1px);
  box-shadow: 0 2px #c8901f;
}
.ex-modal {
  width: 100%;
  max-width: 340px;
}
.ex-io {
  margin: 16px 0 14px;
}
.ex-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #00000040;
  border-radius: 12px;
  padding: 12px 14px;
}
.ex-field.out {
  background: #9b7bff1f;
  margin-top: 6px;
}
.ex-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.ex-input::-webkit-outer-spin-button,
.ex-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ex-out {
  flex: 1;
  min-width: 0;
  font-size: 23px;
  font-weight: 900;
  color: #c9b6ff;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-unit {
  font-size: 13px;
  font-weight: 800;
  opacity: 0.8;
  white-space: nowrap;
}
.ex-arrow {
  text-align: center;
  font-size: 15px;
  opacity: 0.45;
  margin: 2px 0;
}
.ex-usd {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #8fe0a0;
  margin-top: 9px;
}
.ex-rate-hint {
  text-align: center;
  font-size: 10.5px;
  opacity: 0.5;
  margin-top: 3px;
}
.ex-disclaim {
  text-align: center;
  font-size: 10px;
  line-height: 1.35;
  opacity: 0.5;
  margin-top: 8px;
  padding: 0 4px;
}
.ex-bal {
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 12px;
}
.ex-bal b {
  color: #8fe3ff;
}
.ex-pool {
  background: #00000040;
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 14px;
}
.ex-pool-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 6px;
  gap: 8px;
}
.ex-pool-head b {
  color: #ffe27a;
  font-variant-numeric: tabular-nums;
}
.ex-pool-bar {
  height: 8px;
  border-radius: 5px;
  background: #ffffff14;
  overflow: hidden;
}
.ex-pool-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #ffe27a, #ffc93d);
  transition: width 0.4s;
}
.ex-pool-sub {
  font-size: 10px;
  opacity: 0.5;
  text-align: right;
  margin-top: 4px;
}
.ex-swap {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  font-weight: 900;
  font-size: 15px;
  color: #1a1a1a;
  background: linear-gradient(135deg, #ffe27a, #ffc93d);
  box-shadow: 0 3px #c8901f;
  cursor: pointer;
}
.ex-swap:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px #c8901f;
}
.ex-swap:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  background: #ffffff1f;
  color: #fff;
}
.ex-note {
  text-align: center;
  font-size: 11.5px;
  opacity: 0.6;
  margin-top: 10px;
  line-height: 1.4;
}
.ex-note:empty {
  display: none;
}
.ex-note.ok {
  color: #8fe0a0;
  opacity: 1;
}
.ex-note.err {
  color: #ff9aa6;
  opacity: 1;
}
.ex-note a {
  color: inherit;
  text-decoration: underline;
}
.swap-confirm {
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 22px 20px;
}
.sc-title {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 12px;
}
.sc-body {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.sc-body b {
  color: #ffe27a;
}
.sc-warn {
  font-size: 11.5px;
  opacity: 0.6;
  line-height: 1.4;
  margin-bottom: 18px;
}
.sc-actions {
  display: flex;
  gap: 10px;
}
.sc-btn {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 13px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
}
.sc-btn:active {
  transform: translateY(1px);
}
.sc-btn.cancel {
  background: #ffffff1a;
  color: #fff;
}
.sc-btn.confirm {
  background: linear-gradient(135deg, #ffe27a, #ffc93d);
  color: #1a1a1a;
  box-shadow: 0 3px #c8901f;
}
.gate-intro {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 12px;
}
.gate-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gate-list li {
  font-size: 14px;
  line-height: 1.35;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.gate-list li.no {
  opacity: 0.92;
}
.gate-list li.ok {
  opacity: 0.55;
}
.gate-mark {
  flex: none;
  font-weight: 900;
}
.gate-sub {
  display: block;
  font-size: 11.5px;
  opacity: 0.6;
}
.market {
  margin-top: 18px;
}
.market-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.market-title {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.market-sub {
  font-size: 11px;
  opacity: 0.55;
}
.market-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.market-tab {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 8px 4px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  background: #ffffff14;
  color: #fff;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.market-tab.on {
  opacity: 1;
}
.market-tab.mt-common.on {
  background: #c9d2dd40;
}
.market-tab.mt-rare.on {
  background: #4fd0e640;
}
.market-tab.mt-epic.on {
  background: #b07aff40;
}
.market-tab.mt-legendary.on {
  background: #ffce4d40;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.market-card {
  position: relative;
  background: #ffffff0d;
  border: 1.5px solid var(--rc);
  border-radius: 12px;
  padding: 8px 6px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.1s;
}
.market-card:active {
  transform: scale(0.96);
}
.mc-art {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-art img {
  max-height: 56px;
  max-width: 100%;
  image-rendering: auto;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}
.mc-name {
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-price {
  font-size: 12px;
  font-weight: 900;
  color: #ffe27a;
  margin-top: 3px;
}
.mc-new {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 8.5px;
  font-weight: 900;
  background: #ff5470;
  color: #fff;
  padding: 1px 4px;
  border-radius: 5px;
  letter-spacing: 0.03em;
}
.market-note {
  font-size: 11px;
  opacity: 0.5;
  line-height: 1.4;
  margin-top: 12px;
}
.buy-modal {
  position: relative;
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 24px 20px 20px;
  border: 2px solid var(--rc);
}
.bm-x {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 0;
  color: #fff;
  opacity: 0.6;
  font-size: 18px;
  cursor: pointer;
}
.bm-art {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bm-art img {
  max-height: 96px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}
.bm-name {
  font-weight: 900;
  font-size: 19px;
  margin-top: 4px;
}
.bm-rar {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.bm-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}
.bm-step {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 11px;
  background: #ffffff1f;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}
.bm-step:disabled {
  opacity: 0.3;
  cursor: default;
}
.bm-qnum {
  min-width: 64px;
}
.bm-qnum b {
  display: block;
  font-size: 24px;
  font-weight: 900;
}
.bm-qnum span {
  font-size: 10px;
  opacity: 0.55;
}
.bm-cur {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.bm-curbtn {
  flex: 1;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  padding: 10px 6px;
  background: none;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  opacity: 0.6;
}
.bm-curbtn.on {
  opacity: 1;
  border-color: #ffe27a;
  background: #ffe27a1f;
}
.bm-off {
  font-size: 10px;
  color: #8fe0a0;
  font-weight: 900;
}
.bm-total {
  font-size: 18px;
  font-weight: 900;
  color: #ffe27a;
  margin-bottom: 14px;
}
.bm-usd {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  opacity: 0.5;
}
.bm-status {
  font-size: 12.5px;
  line-height: 1.4;
  margin-bottom: 12px;
  opacity: 0.85;
}
.bm-status.ok {
  color: #8fe0a0;
  opacity: 1;
}
.bm-status.err {
  color: #ff9aa6;
  opacity: 1;
}
.bm-buy {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 14px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  background: linear-gradient(135deg, #ffe27a, #ffc93d);
  color: #1a1a1a;
  box-shadow: 0 3px #c8901f;
}
.bm-buy:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}
.bm-buy:active:not(:disabled) {
  transform: translateY(1px);
}
.bm-foot {
  font-size: 10.5px;
  opacity: 0.45;
  margin-top: 10px;
}
.bm-gate {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 18px;
}
.bg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
}
.bg-input {
  flex: 1;
  background: #ffffff14;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  padding: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  min-width: 0;
}
.bg-unit {
  font-size: 13px;
  font-weight: 800;
  opacity: 0.7;
}
.wl-exchange.refer {
  background: linear-gradient(135deg, #8ad6ff, #4fb0ff);
  color: #07233a;
  box-shadow: 0 3px #2a78bd;
}
.ex-tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0 14px;
}
.ex-tab {
  flex: 1;
  border: 0;
  border-radius: 11px;
  padding: 10px 6px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  background: #ffffff14;
  color: #fff;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.ex-tab.on {
  opacity: 1;
  background: #ffe27a2e;
}
.rf-how {
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.85;
  margin: 4px 0 16px;
}
.rf-how b {
  color: #ffe27a;
}
.rf-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.5;
  margin: 10px 0 6px;
}
.rf-code {
  width: 100%;
  background: #7fd0ff1f;
  border: 1.5px solid rgba(127, 208, 255, 0.4);
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  cursor: pointer;
}
.rf-code:active {
  transform: scale(0.98);
}
.rf-count {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.8;
  margin-top: 10px;
}
.rf-invited {
  font-size: 14px;
  font-weight: 700;
  margin-top: 14px;
  color: #8fe0a0;
}
.rf-invited b {
  color: #fff;
}
.arena-strip {
  margin: 4px 0 2px;
}
.arena-strip-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  opacity: 0.55;
  margin: 0 0 5px 2px;
}
.arena-strip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.arena-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 7px 3px;
  border-radius: 12px;
  border: 2px solid transparent;
  color: #fff;
  background: #ffffff0f;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
}
.arena-chip:active {
  transform: scale(0.93);
}
.arena-chip.on {
  border-color: #ffd23d;
  background: #ffd23d29;
}
.arena-chip .ac-ic {
  font-size: 19px;
  line-height: 1;
}
.arena-chip .ac-name {
  font-size: 8.5px;
  font-weight: 800;
  opacity: 0.8;
  text-align: center;
  line-height: 1.1;
}
.pc-arena-pick {
  margin-top: 14px;
}
.arena-pick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.ap-skin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #00000047;
  color: #fff;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
}
.ap-skin:active {
  transform: scale(0.94);
}
.ap-skin.on {
  border-color: #ffd23d;
  background: #ffd23d26;
}
.aps-ic {
  font-size: 20px;
  line-height: 1;
}
.aps-name {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2px;
  opacity: 0.85;
  text-align: center;
}
.cur-row {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.mute-btn {
  background: #00000052;
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 28px;
  height: 26px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.mute-btn:active {
  transform: scale(0.92);
}
.coll-card {
  border-color: var(--rc, #3a5476) !important;
}
.coll-card .rarity-tag {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--rc, #555);
  color: #11161f;
  text-transform: uppercase;
}
.coll-card.locked {
  filter: grayscale(1) brightness(0.42);
  opacity: 0.9;
}
.coll-card.locked .rarity-tag {
  opacity: 0.5;
}
.coll-card .lock {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: #00000059;
  border-radius: 9px;
}
.coll-card.in-deck {
  opacity: 1;
}
.coll-card.in-deck .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 19px;
  height: 19px;
  background: var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  border: 2px solid #131c29;
  z-index: 3;
}
.cd-rarity {
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.card-detail {
  border-color: var(--rc, #3a5476) !important;
}
.cd-art.locked {
  filter: grayscale(1) brightness(0.5);
}
.chest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.chest {
  background: linear-gradient(180deg, #1d293a, #131c29);
  border: 2px solid var(--cc);
  border-radius: 16px;
  padding: 16px 8px 12px;
  text-align: center;
  box-shadow: 0 6px 16px #0000004d, 0 0 22px -10px var(--cc);
}
.chest-ic {
  font-size: 44px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}
.chest-name {
  font-size: 12px;
  font-weight: 800;
  margin: 8px 0 2px;
}
.chest-meta {
  font-size: 9px;
  opacity: 0.6;
  margin-bottom: 9px;
}
.chest-buy {
  width: 100%;
  background: var(--gold);
  color: #2a1d00;
  border: 0;
  font-weight: 900;
  padding: 9px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 3px #b8930a;
}
.chest-buy:active {
  transform: translateY(2px);
  box-shadow: 0 1px #b8930a;
}
.chest-buy.cant {
  filter: grayscale(0.6) brightness(0.65);
}
.shop-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.6;
  text-align: center;
  background: #ffffff0a;
  padding: 14px;
  border-radius: 12px;
}
.shop-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.shop-title .soon {
  font-size: 10px;
  opacity: 0.5;
  font-weight: 700;
  letter-spacing: 0;
}
.chest-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  background: #060c14f0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.chest-open-stage {
  text-align: center;
  animation: pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.chest-big {
  font-size: 110px;
  filter: drop-shadow(0 0 30px var(--cc));
  animation: chestShake 1.6s ease-in-out infinite;
}
@keyframes chestShake {
  0%,
  to {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg) scale(1.04);
  }
}
.chest-open-name {
  font-size: 20px;
  font-weight: 900;
  margin: 8px 0 20px;
}
.chest-tap {
  font-size: 17px;
  padding: 14px 36px;
}
.reveal-stage {
  text-align: center;
}
.reveal-progress {
  font-size: 12px;
  opacity: 0.6;
  font-weight: 800;
  margin-bottom: 12px;
}
.reveal-card {
  width: 220px;
  margin: 0 auto;
  border: 3px solid var(--rc);
  border-radius: 20px;
  padding: 18px;
  background: radial-gradient(circle at 50% 30%, #ffffff14, #131c29 75%);
  box-shadow: 0 0 50px -8px var(--rc);
  animation: revealPop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes revealPop {
  0% {
    transform: scale(0.4) rotate(-8deg);
    opacity: 0;
  }
}
.reveal-rarity {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
}
.reveal-art {
  width: 130px;
  height: 130px;
  margin: 8px auto;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
  border-radius: 16px;
}
.reveal-art img {
  width: 88%;
  height: 88%;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.5));
}
.reveal-name {
  font-size: 22px;
  font-weight: 900;
}
.reveal-new {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 900;
  color: #ffd23d;
  animation: pulse 0.8s infinite;
}
.reveal-dupe {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.55;
}
.reveal-next {
  margin-top: 22px;
  font-size: 16px;
  padding: 13px 40px;
}
.buy-reveal-wrap {
  position: relative;
  width: 220px;
  margin: 0 auto;
}
.buy-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  animation: rays 16s linear infinite;
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0 13deg,
    rgba(255, 255, 255, 0.08) 13deg 17deg
  );
  -webkit-mask: radial-gradient(
    circle,
    transparent 96px,
    #000 132px,
    transparent 180px
  );
  mask: radial-gradient(
    circle,
    transparent 96px,
    #000 132px,
    transparent 180px
  );
}
.buy-rays.big {
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0 11deg,
    rgba(255, 214, 90, 0.16) 11deg 16deg
  );
}
@keyframes rays {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.levelup-fx {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lu-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: rays 16s linear infinite;
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0 12deg,
    rgba(255, 210, 80, 0.16) 12deg 16deg
  );
  -webkit-mask: radial-gradient(
    circle,
    transparent 30px,
    #000 80px,
    transparent 168px
  );
  mask: radial-gradient(circle, transparent 30px, #000 80px, transparent 168px);
}
.lu-core {
  position: relative;
  text-align: center;
  animation: luPop 0.5s cubic-bezier(0.2, 1.7, 0.4, 1);
}
.lu-badge {
  font-size: 30px;
  font-weight: 900;
  color: #ffd23d;
  text-shadow: 0 0 22px rgba(255, 210, 80, 0.9);
  letter-spacing: 1px;
}
.lu-lv {
  font-size: 20px;
  font-weight: 900;
  margin-top: 4px;
  color: #fff;
}
@keyframes luPop {
  0% {
    transform: scale(0.3) translateY(20px);
    opacity: 0;
  }
}
.lu-star {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #ffe27a;
  box-shadow: 0 0 8px #ffd23d;
  animation: luStar 0.95s ease-out forwards;
}
@keyframes luStar {
  0% {
    transform: rotate(var(--a)) translate(0) scale(1);
    opacity: 1;
  }
  to {
    transform: rotate(var(--a)) translate(150px) scale(0.2);
    opacity: 0;
  }
}
.clan-modal {
  width: 100%;
  max-width: 380px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.clan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.clan-title {
  font-weight: 900;
  font-size: 16px;
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clan-back,
.clan-x {
  background: none;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  width: 30px;
  opacity: 0.7;
}
.clan-loading {
  padding: 40px;
  text-align: center;
  opacity: 0.6;
}
.clan-none {
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cn-emoji {
  font-size: 46px;
}
.cn-msg {
  font-size: 13.5px;
  opacity: 0.75;
  line-height: 1.5;
  margin-bottom: 4px;
}
.clan-btn {
  border: 0;
  border-radius: 12px;
  padding: 13px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  background: #ffffff1a;
  color: #fff;
}
.clan-btn.primary {
  background: linear-gradient(135deg, #ffe27a, #ffc93d);
  color: #1a1a1a;
  box-shadow: 0 3px #c8901f;
}
.clan-btn:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}
.clan-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.cn-join {
  display: flex;
  gap: 8px;
}
.clan-input {
  flex: 1;
  min-width: 0;
  background: #0000004d;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 11px;
  color: #fff;
  font-size: 14px;
}
.clan-input.big {
  width: 100%;
  text-align: center;
  font-weight: 800;
}
.clan-link {
  background: none;
  border: 0;
  color: #8fb6ff;
  font-size: 13px;
  cursor: pointer;
  padding: 6px;
}
.clan-link.danger {
  color: #ff9aa6;
}
.clan-create {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cc-emblem-label {
  font-size: 12px;
  opacity: 0.6;
}
.cc-emblems {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.cc-emblem {
  aspect-ratio: 1;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #ffffff0a;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
}
.cc-emblem.on {
  opacity: 1;
  border-color: #ffe27a;
  background: #ffe27a24;
}
.cc-cost {
  font-size: 12.5px;
  opacity: 0.75;
  text-align: center;
}
.cc-cost.bad {
  color: #ff9aa6;
}
.clan-list {
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.clan-empty {
  text-align: center;
  opacity: 0.5;
  font-size: 13px;
  padding: 24px;
}
.clan-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff0d;
  border-radius: 11px;
  padding: 9px 11px;
}
.cr-rank {
  width: 22px;
  text-align: center;
  font-weight: 900;
  opacity: 0.7;
  font-size: 13px;
}
.cr-emblem {
  font-size: 22px;
}
.cr-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cr-info b {
  font-size: 14px;
}
.cr-info small {
  font-size: 11px;
  opacity: 0.6;
}
.clan-mini {
  border: 0;
  border-radius: 9px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  background: #8fb6ff33;
  color: #cfe0ff;
}
.clan-mini.danger {
  background: #ff5a702e;
  color: #ff9aa6;
}
.clan-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 12px;
  gap: 10px;
}
.cm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.cm-code {
  cursor: pointer;
  opacity: 0.8;
}
.cm-code b {
  color: #ffe27a;
  letter-spacing: 1px;
}
.cm-stat {
  font-weight: 800;
}
.cm-tabs {
  display: flex;
  gap: 6px;
}
.cm-tab {
  flex: 1;
  border: 0;
  border-radius: 9px;
  padding: 8px;
  font-weight: 800;
  font-size: 13px;
  background: #ffffff14;
  color: #fff;
  opacity: 0.55;
  cursor: pointer;
}
.cm-tab.on {
  opacity: 1;
  background: #ffe27a29;
}
.cm-roster {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 120px;
}
.cmem {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #ffffff0a;
  border-radius: 10px;
  padding: 8px 10px;
}
.cmem-role {
  font-size: 17px;
}
.cmem-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cmem-info b {
  font-size: 13.5px;
}
.cmem-info small {
  font-size: 10.5px;
  opacity: 0.55;
}
.cm-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 200px;
  gap: 8px;
}
.cc-log {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 2px;
  min-height: 160px;
}
.cc-line {
  background: #ffffff0d;
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 13px;
  align-self: flex-start;
  max-width: 85%;
}
.cc-line.mine {
  align-self: flex-end;
  background: #ffe27a21;
}
.cc-from {
  display: block;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.55;
}
.cc-text {
  word-break: break-word;
}
.cc-input {
  display: flex;
  gap: 8px;
}
.cm-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}
.clan-note {
  font-size: 12.5px;
  text-align: center;
}
.clan-note.err {
  color: #ff9aa6;
}
.lobby-toast {
  position: fixed;
  bottom: 92px;
  left: 50%;
  transform: translate(-50%);
  z-index: 300;
  background: #141c28f5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  max-width: 86vw;
  text-align: center;
  box-shadow: 0 6px 20px #00000073;
  animation: toastIn 0.25s ease;
}
@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
.tc-modal {
  width: 100%;
  max-width: 380px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.tc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tc-title {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.tc-body {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tc-timer {
  text-align: center;
  font-size: 13px;
  opacity: 0.75;
}
.tc-timer b {
  color: #ffe27a;
}
.tc-prizes {
  display: flex;
  gap: 8px;
}
.tc-prize {
  flex: 1;
  background: #ffffff0d;
  border: 1.5px solid rgba(255, 226, 122, 0.25);
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
}
.tcp-m {
  font-size: 20px;
  display: block;
}
.tcp-v {
  font-size: 14px;
  font-weight: 900;
  color: #ffe27a;
  display: block;
  margin-top: 2px;
}
.tcp-u {
  font-size: 9px;
  opacity: 0.55;
}
.tc-mine.in {
  background: #ffe27a1a;
  border: 1px solid rgba(255, 226, 122, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
}
.tcm-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 3px 0;
}
.tcm-row b {
  color: #fff;
}
.tc-hint {
  font-size: 11.5px;
  opacity: 0.6;
  line-height: 1.45;
  text-align: center;
}
.tc-join {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tc-gate {
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0.85;
  background: #ffffff0d;
  border-radius: 12px;
  padding: 14px;
}
.tc-board-title {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.6;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.tc-board {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff0a;
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 13.5px;
}
.tc-row.me {
  background: #ffe27a24;
}
.tcr-rank {
  width: 24px;
  text-align: center;
  font-weight: 900;
}
.tcr-name {
  flex: 1;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tcr-score {
  font-weight: 800;
  color: #ffe27a;
  font-size: 12.5px;
}
.coll-card.is-spell .art {
  background: radial-gradient(
    circle at 50% 35%,
    rgba(255, 141, 60, 0.22),
    transparent 70%
  );
}
.lvl-badge {
  position: absolute;
  bottom: 22px;
  right: -4px;
  font-size: 9px;
  font-weight: 900;
  background: #2a3a52;
  color: var(--gold);
  border: 1.5px solid #131c29;
  border-radius: 6px;
  padding: 0 4px;
  z-index: 2;
}
.upgrade {
  margin: 10px 0 6px;
}
.upgrade.max {
  text-align: center;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 1px;
  background: #ffd23d1f;
  padding: 10px;
  border-radius: 12px;
}
.up-bar {
  height: 8px;
  background: #0006;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.up-fill {
  height: 100%;
  background: linear-gradient(90deg, #57d0ff, #3fa9ff);
}
.up-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.up-shards {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
}
.up-btn {
  background: linear-gradient(180deg, #ffe066, var(--gold));
  color: #2a1d00;
  border: 0;
  font-weight: 900;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 3px #b8930a;
}
.up-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px #b8930a;
}
.up-btn.off {
  filter: grayscale(0.7) brightness(0.7);
  cursor: not-allowed;
  box-shadow: none;
}
.use-btn {
  background: linear-gradient(180deg, #57d0ff, var(--accent));
  color: #08222a;
  box-shadow: 0 4px #2b7fcc;
}
.use-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px #2b7fcc;
}
.slot-picker {
  margin-top: 12px;
}
.sp-title {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.6;
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.sp-slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 9px;
  border: 2px solid #3a5476;
  background: #1a2838;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.08s, border-color 0.1s;
}
.sp-slot:hover {
  border-color: var(--gold);
}
.sp-slot:active {
  transform: scale(0.92);
}
.sp-slot img {
  width: 82%;
  height: 82%;
  image-rendering: pixelated;
  object-fit: contain;
}
.sp-slot.rar-common {
  border-color: #6b7a90;
}
.sp-slot.rar-rare {
  border-color: #4fd0e6;
  box-shadow: inset 0 0 12px -6px #4fd0e6;
}
.sp-slot.rar-epic {
  border-color: #b07aff;
  box-shadow: 0 0 10px -5px #b07aff;
}
.sp-slot.rar-legendary {
  border-color: var(--gold);
  box-shadow: 0 0 12px -4px var(--gold);
}
.sp-slot .cost {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 20px;
  height: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--elixir, #d35bd6);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 1px 3px #00000080;
}
.coll-card,
.deck-card {
  background: linear-gradient(180deg, #2a3a52, #18222f);
}
.coll-card.rar-common,
.deck-card.rar-common {
  border-color: #6b7a90;
}
.coll-card.rar-rare,
.deck-card.rar-rare {
  background: linear-gradient(180deg, #1f3a44, #142028);
  box-shadow: 0 3px #00000059, inset 0 0 18px -8px #4fd0e6;
}
.coll-card.rar-epic,
.deck-card.rar-epic {
  background: linear-gradient(180deg, #2e2348, #1a1428);
  box-shadow: 0 3px #00000059, inset 0 0 18px -6px #b07aff,
    0 0 12px -6px #b07aff;
}
.coll-card.rar-legendary,
.deck-card.rar-legendary {
  background: linear-gradient(180deg, #3a3014, #221a08);
  box-shadow: 0 3px #00000059, inset 0 0 20px -5px #ffce4d,
    0 0 16px -5px #ffce4d;
}
.coll-card.rar-legendary .art,
.deck-card.rar-legendary .art {
  background: radial-gradient(
    circle at 50% 30%,
    rgba(255, 206, 77, 0.28),
    transparent 72%
  );
}
.coll-card.rar-epic .art,
.deck-card.rar-epic .art {
  background: radial-gradient(
    circle at 50% 30%,
    rgba(176, 122, 255, 0.22),
    transparent 72%
  );
}
.coll-card.rar-rare .art,
.deck-card.rar-rare .art {
  background: radial-gradient(
    circle at 50% 30%,
    rgba(79, 208, 230, 0.2),
    transparent 72%
  );
}
.coll-card.locked {
  background: linear-gradient(180deg, #1a222c, #11161d) !important;
  box-shadow: 0 3px #00000059 !important;
}
.card.rar-common {
  border-color: #6b7a90;
}
.pokedex-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.pdx-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 2px 8px;
  flex-shrink: 0;
}
.pdx-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
}
.pdx-count {
  font-size: 11px;
  opacity: 0.6;
}
.pdx-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 2px 10px;
  flex-shrink: 0;
}
.pdx-filter {
  flex-shrink: 0;
  background: #ffffff0d;
  border: 1.5px solid #2c3a4f;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.1s;
}
.pdx-filter:active {
  transform: scale(0.94);
}
.pdx-filter.on {
  color: #fff;
}
.pdx-filter.f-all.on {
  background: #3a5476;
  border-color: #4f74a0;
}
.pdx-filter.f-common.on {
  background: #5a6675;
  border-color: #6b7a90;
}
.pdx-filter.f-rare.on {
  background: #2b6a78;
  border-color: #4fd0e6;
  color: #c8f4ff;
}
.pdx-filter.f-epic.on {
  background: #4a3578;
  border-color: #b07aff;
  color: #e7d6ff;
}
.pdx-filter.f-legendary.on {
  background: #6b5414;
  border-color: var(--gold);
  color: #fff3cf;
}
.pdx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 4px 2px 16px;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 480px) {
  .pdx-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.pokedex-link {
  color: var(--accent);
  cursor: pointer;
  font-weight: 800;
}
.coll-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 10px;
  color: var(--text-dim);
  font-size: 13px;
}
.timer.overtime {
  color: #ff5d6c;
  animation: pulse 0.5s infinite;
  background: #ff5d6c2e;
  border-color: #ff5d6c66;
}
.confetti {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}
.result {
  position: relative;
  z-index: 2;
}
.result-overlay.is-win {
  background: radial-gradient(80% 60% at 50% 30%, #ffd23d29, #060c14eb);
}
.result-overlay.is-lose {
  background: radial-gradient(80% 60% at 50% 30%, #ff5d6c1f, #060c14ed);
}
.result-crowns {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 4px;
}
.rc-crown {
  font-size: 38px;
  opacity: 0.25;
  filter: grayscale(1);
  transform: scale(0.7);
}
.rc-crown.lit {
  animation: crownPop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
  opacity: 1;
  filter: none;
}
@keyframes crownPop {
  0% {
    transform: scale(0) rotate(-40deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.35) rotate(8deg);
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
.result-title {
  animation: titleDrop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.2s both;
}
@keyframes titleDrop {
  0% {
    transform: translateY(-26px) scale(1.25);
    opacity: 0;
  }
}
.score .dash {
  opacity: 0.4;
  margin: 0 2px;
}
.emote-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #0006;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.emote-btn:active {
  transform: scale(0.9);
}
.emote-picker {
  position: absolute;
  bottom: 56px;
  right: 10px;
  z-index: 9;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  width: 200px;
  background: #0a1018f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: pop 0.2s ease-out;
}
.emote-picker {
  display: none;
}
.emote-picker.open {
  display: flex;
}
.emote-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.chat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}
.emote-pick {
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  background: #ffffff0f;
  border-radius: 10px;
  font-size: 22px;
  cursor: pointer;
}
.emote-pick:active {
  transform: scale(0.88);
  background: #ffffff24;
}
.chat-pick {
  border: 0;
  background: #3fa9ff24;
  border-radius: 9px;
  color: #cfe6ff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 4px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-pick:active {
  transform: scale(0.93);
  background: #3fa9ff47;
}
.emote-bubble {
  position: absolute;
  z-index: 7;
  font-size: 40px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
}
.emote-bubble.chat {
  font-size: 14px;
  font-weight: 800;
  background: #fff;
  color: #1a2430;
  padding: 7px 13px;
  border-radius: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 10px #0006;
}
.emote-bubble.me {
  bottom: 22%;
  left: 18%;
}
.emote-bubble.foe {
  top: 22%;
  right: 18%;
}
.emote-bubble.show {
  animation: emotePop 2s ease-out;
}
@keyframes emotePop {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(10px);
  }
  15% {
    opacity: 1;
    transform: scale(1.25) translateY(0);
  }
  30% {
    transform: scale(1) translateY(0);
  }
  80% {
    opacity: 1;
    transform: scale(1) translateY(-6px);
  }
  to {
    opacity: 0;
    transform: scale(0.9) translateY(-14px);
  }
}
.cd-evo {
  text-align: center;
  font-size: 12px;
  margin-top: 8px;
  font-weight: 700;
  color: var(--gold);
  background: #ffd23d1a;
  padding: 8px;
  border-radius: 10px;
}
.cd-evo b {
  color: #fff;
}
.quests-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, #2a3a52, #1a2536);
  color: #fff;
  box-shadow: 0 4px #0000004d, inset 0 1px #ffffff14;
}
.quests-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px #0000004d;
}
.quests-btn .qb-ic {
  font-size: 20px;
}
.quests-btn .qb-text {
  font-weight: 800;
  font-size: 15px;
  flex: 1;
  text-align: left;
}
.quests-btn .qb-arrow {
  opacity: 0.5;
  font-size: 20px;
}
.quests-btn .qb-badge {
  background: var(--gold, #ffd23d);
  color: #1a1206;
  font-weight: 900;
  font-size: 12px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  box-shadow: 0 0 10px #ffd23d99;
}
.modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #060c14db;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 20px;
}
.quests-modal {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, #1d2838, #141d2a);
  border: 2.5px solid #3a5476;
  border-radius: 20px;
  padding: 18px;
  position: relative;
  animation: pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
  box-shadow: 0 20px 50px #0009;
}
.qm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qm-title {
  font-size: 19px;
  font-weight: 900;
}
.modal-x {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff1a;
  border: 0;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.qm-sub {
  font-size: 12px;
  opacity: 0.6;
  margin: 4px 0 14px;
}
.qm-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qm-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #ffffff0a;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
}
.qm-item.ready {
  border-color: var(--gold, #ffd23d);
  box-shadow: 0 0 14px #ffd23d40;
}
.qm-item.claimed {
  opacity: 0.5;
}
.qm-ic {
  font-size: 22px;
}
.qm-mid {
  flex: 1;
  min-width: 0;
}
.qm-label {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 5px;
}
.qm-bar {
  height: 7px;
  border-radius: 999px;
  background: #00000059;
  overflow: hidden;
}
.qm-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f9dff, #6fd0ff);
  transition: width 0.4s;
}
.qm-prog {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 3px;
}
.qm-claim {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  color: #1a1206;
  background: linear-gradient(135deg, #ffe27a, #ffc01f);
  box-shadow: 0 3px #b8860b;
  white-space: nowrap;
}
.qm-claim:active {
  transform: translateY(2px);
  box-shadow: 0 1px #b8860b;
}
.qm-claim:disabled {
  background: #ffffff14;
  color: #fff6;
  box-shadow: none;
  cursor: not-allowed;
}
.qm-done {
  color: #5fd17a;
  font-size: 22px;
  font-weight: 900;
}
.streak-modal {
  width: 100%;
  max-width: 340px;
  text-align: center;
  background: linear-gradient(180deg, #20304a, #141d2a);
  border: 2.5px solid var(--gold, #ffd23d);
  border-radius: 22px;
  padding: 24px 20px;
  position: relative;
  animation: pop 0.32s cubic-bezier(0.2, 1.4, 0.4, 1);
  box-shadow: 0 20px 50px #0009;
}
.streak-burst {
  font-size: 52px;
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
  0%,
  to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
.streak-title {
  font-size: 24px;
  font-weight: 900;
  margin-top: 4px;
}
.streak-sub {
  font-size: 13px;
  opacity: 0.7;
  margin: 4px 0 16px;
}
.streak-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 18px;
}
.sd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 2px;
  border-radius: 10px;
  background: #ffffff0d;
  border: 1.5px solid transparent;
}
.sd-n {
  font-size: 9px;
  opacity: 0.6;
  font-weight: 700;
}
.sd-r {
  font-size: 11px;
  font-weight: 900;
  color: var(--gold, #ffd23d);
}
.sd.past {
  opacity: 0.45;
}
.sd.today {
  border-color: var(--gold, #ffd23d);
  background: #ffd23d26;
  box-shadow: 0 0 12px #ffd23d59;
}
.streak-claim {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  color: #1a1206;
  background: linear-gradient(135deg, #ffe27a, #ffc01f);
  box-shadow: 0 4px #b8860b;
}
.streak-claim:active {
  transform: translateY(2px);
  box-shadow: 0 2px #b8860b;
}
.play-btn.online {
  background: linear-gradient(135deg, #ff7a18, #ff3d6e);
  box-shadow: 0 6px #a01f3f, 0 10px 22px #ff3d6e66;
}
.play-btn.online .pb-text {
  letter-spacing: 0.5px;
}
.play-sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.play-btn.small {
  padding: 12px;
  box-shadow: 0 4px #00000059;
}
.play-btn.small .pb-icon {
  font-size: 18px;
}
.play-btn.small .pb-text {
  font-size: 13px;
  font-weight: 800;
}
.play-btn.small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-direction: row;
}
.mp-screen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 30%, #16263e, #0a1018);
  z-index: 40;
}
.mp-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
  background: linear-gradient(180deg, #1d2838, #141d2a);
  border: 2px solid #2f4666;
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: 0 20px 50px #0000008c;
  animation: pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.mp-title {
  font-size: 21px;
  font-weight: 900;
  margin-top: 8px;
}
.mp-sub {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 8px;
  line-height: 1.45;
}
.mp-spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 6px;
  border: 5px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--blue, #3fa9ff);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.mp-radar {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(
    circle,
    rgba(63, 169, 255, 0.08),
    transparent 70%
  );
  border: 2px solid rgba(63, 169, 255, 0.25);
  overflow: hidden;
}
.mp-radar-sweep {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(63, 169, 255, 0.35),
    transparent 40%
  );
  animation: spin 1.6s linear infinite;
}
.mp-radar-dot {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
}
.mp-cancel {
  margin-top: 18px;
  background: #ffffff14;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 11px 22px;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
}
.mp-copy,
.mp-again,
.friend-create {
  border: 0;
  border-radius: 14px;
  padding: 13px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #3fa9ff, #2f7fff);
  box-shadow: 0 4px #1c5bbf;
  margin-top: 6px;
}
.mp-again {
  width: 100%;
  background: linear-gradient(135deg, #ff7a18, #ff3d6e);
  box-shadow: 0 4px #a01f3f;
}
.mp-code {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 8px;
  font-family: ui-monospace, monospace;
  margin: 14px 0;
  color: var(--gold, #ffd23d);
}
.mp-vs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mp-fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 40%;
}
.mp-fighter img {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}
.mp-fighter span {
  font-size: 13px;
  font-weight: 800;
}
.mp-vs-label {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold, #ffd23d);
}
.mp-result-banner {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1px;
}
.mp-result.win .mp-result-banner {
  color: #ffd23d;
  text-shadow: 0 0 20px rgba(255, 210, 61, 0.5);
}
.mp-result.lose .mp-result-banner {
  color: #ff5d6c;
}
.mp-result.draw .mp-result-banner {
  color: #9aa4b2;
}
.mp-crowns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px 0;
  font-size: 22px;
  font-weight: 900;
}
.mp-cr.hi {
  color: var(--gold, #ffd23d);
}
.mp-cr-dash {
  opacity: 0.4;
}
.friend-modal {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(180deg, #1d2838, #141d2a);
  border: 2.5px solid #3a5476;
  border-radius: 20px;
  padding: 18px;
  animation: pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.friend-create {
  width: 100%;
  margin-top: 12px;
}
.friend-or {
  text-align: center;
  font-size: 12px;
  opacity: 0.5;
  margin: 14px 0 10px;
}
.friend-join {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.friend-join input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  width: 100%;
  background: #0000004d;
  border: 1.5px solid #3a5476;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
  text-align: center;
  padding: 11px 6px;
  font-family: ui-monospace, monospace;
  text-transform: uppercase;
}
.friend-join button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #3fa9ff, #2f7fff);
  box-shadow: 0 3px #1c5bbf;
}
.net-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  font-weight: 800;
  background: #00000073;
  color: #cfe;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 5;
}
.play-btn.invite {
  background: linear-gradient(135deg, #6a5cff, #9b3dff);
  box-shadow: 0 6px #4a1f9f, 0 10px 22px #7b3dff59;
  margin-top: 10px;
}
.play-btn.live {
  background: linear-gradient(135deg, #ff2d55, #b8002e);
  box-shadow: 0 6px #7a0020, 0 10px 22px #ff2d5559;
  margin-top: 10px;
}
.play-btn.live .pb-icon {
  animation: livepulse 1.2s ease-in-out infinite;
}
@keyframes livepulse {
  0%,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.play-sub-row {
  grid-template-columns: 1fr;
}
.game.spectate {
  display: flex;
  flex-direction: column;
  height: 100%;
}
body.embed .exit-btn {
  display: none;
}
body.embed .bet-panel {
  display: none !important;
}
.live-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #00000059;
}
.live-bar .live-dot {
  font-weight: 900;
  font-size: 13px;
  color: #ff3b5c;
  letter-spacing: 0.5px;
}
.live-bar .live-dot:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b5c;
  margin-right: 5px;
  animation: livepulse 1.2s ease-in-out infinite;
  vertical-align: middle;
}
.live-bar .live-kind {
  font-size: 12px;
  opacity: 0.75;
  flex: 1;
}
.live-bar .live-mute {
  border: 0;
  cursor: pointer;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 8px;
}
.live-bar .live-mute:active {
  transform: scale(0.9);
}
.live-bar .live-next {
  margin-left: auto;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 6px 12px;
  background: #ffffff1f;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}
.live-bar .live-next:active {
  transform: scale(0.95);
}
.spec-fighters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 4px 10px 6px;
}
.spec-name {
  font-weight: 800;
  font-size: 13px;
  max-width: 32vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spec-name.p0 {
  color: var(--blue);
  text-align: right;
}
.spec-name.p1 {
  color: var(--red);
  text-align: left;
}
.spec-elixir {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.spec-ebar {
  height: 7px;
  border-radius: 4px;
  background: #0006;
  overflow: hidden;
}
.spec-ebar.top {
  order: -1;
}
.spec-efill {
  height: 100%;
  background: linear-gradient(90deg, #c354ff, #e89bff);
  transition: width 0.1s linear;
}
.spec-efill.foe {
  background: linear-gradient(90deg, #ff5d6c, #ffb0b8);
}
.spec-timer {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translate(-50%);
}
.spec-winner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0000008c;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 5;
  animation: fadein 0.25s;
}
.spec-winner-txt {
  font-weight: 900;
  font-size: 28px;
  color: #ffd23d;
  text-shadow: 0 2px 0 #000;
}
.spec-winner-txt.p0 {
  color: #5aa0ff;
}
.spec-winner-txt.p1 {
  color: #ff6b7a;
}
.spec-winner-txt.draw {
  color: #ffd23d;
}
.spec-winner-side {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-top: -2px;
}
.spec-winner-side.p0 {
  color: #5aa0ff;
}
.spec-winner-side.p1 {
  color: #ff6b7a;
}
.spec-winner-cr {
  font-weight: 800;
  font-size: 18px;
}
.spec-winner-bet {
  font-weight: 900;
  font-size: 21px;
  min-height: 0;
  text-shadow: 0 2px 0 #000;
}
.spec-winner-bet:empty {
  display: none;
}
.spec-winner-bet.win {
  color: #ffe27a;
}
.spec-winner-bet.loss {
  color: #ff8a96;
}
.spec-winner-bet.refund {
  color: #6fb3ff;
}
.spec-winner-sub {
  font-size: 12px;
  opacity: 0.7;
}
@keyframes fadein {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.bet-panel {
  margin: 6px 8px 8px;
  padding: 9px 11px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1c2636f5, #121a26f5);
  border: 1.5px solid #2f4a6b;
  box-shadow: 0 6px 18px #00000059;
}
.bet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.bet-title {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.6px;
  color: #ffe27a;
}
.bet-close {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
}
.bet-pool {
  margin-bottom: 8px;
}
.bet-pool-bar {
  position: relative;
  display: flex;
  height: 9px;
  border-radius: 6px;
  overflow: hidden;
  background: #0e1622;
}
.bp-fill {
  height: 100%;
  transition: width 0.4s cubic-bezier(0.2, 1, 0.4, 1);
}
.bp-fill.p0 {
  background: linear-gradient(90deg, #2f7bff, #5aa0ff);
}
.bp-fill.p1 {
  background: linear-gradient(90deg, #ff6b7a, #ff3b5c);
}
.bet-pool-nums {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 800;
}
.bet-pool-nums #bpPn {
  color: #6fa8ff;
}
.bet-pool-nums #bpEn {
  color: #ff8a96;
}
.bet-pool-vs {
  font-size: 10px;
  opacity: 0.5;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.bet-controls {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bet-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.bet-step {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  background: #2a3a52;
  color: #fff;
  line-height: 1;
}
.bet-step:active {
  transform: scale(0.92);
}
.bet-step:disabled {
  opacity: 0.35;
  cursor: default;
}
.bet-amt {
  font-size: 15px;
  font-weight: 800;
  min-width: 64px;
  text-align: center;
}
.bet-actions {
  display: flex;
  gap: 8px;
}
.bet-btn {
  flex: 1;
  border: 0;
  cursor: pointer;
  border-radius: 11px;
  padding: 10px 6px;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bet-btn.p0 {
  background: linear-gradient(180deg, #2f7bff, #2160d8);
}
.bet-btn.p1 {
  background: linear-gradient(180deg, #ff5d6c, #d8344a);
}
.bet-btn:active {
  transform: scale(0.96);
}
.bet-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.bet-bal {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.7;
}
.bet-mine {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #8fe0a0;
  padding: 4px 0;
}
.bet-msg {
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #ff9aa6;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}
.bet-msg.show {
  height: auto;
  opacity: 1;
  margin-top: 4px;
}
.bet-toast {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%);
  z-index: 6;
  font-weight: 900;
  font-size: 22px;
  padding: 10px 18px;
  border-radius: 14px;
  text-shadow: 0 2px 0 #000;
  animation: bettoast 2.6s ease forwards;
  pointer-events: none;
}
.bet-toast.win {
  color: #1a1a1a;
  background: linear-gradient(180deg, #ffe27a, #ffc93d);
}
.bet-toast.loss {
  color: #fff;
  background: linear-gradient(180deg, #ff5d6c, #c8293e);
}
.bet-toast.refund {
  color: #fff;
  background: linear-gradient(180deg, #5aa0ff, #2160d8);
}
@keyframes bettoast {
  0% {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.9);
  }
  12% {
    opacity: 1;
    transform: translate(-50%) scale(1);
  }
  80% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}
.mp-trophy-delta {
  font-size: 22px;
  font-weight: 900;
  margin: 6px 0 2px;
}
.mp-trophy-delta.up {
  color: #ffd23d;
}
.mp-trophy-delta.down {
  color: #ff5d6c;
}
.mp-trophy-total {
  font-size: 14px;
  opacity: 0.6;
  font-weight: 700;
}
.mp-reward {
  font-size: 16px;
  font-weight: 800;
  color: #ffe27a;
  margin-bottom: 4px;
}
.mp-road-hint {
  font-size: 13px;
  font-weight: 800;
  color: #9b7bff;
  background: #7b3dff1f;
  padding: 7px 12px;
  border-radius: 10px;
  margin: 8px 0;
}
.play-sub-row.two {
  grid-template-columns: 1fr 1fr;
}
.road-modal,
.lb-modal {
  width: 100%;
  max-width: 380px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1d2838, #141d2a);
  border: 2.5px solid #3a5476;
  border-radius: 20px;
  padding: 18px;
  animation: pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.road-cur {
  font-size: 13px;
  opacity: 0.8;
  margin: 4px 0 12px;
}
.road-cur b {
  color: var(--gold, #ffd23d);
}
.road-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.road-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 13px;
  background: #ffffff09;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  opacity: 0.55;
}
.road-item.reached {
  opacity: 1;
  border-color: #ffd23d4d;
}
.road-item.claimed {
  opacity: 0.5;
}
.road-node {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: #0000004d;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.road-item.reached .road-node {
  border-color: var(--gold, #ffd23d);
  box-shadow: 0 0 10px #ffd23d4d;
}
.road-mid {
  flex: 1;
  min-width: 0;
}
.road-label {
  font-size: 13px;
  font-weight: 800;
}
.road-tr {
  font-size: 11px;
  opacity: 0.6;
}
.road-claim {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  color: #1a1206;
  background: linear-gradient(135deg, #ffe27a, #ffc01f);
  box-shadow: 0 3px #b8860b;
}
.road-claim:active {
  transform: translateY(2px);
  box-shadow: 0 1px #b8860b;
}
.road-state {
  font-size: 18px;
  opacity: 0.7;
  width: 30px;
  text-align: center;
}
.lb-tabs {
  display: flex;
  gap: 6px;
  margin: 10px 0 4px;
}
.lb-tab {
  flex: 1;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 8px 6px;
  font-weight: 800;
  font-size: 13px;
  color: #fff9;
  background: #ffffff0d;
  transition: background 0.15s, color 0.15s;
}
.lb-tab.on {
  background: #ffd23d29;
  color: #ffd23d;
}
.lb-tab:active {
  transform: scale(0.97);
}
.lb-sub {
  font-size: 12px;
  opacity: 0.55;
  margin: 4px 0 12px;
}
.lb-name .lb-sub-n {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.5;
  margin-left: 6px;
}
.lb-tr.pos {
  color: #6ee787;
}
.lb-tr.neg {
  color: #ff8a96;
}
.lb-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.lb-loading {
  text-align: center;
  opacity: 0.5;
  padding: 30px;
  font-size: 14px;
}
.lb-myrank {
  text-align: center;
  font-size: 13px;
  background: #3fa9ff1f;
  padding: 8px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.lb-myrank b {
  color: var(--blue, #3fa9ff);
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 12px;
  background: #ffffff09;
  border: 1.5px solid rgba(255, 255, 255, 0.05);
}
.lb-row.top1 {
  border-color: #ffd23d;
  background: #ffd23d1a;
}
.lb-row.top2 {
  border-color: #c8d2e0;
}
.lb-row.top3 {
  border-color: #d99a5c;
}
.lb-pos {
  width: 30px;
  text-align: center;
  font-weight: 900;
  font-size: 14px;
}
.lb-av {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  object-fit: contain;
}
.lb-name {
  flex: 1;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-tr {
  font-weight: 900;
  font-size: 13px;
  color: var(--gold, #ffd23d);
}
.qm-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0 6px;
}
.qm-tab {
  background: #ffffff0f;
  border: 0;
  color: #cdd6e3;
  font-weight: 800;
  font-size: 13px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}
.qm-tab.on {
  background: linear-gradient(135deg, #3fa9ff, #2f7fff);
  color: #fff;
  box-shadow: 0 2px #1c5bbf;
}
.lb-hof {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.08);
}
.lb-hof-title {
  font-size: 13px;
  font-weight: 900;
  color: #d99a5c;
  margin-bottom: 8px;
  text-align: center;
}
.lb-hof-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 5px 8px;
  opacity: 0.75;
  border-radius: 8px;
}
.lb-hof-row:nth-child(2n) {
  background: #ffffff08;
}
.chest-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.chest-slot {
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  position: relative;
  background: #ffffff0a;
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  transition: transform 0.1s;
}
.chest-slot:active {
  transform: scale(0.95);
}
.chest-slot.empty {
  cursor: default;
}
.chest-slot.empty .cs-empty {
  font-size: 22px;
  opacity: 0.25;
  font-weight: 900;
}
.chest-slot.locked,
.chest-slot.unlocking,
.chest-slot.ready {
  border-style: solid;
  border-color: var(--cc, #888);
  background: radial-gradient(
    circle at 50% 35%,
    color-mix(in srgb, var(--cc) 25%, transparent),
    #ffffff0a
  );
}
.chest-slot.ready {
  animation: chestPulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 14px color-mix(in srgb, var(--cc) 50%, transparent);
}
@keyframes chestPulse {
  0%,
  to {
    box-shadow: 0 0 10px color-mix(in srgb, var(--cc) 35%, transparent);
  }
  50% {
    box-shadow: 0 0 20px color-mix(in srgb, var(--cc) 70%, transparent);
  }
}
.cs-ic {
  font-size: 26px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}
.cs-sub {
  font-size: 9px;
  font-weight: 800;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.cs-sub.rdy {
  color: var(--gold, #ffd23d);
  opacity: 1;
  font-size: 10px;
}
.chestmgr-modal {
  width: 100%;
  max-width: 320px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, #1d2838, #141d2a);
  border: 2.5px solid var(--cc, #3a5476);
  border-radius: 22px;
  padding: 26px 22px;
  animation: pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.cm-icon {
  font-size: 64px;
  animation: bob 1.6s ease-in-out infinite;
}
.cm-name {
  font-size: 20px;
  font-weight: 900;
  margin-top: 4px;
}
.cm-cards {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 18px;
}
.cm-timer {
  font-size: 26px;
  font-weight: 900;
  color: var(--cc, #ffd23d);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.cm-start,
.cm-open {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  color: #1a1206;
  background: linear-gradient(135deg, #ffe27a, #ffc01f);
  box-shadow: 0 4px #b8860b;
  margin-bottom: 8px;
}
.cm-open {
  font-size: 18px;
  animation: chestPulse 1.2s infinite;
}
.cm-start:active,
.cm-open:active {
  transform: translateY(2px);
  box-shadow: 0 2px #b8860b;
}
.cm-skip {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 11px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: #fff;
  background: #7b3dff40;
  border: 1.5px solid #7b3dff;
}
.mp-share,
.share-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 11px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  background: #000;
  border: 1.5px solid #2a2a2a;
  margin-top: 8px;
}
.mp-share:active,
.share-btn:active {
  transform: translateY(1px);
}
.share-modal {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, #1d2838, #141d2a);
  border: 2.5px solid #3a5476;
  border-radius: 20px;
  padding: 18px;
  animation: pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.share-canvas {
  width: 100%;
  border-radius: 12px;
  margin: 6px 0 14px;
  display: block;
}
.share-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}
.share-x {
  border: 0;
  border-radius: 12px;
  padding: 13px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  background: #000;
  box-shadow: 0 3px #333;
}
.share-dl {
  border: 0;
  border-radius: 12px;
  padding: 13px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: #fff;
  background: #ffffff1a;
}
.share-x:active,
.share-dl:active {
  transform: translateY(2px);
}
.cs-ball {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}
.chest-slot.ready .cs-ball {
  animation: ballBob 1.1s ease-in-out infinite;
}
@keyframes ballBob {
  0%,
  to {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-3px) rotate(4deg);
  }
}
.cm-ball {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
  object-fit: contain;
  margin: 0 auto 2px;
  display: block;
  filter: drop-shadow(
    0 4px 10px color-mix(in srgb, var(--cc) 60%, transparent)
  );
  animation: bob 1.6s ease-in-out infinite;
}
.chest-big-ball {
  width: 132px;
  height: 132px;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 0 26px var(--cc));
  animation: chestShake 1.6s ease-in-out infinite;
}
.road-img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.road-img.badge {
  width: 32px;
  height: 32px;
}
.chest-ic-ball {
  width: 54px;
  height: 54px;
  image-rendering: pixelated;
  object-fit: contain;
  margin: 0 auto 6px;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}
.chest-badge {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translate(-50%);
  font-size: 9px;
  font-weight: 800;
  background: #5bd97a2e;
  color: #7fe09a;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.chest {
  position: relative;
}
.chest.cooldown {
  opacity: 0.7;
}
.chest.cooldown .chest-ic-ball {
  filter: grayscale(0.4) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}
.drag-ghost {
  position: fixed;
  z-index: 999;
  width: 84px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.1) rotate(-4deg);
  opacity: 0.92;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  transition: none;
}
.coll-card.dragging-src {
  opacity: 0.3;
}
.deck-card.drop-target {
  outline: 3px solid var(--gold, #ffd23d);
  outline-offset: 1px;
  box-shadow: 0 0 16px #ffd23d80;
  transform: scale(1.06);
}
.deck-card.drop-target:after {
  content: "swap";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  background: #ffd23d2e;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.coll-grid .coll-card {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.coll-grid .coll-card img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
.deck-toggle {
  background: #ffffff14;
  border: 0;
  color: #cdd6e3;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  margin-left: 8px;
  flex-shrink: 0;
}
.deck-toggle:active {
  transform: scale(0.9);
}
.deck-head {
  gap: 6px;
}
.deck-head .avg {
  margin-left: auto;
}
.deck-collapsed .deck-grid {
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}
.deck-collapsed .deck-grid .nm {
  display: none;
}
.deck-collapsed .deck-grid .deck-card {
  padding: 2px;
}
.deck-collapsed .deck-grid .cost {
  width: 15px;
  height: 15px;
  font-size: 9px;
  top: -4px;
  left: -4px;
}
.deck-collapsed .swap-hint {
  display: none;
}
.deck-collapsed .deck-panel {
  padding-bottom: 8px;
}
