:root {
  --c: #00f0ff;
  --m: #ff2bd6;
  --y: #ffe14d;
  --r: #ff3355;
  --g: #3dff8a;
  --o: #ff9a1f;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #05010f;
  font-family: Rajdhani, system-ui, sans-serif;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}
canvas#gl {
  display: block;
  position: fixed;
  inset: 0;
}
.hidden {
  display: none !important;
}

#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
#crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  --gap: 8px;
}
#crosshair i {
  position: absolute;
  background: #fff;
  box-shadow:
    0 0 6px var(--c),
    0 0 2px #000;
}
#crosshair .t,
#crosshair .b {
  width: 2px;
  height: 9px;
  left: -1px;
}
#crosshair .l,
#crosshair .r {
  height: 2px;
  width: 9px;
  top: -1px;
}
#crosshair .t {
  bottom: var(--gap);
}
#crosshair .b {
  top: var(--gap);
}
#crosshair .l {
  right: var(--gap);
}
#crosshair .r {
  left: var(--gap);
}
#crosshair .dot {
  width: 3px;
  height: 3px;
  left: -1.5px;
  top: -1.5px;
  border-radius: 50%;
}
#hitmarker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  opacity: 0;
}
#hitmarker::before,
#hitmarker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  background: linear-gradient(#fff 0 32%, transparent 32% 68%, #fff 68%);
}
#hitmarker::before {
  transform: rotate(45deg);
}
#hitmarker::after {
  transform: rotate(-45deg);
}
#hitmarker.show {
  animation: hm 0.22s ease-out;
}
#hitmarker.weak::before,
#hitmarker.weak::after {
  background: linear-gradient(var(--y) 0 32%, transparent 32% 68%, var(--y) 68%);
}
#hitmarker.kill {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
}
#hitmarker.kill::before,
#hitmarker.kill::after {
  background: linear-gradient(var(--r) 0 34%, transparent 34% 66%, var(--r) 66%);
  width: 3px;
}
@keyframes hm {
  0% {
    opacity: 1;
    transform: scale(1.35);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

#topbar {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
#mapLbl {
  font-family: Orbitron;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: #9a8fc0;
  margin-bottom: 3px;
}
#waveLbl {
  font-family: Orbitron;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 6px;
  text-shadow: 0 0 12px var(--m);
}
#enemLbl {
  font-size: 15px;
  letter-spacing: 3px;
  color: #ffb4ee;
  margin-top: 2px;
}
#score {
  position: absolute;
  top: 18px;
  right: 24px;
  text-align: right;
}
#scoreVal {
  font-family: Orbitron;
  font-weight: 900;
  font-size: 30px;
  text-shadow: 0 0 14px var(--c);
}
#combo {
  font-family: Orbitron;
  font-weight: 700;
  font-size: 18px;
  color: var(--y);
  text-shadow: 0 0 10px var(--o);
  transition: transform 0.1s;
}
#comboBar {
  height: 3px;
  background: var(--y);
  margin-left: auto;
  width: 0;
  box-shadow: 0 0 8px var(--y);
}
#best {
  font-size: 13px;
  letter-spacing: 2px;
  color: #9a8fc0;
}

