/* =============== RESET =============== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  border: 0;
  outline: 0;
  background: none;
}
html,
body {
  height: 100%;
  width: 100%;
}
body {
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* DISABLE RIGHT-CLICK + NATIVE CONTEXT MENUS (GLOBAL) */
html,
body,
.app,
.game-wrap,
.stage-wrap {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
img,
a,
svg,
canvas,
video {
  -webkit-user-drag: none;
  user-drag: none;
}

/* allow selection in form fields if needed */
input,
textarea,
select,
[contenteditable] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* =============== HOME / STAGE =============== */
.app {
  height: 100dvh;
  width: 100%;
  background: url(/img/homebg.png) center/cover no-repeat;
  position: relative;
}
.app.is-loading .stage-wrap {
  display: none !important;
}

.stage-wrap {
  position: relative;
  height: 100%;
  width: 100%;
}
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1786px;
  height: 1070px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0px;
  transform-origin: center center;
  transform: translate(-50%, -50%); /* JS scale ekleyecek */
  will-change: transform;
  z-index: 1;
}

@media (max-width: 768px) {
  .app {
    height: 100dvh;
  }
  .stage-wrap {
    height: 100%;
  }
}

/* HEADER */
header {
  height: 70px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #0008;
  border-radius: 12px;
  padding: 0dvh 14px;
  box-shadow: 0 8px 18px #0006, inset 0 1px 0 #ffffff1f;
  background: #8529a3;
  color: #fff;
}
.header-logo {
  font-weight: 900;
  font-size: 30px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0.5px 2px #0006;
}
.header-logo img {
  width: auto;
  height: 66px;
  margin-top: 10px;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
}
.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-btn {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1.5px solid #000;
  border-radius: 7px;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(
    180deg,
    #fee20e 26.5%,
    #fcd113 36%,
    #fcd113 64%,
    #f6ba06 97%
  );
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  text-shadow: 0 1px 1px #000c;
}
.header-btn:hover {
  background: linear-gradient(180deg, #e0e0e0 0%, #bfbfbf 100%);
  color: #1983fa;
}
.exit-btn {
  background: linear-gradient(180deg, #f65f26 87%, #db4f18 100%);
  padding: 0 12px;
}
.login-btn {
  background: linear-gradient(
    180deg,
    #26b3f7 26.5%,
    #23aaf8 39.5%,
    #1c95f9 64%,
    #1983fa 97%
  );
  display: none;
}
.header-btn.buy-btn {
  background: linear-gradient(
    90deg,
    rgb(66, 255, 123) 0%,
    rgb(0, 213, 90) 100%
  );
  font-weight: 900;
  color: #fff;
}

.header-btn.buy-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  background: #00b7ff;
}

/* SHELL GRID */
.shell {
  width: 100%;
  height: 920px;
  border-radius: 34px;
  padding: 20px;
  background: linear-gradient(
      0deg,
      rgba(66, 56, 180, 0.5),
      rgba(66, 56, 180, 0.5)
    ),
    linear-gradient(
      180deg,
      rgba(88, 25, 130, 0.5) 0%,
      rgba(140, 44, 169, 0.5) 36.5%,
      rgba(140, 44, 169, 0.5) 64.5%,
      rgba(88, 25, 130, 0.5) 100%
    );
  display: grid;
  grid-template-columns: 540px 625px 540px;
  gap: 20px;
  color: #fff;
}
.panel {
  border: 3px solid #bd38e9;
  background: #8529a3;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

/* SOL PANEL - logo & marquee */
.logo-item {
  width: 345px;
  height: 182px;
}
.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ads-box {
  width: 100%;
  height: 360px;
}

/* ===================== STREAMER MARQUEE (CSS-ONLY) ===================== */
.streamer-item.marquee {
  --gap: 10px;
  --dur: 18s;
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 28px,
    #000 calc(100% - 28px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 28px,
    #000 calc(100% - 28px),
    transparent 100%
  );
}
.marquee__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  will-change: transform;
  animation: marquee-y var(--dur) linear infinite;
}
.streamer-item.marquee:hover .marquee__inner {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__inner {
    animation: none;
  }
}

