﻿:root {
  --bg: #05030d;
  --bg-soft: #0a0618;
  --cyan: #22e6ff;
  --magenta: #ff2e88;
  --purple: #8b5cff;
  --amber: #ffb020;
  --text: #eaf6ff;
  --muted: #8fa6c8;
  --line: rgba(34, 230, 255, 0.24);
  --panel: rgba(9, 6, 22, 0.86);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(72, 24, 120, 0.35), transparent 60%),
    radial-gradient(ellipse at 50% 110%, rgba(255, 46, 136, 0.18), transparent 55%),
    var(--bg);
}

#game {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.hidden {
  display: none !important;
}

/* ---------- 閻㈠娼板娑樻纯鐏?---------- */
.fx-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 38%, rgba(2, 0, 8, 0.62) 100%);
}

.fx-scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    rgba(180, 235, 255, 0.16) 0,
    rgba(180, 235, 255, 0.16) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

.flash {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 55%, rgba(255, 46, 136, 0.72), rgba(34, 230, 255, 0.18) 42%, transparent 70%);
}

.flash.is-active {
  animation: hit-flash 0.38s ease-out both;
}

@keyframes hit-flash {
  0% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
  }
}

/* ---------- HUD ---------- */
#hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(12px, 2.6vw, 26px) clamp(14px, 3vw, 34px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hud-stats {
  display: flex;
  gap: clamp(18px, 4vw, 52px);
  padding: 10px 16px;
  border: 1px solid rgba(34, 230, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(8, 6, 22, 0.62), rgba(4, 2, 10, 0.24));
  backdrop-filter: blur(8px);
}

.hud-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 108px;
}

.hud-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(143, 200, 255, 0.68);
  text-transform: uppercase;
}

.hud-value {
  font-size: clamp(1.45rem, 3.4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: #f4fbff;
  text-shadow:
    0 0 12px rgba(34, 230, 255, 0.55),
    0 0 30px rgba(34, 230, 255, 0.25);
}

.hud-value small {
  font-size: 0.5em;
  font-weight: 700;
  color: rgba(143, 200, 255, 0.75);
  margin-left: 2px;
}

.hud-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(151, 199, 255, 0.72);
  padding: 7px 11px;
  border: 1px solid rgba(34, 230, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 5, 18, 0.55);
  backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}

.chip b {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #d8f6ff;
}

.chip-coin b {
  color: var(--amber);
}

.coin-dot {
  color: var(--amber);
  text-shadow: 0 0 10px rgba(255, 176, 32, 0.8);
}

.icon-btn {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(34, 230, 255, 0.22);
  background: rgba(7, 5, 18, 0.55);
  color: #d8f6ff;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover {
  border-color: rgba(34, 230, 255, 0.6);
  background: rgba(20, 40, 70, 0.6);
  transform: translateY(-1px);
}

.icon-btn.is-muted {
  color: var(--magenta);
  border-color: rgba(255, 46, 136, 0.45);
}

#app[data-state="menu"] #hud,
#app[data-state="fatal"] #hud {
  opacity: 0;
  transform: translateY(-10px);
}

#app[data-state="paused"] #hud {
  opacity: 0.32;
}

#app[data-state="gameover"] #hud {
  opacity: 0.45;
}

/* ---------- 鐏炲繐绠烽敍鍫ｅ綅閸?/ 閺嗗倸浠?/ 缂佹挾鐣婚敍?---------- */
.screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(33, 14, 66, 0.32) 0%, rgba(6, 3, 16, 0.78) 62%, rgba(3, 1, 8, 0.94) 100%);
  backdrop-filter: blur(3px);
  overflow: hidden;
}

.screen-start {
  background:
    radial-gradient(ellipse at 50% 36%, rgba(46, 18, 90, 0.18) 0%, rgba(6, 3, 16, 0.58) 55%, rgba(3, 1, 8, 0.9) 100%);
  backdrop-filter: none;
}

.screen-inner {
  width: min(780px, 94vw);
  max-height: 100%;
  overflow-y: auto;
  text-align: center;
  padding: clamp(10px, 2vw, 18px) clamp(8px, 2vw, 22px);
  scrollbar-width: none;
}