#vitals {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 300px;
}
.barRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.barRow .lbl {
  font-family: Orbitron;
  font-size: 11px;
  width: 44px;
  letter-spacing: 2px;
  color: #cfc6ff;
}
.bar {
  flex: 1;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
  position: relative;
  overflow: hidden;
}
.bar > div {
  height: 100%;
  transition: width 0.12s;
}
#hpFill {
  background: linear-gradient(90deg, #ff2b5a, #ff7a3d);
  box-shadow: 0 0 12px #ff2b5a;
}
#shFill {
  background: linear-gradient(90deg, #1aa8ff, #00f0ff);
}
.barRow .val {
  font-family: Orbitron;
  font-weight: 700;
  font-size: 18px;
  width: 46px;
  text-align: right;
}
#abil {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.ab {
  font-family: Orbitron;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 5px 9px;
  border: 1px solid rgba(0, 240, 255, 0.5);
  background: rgba(0, 240, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.ab .cd {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  width: 0;
}
.ab span {
  position: relative;
}

#weapon {
  position: absolute;
  right: 24px;
  bottom: 24px;
  text-align: right;
}
#wName {
  font-family: Orbitron;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--c);
}
#ammo {
  font-family: Orbitron;
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
}
#ammo small {
  font-size: 20px;
  color: #a99fd6;
  font-weight: 500;
}
#ammo.low {
  color: var(--r);
  text-shadow: 0 0 12px var(--r);
}
#slots {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 8px;
}
.slot {
  font-family: Orbitron;
  font-size: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #9a90c8;
  background: rgba(10, 0, 30, 0.4);
}
.slot.on {
  border-color: var(--c);
  color: #fff;
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}
#reload {
  position: absolute;
  left: 50%;
  top: calc(50% + 42px);
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
}
#reload div {
  height: 100%;
  background: var(--c);
  width: 0;
  box-shadow: 0 0 8px var(--c);
}
#reloadTxt {
  position: absolute;
  left: 50%;
  top: calc(50% + 50px);
  transform: translateX(-50%);
  font-family: Orbitron;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--c);
}
#radar {
  position: absolute;
  left: 24px;
  top: 18px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(10, 0, 30, 0.45);
  border: 1px solid rgba(255, 43, 214, 0.45);
  box-shadow:
    0 0 18px rgba(255, 43, 214, 0.25),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
}
#bossbar {
  position: absolute;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 60vw);
  text-align: center;
}
#bossName {
  font-family: Orbitron;
  font-weight: 900;
  letter-spacing: 8px;
  font-size: 14px;
  color: var(--m);
  text-shadow: 0 0 10px var(--m);
}
#bossbar .bar {
  height: 12px;
  margin-top: 6px;
  clip-path: polygon(2% 0, 98% 0, 100% 100%, 0 100%);
}
#bossFill {
  background: linear-gradient(90deg, #ff2bd6, #ff3355);
  box-shadow: 0 0 14px var(--m);
}
#feed {
  position: absolute;
  right: 24px;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.fd {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  background: linear-gradient(90deg, transparent, rgba(255, 43, 214, 0.25));
  animation: fd 3s forwards;
}
.fd b {
  color: var(--y);
}
@keyframes fd {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  8% {
    opacity: 1;
    transform: none;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
#banner {
  position: absolute;
  top: 28%;
  left: 0;
  right: 0;
  text-align: center;
  opacity: 0;
}
#banner.show {
  animation: bn var(--d, 2.6s) forwards;
}
#bTitle {
  font-family: Orbitron;
  font-weight: 900;
  font-size: clamp(34px, 6vw, 76px);
  letter-spacing: 0.18em;
  text-shadow:
    0 0 18px var(--m),
    0 0 40px var(--m);
}
#bSub {
  font-family: Orbitron;
  font-size: clamp(13px, 1.6vw, 18px);
  letter-spacing: 0.4em;
  color: var(--c);
  margin-top: 8px;
}
@keyframes bn {
  0% {
    opacity: 0;
    transform: scale(1.4);
    filter: blur(8px);
  }
  10% {
    opacity: 1;
    transform: none;
    filter: none;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}
#pups {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.pu {
  font-family: Orbitron;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 12px;
  border: 1px solid;
  position: relative;
  overflow: hidden;
}
.pu .t {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
}
#vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(255, 0, 40, 0.75) 100%);
  opacity: 0;
}
#lowhp {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(160, 0, 20, 0.6) 100%);
  opacity: 0;
}
#dmgDirs {
  position: absolute;
  left: 50%;
  top: 50%;
}
.dd {
  position: absolute;
  left: -60px;
  top: -160px;
  width: 120px;
  height: 40px;
  transform-origin: 60px 160px;
  animation: dd 1s forwards;
}
.dd::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 5px solid var(--r);
  border-radius: 50% 50% 0 0;
  filter: drop-shadow(0 0 6px var(--r));
}
@keyframes dd {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
#scope {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.15s;
  background: radial-gradient(circle at center, transparent 0 26vh, rgba(0, 0, 0, 0.92) 26.3vh);
}
#scope::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52vh;
  height: 52vh;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 43, 214, 0.7);
  box-shadow:
    0 0 20px rgba(255, 43, 214, 0.5),
    inset 0 0 40px rgba(255, 43, 214, 0.2);
}
#scope::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52vh;
  height: 1px;
  transform: translate(-50%, -50%);
  background: rgba(255, 43, 214, 0.6);
}
#dmgNums {
  position: absolute;
  inset: 0;
}
.dn {
  position: absolute;
  font-family: Orbitron;
  font-weight: 900;
  font-size: 16px;
  text-shadow:
    0 0 6px #000,
    0 0 10px currentColor;
  will-change: transform, opacity;
  white-space: nowrap;
}
#fps {
  position: absolute;
  left: 24px;
  top: 194px;
  font-size: 12px;
  color: #7f76a8;
  letter-spacing: 1px;
}
#hint {
  position: absolute;
  left: 50%;
  top: calc(50% + 80px);
  transform: translateX(-50%);
  font-family: Orbitron;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--g);
  text-shadow: 0 0 8px var(--g);
  opacity: 0;
  transition: opacity 0.2s;
}
#flash {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}