@keyframes marquee-y {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.streamer-link {
  display: block;
  width: 100%;
  height: 60px;
  border-radius: 7px;
  overflow: hidden;
  border: 1.5px solid #000;
}
.streamer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ORTA ÜST - mini canvas */
#homeMain {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}
.center-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.home-center-skins {
  width: 100%;
  height: 155px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 3px solid #bd38e9;
  border-radius: 24px;
}
.skins-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.canvas-gelecek {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  position: relative;
}
.home-skins-btn {
  width: 45px;
  height: 45px;
  position: absolute;
  z-index: 5;
  cursor: pointer;
}
.home-skins-btn:hover svg path {
  fill: #ffffff; 
}

.home-skins-prev {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.home-skins-next {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* ORTA ORTA - play & butonlar */
.center-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.play-game-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  border: 1.5px solid #000;
  border-radius: 7px;
  font-weight: 800;
  font-size: 32px;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(
    180deg,
    #fee20e 26.5%,
    #fcd113 36%,
    #fcd113 64%,
    #f6ba06 97%
  );
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  text-shadow: 0 1px 1px #000c;
}
.play-game-btn:hover {
  background: linear-gradient(180deg, #e0e0e0 0%, #bfbfbf 100%);
  color: #1983fa;
}

.home-center-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.h-btn {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 0 18px;
  border: 1.5px solid #000;
  border-radius: 7px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(
    180deg,
    #26b3f7 26.5%,
    #23aaf8 39.5%,
    #1c95f9 64%,
    #1983fa 97%
  );
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  text-shadow: 0 1px 1px #000c;
}
.h-btn:hover {
  background: linear-gradient(180deg, #e0e0e0 0%, #bfbfbf 100%);
}

/* ORTA ALT - server list */
.center-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
}
.home-center-server-map {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.server-map {
  padding: 6px 12px;
  border-radius: 50px;
  border: 2px solid #26b3f7;
  color: #26b3f7;
  font: 900 16px/1 Inter;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.server-map:hover {
  transform: translateY(-1px);
}
.server-map.active {
  background: linear-gradient(
    180deg,
    #26b3f7 26.5%,
    #23aaf8 39.5%,
    #1c95f9 64%,
    #1983fa 97%
  );
  color: #fff;
}
.home-center-server-list {
  display: none;
  padding-right: 6px;
  border-radius: 16px;
  max-height: 415px;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.home-center-server-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.home-center-server-list.active {
  display: block;
}
.server-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #551b68;
  border: 1.5px solid #000;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  cursor: pointer;
  transition: background 0.2s;
}
.server-item:hover {
  background: #2a5fd1ce;
}
.server-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.server-img {
  width: 35px;
  height: 25px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid #fff;
}
.server-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.server-city {
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.server-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 160px;
}
.server-online {
  display: flex;
  align-items: center;
  gap: 8px;
}
.server-player {
  font: 900 12px/1 Inter;
  color: #62d5ff;
  letter-spacing: 0.5px;
}
.server-count {
  font: 900 18px/1 Inter;
  color: #fff;
}
.server-range {
  position: relative;
  width: 160px;
  height: 8px;
  border-radius: 12px;
  background: #2a0e3f;
  border: 1px solid #000;
  overflow: hidden;
}
.server-range-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  border-right: 1px solid #000;
  background: linear-gradient(90deg, #42ff7b 0%, #00d55a 100%);
}

/* LOGIN REGISTER */
.ha-step {
  display: none;
}
.ha-step.active {
  display: flex;
}

.home-auth {
  width: 100%;
  border: 2px solid #000;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #3c0d61, #340c56);
  box-shadow: inset 0 1px 0 #fff2;
  margin: auto;
}
.home-auth-inner {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 20px;
  min-height: 520px;
}
.ha-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  text-align: center;
}
.ha-head h3 {
  margin: 0;
  font: 900 30px/1.1 Inter;
  color: #fff;
}
.ha-logo {
  height: 120px;
  object-fit: contain;
}
.ha-card {
  margin-top: 16px;
  flex-direction: column;
  gap: 14px;
}
.ha-lab {
  font: 800 18px/1 Inter;
  color: #fff;
  text-align: center;
}
.ha-field {
  height: 54px;
  border-radius: 12px;
  border: 2px solid #000;
  padding: 0 14px;
  font: 800 16px/1 Inter;
  background: #441178;
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff22;
}
.ha-accepts {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}
.ha-accept {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 0;
  color: #d8ebff;
  font: 800 14px/1.2 Inter;
}
.ha-accept input {
  width: 18px;
  height: 18px;
}
.ha-btn {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid #000;
  cursor: pointer;
  font: 900 18px/1 Inter;
  color: #fff;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  transition: 0.12s;
}
.ha-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ha-btn.primary {
  background: linear-gradient(90deg, #00ffd1, #00b7ff);
  color: #0a1a34;
}
.ha-btn.google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #0a1a34;
}
.ha-btn.google .g-ico {
  width: 22px;
  height: 22px;
}
.ha-hint {
  font: 800 13px/1.2 Inter;
  color: #bfe9ff;
  text-align: center;
}
.ha-error {
  font: 800 14px/1.2 Inter;
  color: #ff4d4d;
  text-align: center;
  padding: 10px 14px;
  background: rgba(255, 77, 77, 0.1);
  border: 1.5px solid #ff4d4d;
  border-radius: 10px;
  margin-bottom: 12px;
  display: none;
}
.ha-error.active {
  display: block;
}
.wz-nc-error {
  font: 800 14px/1.2 Inter;
  color: #ff4d4d;
  text-align: center;
  padding: 10px 14px;
  background: rgba(255, 77, 77, 0.1);
  border: 1.5px solid #ff4d4d;
  border-radius: 10px;
  margin-top: 12px;
  display: none;
}
.wz-nc-error.active {
  display: block;
}

.ha-btn.primary.loading {
  position: relative;
  pointer-events: none;
}
.ha-btn.primary.loading::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 3px solid rgba(10, 26, 52, 0.3);
  border-top-color: #0a1a34;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}
#homeMain[hidden],
#homeAuth[hidden],
.hidden {
  display: none !important;
}
.ha-step {
  display: none;
}
.ha-step.active {
  display: flex;
}

.ha-link-btn {
  align-self: flex-start;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid #000;
  background: linear-gradient(180deg, #ffffff, #e6f4ff);
  color: #0a1a34;
  font: 800 13px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 4px #0006;
}
.ha-link-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

body.auth-locked #homeMain {
  display: none !important;
}
body.auth-locked #homeAuth {
  display: block !important;
}
body.auth-locked .header-btn.buy-btn,
body.auth-locked .header-btn.settings-btn,
body.auth-locked .header-btn.store-btn,
body.auth-locked .header-btn.lead-btn {
  display: none !important;
}
body.auth-locked .exit-btn {
  display: none !important;
}
body.auth-locked .login-btn {
  display: inline-flex !important;
}
body:not(.auth-locked) .login-btn {
  display: none !important;
}
body:not(.auth-locked) .exit-btn {
  display: inline-flex !important;
}

/* SAĞ PANEL */
.player-card {
  width: 100%;
  border-radius: 14px;
  padding: 18px;
  background: #551b68;
  box-shadow: 0 14px 28px #0008, inset 0 1px 0 #fff3, inset 0 -1px 0 #0008;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pi-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #bff6ff, #72e7ff);
  box-shadow: 0 0 0 4px #34d2ff inset, 0 0 0 1.5px #000;
  border: 1px solid #fff;
  overflow: hidden;
}
.avatar img {
  width: 30px;
  height: 30px;
}
.pi-name {
  display: flex;
  align-items: center;
  gap: 20px;
}
.pi-name h3 {
  font-weight: 900;
  font-size: 22px;
}
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font: 900 16px/1 Inter;
  color: #fff;
  background: linear-gradient(180deg, #ff6a6a, #d63b3b);
  box-shadow: 0 0 0 1px #000, 0 6px 14px #ff5b5b55, inset 0 1px 0 #fff8;
}
.pi-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pi-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pi-row .label {
  width: 170px;
  font-weight: 700;
  font-size: 18px;
}
.pi-row .value {
  font-weight: 800;
  font-size: 18px;
  min-width: 0;
}
.change-name-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00d55a;
  gap: 5px;
  padding: 5px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s linear;
  cursor: pointer;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
}
.change-name-btn:hover {
  background: #00b6ff;
}
.change-name-btn img {
  width: 20px;
  height: 20px;
}
.change-token-no {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #00b6ff;
  width: 26px;
  height: 26px;
}

.vip-card {
  width: 100%;
  border-radius: 16px;
  padding: 22px;
  background: #551b68;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 2px solid #bd38e9;
  box-shadow: 0 14px 28px #0006;
}
.vip-card h3 {
  font-weight: 800;
  font-size: 22px;
}
.vip-card .price {
  font-weight: 900;
  font-size: 36px;
  letter-spacing: 8px;
  color: #fcd113;
}
.vip-card .dim {
  font-weight: 800;
  font-size: 16px;
}
.features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid #00c0ff;
  background: linear-gradient(180deg, #441178 0%, #320b5a 100%);
  box-shadow: inset 0 0 0 1px #fff3;
  font-weight: 800;
  font-size: 16px;
}
.features li img {
  height: 22px;
  width: auto;
}
.features li:nth-child(1) {
  border-color: #3ddc84;
}
.features li:nth-child(2) {
  border-color: #f2c94c;
}
.features li:nth-child(3) {
  border-color: #bb6bd9;
}
.features li:nth-child(4) {
  border-color: #56ccf2;
}
.features li:nth-child(5) {
  border-color: #27ae60;
}
.features li:nth-child(6) {
  border-color: #eb5757;
}
.vip-card .pri {
  margin: 10px auto 0;
  height: 56px;
  padding: 0 28px;
  border: 1.5px solid #000;
  border-radius: 7px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(
    180deg,
    #fee20e 26.5%,
    #fcd113 36%,
    #fcd113 64%,
    #f6ba06 97%
  );
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  text-shadow: 0 1px 1px #000c;
}
.vip-card .pri:hover {
  background: #00b6ff;
}
/* FOOTER */
.site-footer {
  width: 100%;
  display: flex;
  align-items: center;
}
.footer-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #0008;
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 8px 18px #0006, inset 0 1px 0 #ffffff1f;
  background: #8529a3;
  color: #fff;
}
.foot-left,
.support-mail {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

/* =============== COMMON MODALS (20px kenar) =============== */
.settings-wrap,
.lb-wrap,
#wzs-store {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 10000;
}
.settings-wrap.active,
.lb-wrap.active,
#wzs-store.active {
  display: grid;
}
.settings-overlay,
.lb-overlay,
.wzs-dim {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 30, 0.55);
  backdrop-filter: blur(5px);
}
.settings-modal,
.lb-modal,
.wzs-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  max-width: 1786px;
  height: calc(100% - 40px);
  border: 3px solid #bd38e9;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #6f2191 0%, #5b1c7c 60%, #4e176e 100%);
  box-shadow: 0 28px 90px #000a, inset 0 1px 0 #ffffff1f;
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* =============== SETTINGS =============== */

.settings-wrap {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 10000;
}
.settings-wrap.active {
  display: grid;
}
.settings-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px) saturate(120%);
}
.settings-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  max-width: 1786px;
  height: calc(100% - 40px);
  border: 3px solid #bd38e9;
  border-radius: 24px;
  background: #8529a3;
  box-shadow: 0 24px 80px #0008, inset 0 1px 0 #ffffff22;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}