.screen-inner::-webkit-scrollbar {
  display: none;
}

.kicker {
  margin: 0 0 14px;
  font-size: clamp(10px, 1.6vw, 12px);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(120, 230, 255, 0.82);
  text-shadow: 0 0 16px rgba(34, 230, 255, 0.45);
}

.kicker.danger {
  color: var(--magenta);
  text-shadow: 0 0 18px rgba(255, 46, 136, 0.6);
}

.logo {
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 5.8rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffffff 4%, #c9f8ff 40%, #74dcff 66%, #ff9ecb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 22px rgba(34, 230, 255, 0.28))
    drop-shadow(0 0 60px rgba(255, 46, 136, 0.22));
}

.logo span {
  display: block;
  margin-top: 12px;
  font-size: clamp(0.7rem, 2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
  text-shadow:
    0 0 12px rgba(34, 230, 255, 0.85),
    0 0 40px rgba(34, 230, 255, 0.35);
}

.tagline {
  margin: clamp(14px, 2.4vw, 22px) auto 0;
  max-width: 560px;
  font-size: clamp(0.85rem, 2vw, 0.98rem);
  line-height: 1.9;
  color: #b7c9e6;
}

.keyhints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  margin: clamp(18px, 3vw, 28px) 0 0;
}

.keyhint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(34, 230, 255, 0.16);
  border-radius: 10px;
  background: rgba(9, 6, 22, 0.55);
  font-size: 12px;
  color: #a9bddb;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid rgba(160, 230, 255, 0.35);
  border-bottom-width: 3px;
  background: rgba(20, 34, 58, 0.8);
  color: #e6faff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(34, 230, 255, 0.12);
}

.keyhint span {
  margin-left: 2px;
  letter-spacing: 0.06em;
}