.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(30, 0, 60, 0.3), rgba(5, 0, 15, 0.82));
  backdrop-filter: blur(2px);
}
.panel {
  width: min(1060px, 95vw);
  max-height: 96vh;
  overflow: auto;
  padding: 22px 30px;
}
.title {
  font-family: Orbitron;
  font-weight: 900;
  font-size: clamp(44px, 8vw, 100px);
  letter-spacing: 0.12em;
  line-height: 0.95;
  text-align: center;
  position: relative;
  color: #fff;
  text-shadow:
    0 0 20px var(--m),
    0 0 50px var(--m),
    0 0 90px #7a00ff;
}
.title .g1,
.title .g2 {
  position: absolute;
  inset: 0;
  opacity: 0.75;
  mix-blend-mode: screen;
}
.title .g1 {
  color: var(--c);
  animation: gl1 2.8s infinite steps(1);
}
.title .g2 {
  color: var(--m);
  animation: gl2 3.3s infinite steps(1);
}
@keyframes gl1 {
  0%,
  92% {
    transform: none;
    clip-path: inset(0 0 0 0);
  }
  93% {
    transform: translate(-6px, 2px);
    clip-path: inset(20% 0 55% 0);
  }
  95% {
    transform: translate(5px, -2px);
    clip-path: inset(60% 0 10% 0);
  }
  97% {
    transform: none;
  }
}
@keyframes gl2 {
  0%,
  88% {
    transform: none;
    clip-path: inset(0 0 0 0);
  }
  89% {
    transform: translate(6px, 0);
    clip-path: inset(40% 0 30% 0);
  }
  91% {
    transform: translate(-4px, 1px);
    clip-path: inset(5% 0 80% 0);
  }
  93% {
    transform: none;
  }
}
.sub {
  text-align: center;
  font-family: Orbitron;
  letter-spacing: 0.55em;
  color: var(--c);
  font-size: clamp(11px, 1.4vw, 15px);
  margin-top: 12px;
}
.btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 20px 0 16px;
  flex-wrap: wrap;
}
.btn {
  pointer-events: auto;
  cursor: pointer;
  font-family: Orbitron;
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 43, 214, 0.25), rgba(0, 240, 255, 0.25));
  border: 1px solid var(--m);
  padding: 15px 40px;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: all 0.15s;
  text-shadow: 0 0 8px var(--m);
}
.btn:hover {
  background: linear-gradient(90deg, rgba(255, 43, 214, 0.55), rgba(0, 240, 255, 0.55));
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 43, 214, 0.6);
}
.btn.sec {
  border-color: var(--c);
  font-size: 13px;
  padding: 12px 26px;
  text-shadow: 0 0 8px var(--c);
}
.maps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 6px;
}
@media (max-width: 820px) {
  .maps {
    grid-template-columns: 1fr 1fr;
  }
}
.mapc {
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 12px 10px;
  min-height: 118px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  text-align: left;
  color: #fff;
  font-family: Rajdhani;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.mapc .n {
  font-family: Orbitron;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 14px;
  text-shadow:
    0 0 10px #000,
    0 0 3px #000;
}
.mapc .d {
  font-size: 13px;
  line-height: 1.2;
  margin-top: 4px;
  text-shadow:
    0 1px 3px #000,
    0 0 6px #000;
}
.mapc .tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: Orbitron;
  font-size: 9px;
  letter-spacing: 0.15em;
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.mapc.on {
  border-color: #fff;
  box-shadow:
    0 0 0 2px var(--m),
    0 0 26px rgba(255, 43, 214, 0.65);
}
.mapc:hover {
  transform: translateY(-3px);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}
@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 0, 35, 0.55);
  padding: 14px 18px;
}
.card h3 {
  font-family: Orbitron;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--m);
  margin-bottom: 10px;
}
.keys {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  font-size: 15px;
  align-items: center;
}
kbd {
  font-family: Orbitron;
  font-size: 10px;
  padding: 3px 7px;
  border: 1px solid rgba(0, 240, 255, 0.6);
  background: rgba(0, 240, 255, 0.1);
  color: var(--c);
  white-space: nowrap;
  justify-self: start;
}
.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  font-size: 15px;
}
.opt input[type="range"] {
  pointer-events: auto;
  width: 150px;
  accent-color: #ff2bd6;
}
.opt input[type="checkbox"] {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  accent-color: #00f0ff;
}
.opt output {
  font-family: Orbitron;
  font-size: 12px;
  width: 40px;
  text-align: right;
  color: var(--c);
}
.seg {
  display: flex;
  gap: 4px;
}
.seg button {
  pointer-events: auto;
  cursor: pointer;
  font-family: Orbitron;
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 6px 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cfc6ff;
}
.seg button.on {
  background: rgba(0, 240, 255, 0.22);
  border-color: var(--c);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
.qdesc {
  font-size: 12px;
  color: #9a8fc0;
  text-align: right;
  margin-top: -4px;
}
.foot {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #8d83b8;
  letter-spacing: 1px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0;
}
.stat {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 0, 35, 0.55);
  padding: 16px;
  text-align: center;
}
.stat .v {
  font-family: Orbitron;
  font-weight: 900;
  font-size: 30px;
  color: #fff;
  text-shadow: 0 0 10px var(--c);
}
.stat .k {
  font-family: Orbitron;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #a99fd6;
  margin-top: 4px;
}
#newBest {
  text-align: center;
  font-family: Orbitron;
  color: var(--y);
  letter-spacing: 0.4em;
  text-shadow: 0 0 12px var(--o);
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 14px;
  padding: 8px 16px;
  background: rgba(10, 0, 30, 0.85);
  border: 1px solid var(--c);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