/* ---------- Head ---------- */
.settings-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 19px;
  border-bottom: 3px solid #bd38e9;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07) 0,
    rgba(255, 255, 255, 0) 100%
  );
}
.backbtn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    #26b3f7 26.5%,
    #23aaf8 39.5%,
    #1c95f9 64%,
    #1983fa 97%
  );
  border: 1.5px solid #000;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  cursor: pointer;
  transition: transform 0.12s, filter 0.15s, box-shadow 0.15s;
}
.backbtn:before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}
.backbtn:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.05);
}
.settings-head h3 {
  font: 900 33px/1 Inter, system-ui;
}

/* VIP pill */
.vip-pill {
  margin-left: auto;
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    #fee20e 26.5%,
    #fcd113 36%,
    #fcd113 64%,
    #f6ba06 97%
  );
  border: 1.5px solid #000;
  color: #231800;
  font: 900 12px/1 Inter;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
}

/* ---------- Tabs ---------- */
.tabbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 3px solid #bd38e9;
  background: #8529a3;
}
.tab {
  padding: 15px 20px;
  border-radius: 10px;
  border: 1.5px solid #000;
  background: #551b68;
  color: #fff;
  font: 800 20px/1 Inter;
  cursor: pointer;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  transition: transform 0.12s, filter 0.15s, background 0.15s;
}
.tab:hover {
  transform: translateY(-1px);
}
.tab.active {
  background: linear-gradient(
    180deg,
    #26b3f7 26.5%,
    #23aaf8 39.5%,
    #1c95f9 64%,
    #1983fa 97%
  );
}

/* ---------- Body ---------- */
.settings-body {
  flex: 1;
  overflow: auto;
  padding: 14px;
}
.settings-body::-webkit-scrollbar {
  width: 10px;
}
.settings-body::-webkit-scrollbar-thumb {
  background: #441178;
  border-radius: 10px;
  border: 1px solid #000;
}
.sectionS {
  display: none;
}
.sectionS.active {
  display: block;
}