.btn-primary {
  pointer-events: auto;
  position: relative;
  display: inline-block;
  margin-top: clamp(20px, 3vw, 30px);
  padding: 15px clamp(30px, 6vw, 52px);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #041018;
  font-family: inherit;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(105deg, #22e6ff 0%, #9af5ff 42%, #ff70ad 100%);
  box-shadow:
    0 0 26px rgba(34, 230, 255, 0.5),
    0 0 70px rgba(255, 46, 136, 0.28),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: neon-breathe 3.4s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.08);
  box-shadow:
    0 0 34px rgba(34, 230, 255, 0.68),
    0 0 94px rgba(255, 46, 136, 0.4),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary span {
  display: block;
  margin-top: 3px;
  font-size: 0.52em;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  opacity: 0.68;
}

@keyframes neon-breathe {
  0%,
  100% {
    box-shadow:
      0 0 26px rgba(34, 230, 255, 0.45),
      0 0 70px rgba(255, 46, 136, 0.24),
      inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  }
  50% {
    box-shadow:
      0 0 34px rgba(34, 230, 255, 0.62),
      0 0 86px rgba(255, 46, 136, 0.36),
      inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  }
}

.btn-ghost {
  pointer-events: auto;
  display: inline-block;
  margin-top: 12px;
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px solid rgba(34, 230, 255, 0.28);
  background: rgba(8, 6, 20, 0.55);
  color: #bfe9ff;
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-ghost:hover {
  border-color: rgba(255, 46, 136, 0.55);
  background: rgba(255, 46, 136, 0.1);
}

.best-line {
  margin: 18px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(143, 166, 200, 0.78);
  text-transform: uppercase;
}

.best-line b {
  margin-left: 6px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(34, 230, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

.hint-mobile {
  display: none;
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(143, 166, 200, 0.8);
}

.hint-foot {
  margin: 12px 0 0;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(143, 166, 200, 0.45);
  text-transform: uppercase;
}

/* ---------- 闂堛垺婢?---------- */
.panel {
  position: relative;
  width: min(560px, 92vw);
  overflow: hidden;
  padding: clamp(26px, 4.6vw, 46px);
  border: 1px solid rgba(34, 230, 255, 0.28);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(15, 10, 34, 0.94), rgba(6, 4, 16, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 46, 136, 0.09),
    0 30px 90px rgba(0, 0, 0, 0.7),
    inset 0 0 70px rgba(34, 230, 255, 0.05);
  backdrop-filter: blur(14px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(34, 230, 255, 0.09), transparent 36%, transparent 64%, rgba(255, 46, 136, 0.1));
}

.panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 18px rgba(34, 230, 255, 0.4),
    0 0 44px rgba(255, 46, 136, 0.25);
}

.panel-text {
  margin: 14px 0 6px;
  color: #a9bddb;
  font-size: 0.9rem;
  line-height: 1.8;
}

.panel-over {
  border-color: rgba(255, 46, 136, 0.38);
  box-shadow:
    0 0 0 1px rgba(34, 230, 255, 0.1),
    0 30px 90px rgba(0, 0, 0, 0.72),
    inset 0 0 80px rgba(255, 46, 136, 0.06);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 12px;
}

.result-grid > div {
  padding: 13px 10px;
  border: 1px solid rgba(34, 230, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.result-grid span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(143, 166, 200, 0.75);
}

.result-grid b {
  display: block;
  margin-top: 5px;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #f4fbff;
  text-shadow: 0 0 14px rgba(34, 230, 255, 0.45);
}

.newbest {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--amber);
  text-shadow: 0 0 16px rgba(255, 176, 32, 0.65);
  animation: newbest-pulse 1.2s ease-in-out infinite;
}

@keyframes newbest-pulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- 閹绘劗銇?/ 鐟欙附鎳滈幐澶愭尦 ---------- */
.toast {
  position: absolute;
  top: 22%;
  left: 50%;
  z-index: 40;
  transform: translate(-50%, 10px);
  font-size: clamp(2.2rem, 9vw, 4.6rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #f2ffff;
  opacity: 0;
  pointer-events: none;
  text-shadow:
    0 0 20px rgba(34, 230, 255, 0.9),
    0 0 60px rgba(255, 46, 136, 0.55);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

#touch-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 12;
  display: none;
  justify-content: space-between;
  padding: 0 18px;
  pointer-events: none;
}

body.is-touch #app[data-state="playing"] #touch-controls {
  display: flex;
}

.touch-cluster {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.touch-cluster button {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(34, 230, 255, 0.34);
  background: rgba(8, 5, 20, 0.55);
  color: #dff7ff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(34, 230, 255, 0.16);
  touch-action: none;
  cursor: pointer;
}

.touch-cluster button:active {
  background: rgba(34, 230, 255, 0.28);
  border-color: rgba(34, 230, 255, 0.8);
}

/* ---------- 閼锋潙鎳￠柨娆掝嚖 ---------- */
.fatal {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 1, 9, 0.95);
}

.fatal-card {
  width: min(520px, 92vw);
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
  border: 1px solid rgba(255, 46, 136, 0.4);
  border-radius: 20px;
  background: rgba(12, 7, 24, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}

.fatal-card h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: var(--magenta);
}

.fatal-card p {
  margin: 0 0 8px;
  color: #b7c9e6;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ---------- 閸濆秴绨插?---------- */
@media (pointer: coarse) {
  .keyhints {
    display: none;
  }

  .hint-mobile {
    display: block;
  }
}

body.is-touch .keyhints {
  display: none;
}

body.is-touch .hint-mobile {
  display: block;
}

@media (max-width: 720px) {
  .hud-stats {
    gap: 16px;
    padding: 8px 12px;
  }

  .hud-block {
    min-width: 82px;
  }

  .hud-label {
    font-size: 8.5px;
    letter-spacing: 0.14em;
  }

  .chip {
    padding: 6px 9px;
  }

  .chip:first-child {
    display: none;
  }

  .screen-inner {
    padding: 8px 4px;
  }

  .result-grid {
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .hud-value {
    font-size: 1.25rem;
  }

  .hud-stats {
    gap: 10px;
  }

  .hud-block {
    min-width: 70px;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }

  .logo {
    letter-spacing: 0.01em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .newbest {
    animation: none;
  }

  .flash.is-active {
    animation-duration: 0.15s;
  }
}

/* ---------- 娴滆櫣澧?/ 閸︾儤娅?/ 缁夘垰鍨庣化鑽ょ埠 ---------- */
.chip-points b {
  color: var(--amber);
}

#app[data-state="locker"] #hud {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

#app[data-state="locker"] #touch-controls {
  display: none;
}

.loadout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(14px, 2.2vw, 20px);
}

.loadout-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 14px;
  border: 1px solid rgba(34, 230, 255, 0.18);
  background: rgba(8, 6, 20, 0.55);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.loadout-btn:hover {
  border-color: rgba(34, 230, 255, 0.55);
  background: rgba(18, 30, 52, 0.6);
  transform: translateY(-1px);
}

.avatar-dot {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--avatar-primary, #22e6ff), transparent 52%),
    radial-gradient(circle at 70% 75%, var(--avatar-secondary, #ff2e88), transparent 55%),
    #070510;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 14px var(--avatar-primary, #22e6ff);
}

.avatar-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #071018;
  box-shadow: 0 0 6px var(--avatar-primary, #22e6ff);
}

.scene-dot {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 56%),
    linear-gradient(150deg, var(--scene-1, #22e6ff), var(--scene-2, #ff2e88) 55%, var(--scene-3, #05030d));
  box-shadow: 0 0 12px var(--scene-1, #22e6ff);
}

.loadout-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.loadout-text small {
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: rgba(143, 166, 200, 0.7);
}

.loadout-text b {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #eafcff;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 15px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(143, 166, 200, 0.76);
  text-transform: uppercase;
}

.meta-line b {
  margin-left: 4px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(34, 230, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.meta-line span:last-child b {
  color: var(--amber);
  text-shadow: 0 0 12px rgba(255, 176, 32, 0.5);
}

.reward-line {
  margin: 4px 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(190, 215, 240, 0.8);
}

.reward-line b {
  color: var(--amber);
  font-size: 14px;
  text-shadow: 0 0 12px rgba(255, 176, 32, 0.5);
  font-variant-numeric: tabular-nums;
}

/* 閺囩銆傜€?*/
.screen-locker {
  place-items: center end;
  justify-items: end;
  padding: clamp(14px, 2.4vw, 32px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(100deg, rgba(3, 1, 8, 0) 0%, rgba(3, 1, 8, 0.12) 28%, rgba(3, 1, 8, 0.62) 50%, rgba(3, 1, 8, 0.94) 74%),
    radial-gradient(ellipse at 28% 38%, rgba(34, 20, 74, 0.28), transparent 58%);
  backdrop-filter: none;
}

.locker {
  width: min(760px, 94vw);
  max-height: calc(100vh - 2 * clamp(14px, 2.4vw, 32px));
  overflow-y: auto;
  padding: clamp(18px, 2.8vw, 32px);
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 230, 255, 0.3) transparent;
}

.locker::-webkit-scrollbar {
  width: 6px;
}

.locker::-webkit-scrollbar-thumb {
  background: rgba(34, 230, 255, 0.3);
  border-radius: 999px;
}

.locker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.locker-head .kicker {
  margin-bottom: 6px;
}

.locker-head h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.locker-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet {
  padding: 8px 12px;
  border: 1px solid rgba(255, 176, 32, 0.32);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255, 212, 121, 0.8);
  background: rgba(32, 22, 6, 0.32);
  white-space: nowrap;
}

.wallet b {
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.locker-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px;
}

.tab {
  pointer-events: auto;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(34, 230, 255, 0.16);
  background: rgba(8, 6, 20, 0.55);
  color: rgba(190, 220, 245, 0.76);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
  border-color: rgba(34, 230, 255, 0.45);
  color: #eafcff;
}

.tab.is-active {
  color: #041018;
  font-weight: 800;
  border-color: transparent;
  background: linear-gradient(105deg, #22e6ff, #9af5ff);
  box-shadow: 0 0 18px rgba(34, 230, 255, 0.3);
}

.locker-body {
  max-height: calc(100vh - 350px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 230, 255, 0.25) transparent;
}

.locker-body::-webkit-scrollbar {
  width: 5px;
}

.locker-body::-webkit-scrollbar-thumb {
  background: rgba(34, 230, 255, 0.25);
  border-radius: 999px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid rgba(34, 230, 255, 0.12);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.card.is-equipped {
  border-color: rgba(34, 230, 255, 0.62);
  background: linear-gradient(160deg, rgba(34, 230, 255, 0.08), rgba(255, 255, 255, 0.015));
  box-shadow: 0 0 26px rgba(34, 230, 255, 0.12);
}

.card.is-locked {
  opacity: 0.72;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  position: relative;
  flex: 0 0 54px;
  height: 60px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.3));
  overflow: hidden;
}

.avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 78%, var(--avatar-primary, #22e6ff) 0%, transparent 62%);
  opacity: 0.26;
}

.avatar-head {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border-radius: 50%;
  background: var(--avatar-suit, #101a2e);
  border: 1px solid var(--avatar-primary, #22e6ff);
  box-shadow: 0 0 8px var(--avatar-primary, #22e6ff);
}

.avatar-body {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 24px;
  height: 23px;
  margin-left: -12px;
  border-radius: 6px 6px 5px 5px;
  background: var(--avatar-suit, #101a2e);
  border: 1px solid var(--avatar-primary, #22e6ff);
  box-shadow: inset 0 -7px 0 var(--avatar-secondary, #ff2e88);
}

.avatar-leg {
  position: absolute;
  bottom: 5px;
  width: 6px;
  height: 13px;
  border-radius: 3px;
  background: var(--avatar-primary, #22e6ff);
  opacity: 0.8;
}

.avatar-leg.l {
  left: 17px;
}

.avatar-leg.r {
  right: 17px;
}

.avatar-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 1, 8, 0.55);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.78);
}

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

.card-info h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f2fbff;
}

.card-info .card-tag {
  margin: 2px 0 0;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(143, 166, 200, 0.62);
}

.card-desc {
  margin: 6px 0 0;
  font-size: 10.5px;
  line-height: 1.55;
  color: rgba(174, 196, 225, 0.7);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.price {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--amber);
  white-space: nowrap;
}

.mini-btn {
  pointer-events: auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 230, 255, 0.35);
  background: rgba(34, 230, 255, 0.08);
  color: #dffaff;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mini-btn:hover {
  background: rgba(34, 230, 255, 0.2);
  border-color: rgba(34, 230, 255, 0.7);
}

.mini-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: #8fa6c8;
}

.equipped-tag {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(34, 230, 255, 0.35);
  background: rgba(34, 230, 255, 0.08);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  white-space: nowrap;
}

.scene-swatch {
  position: relative;
  height: 62px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: linear-gradient(150deg, var(--scene-1, #22e6ff), var(--scene-2, #ff2e88) 52%, var(--scene-3, #05030d));
}

.scene-swatch::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
}

.scene-swatch::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.scene-card .card-info {
  padding-top: 2px;
}

.locker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.locker-tip {
  max-width: 58%;
  margin: 0;
  font-size: 9.5px;
  line-height: 1.65;
  color: rgba(143, 166, 200, 0.66);
}

.locker-foot .btn-primary {
  margin-top: 0;
  padding: 12px 26px;
  font-size: 0.78rem;
  animation: none;
}

@media (max-width: 1240px) {
  .screen-locker {
    place-items: center;
    justify-items: center;
    padding: 12px;
    background: rgba(3, 1, 8, 0.9);
  }

  .locker {
    width: 96vw;
    max-height: calc(100vh - 24px);
  }

  .locker-body {
    max-height: 46vh;
  }
}

@media (max-width: 720px) {
  .chip-points {
    display: none;
  }

  .loadout {
    gap: 8px;
  }

  .loadout-btn {
    flex: 1 1 138px;
    justify-content: flex-start;
  }

  .meta-line {
    gap: 6px 16px;
  }
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 10px;
  }

  .card-desc {
    display: none;
  }

  .locker {
    padding: 16px;
  }

  .locker-head {
    gap: 8px;
  }

  .locker-head-right {
    gap: 6px;
  }

  .wallet {
    padding: 6px 9px;
    font-size: 8px;
  }

  .locker-tabs {
    margin: 14px 0 10px;
  }

  .locker-body {
    max-height: 44vh;
  }

  .locker-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
  }

  .locker-tip {
    max-width: none;
    text-align: center;
  }

  .locker-foot .btn-primary {
    width: 100%;
  }

  .locker-head .kicker {
    font-size: 9px;
    letter-spacing: 0.22em;
  }
}