body.lite .screen {
  backdrop-filter: none;
  background: rgba(5, 0, 15, 0.82);
}
body.lite .title .g1,
body.lite .title .g2 {
  display: none;
}
body.lite .title {
  text-shadow: 0 0 16px var(--m);
}
body.lite .fd {
  animation-duration: 2s;
}
#locker,
#board {
  background: rgba(6, 1, 18, 0.97) !important;
  backdrop-filter: none;
}
#menu .title {
  font-size: clamp(40px, 6.2vw, 84px);
}
.mapc {
  min-height: 96px !important;
}
#mutLbl {
  font-family: Orbitron;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #ffb020;
  text-shadow: 0 0 8px #ff6a1f;
  min-height: 0;
}
#abBox {
  border-color: rgba(255, 225, 77, 0.7);
  background: rgba(255, 225, 77, 0.1);
}
#abBox.on {
  box-shadow: 0 0 16px #ffe14d;
  background: rgba(255, 225, 77, 0.35);
}
#streak {
  position: absolute;
  top: 36%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: Orbitron;
  font-weight: 900;
  font-size: clamp(22px, 3.4vw, 42px);
  letter-spacing: 0.2em;
  color: #ffe14d;
  text-shadow: 0 0 16px #ff9a1f;
  opacity: 0;
}
#streak.show {
  animation: stk 1.4s forwards;
}
@keyframes stk {
  0% {
    opacity: 0;
    transform: scale(1.9);
  }
  12% {
    opacity: 1;
    transform: scale(1);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}
#abFx {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
body.adren #abFx {
  opacity: 1;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(255, 140, 20, 0.45));
}
body.lynx #abFx {
  opacity: 1;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(60, 255, 140, 0.35)),
    repeating-linear-gradient(0deg, rgba(60, 255, 140, 0.06) 0 2px, transparent 2px 4px);
}
body.ombre #abFx {
  opacity: 1;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(90, 20, 160, 0.65));
}
body.edit #abFx {
  opacity: 1;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(255, 43, 214, 0.4));
  animation: gl3 0.25s steps(2) infinite;
}
body.edit:not(.lite) #gl {
  animation: hue 1.4s linear infinite;
}
@keyframes hue {
  to {
    filter: hue-rotate(360deg);
  }
}
@keyframes gl3 {
  50% {
    transform: translate(3px, -2px);
  }
}
.prow {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.pseudo {
  font-family: Orbitron;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #cfc6ff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pseudo input {
  pointer-events: auto;
  font-family: Orbitron;
  font-size: 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--c);
  color: #fff;
  padding: 7px 10px;
  width: 170px;
  outline: none;
}
.lvl {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Orbitron;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.lbar {
  width: 150px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
}
#lvlFill {
  height: 100%;
  background: linear-gradient(90deg, #ff2bd6, #ffe14d);
  box-shadow: 0 0 8px #ff2bd6;
  width: 0;
}
#xpTxt {
  color: #9a8fc0;
  font-size: 10px;
}
h4.sec {
  font-family: Orbitron;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--m);
  margin: 16px 0 8px;
  text-align: center;
}
.classes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}
@media (max-width: 1000px) {
  .classes {
    grid-template-columns: repeat(3, 1fr);
  }
}
.arsenal {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1000px) {
  .arsenal {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pvol {
  max-width: 360px;
  margin: 14px auto 0;
}
.clsc {
  pointer-events: auto;
  cursor: pointer;
  text-align: left;
  color: #fff;
  font-family: Rajdhani;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, rgba(40, 10, 70, 0.7), rgba(10, 0, 25, 0.8));
  padding: 10px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  position: relative;
}
.clsc:hover {
  transform: translateY(-3px);
}
.clsc.on {
  border-color: #fff;
  box-shadow:
    0 0 0 2px var(--c),
    0 0 22px rgba(0, 240, 255, 0.5);
}
.clsc.locked {
  opacity: 0.55;
  filter: grayscale(0.7);
}
.clsc .ct {
  display: flex;
  align-items: center;
  gap: 7px;
}
.clsc .ic {
  font-size: 20px;
  color: var(--y);
  text-shadow: 0 0 8px var(--o);
}
.clsc .n {
  font-family: Orbitron;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.clsc .d {
  font-size: 12.5px;
  line-height: 1.2;
  margin: 6px 0;
  color: #d8d0ff;
  min-height: 30px;
}
.clsc .wp {
  font-family: Orbitron;
  font-size: 9px;
  color: var(--c);
  letter-spacing: 0.06em;
}
.clsc .abl {
  font-size: 11.5px;
  color: #ffe14d;
  margin: 5px 0;
  line-height: 1.15;
}
.sb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Orbitron;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #9a8fc0;
  margin-top: 3px;
}
.sb i {
  display: flex;
  gap: 2px;
}
.sb b {
  width: 10px;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
}
.sb b.f {
  background: var(--m);
  box-shadow: 0 0 5px var(--m);
}
.stats4 {
  grid-template-columns: repeat(4, 1fr);
}
.skins {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 800px) {
  .skins {
    grid-template-columns: repeat(2, 1fr);
  }
}
.skin {
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 0, 35, 0.6);
  padding: 10px;
  color: #fff;
  text-align: center;
  font-family: Rajdhani;
  transition: transform 0.15s;
}
.skin:hover {
  transform: translateY(-2px);
}
.skin.on {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--m);
}
.skin.locked .sw2 {
  filter: grayscale(1) brightness(0.5);
}
.sw2 {
  height: 46px;
  margin-bottom: 8px;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.skin .n {
  font-family: Orbitron;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.skin .d {
  font-size: 12px;
  color: #b8b0e0;
  margin-top: 3px;
}
.pb {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 6px;
}
.pb div {
  height: 100%;
  background: var(--c);
}
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0 8px;
}
.tabs button {
  pointer-events: auto;
  cursor: pointer;
  font-family: Orbitron;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cfc6ff;
}
.tabs button.on {
  background: rgba(255, 43, 214, 0.25);
  border-color: var(--m);
  color: #fff;
}
#boardNote {
  text-align: center;
  font-size: 13px;
  color: #9a8fc0;
  margin-bottom: 10px;
}
table.lb {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.lb th {
  font-family: Orbitron;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--m);
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 43, 214, 0.4);
}
.lb td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lb td:nth-child(3) {
  font-family: Orbitron;
  font-weight: 700;
}
.lb tr.top1 td {
  color: #ffe14d;
}
.lb tr.top2 td {
  color: #dfe6ee;
}
.lb tr.top3 td {
  color: #ffb070;
}
.lb tr.me td {
  background: rgba(0, 240, 255, 0.12);
}
#overXp {
  text-align: center;
  margin-top: 10px;
}
.xpl {
  font-family: Orbitron;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: #ffe14d;
}
.unl {
  font-family: Orbitron;
  font-size: 13px;
  color: var(--g);
  margin-top: 6px;
  text-shadow: 0 0 8px var(--g);
}
#overRank {
  text-align: center;
  font-size: 14px;
  color: #9a8fc0;
  margin-top: 8px;
}
#loaderr {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Orbitron;
  text-align: center;
  padding: 30px;
  z-index: 50;
  background: #05010f;
}