/* ---------- Rows ---------- */
.opt {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 10px 0;
  padding: 14px;
  border-radius: 14px;
  background: #551b68;
  border: 1.5px solid #000;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
}
.opL {
  min-width: 280px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opT {
  font: 900 22px/1 Inter;
}
.hint {
  font: 500 19px/1.25 Inter;
  color: #eae4ff;
}
.opR {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

/* ---------- Inputs / Selects ---------- */
.field,
select,
input[type="text"],
input[type="number"],
input[type="color"] {
  width: 100%;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1.5px solid #000;
  background: linear-gradient(180deg, #441178 0%, #320b5a 100%);
  color: #fff;
  font: 700 24px/1 Inter;
  box-shadow: inset 0 0 0 1px #ffffff22;
  outline: 0;
}
.field:focus,
select:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="color"]:focus {
  box-shadow: 0 0 0 3px rgba(38, 179, 247, 0.35);
}

/* –– “Güzel” select görünümü (kapalıyken) –– */
.ui-select {
  appearance: none;
  padding: 0.82rem 2.4rem 0.82rem 0.9rem;
  background-image: linear-gradient(45deg, transparent 50%, #9ec5ff 50%),
    linear-gradient(135deg, #9ec5ff 50%, transparent 50%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%,
    calc(100% - 2.2rem) 50%;
  background-size: 6px 6px, 6px 6px, 1px 60%;
  background-repeat: no-repeat;
}

.ui-select option {
  background: #320b5a;
  color: #fff;
}

.fileish {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fileish input[type="file"] {
  display: none;
}
.fileName {
  flex: 1;
  color: #cfe9ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 700 18px/1 Inter;
}

.copyBtn,
.btnGhost {
  padding: 0.82rem 1rem;
  border-radius: 10px;
  border: 1.5px solid #000;
  cursor: pointer;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, color 0.15s,
    filter 0.15s;
}
.copyBtn {
  background: linear-gradient(
    180deg,
    #fee20e 26.5%,
    #fcd113 36%,
    #fcd113 64%,
    #f6ba06 97%
  );
  color: #231800;
  font: 900 18px/1 Inter;
}
.copyBtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.copyBtn:active {
  transform: translateY(0);
}
.copyBtn:focus-visible {
  outline: 0;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c,
    0 0 0 3px rgba(252, 209, 19, 0.35);
}

.btnGhost {
  background: linear-gradient(
    180deg,
    #26b3f7 26.5%,
    #23aaf8 39.5%,
    #1c95f9 64%,
    #1983fa 97%
  );
  color: #fff;
  font: 900 18px/1 Inter;
}
.btnGhost:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.btnGhost:active {
  transform: translateY(0);
}
.btnGhost:focus-visible {
  outline: 0;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c,
    0 0 0 3px rgba(38, 179, 247, 0.35);
}

/* ---------- Switch ---------- */
.switch {
  position: relative;
  width: 60px;
  height: 32px;
  flex: 0 0 auto;
}
.switch input {
  appearance: none;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #2a0e3f;
  border: 1.5px solid #000;
  cursor: pointer;
}
.switch input:checked {
  background: linear-gradient(
    180deg,
    #26b3f7 26.5%,
    #23aaf8 39.5%,
    #1c95f9 64%,
    #1983fa 97%
  );
}
.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: left 0.15s;
}
.switch input:checked::after {
  left: 31px;
}

/* ---------- Range ---------- */
.sliderWrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.range {
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #2a0e3f;
  border: 1.5px solid #000;
}
.range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #26b3f7;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(38, 179, 247, 0.25);
}
.val {
  min-width: 64px;
  text-align: center;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid #000;
  background: #441178;
  font: 900 18px/1 Inter;
  color: #fff;
}

.keyRow {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
}
.key {
  display: grid;
  place-items: center;
  height: 48px;
  border-radius: 12px;
  background: #441178;
  border: 1.5px solid #000;
  color: #fff;
  font: 900 18px/1 Inter;
}

@media (max-width: 1024px) {
  .opL {
    min-width: 240px;
  }
  .tab {
    padding: 12px 16px;
    font-size: 18px;
  }
  .settings-head h3 {
    font-size: 28px;
  }
}
@media (max-width: 768px) {
  .settings-modal {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }
  .opL {
    min-width: 200px;
    max-width: 240px;
  }
  .settings-head h3 {
    font-size: 24px;
  }
  .tab {
    padding: 10px 14px;
    font-size: 16px;
  }
  .field,
  .ui-select,
  .fileName {
    font-size: 18px;
  }
  .opt {
    gap: 12px;
  }
}
@media (max-width: 560px) {
  .opL {
    min-width: 180px;
  }
  .keyRow {
    grid-template-columns: 160px 1fr;
  }
}

/* =============== LEADERBOARD =============== */
.lb-head {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 14px 18px;
  border-bottom: 2px solid #00000033;
  background: linear-gradient(180deg, #ffffff10 0%, #0000 100%);
}
.lb-head h3 {
  margin: 0;
  font: 900 32px/1 Inter;
}
.lb-back {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #51157a;
  border: 2px solid #000;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.12s;
  box-shadow: inset 0 1px 0 #fff3, 0 0.7px 1px #000c;
}
.lb-back:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.lb-back:before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 3px solid #9cffea;
  border-bottom: 3px solid #9cffea;
  transform: rotate(45deg);
}
.lb-body {
  flex: 1;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
}
.lb-body::-webkit-scrollbar {
  width: 10px;
}
.lb-body::-webkit-scrollbar-thumb {
  background: #3c135b;
  border-radius: 10px;
}
.lb-table {
  padding: 14px;
}
.lb-th,
.lb-row {
  display: grid;
  grid-template-columns: 40px 1fr 120px 140px 110px 90px;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.lb-th {
  position: sticky;
  top: 0;
  z-index: 5;
  border: 2px solid #000;
  border-radius: 14px;
  background: linear-gradient(180deg, #3c0d61 0%, #340c56 100%);
  box-shadow: 0 6px 22px #0008, inset 0 1px 0 #fff2;
}
.lb-thc {
  appearance: none;
  background: transparent;
  border: 0;
  color: #cfe7ff;
  padding: 12px 12px;
  font: 900 12px/1 Inter;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  font-size: 18px;
}
.lb-thc.lb-left {
  padding: 12px 28px;
  justify-content: flex-start;
}
.lb-thc.active {
  color: #fff;
  text-shadow: 0 1px 0 #000;
  border: 1px solid #1983fa;
  border-radius: 12px;
  background: #bd38e9;
}
.lb-thc.active:after {
  content: "▾";
  font-size: 16px;
  opacity: 0.9;
  transform: translateY(-1px);
}
.lb-thc.active.asc:after {
  content: "▴";
}
.lb-row {
  margin: 10px 0;
  padding: 12px;
  border-radius: 14px;
  border: 2px solid #000;
  position: relative;
  background: linear-gradient(180deg, #6c1f8eaa, #611c85aa);
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c, inset 0 1px 0 #ffffff26;
  backdrop-filter: blur(3px);
}
.lb-row:hover {
  filter: brightness(1.03);
}
.lb-row.top1 {
  box-shadow: 0 0 0 2px #ffd54f inset, 0 0 24px #ffd54f44;
}
.lb-row.top2 {
  box-shadow: 0 0 0 2px #c0c7d1 inset, 0 0 24px #c0c7d144;
}
.lb-row.top3 {
  box-shadow: 0 0 0 2px #e6aa76 inset, 0 0 24px #e6aa7644;
}
.lb-row.top4,
.lb-row.top5,
.lb-row.top6,
.lb-row.top7,
.lb-row.top8,
.lb-row.top9,
.lb-row.top10 {
  box-shadow: 0 0 0 2px #00c8ff66 inset, 0 0 18px #00c8ff22;
}
.lb-rank {
  font: 900 22px/1 Inter;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-content: flex-start;
}
.lb-rank-icon {
  font-size: 24px;
  flex: 0 0 auto;
}
.lb-ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 36px;
  box-shadow: 0 0 0 2px #ffffff22;
}
.lb-name {
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}
.lb-flag {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #ffffff55;
  flex: 0 0 auto;
}
.lb-num {
  font: 900 18px/1 Inter;
}
.lb-foot {
  padding: 12px 14px;
  border-top: 2px solid #00000033;
  background: linear-gradient(180deg, #0000, #ffffff05);
}
.lb-meRow {
  border-color: #fcd113;
  box-shadow: 0 0 0 1px #00c8ff66 inset;
  background: linear-gradient(
    180deg,
    #26b3f7 26.5%,
    #23aaf8 39.5%,
    #1c95f9 64%,
    #1983fa 97%
  );
}

/* =============== STORE =============== */
/* container */
#wzs-store {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}
#wzs-store.active {
  display: block;
}
.wzs-dim {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 30, 0.55);
  backdrop-filter: blur(5px);
}

/* modal */
.wzs-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  max-width: 1786px;
  height: calc(100% - 80px);
  border: 3px solid #bd38e9;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #6f2191 0%, #5b1c7c 60%, #4e176e 100%);
  box-shadow: 0 28px 90px #000a, inset 0 1px 0 #ffffff1f;
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* head */
.wzs-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
  border-bottom: 2px solid #00000033;
  background: linear-gradient(180deg, #ffffff10 0%, #0000 100%);
}
.wzs-back {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #51157a;
  border: 2px solid #000;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.12s;
  box-shadow: inset 0 1px 0 #fff3, 0 0.7px 1px #000c;
}
.wzs-back:before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 3px solid #9cffea;
  border-bottom: 3px solid #9cffea;
  transform: rotate(45deg);
}
.wzs-back:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.wzs-title {
  margin: 0;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.2px;
}

/* wallet (coins + get coins) */
.wzs-wallet {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px solid #000;
  background: linear-gradient(180deg, #441178 0%, #320b5a 100%);
  box-shadow: inset 0 1px 0 #ffffff22;
}
.wzs-coin-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  /* background:#ffd24d; */ /* buraya coin görseli gelebilir */
}
.wzs-amount {
  font: 900 18px/1 Inter;
  color: #ffe07a;
  text-shadow: 0 1px 0 #000;
}
.wzs-topup {
  height: 50px;
  padding: 0 21px;
  border-radius: 10px;
  border: 1.5px solid #000;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  /* background:linear-gradient(90deg,#00FFD1,#00B7FF); */
  color: #fff;
  font-weight: 900;
  font-size: 19px;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  background: linear-gradient(
    90deg,
    rgb(66, 255, 123) 0%,
    rgb(0, 213, 90) 100%
  );
}
.wzs-topup:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  background: #00b7ff;
}
.wzs-topup:active {
  transform: translateY(0);
}

.wzs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
}
.wzs-pill {
  height: 60px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 2px solid #bd38e9;
  background: linear-gradient(180deg, #ffffff12, #0000);
  font-weight: 900;
  color: #ede7ff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff3;
  font-size: 20px;
}
.wzs-pill.active {
  background: linear-gradient(180deg, #2ee9ff, #00b6ff);
  color: #fff;
  border-color: #0b6aa3;
  box-shadow: 0 8px 18px #00c9ff36, inset 0 -6px 10px #ffffffb0;
}

.wzs-body {
  flex: 1;
  position: relative;
  padding: 0 16px 16px;
  overflow: hidden;
}
.wzs-view {
  position: absolute;
  inset: 0;
  padding: 12px 0 0;
  display: none;
  overflow: auto;
}
.wzs-view.active {
  display: block;
}

.wzs-shell {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 18px;
  min-height: 0;
  min-width: 900px;
}

.wzs-side {
  border: 2px solid #000;
  border-radius: 18px;
  background: linear-gradient(180deg, #3c0d61, #340c56);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 1px 0 #fff2;
  min-height: 0;
  overflow: auto;
}
.wzs-side h5 {
  margin: 10px 0 30px;
  font-size: 24px;
  color: #cfe3ff;
  font-weight: 900;
  text-align: center;
}
.wzs-vlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wzs-vbtn {
  height: 70px;
  border-radius: 14px;
  border: 2px solid #bd38e9;
  background: linear-gradient(180deg, #ffffff10, #0000);
  color: #ede7ff;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  padding: 0 14px;
  font-size: 20px;
  box-shadow: inset 0 1px 0 #fff2;
}
.wzs-vbtn:hover {
  filter: brightness(1.05);
}
.wzs-vbtn.active {
  background: linear-gradient(90deg, #9cf6ff55, #4bd7ff55);
  border-color: #00c8ff;
  box-shadow: inset 0 0 0 2px #00c8ff80;
}

.wzs-stage {
  position: relative;
  border: 2px solid #000;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #3c0d61, #340c56);
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 #fff2;
  min-height: 0;
  overflow: hidden;
}
.wzs-canvas {
  position: relative;
  flex: 1;
  min-height: 340px;
  border-radius: 16px;
  border: 2px dashed #cfe7ff66;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    135deg,
    #cfe7ff1a 0 12px,
    #e7f4ff10 12px 24px
  );
  overflow: hidden;
}
#wzsAccCanvas,
#wzsSkinCanvas {
  width: 100%;
  height: 100%;
}

.wzs-arrow {
  --ty: -50%;
  position: absolute;
  top: 50%;
  transform: translateY(var(--ty));
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #6fe0ff66;
  background: linear-gradient(180deg, #eaf9ff, #c7eaff);
  color: #0a1a34;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px #37e0ff33, inset 0 -6px 10px #ffffffaa;
  transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
  z-index: 2;
}
.wzs-arrow.left {
  left: 12px;
}
.wzs-arrow.right {
  right: 12px;
}
.wzs-arrow:hover {
  box-shadow: 0 0 0 3px #9ee9ff80 inset, 0 12px 24px #37e0ff55;
  transform: translateY(var(--ty)) scale(1.06);
}
.wzs-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #0a1a34;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.coin-ico {
  width: 30px;
  height: 30px;
  display: inline-block;
  vertical-align: -3px;
}

.wzs-color-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-left: auto;
  border: 1.5px solid #000;
  border-radius: 999px;
  background: #0d2240;
  color: #fff;
  font: 800 14px/1 Inter;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c, inset 0 0 0 1px #ffffff1a;
}

.wzs-buybar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px dashed #9b4ee3;
  background: linear-gradient(180deg, #3a0f5c 0%, #2c0c49 100%);
  box-shadow: inset 0 0 0 1px #ffffff1a;
}

.wzs-price {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid #000;
  background: linear-gradient(180deg, #14355f 0%, #0e2748 100%);
  color: #f3fbff;
  font: 900 18px/1 Inter;
  letter-spacing: 0.3px;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c, inset 0 0 0 1px #ffffff22;
}

.wzs-buy {
  min-width: 120px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1.5px solid #000;
  cursor: pointer;
  color: #0b1f34;
  font: 900 18px/1 Inter;
  background: linear-gradient(180deg, #14ff85 0%, #0fe36f 60%, #0acc63 100%);
  box-shadow: 0 0.5px 0 #000, 0 1px 2px #000c, inset 0 0 0 1px #ffffff55;
  transition: transform 0.08s ease, filter 0.12s ease;
}
.wzs-buy:hover {
  filter: brightness(1.06);
}
.wzs-buy:active {
  transform: translateY(1px);
}

.wzs-ctrl {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 14px;
  border: 1.5px solid #000;
  background: #551b68;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
}
.wzs-sw {
  display: flex;
  align-items: center;
  gap: 15px;
}
.wzs-meta {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #000;
  background: #441178;
  color: #fff;
  font: 900 14px/1 Inter;
}
.wzs-catbtn { 
  padding: 0; 
  overflow: hidden; 
  display: block;
}
.wzs-catbtn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px; 
}

.wzs-catbtn.active {
  box-shadow: inset 0 0 0 3px #00c8ff80, 0 10px 24px #00c9ff44;
  border-color: #00c8ff;
  background: none; 
}

/* responsive */
@media (max-width: 900px) {
  .wzs-buybar {
    justify-content: space-between;
  }
  .wzs-price {
    font-size: 14px;
  }
  .wzs-buy {
    min-width: 104px;
    padding: 10px 14px;
    font-size: 16px;
  }
}

.wzs-add,
.wzs-rem,
.wzs-select,
.wzs-buy {
  padding: 15px 20px;
  border-radius: 12px;
  border: 1.5px solid #000;
  cursor: pointer;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  transition: transform 0.12s, filter 0.12s;
  /* background: linear-gradient(90deg, rgb(66, 255, 123) 0%, rgb(0, 213, 90) 100%); */
}
.wzs-add {
  background: linear-gradient(90deg, #00ffd1, #00b7ff);
}
.wzs-rem {
  background: linear-gradient(90deg, #ff7080, #ff3b3b);
}
.wzs-select {
  background: linear-gradient(
    180deg,
    #fee20e 26.5%,
    #fcd113 36%,
    #fcd113 64%,
    #f6ba06 97%
  );
}
.wzs-buy {
  text-shadow: 0 1px 0 #0008;
  background: linear-gradient(
    90deg,
    rgb(66, 255, 123) 0%,
    rgb(0, 213, 90) 100%
  );
}
.wzs-buy:hover {
  background: #00b7ff;
}
.wzs-add:hover,
.wzs-rem:hover,
.wzs-select:hover,
.wzs-buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}
.wzs-add:active,
.wzs-rem:active,
.wzs-select:active,
.wzs-buy:active {
  transform: translateY(0);
}

.wzs-lock {
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid #ffd54d66;
  background: linear-gradient(180deg, #fff1b31a, #fff1b30a);
  color: #ffe39b;
  font-weight: 900;
  font-size: 16px;
}

.wzs-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #ffffffaa inset, 0 4px 10px #0006;
  cursor: pointer;
  border: 0;
}
.wzs-dot.sel {
  outline: 3px solid #37e0ff88;
}

.wzs-pay {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 20;
}
.wzs-pay.open {
  display: grid;
}
.wzs-pay-dim {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 30, 0.6);
  backdrop-filter: blur(6px);
}
.wzs-pay-panel {
  position: relative;
  width: min(1100px, calc(100% - 40px));
  border: 2px solid #bd38e9;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #3c0d61 0%, #340c56 100%);
  box-shadow: 0 30px 100px #000c, inset 0 1px 0 #fff2;
  color: #fff;
}
.wzs-pay-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 2px solid #00000055;
  background: linear-gradient(180deg, #ffffff10, #0000);
}
.wzs-pay-head h4 {
  margin: 0;
  font: 900 22px/1 Inter;
}
.wzs-pay-close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #51157a;
  border: 2px solid #000;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.12s, filter 0.15s, box-shadow 0.15s;
  box-shadow: inset 0 1px 0 #fff3, 0 0.7px 1px #000c;
  background: url(./img/close.png);
  background-repeat: no-repeat;
  background-position: center;
}
.wzs-pay-close:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  border-color: #00d55a;
}

.wzs-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}
@media (max-width: 680px) {
  .wzs-pack-grid {
    grid-template-columns: 1fr;
  }

  .wzs-pay-close {
    width: 60px;
    height: 60px;
  }
  .wzs-pay-head h4 {
    margin: 0;
    font: 900 36px/1 Inter;
  }

  .pack-price {
    font: 900 40px/1 Inter;
    color: #ffe07a;
    text-shadow: 0 1px 0 #000;
  }
}
.wzs-pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid #fee20e;
  background: linear-gradient(180deg, #5b1c7c, #4e176e);
  box-shadow: inset 0 1px 0 #fff2, 0 10px 24px #0007;
}
.pack-info {
  display: flex;
  align-items: center;
  gap: 18px;
}
.pack-price {
  font: 900 30px/1 Inter;
  color: #ffe07a;
  text-shadow: 0 1px 0 #000;
}
.pack-coins {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 900 22px/1 Inter;
  color: #d8ebff;
}
.pack-coins .coin-ico {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}
.pack-cta {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #000;
  cursor: pointer;
  font: 900 18px/1 Inter;
  color: #fff;
  background: linear-gradient(
    90deg,
    rgb(66, 255, 123) 0%,
    rgb(0, 213, 90) 100%
  );
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
}
.pack-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  /* background: linear-gradient(
    180deg,
    #26b3f7 26.5%,
    #23aaf8 39.5%,
    #1c95f9 64%,
    #1983fa 97%
  ); */
}
.pack-cta:active {
  transform: translateY(0);
}
.wzs-pay-foot {
  padding: 10px 16px;
  border-top: 2px solid #00000055;
  background: linear-gradient(180deg, #0000, #ffffff08);
}
.wzs-pay-note {
  font: 800 14px/1 Inter;
  color: #bfe9ff;
  text-align: center;
}

@media (max-width: 1100px) {
  .wzs-title {
    font-size: 24px;
  }
  .wzs-shell {
    grid-template-columns: minmax(240px, 300px) 1fr;
    min-width: 820px;
  }
  .wzs-canvas {
    min-height: 300px;
  }
  .wzs-pill {
    height: 54px;
    font-size: 18px;
  }
}
@media (max-width: 820px) {
  .wzs-title {
    font-size: 22px;
  }
  .wzs-back {
    width: 40px;
    height: 40px;
  }
  .wzs-pill {
    height: 48px;
    font-size: 16px;
  }
  .wzs-arrow {
    width: 44px;
    height: 44px;
  }
  .wzs-arrow svg {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 640px) {
  .wzs-title {
    font-size: 20px;
  }
  .wzs-shell {
    grid-template-columns: minmax(220px, 280px) 1fr;
    min-width: 760px;
  }
}

@media (max-width: 768px) {
  .header-logo {
    font-size: 32px;
  }
  .user-info {
    font-size: 18px;
  }
  .header-btn {
    font-size: 16px;
    height: 46px;
  }
  .play-game-btn {
    font-size: 28px;
  }
  .h-btn {
    height: 48px;
    font-size: 16px;
  }
  .server-map {
    font-size: 16px;
  }
  .server-city {
    font-size: 19px;
  }
  .server-count {
    font-size: 18px;
  }
  .features li {
    font-size: 16px;
  }
  .vip-card h3 {
    font-size: 20px;
  }
  .vip-card .price {
    font-size: 34px;
  }

  .lb-th,
  .lb-row {
    grid-template-columns: 40px 1fr 110px 130px 100px 90px;
  }
  .lb-name,
  .lb-num {
    font-size: 14px;
  }
  .lb-thc {
    font-size: 12px;
  }

  .wzs-shell {
    grid-template-columns: minmax(220px, 360px) 1fr;
    min-width: 760px;
  }
  .wzs-canvas {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .header-btn {
    font-size: 17px;
  }
  .server-city {
    font-size: 20px;
  }
  .lb-thc {
    font-size: 13px;
  }
}
/* LOGIN REGISTER  */

/* ABOUT START */
.about-card {
  display: none;
  border: 2px solid #000;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #3c0d61, #340c56);
  box-shadow: inset 0 1px 0 #fff2;
  color: #d8ebff;
  height: 100%;
}
.about-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.about-logo {
  height: 146px;
  object-fit: contain;
}
.about-card h3 {
  margin: 0;
  font: 900 32px/1.1 Inter;
  color: #fff;
  letter-spacing: 0.3px;
}
.about-card h4 {
  margin: 10px 0 6px;
  font: 900 22px/1 Inter;
  color: #fff;
}
.about-scroll {
  border: 1.5px solid #000;
  border-radius: 12px;
  padding: 12px 14px;
  background: #2b0a46;
  box-shadow: inset 0 1px 0 #ffffff22;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #2ee9ff #2a0b44;
}

.about-scroll::-webkit-scrollbar {
  width: 10px;
}
.about-scroll::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #3c0d61, #2a0b44);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #000;
}
.about-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, #2ee9ff, #00b6ff);
  border: 1px solid #0b6aa3;
  box-shadow: 0 8px 18px #00c9ff36, inset 0 -6px 10px #ffffff77;
}
.about-scroll::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.06);
}
.about-scroll::-webkit-scrollbar-corner {
  background: transparent;
}
.about-card p,
.about-card li {
  font: 800 16px/1.45 Inter;
  color: #d8ebff;
}
.about-card ul {
  margin: 6px 0 8px 18px;
  display: grid;
  gap: 4px;
  list-style: square;
}