/* =========================================================
   NIVEAU SECRET
   ========================================================= */
/* dans le secret : pas de vague, pas de score, pas de radar (on est seul) */
body.rift #topbar,
body.rift #radar,
body.rift #score,
body.rift #combo,
body.rift #best,
body.rift #streak {
  display: none !important;
}
/* pendant une cinématique : bandes noires, pas d'interface */
body.cine #hud > *:not(#banner) {
  opacity: 0 !important;
  transition: opacity 0.6s;
}
body.cine::before,
body.cine::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 9vh;
  background: #000;
  z-index: 9;
  animation: cineBars 1.2s ease-out both;
}
body.cine::before {
  top: 0;
}
body.cine::after {
  bottom: 0;
}
@keyframes cineBars {
  from {
    height: 0;
  }
}
/* paroles du boss */
#riftTalk {
  position: fixed;
  left: 50%;
  bottom: 14vh;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 30px);
  letter-spacing: 0.04em;
  color: #f3eee0;
  text-shadow:
    0 0 12px rgba(255, 230, 180, 0.7),
    0 2px 6px #000;
  opacity: 0;
  filter: blur(4px);
  transition:
    opacity 0.9s,
    filter 0.9s;
  pointer-events: none;
  z-index: 11;
}
#riftTalk.on {
  opacity: 1;
  filter: blur(0);
}
#riftFlash {
  position: fixed;
  inset: 0;
  background: #fff;
  opacity: 0;
  z-index: 20;
  pointer-events: none;
}
/* barre de vie du boss secret */
#bossbar.angel #bossFill {
  background: linear-gradient(90deg, #fff4d6, #ffd060, #8fd4ff);
  box-shadow: 0 0 18px #ffd060;
}
#bossbar.angel #bossName {
  color: #fff4d6;
  text-shadow: 0 0 12px #ffd060;
}
#bossbar.demon #bossFill {
  background: linear-gradient(90deg, #200000, #ff2a10, #ff6a1a);
  box-shadow: 0 0 18px #ff2a10;
}
#bossbar.demon #bossName {
  color: #ff5a3a;
  text-shadow: 0 0 12px #ff2a10;
}
/* écrans d'échec et de victoire */
#riftFail {
  background: radial-gradient(ellipse at 50% 40%, rgba(60, 0, 0, 0.35), rgba(0, 0, 0, 0.9));
}
.rtitle {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-shadow:
    0 0 20px #ff2a10,
    0 0 60px #600;
}
.rquote {
  font-family: Georgia, serif;
  font-style: italic;
  color: #d8c8b8;
  margin: 18px 0 8px;
  font-size: 20px;
}
#riftWin {
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 240, 200, 0.18), rgba(0, 0, 0, 0.92) 70%);
  z-index: 14;
}
#winLines div {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  color: #f6efe0;
  margin: 10px 0;
  opacity: 0;
  animation: winLine 1.6s ease-out forwards;
  text-shadow: 0 0 14px rgba(255, 210, 120, 0.6);
}
@keyframes winLine {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
#winTime,
#winStatus {
  margin-top: 16px;
  font-family: Rajdhani;
  letter-spacing: 0.12em;
  color: #c8b89a;
  opacity: 0;
  animation: winLine 1.2s 7.6s forwards;
}
#winStatus {
  color: #ffd060;
  animation-delay: 8.2s;
}
#riftWin .btns {
  opacity: 0;
  animation: winLine 1s 9s forwards;
}
/* la grande étoile animée */
.bigstar {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 10px;
  animation: starIn 2.2s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.bigstar b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 150px;
  line-height: 1;
  background: linear-gradient(135deg, #fff 10%, #ffd060 45%, #ff2a10 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 210, 120, 0.9)) drop-shadow(0 0 40px rgba(255, 42, 16, 0.6));
  animation: starSpin 6s linear infinite;
}
.bigstar i {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 210, 120, 0.6);
  box-shadow:
    0 0 30px rgba(255, 210, 120, 0.4),
    inset 0 0 30px rgba(255, 42, 16, 0.3);
  animation: starRing 3s ease-in-out infinite;
}
@keyframes starIn {
  from {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
}
@keyframes starSpin {
  50% {
    transform: scale(1.08) rotate(8deg);
  }
}
@keyframes starRing {
  50% {
    transform: scale(1.12);
    opacity: 0.5;
  }
}
/* l'étoile du Rift à côté d'un pseudo (classements, profil) */
.rstar {
  display: inline-block;
  margin-left: 6px;
  font-size: 1.1em;
  background: linear-gradient(135deg, #fff, #ffd060 50%, #ff2a10);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 200, 100, 0.9));
  animation: rstar 2.4s ease-in-out infinite;
}
@keyframes rstar {
  50% {
    filter: drop-shadow(0 0 12px rgba(255, 42, 16, 0.9));
    transform: scale(1.15);
  }
}
#riftStars {
  margin: 6px 0 10px;
  font-family: Rajdhani;
  letter-spacing: 0.08em;
  color: #ffd060;
  text-align: center;
}
/* la carte « ??? » du menu */
.mapc.riftc {
  background:
    linear-gradient(100deg, transparent 47%, rgba(255, 255, 255, 0.95) 49.5%, #fff 50%, rgba(255, 255, 255, 0.95) 50.5%, transparent 53%),
    radial-gradient(ellipse at 50% 50%, rgba(220, 230, 255, 0.35), transparent 60%),
    #050508;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 22px rgba(220, 230, 255, 0.35);
}
.mapc.riftc.won {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 210, 120, 0.5), transparent 45%),
    linear-gradient(135deg, #1a0000, #050508);
}
.mapc.riftc .n {
  font-family: Georgia, serif;
  letter-spacing: 0.3em;
}