body.auth-locked .player-card,
body.auth-locked .vip-card {
  display: none !important;
}
body.auth-locked #aboutCard {
  display: flex !important;
  flex-direction: column;
}

@media (max-width: 980px) {
  .about-card h3 {
    font-size: 22px;
  }
  .about-logo {
    height: 50px;
  }
}


/* ==== GAME OVER  ==== */
.wz-go { position: fixed; inset: 0; display: none; z-index: 120000; }
.wz-go.open { display: block; animation: wzGoFadeIn .3s ease-out both; -webkit-animation: wzGoFadeIn .3s ease-out both; }

.wz-go-dim {
  position: absolute; inset: 0;
  background: rgba(8, 10, 30, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1;
}
.wz-go.open .wz-go-dim { animation: wzGoDimIn .3s ease-out both; -webkit-animation: wzGoDimIn .3s ease-out both; }

.wz-go-modal {
  position: absolute; z-index: 3;
  left: 50%; transform: translate(-50%, 10px);
  top: 12px;
  width: min(1100px, calc(100% - 24px));
  height: calc(100vh - 400px - 24px);
  display: grid; grid-template-rows: auto 1fr;
  border: 2px solid #bd38e9; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #3c0d61 0%, #340c56 100%);
  box-shadow: 0 30px 100px #000c, inset 0 1px 0 #fff2; color: #fff;
}
.wz-go.open .wz-go-modal { animation: wzGoModalIn .30s cubic-bezier(.22,.61,.36,1) both; }

.wz-go-head {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 18px; border-bottom: 2px solid #00000055;
  background: linear-gradient(180deg, #ffffff10, #0000);
}
.wz-go-head h3 { margin: 0; font: 900 32px/1.1 Inter; letter-spacing: 0.2px; }
.wz-go-chip {
  margin-left: auto; padding: 10px 14px; border-radius: 999px;
  border: 1.5px solid #0b6aa3;
  background: linear-gradient(90deg, #2ee9ff, #00b6ff);
  color: #041225; font: 900 18px/1 Inter;
  box-shadow: 0 8px 18px #00c9ff36, inset 0 -6px 10px #ffffffb0;
}

.wz-go-body {
  padding: 24px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px;
}
.wz-go-score .lbl { text-align: center; color: #cfe3ff; font: 800 28px/1 Inter; }
.wz-go-score .val {
  margin-top: 16px; font: 900 52px/1 Inter; letter-spacing: 0.5px;
  color: #ffe07a; text-shadow: 0 2px 0 #000, 0 10px 30px #0006;
}
.wz-go-actions { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.wz-go-btn {
  padding: 18px 34px; border-radius: 12px; border: 1.5px solid #000; cursor: pointer;
  font: 900 20px/1 Inter; color: #fff; box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  transition: 0.12s;
}
.wz-go-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.wz-go-btn:active { transform: translateY(0); }
.wz-go-btn.pri { background: linear-gradient(180deg, #14ff85, #0fe36f 60%, #0acc63 100%); color: #0b1f34; }
.wz-go-btn.sec { background: linear-gradient(90deg, #00ffd1, #00b7ff); }

.wz-go-adbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 400px;
  border-top: 2px solid #00000055;
  background: linear-gradient(180deg, #2a0846 0%, #21073a 100%);
  box-shadow: inset 0 1px 0 #ffffff1a;
  display: flex; flex-direction: column; gap: 8px; padding: 10px 12px;
  z-index: 2;
}
.wz-go-adbar .ad-label { align-self: center; font: 800 12px/1 Inter; color: #9fdcff; letter-spacing: 1.2px; }
.wz-go-adbar .ad-slot {
  flex: 1; border: 2px dashed #cfe7ff66; border-radius: 12px;
  background: repeating-linear-gradient(135deg, #cfe7ff1a 0 12px, #e7f4ff10 12px 24px);
  display: grid; place-items: center; overflow: hidden;
}
.wz-go-adbar .ad-ph { font: 900 22px/1 Inter; color: #bfe9ff; opacity: 0.7; }

@media (max-width: 1024px) {
  .wz-go-adbar { height: 119px; }
  .wz-go-modal {
    width: min(900px, calc(100% - 20px));
    height: calc(100vh - 100px - 20px);
  }
  .wz-go-head h3 { font-size: 26px; }
  .wz-go-chip { font-size: 16px; padding: 8px 12px; }
  .wz-go-body { padding: 10px; gap: 10px; }
  .wz-go-score .lbl { font-size: 22px; }
  .wz-go-score .val { font-size: 31px; }
  .wz-go-btn { padding: 14px 26px; font-size: 18px; }
}

@media (max-width: 720px) {
  .wz-go-adbar { height: 150px; }
  .wz-go-modal {
    width: calc(100% - 16px);
    height: calc(100vh - 140px - 26px);
  }
  .wz-go-head { padding: 12px 14px; }
  .wz-go-head h3 { font-size: 20px; }
  .wz-go-chip { font-size: 14px; padding: 6px 10px; }
  .wz-go-body { padding: 5px; gap: 9px; }
  .wz-go-score .lbl { font-size: 14px; }
  .wz-go-score .val { font-size: 16px; }
  .wz-go-actions { gap: 12px; }
  .wz-go-btn { padding: 12px 18px; font-size: 16px; }
}

@media (max-width: 550px) {
  .wz-go-modal { width: calc(100% - 16px); height: calc(100vh - 121px - 16px); }
  .wz-go-adbar { height: 130px; }
}

@media (max-width: 460px) {
  .wz-go-modal { width: calc(100% - 16px); height: calc(100vh - 400px - 16px); }
  .wz-go-adbar { height: 271px; }
}

/* ==== keyframes ==== */
@keyframes wzGoFadeIn   { from { opacity: 0 } to { opacity: 1 } }
@keyframes wzGoDimIn    { from { opacity: 0 } to { opacity: 1 } }
@keyframes wzGoModalIn  {
  from { transform: translate(-50%, 24px) scale(.985); opacity: 0 }
  to   { transform: translate(-50%, 10px) scale(1);    opacity: 1 }
}



























/* ===== ERROR POPUP ===== */
.wz-err {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 11000;
}
.wz-err.open {
  display: block;
}
.wz-err-dim {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 30, 0.65);
  backdrop-filter: blur(6px);
}
.wz-err-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(640px, calc(100% - 32px));
  border: 2px solid #bd38e9;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #3c0d61 0%, #340c56 100%);
  box-shadow: 0 30px 100px #000c, inset 0 1px 0 #fff2;
  color: #fff;
  animation: wzerrpop 0.18s ease-out forwards;
}
@keyframes wzerrpop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.wz-err-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 2px solid #00000055;
  background: linear-gradient(180deg, #ffffff10, #0000);
}
.wz-err-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(
    75% 75% at 30% 25%,
    #ff7a7a 0,
    #ff3b3b 60%,
    #c21443 100%
  );
  box-shadow: 0 8px 18px #ff3b3b40, inset 0 -6px 10px #ffffff80;
  border: 1.5px solid #000;
}
.wz-err-ico svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
  stroke-width: 2.2;
  fill: none;
}
.wz-err-head h3 {
  margin: 0;
  font: 900 24px/1.1 Inter;
  letter-spacing: 0.2px;
}
.wz-err-body {
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}
.wz-err-body p {
  margin: 0;
  font: 800 15px/1.4 Inter;
  color: #dbefff;
}
.wz-err-tips {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.wz-err-tips li {
  font: 800 14px/1.35 Inter;
  color: #bfe9ff;
}
.wz-err-code {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #2b0a46;
  border: 1.5px solid #000;
  box-shadow: inset 0 1px 0 #ffffff22;
}
.wz-err-code .lbl {
  font: 900 12px/1 Inter;
  color: #9fdcff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.wz-err-code .val {
  font: 900 13px/1 Inter;
  color: #ffe07a;
}
.wz-err-actions {
  padding: 6px 20px 20px;
  display: flex;
  justify-content: center;
}
.wz-btn {
  padding: 20px 45px;
  border-radius: 12px;
  border: 1.5px solid #000;
  cursor: pointer;
  font: 900 24px/1 Inter;
  color: #fff;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  transition: 0.12s;
  background: linear-gradient(90deg, #00ffd1, #00b7ff);
  text-decoration: none;
  text-align: center;
}
.wz-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.wz-btn:active {
  transform: translateY(0);
}
@media (max-width: 560px) {
  .wz-err-modal {
    width: calc(100% - 20px);
  }
  .wz-err-head h3 {
    font-size: 20px;
  }
  .wz-err-ico {
    width: 40px;
    height: 40px;
  }
  .wz-err-ico svg {
    width: 22px;
    height: 22px;
  }
  .wz-btn {
    width: 100%;
  }
}
/* BUY POPUP */

.wzp {
  position: fixed;
  inset: 0;
  z-index: 10110;
  display: none;
}
.wzp.open {
  display: block;
}
.wzp-dim {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 30, 0.6);
  backdrop-filter: blur(6px);
}
.wzp-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 32px));
  max-height: min(88vh, 100% - 32px);
  display: flex;
  flex-direction: column;
  border: 2px solid #bd38e9;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #3c0d61 0%, #340c56 100%);
  box-shadow: 0 30px 100px #000c, inset 0 1px 0 #fff2;
  color: #fff;
}
.wzp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 2px solid #00000055;
  background: linear-gradient(180deg, #ffffff10, #0000);
}
.wzp-head h4 {
  margin: 0;
  font: 900 22px/1.1 Inter;
}
.wzp-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid #000;
  background: #ff4d4d;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
}
.wzp-body {
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wzp-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.wzp-card {
  border: 2px solid #000;
  border-radius: 14px;
  padding: 14px;
  background: #2b0a46;
  box-shadow: inset 0 1px 0 #ffffff22, 0 8px 24px #0006;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wzp-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wzp-ico {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.wzp-title {
  font: 900 16px/1.1 Inter;
  color: #fff;
}
.wzp-desc {
  font: 800 12px/1.2 Inter;
  color: #cfe3ff;
}
.wzp-price {
  font: 900 18px/1 Inter;
  color: #ffe07a;
  text-shadow: 0 1px 0 #000;
}
.wzp-cta {
  align-self: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #000;
  background: linear-gradient(90deg, #00ffd1, #00b7ff);
  color: #0a1a34;
  font: 900 14px/1 Inter;
  cursor: pointer;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
}
.wzp-sec {
  margin: 4px 0 0 2px;
  font: 900 14px/1 Inter;
  color: #cfe3ff;
  letter-spacing: 0.5px;
}
.wzp-pack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.wzp-pack {
  /* border:2px solid #000; */
  border-radius: 12px;
  padding: 12px;
  background: #2b0a46;
  box-shadow: inset 0 1px 0 #ffffff22;
  border: 2px solid #bd38e9;
}
.wzp-pack .pack-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wzp-pack .pack-price {
  font: 900 16px/1 Inter;
  color: #fff;
}
.wzp-pack .pack-coins {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 900 14px/1 Inter;
  color: #bfe9ff;
}
.wzp-pack .coin-ico {
  width: 18px;
  height: 18px;
}
.wzp-pack .pack-cta {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #000;
  background: linear-gradient(180deg, #14ff85, #0acc63);
  color: #0a1a34;
  font: 900 14px/1 Inter;
  cursor: pointer;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
}
.wzp-foot {
  padding: 10px 12px;
  border-top: 2px solid #00000055;
  background: linear-gradient(180deg, #2a0846 0%, #21073a 100%);
  box-shadow: inset 0 1px 0 #ffffff1a;
}
.wzp-note {
  text-align: center;
  font: 800 12px/1.2 Inter;
  color: #9fdcff;
  letter-spacing: 1px;
}
@media (max-width: 1024px) {
  .wzp-pack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 740px) {
  .wzp-feature-grid {
    grid-template-columns: 1fr;
  }
  .wzp-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wzp-head h4 {
    font-size: 18px;
  }
}
@media (max-width: 420px) {
  .wzp-pack-grid {
    grid-template-columns: 1fr;
  }
}

/* NAME CHANGE POPUP */
.wz-nc {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 11020;
}
.wz-nc.open {
  display: block;
}
.wz-nc-dim {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 30, 0.6);
  backdrop-filter: blur(6px);
}
.wz-nc-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100% - 32px));
  border: 2px solid #bd38e9;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #3c0d61 0%, #340c56 100%);
  box-shadow: 0 30px 100px #000c, inset 0 1px 0 #fff2;
  color: #fff;
}
.wz-nc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 14px 16px;
  border-bottom: 2px solid #00000055;
  background: linear-gradient(180deg, #ffffff10, #0000);
}
.wz-nc-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid #0b6aa3;
  background: linear-gradient(90deg, #2ee9ff, #00b6ff);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px #00c9ff36, inset 0 -6px 10px #ffffffb0;
  color: #041225;
}
.wz-nc-ico svg {
  width: 22px;
  height: 22px;
}
.wz-nc-head h3 {
  margin: 0;
  font: 900 22px/1.1 Inter;
}
.wz-nc-x {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #000;
  background: #51157a;
  color: #fff;
  cursor: pointer;
  font-size: 40px;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
}
.wz-nc-x:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.wz-nc-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wz-nc-lab {
  font: 800 14px/1 Inter;
  color: #cfe3ff;
  text-align: center;
}
.wz-nc-field {
  height: 54px;
  border-radius: 12px;
  border: 2px solid #000;
  padding: 0 14px;
  font: 800 16px/1 Inter;
  background: #441178;
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff22;
}
.wz-nc-note {
  font: 800 12px/1.2 Inter;
  color: #bfe9ff;
  text-align: center;
}
.wz-nc-submit {
  padding: 16px;
  border-radius: 12px;
  border: 1.5px solid #000;
  cursor: pointer;
  font: 900 18px/1 Inter;
  color: #0a1a34;
  background: linear-gradient(90deg, #00ffd1, #00b7ff);
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  transition: 0.12s;
}
.wz-nc-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.wz-nc-submit:not(:disabled):hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
#nameTokenCount {
  padding: 2px 10px;
  border: 1.5px solid #000;
  border-radius: 999px;
  background: linear-gradient(180deg, #14355f, #0e2748);
  color: #ffe07a;
  font-weight: 900;
}

.wz-nc-confirm {
  margin-top: 6px;
  border: 1.5px solid #000;
  border-radius: 12px;
  padding: 12px;
  background: #2b0a46;
  box-shadow: inset 0 1px 0 #ffffff22;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wz-nc-confirm-text {
  color: #ffe07a;
  font: 800 14px/1.2 Inter;
  text-align: center;
}
.wz-nc-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.wz-pill {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid #000;
  cursor: pointer;
  font: 900 16px/1 Inter;
  color: #fff;
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c;
  transition: 0.12s;
}
.wz-pill.yes {
  background: linear-gradient(180deg, #14ff85, #0fe36f 60%, #0acc63 100%);
  color: #0b1f34;
}
.wz-pill.no {
  background: linear-gradient(180deg, #ff7080, #ff3b3b);
}
.wz-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
@media (max-width: 560px) {
  .wz-nc-head h3 {
    font-size: 20px;
  }
}

/* ===================== APP + LOADER CSS ===================== */

#wz-center-loader {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  padding-top: calc(16px + env(safe-area-inset-top));
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
}
#wz-center-loader.active {
  display: flex;
}
#wz-center-loader .wzil-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: center center;
}
.wzil-card {
  width: 780px;
  max-width: none;
  border: 2px solid #bd38e9;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #6f2191 0%, #5b1c7c 60%, #4e176e 100%);
  box-shadow: 0 18px 60px #0009, inset 0 1px 0 #ffffff22;
  color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.wzil-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px #0008);
}
.wzil-art {
  width: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
}
.wzil-svg {
  width: 96px;
  height: 96px;
}
.wzil-track {
  fill: none;
  stroke: #ffffff22;
  stroke-width: 10;
}
.wzil-worm {
  fill: none;
  stroke: url(#wzilgrad);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 40 220;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 8px 22px #00c9ff66);
  animation: wzilDash 1.2s ease-in-out infinite;
}
@keyframes wzilDash {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -260;
  }
}
.wzil-pct {
  font: 900 26px/1 Inter, system-ui;
  color: #d8ebff;
}
.wzil-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  border: 1.5px solid #000;
  background: linear-gradient(180deg, #14355f 0%, #0e2748 100%);
  box-shadow: 0 0.5px 0 #000, 0 0.7px 1px #000c, inset 0 0 0 1px #ffffff22;
  overflow: hidden;
}
.wzil-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2ee9ff, #00b6ff);
  box-shadow: inset 0 -6px 10px #ffffff77;
}
.wzil-tip {
  text-align: center;
  color: #d8ebff;
  font: 800 40px/1.2 Inter;
}
.wzil-tasks {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wzil-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #ffffff22;
  border-radius: 10px;
  background: linear-gradient(180deg, #14355f22, #0e274822);
  font: 600 12px/1.5 Inter, system-ui;
  color: #d8ebff;
}
.wzil-task .tick {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 14px;
  background: #ff6363;
  box-shadow: 0 0 0 1px #0008 inset;
}
.wzil-task[data-status="working"] .tick {
  background: #ffc14d;
}
.wzil-task[data-status="done"] .tick {
  background: #38d996;
  box-shadow: 0 0 0 1px #0b3 inset;
}
.wzil-task .label {
  flex: 1 1 auto;
}
.wzil-task .sub {
  opacity: 0.9;
}
@media (max-width: 560px) {
  .wzil-tip {
    font-size: clamp(18px, 6vw, 32px);
  }
  .wzil-svg {
    width: 86px;
    height: 86px;
  }
}

.app.is-loading .stage-wrap {
  visibility: hidden !important;
  pointer-events: none !important;
}
/* === GAME CANVAS — FIXED === */
/* Menü sahnesini gizle ama DOM’dan kaldırma (canvas’ın açılmasını engellemesin) */
.app.in-game .stage-wrap{
  pointer-events:none!important;
}

/* Oyun katmanı (canvas) */
.game-wrap{
  position:fixed;
  inset:0;
  display:none;
  background:#000;
  z-index:22000;
}
.app.in-game #gameWrap{ 
  display:block;
}
.game-stage{
  position:absolute;
  inset:0;
  z-index:22000;
}
#gameCanvas{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
  display:block;
  background:#000;
  z-index:22000;          
}

/* Loader overlay (canvas üstünde görünür, kapanınca canvas zaten görünür) */
#gamePortal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:23000;
  background:
    radial-gradient(1200px 600px at 50% 50%,#0000 0%,#0008 60%,#000d 100%),
    #0b0b13;
}
#gamePortal.active{display:flex}
#gamePortal.fadeout{animation:portalFade .35s ease forwards}
@keyframes portalFade{to{opacity:0;visibility:hidden}}

.portal-wrap{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}
.portal-card{
  width:860px;
  max-width:86%;
  border:2px solid #2b6be9;
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(180deg,#0f1630 0%,#0d1328 60%,#0b1122 100%);
  box-shadow:0 24px 90px #000c,inset 0 1px 0 #ffffff18;
  color:#e9f2ff;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:center;
}
.portal-title{
  font:900 clamp(20px,2vw,28px)/1.1 Inter,system-ui;
  text-transform:uppercase;
}
.portal-bar{
  width:100%;
  height:14px;
  border-radius:999px;
  border:1.5px solid #000;
  background:linear-gradient(180deg,#0e2448,#0a1a34);
  box-shadow:0 .5px 0 #000,0 .7px 1px #000c,inset 0 0 0 1px #ffffff22;
  overflow:hidden;
}
.portal-fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#4da3ff,#2ee9ff);
}
.portal-ring{width:96px;height:96px}
.portal-track{fill:none;stroke:#ffffff1e;stroke-width:10}
.portal-worm{
  fill:none;
  stroke:url(#portalGrad);
  stroke-width:10;
  stroke-linecap:round;
  stroke-dasharray:40 220;
  animation:portalDash 1.2s ease-in-out infinite;
}
@keyframes portalDash{to{stroke-dashoffset:-260}}
.portal-msg{
  font:800 clamp(18px,3.6vw,32px)/1.2 Inter,system-ui;
  color:#bfe3ff;
  text-align:center;
}

