:root {
  --bg: rgb(9 15 19);
  --main-bg: rgb(12 21 28);
  --second-bg: rgba(27, 30, 46, 1);
  --third-bg: rgba(20, 23, 35, 1);
  --four-bg: rgba(27, 30, 46, 1);
  --text: rgba(255, 255, 255, 0.8);
  --muted: rgba(244, 248, 255, 0.62);
  --line: rgba(255, 255, 255, 0.08);
  --accent: #b283ff;
  --accent-2: #74d7ff;
  --good: #27e6a7;
  --danger: #ec7e7e;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

/* Homepage account login */
.hero-status {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 300px) minmax(220px, 1fr) minmax(220px, 0.82fr);
}

.homepage-login-card {
  cursor: pointer;
}

.homepage-login-card .status-icon {
  color: #7ee7ff;
  box-shadow: 0 0 22px rgba(126, 231, 255, 0.16);
}

.homepage-login-card.is-logged-in .status-icon {
  color: #79ff9d;
  box-shadow: 0 0 24px rgba(121, 255, 157, 0.22);
}

.homepage-login-card.is-logged-in .status-meta,
.homepage-login-card.is-logged-in .ip {
  color: #79ff9d;
}

.homepage-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.homepage-auth-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.homepage-auth-modal[hidden] {
  display: none;
}

.homepage-auth-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
}

.homepage-auth-panel {
  position: relative;
  width: min(660px, calc(100vw - 28px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(126, 231, 255, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(10, 19, 30, 0.98), rgba(13, 27, 35, 0.98)),
    rgba(8, 14, 24, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), 0 0 36px rgba(126, 231, 255, 0.1);
}

.homepage-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 25px;
  font-weight: 900;
}

.homepage-auth-content {
  display: grid;
  gap: 18px;
}

.homepage-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 8px 11px;
  border: 1px solid rgba(126, 231, 255, 0.24);
  border-radius: 999px;
  color: #7ee7ff;
  background: rgba(126, 231, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.homepage-auth-title {
  margin: 0;
  padding-right: 48px;
  color: #fff;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
}

.homepage-auth-subtitle {
  margin: -6px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.homepage-auth-steps {
  display: grid;
  gap: 10px;
}

.homepage-auth-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.homepage-auth-step b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(126, 231, 255, 0.14);
  color: #7ee7ff;
  font-size: 15px;
}

.homepage-auth-step strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.homepage-auth-step span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.homepage-auth-codebox {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(126, 231, 255, 0.22);
  border-radius: 12px;
  background: rgba(126, 231, 255, 0.07);
}

.homepage-auth-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px dashed rgba(126, 231, 255, 0.42);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: clamp(24px, 6vw, 38px);
  font-weight: 900;
  letter-spacing: 0;
}

.homepage-auth-command {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.homepage-auth-command code {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
}

.homepage-auth-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.homepage-auth-status i {
  color: #7ee7ff;
}

.homepage-auth-status.error i,
.homepage-auth-status.error {
  color: var(--danger);
}

.homepage-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.homepage-auth-actions .btn {
  min-height: 44px;
}

.homepage-auth-profile {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(121, 255, 157, 0.22);
  border-radius: 12px;
  background: rgba(121, 255, 157, 0.07);
}

.homepage-auth-profile img {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  image-rendering: pixelated;
  border: 1px solid rgba(121, 255, 157, 0.28);
  background: rgba(0, 0, 0, 0.2);
}

.homepage-auth-profile h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.homepage-auth-profile p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.homepage-auth-session-grid div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.homepage-auth-session-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.homepage-auth-session-grid b {
  color: #fff;
  font-size: 17px;
}

@media (max-width: 1120px) {
  .hero-status {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
  }

  .header-logo {
    order: -1;
    grid-column: 1 / -1;
    min-height: 150px;
  }
}

@media (max-width: 720px) {
  .hero-status {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .header-logo {
    min-height: 128px;
  }

  .homepage-auth-panel {
    padding: 20px 16px;
  }

  .homepage-auth-title {
    padding-right: 42px;
  }

  .homepage-auth-profile,
  .homepage-auth-session-grid {
    grid-template-columns: 1fr;
  }

  .homepage-auth-profile {
    text-align: center;
    justify-items: center;
  }

  .homepage-auth-code {
    flex-direction: column;
    align-items: flex-start;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(178, 131, 255, 0.78);
  outline-offset: 3px;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1300px, calc(100% - 32px));
  margin: 0 auto;
}

#bg {
  position: fixed;
  inset: -70px 0 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 131, 255, 0.28), transparent 22%),
    radial-gradient(circle at 22% 18%, rgba(116, 215, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(9, 15, 19, 0.08), rgb(9 15 19) 68%),
    url("https://i.imgur.com/UyLwKoe.png") top center / cover no-repeat;
}

.enchant-particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.enchant-particles span {
  position: absolute;
  bottom: -40px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(178, 131, 255, 0.85);
  box-shadow: 0 0 14px rgba(178, 131, 255, 0.9);
  animation: enchantFloat 18s linear infinite;
}

.enchant-particles span::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(116, 215, 255, 0.32);
  border-radius: inherit;
}

.enchant-particles span:nth-child(1) { left: 4%; animation-delay: -2s; animation-duration: 18s; }
.enchant-particles span:nth-child(2) { left: 9%; animation-delay: -9s; animation-duration: 16s; width: 5px; height: 5px; }
.enchant-particles span:nth-child(3) { left: 14%; animation-delay: -4s; animation-duration: 20s; }
.enchant-particles span:nth-child(4) { left: 19%; animation-delay: -13s; animation-duration: 17s; width: 4px; height: 4px; }
.enchant-particles span:nth-child(5) { left: 24%; animation-delay: -7s; animation-duration: 19s; }
.enchant-particles span:nth-child(6) { left: 29%; animation-delay: -1s; animation-duration: 15s; width: 6px; height: 6px; }
.enchant-particles span:nth-child(7) { left: 34%; animation-delay: -11s; animation-duration: 21s; }
.enchant-particles span:nth-child(8) { left: 39%; animation-delay: -5s; animation-duration: 16s; width: 4px; height: 4px; }
.enchant-particles span:nth-child(9) { left: 44%; animation-delay: -15s; animation-duration: 22s; }
.enchant-particles span:nth-child(10) { left: 49%; animation-delay: -3s; animation-duration: 18s; width: 5px; height: 5px; }
.enchant-particles span:nth-child(11) { left: 54%; animation-delay: -12s; animation-duration: 20s; }
.enchant-particles span:nth-child(12) { left: 59%; animation-delay: -6s; animation-duration: 17s; width: 4px; height: 4px; }
.enchant-particles span:nth-child(13) { left: 64%; animation-delay: -10s; animation-duration: 19s; }
.enchant-particles span:nth-child(14) { left: 69%; animation-delay: -2s; animation-duration: 15s; width: 6px; height: 6px; }
.enchant-particles span:nth-child(15) { left: 74%; animation-delay: -14s; animation-duration: 22s; }
.enchant-particles span:nth-child(16) { left: 79%; animation-delay: -8s; animation-duration: 16s; width: 4px; height: 4px; }
.enchant-particles span:nth-child(17) { left: 84%; animation-delay: -4s; animation-duration: 20s; }
.enchant-particles span:nth-child(18) { left: 89%; animation-delay: -16s; animation-duration: 18s; width: 5px; height: 5px; }
.enchant-particles span:nth-child(19) { left: 94%; animation-delay: -6s; animation-duration: 21s; }
.enchant-particles span:nth-child(20) { left: 7%; animation-delay: -18s; animation-duration: 23s; width: 4px; height: 4px; }
.enchant-particles span:nth-child(21) { left: 31%; animation-delay: -17s; animation-duration: 24s; }
.enchant-particles span:nth-child(22) { left: 57%; animation-delay: -19s; animation-duration: 23s; width: 5px; height: 5px; }
.enchant-particles span:nth-child(23) { left: 72%; animation-delay: -20s; animation-duration: 25s; }
.enchant-particles span:nth-child(24) { left: 96%; animation-delay: -21s; animation-duration: 24s; width: 4px; height: 4px; }

@keyframes enchantFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.7) rotate(0);
  }
  10%, 72% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translateY(-110vh) scale(1.35) rotate(180deg);
  }
}

.header {
  min-height: 360px;
  overflow: hidden;
}

.header .container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding-top: 20px;
  padding-bottom: 34px;
}

.hero-status {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) minmax(260px, 1fr);
  align-items: center;
  gap: 24px;
  width: 100%;
}

.status-card {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 14, 24, 0.38);
  color: inherit;
  box-shadow: none;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.status-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 14, 24, 0.58);
}

.status-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-size: 21px;
}

.discord-card .status-icon {
  color: #8ea2ff;
}

.status-copy {
  min-width: 0;
}

.status-card .copy {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.copy-face.copy-back {
  display: none;
}

.status-card:hover .copy-front {
  display: none;
}

.status-card:hover .copy-back {
  display: inline;
}

.status-card .ip {
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
  word-break: break-word;
}

.status-card .ip b,
.logged b,
.status-meta span {
  color: var(--accent);
}

.discord-card .status-meta span {
  color: #9fb0ff;
}

.status-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.header-logo {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.header-logo img {
  width: min(430px, 86vw);
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 26px rgba(178, 131, 255, 0.28));
}

.logo-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 78vw);
  min-height: 96px;
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 16px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(178, 131, 255, 0.36);
}

.post-header-wrap {
  margin-top: -8px;
  margin-bottom: 24px;
}

.post-header-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(178, 131, 255, 0.22);
  border-radius: 10px;
  background: rgba(8, 14, 24, 0.54);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  overflow: visible;
}

.post-header-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(178, 131, 255, 0.1), rgba(255, 214, 120, 0.08), rgba(116, 215, 255, 0.08), rgba(178, 131, 255, 0.1));
  opacity: 0.55;
  pointer-events: none;
}

.post-header-panel > *:not(.firework-border) {
  position: relative;
  z-index: 2;
}

.dock-empty {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  color: rgba(244, 248, 255, 0.78);
  font-size: 16px;
  font-weight: 900;
}

.dock-empty i {
  color: var(--accent);
}

.dock-empty div {
  min-width: 0;
}

.dock-empty span {
  display: block;
  color: rgba(244, 248, 255, 0.58);
  font-size: 12px;
  text-transform: uppercase;
}

.dock-empty b {
  display: block;
  color: #fff;
}

.goal-mini {
  width: min(180px, 34vw);
  height: 9px;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.goal-mini span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #ffd678);
}

.htop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.bsk,
.currency .btn,
.profile {
  min-height: 58px;
  border: 1px solid rgba(178, 131, 255, 0.24);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  text-decoration: none;
}

.bsk {
  min-width: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.basket-count {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #080a10;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.currency .btn {
  padding: 0 18px;
  font-weight: 900;
}

.profile {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 12px 0 15px;
}

.profile-txt {
  display: grid;
  gap: 1px;
}

.login {
  color: rgba(155, 155, 155, 1);
  font-size: 12px;
  font-weight: 800;
}

.logged {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.profile img.skin-preview {
  width: 58px;
  height: 78px;
  margin-left: 8px;
  object-fit: contain;
  object-position: bottom center;
}

.firework-border {
  position: absolute;
  inset: -18px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: 14px;
}

.firework-border span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 10px currentColor;
  animation: fireworkPop 3.2s ease-in-out infinite;
}

.firework-border span:nth-child(1) { left: 5%; top: 6px; background: var(--accent); animation-delay: -0.2s; }
.firework-border span:nth-child(2) { left: 16%; top: 4px; background: var(--accent-2); animation-delay: -1.1s; }
.firework-border span:nth-child(3) { left: 32%; top: 7px; background: #ffd678; animation-delay: -2s; }
.firework-border span:nth-child(4) { left: 51%; top: 3px; background: #ff7ad9; animation-delay: -0.9s; }
.firework-border span:nth-child(5) { left: 68%; top: 6px; background: #8dffb0; animation-delay: -1.8s; }
.firework-border span:nth-child(6) { left: 88%; top: 5px; background: var(--accent); animation-delay: -2.7s; }
.firework-border span:nth-child(7) { right: 5px; top: 22%; background: var(--accent-2); animation-delay: -0.5s; }
.firework-border span:nth-child(8) { right: 7px; top: 64%; background: #ffd678; animation-delay: -1.5s; }
.firework-border span:nth-child(9) { left: 10%; bottom: 4px; background: #ff7ad9; animation-delay: -2.4s; }
.firework-border span:nth-child(10) { left: 38%; bottom: 7px; background: #8dffb0; animation-delay: -0.8s; }
.firework-border span:nth-child(11) { left: 62%; bottom: 5px; background: var(--accent); animation-delay: -1.9s; }
.firework-border span:nth-child(12) { left: 84%; bottom: 6px; background: var(--accent-2); animation-delay: -3.1s; }

@keyframes fireworkPop {
  0%, 70%, 100% {
    opacity: 0;
    box-shadow: 0 0 0 0 currentColor;
    transform: scale(0.4);
  }
  76% {
    opacity: 0.95;
    box-shadow:
      0 -14px 0 -1px currentColor,
      10px -10px 0 -1px currentColor,
      14px 0 0 -1px currentColor,
      10px 10px 0 -1px currentColor,
      0 14px 0 -1px currentColor,
      -10px 10px 0 -1px currentColor,
      -14px 0 0 -1px currentColor,
      -10px -10px 0 -1px currentColor,
      0 0 18px 3px currentColor;
    transform: scale(1.15);
  }
  88% {
    opacity: 0;
    box-shadow:
      0 -28px 0 -2px currentColor,
      20px -20px 0 -2px currentColor,
      28px 0 0 -2px currentColor,
      20px 20px 0 -2px currentColor,
      0 28px 0 -2px currentColor,
      -20px 20px 0 -2px currentColor,
      -28px 0 0 -2px currentColor,
      -20px -20px 0 -2px currentColor,
      0 0 26px 5px currentColor;
    transform: scale(1.25);
  }
}

.global-categories-wrap {
  margin-top: -10px;
  margin-bottom: 24px;
}

.home-categories-panel {
  margin-top: 0;
}

.home-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.home-category {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(178, 131, 255, 0.16);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(178, 131, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(8, 14, 24, 0.66);
  color: #fff;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.home-category:hover,
.home-category.active {
  color: var(--accent);
  border-color: rgba(178, 131, 255, 0.52);
  background:
    linear-gradient(180deg, rgba(178, 131, 255, 0.15), rgba(255, 255, 255, 0.045)),
    rgba(8, 14, 24, 0.76);
  transform: translateY(-2px);
}

.home-category-image {
  width: 68px;
  height: 68px;
  min-width: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: currentColor;
  font-size: 28px;
  overflow: hidden;
}

.home-category-name {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.dzn-main {
  display: block;
}

.dzn-content {
  width: 100%;
}

.panel {
  border: 0;
  border-radius: 15px;
  background: var(--main-bg);
}

.panel-body {
  padding: 30px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 16px;
  color: rgba(171, 180, 255, 1);
  font-size: 16px;
  font-weight: 900;
}

.payments {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payments.compact {
  flex-direction: column;
}

.recent-donation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(35, 39, 56, 0.68);
}

.recent-donation img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.recent-donation a,
.recent-donation-name {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.recent-donation b {
  margin-left: auto;
  color: rgba(244, 248, 255, 0.64);
  font-size: 13px;
}

.recent-donation small {
  color: var(--accent);
  font-weight: 900;
}

.featured {
  margin-bottom: 20px;
  border-top: 83px solid var(--third-bg);
  border-radius: 15px;
  background: var(--main-bg);
}

#featured-module {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.featured-package {
  position: relative;
  border-radius: 15px;
  background: var(--second-bg);
}

.featured-package a {
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 15px;
  color: inherit;
  text-decoration: none;
}

.featured-package .image {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: rgba(35, 39, 56, 1);
  color: var(--accent);
  font-size: 42px;
}

.featured-package img {
  max-width: 78px;
  max-height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.36));
}

.feat-desc,
.feat-pack {
  display: block;
}

.feat-desc {
  color: rgba(171, 180, 255, 1);
  font-size: 13px;
  font-weight: 700;
}

.feat-pack {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.feat-star {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: rgba(81, 62, 33, 1);
  color: rgba(225, 155, 28, 1);
  font-size: 18px;
}

.feat-star.blue {
  background: rgba(116, 215, 255, 0.14);
  color: var(--accent-2);
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.main {
  margin-bottom: 20px;
  border-bottom: 38px solid var(--third-bg);
}

.main h1 {
  min-height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1em;
  padding: 15px;
  border-radius: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  font-weight: 900;
}

.main h1 i {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

h1.welcome {
  background: rgba(37, 49, 89, 1);
}

h1.welcome i {
  background: rgba(49, 62, 134, 1);
  color: rgba(105, 120, 203, 1);
}

h1.info {
  background: rgba(47, 100, 57, 1);
}

h1.info i {
  background: rgba(73, 149, 76, 1);
  color: rgba(128, 226, 132, 1);
}

h1.about {
  background: rgba(98, 50, 53, 1);
}

h1.about i {
  background: rgba(142, 56, 56, 1);
  color: rgba(236, 126, 126, 1);
}

.home-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 28px;
}

.home-hero-copy h2 {
  max-width: 650px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  font-weight: 900;
}

.home-hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(244, 248, 255, 0.7);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-facts span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(178, 131, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.042);
  color: rgba(244, 248, 255, 0.76);
  font-size: 13px;
  font-weight: 900;
}

.hero-facts i {
  color: var(--accent);
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(178, 131, 255, 0.34);
  border-radius: 10px;
  padding: 0 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(178, 131, 255, 0.68);
}

.btn-primary,
.btn-success {
  background: rgba(178, 131, 255, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.055);
}

.hero-orb {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
}

.hero-orb img {
  width: min(300px, 100%);
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(178, 131, 255, 0.18));
}

.top-donater-podium {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(160px, 0.8fr));
  align-items: stretch;
  gap: 16px;
}

.top-podium-slot,
.topd {
  position: relative;
  min-height: 220px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(178, 131, 255, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 131, 255, 0.16), transparent 48%),
    rgba(255, 255, 255, 0.045);
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.top-podium-1 {
  min-height: 260px;
}

.podium-crown {
  color: #ffd678;
  font-size: 24px;
}

.avatar img {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.top-podium-1 .avatar img {
  width: 120px;
  height: 130px;
  object-fit: contain;
}

.don-name {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.don-pack {
  color: rgba(244, 248, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
}

.don-price {
  display: grid;
  gap: 3px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.don-price span {
  color: rgba(244, 248, 255, 0.54);
  font-size: 11px;
  text-transform: uppercase;
}

.home-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.home-team-grid > .data-empty {
  grid-column: 1 / -1;
}

.team-member {
  --team-color: var(--accent);
  position: relative;
  isolation: isolate;
  min-height: 286px;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--team-color) 34%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--team-color) 18%, transparent), transparent 48%),
    linear-gradient(145deg, rgba(178, 131, 255, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.042);
}

.team-member::before {
  content: "";
  position: absolute;
  inset: auto 10% 112px;
  z-index: -1;
  height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--team-color) 24%, transparent);
  filter: blur(12px);
}

.team-skin {
  min-height: 160px;
  display: grid;
  place-items: end center;
  background: transparent;
}

.team-skin img {
  width: min(138px, 90%);
  max-height: 168px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.38)) drop-shadow(0 0 18px color-mix(in srgb, var(--team-color) 24%, transparent));
}

.team-info {
  display: grid;
  gap: 6px;
}

.team-member strong {
  display: block;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.team-info > span {
  display: block;
  color: rgba(244, 248, 255, 0.62);
  font-size: 13px;
  font-weight: 900;
}

.team-rank-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.team-owner {
  --team-color: #ffd678;
}

.team-developer {
  --team-color: #74d7ff;
}

.team-builder {
  --team-color: #e2b4ff;
}

.team-admin {
  --team-color: #ec7e7e;
}

.team-discord {
  --team-color: #8ea2ff;
}

.team-moderator {
  --team-color: #27e6a7;
}

.team-supporter,
.team-sup {
  --team-color: #7aca83;
}

.team-helfer {
  --team-color: #70ff6e;
}

.team-media {
  --team-color: #8df6ff;
}

.team-freund {
  --team-color: #ffe46e;
}

.team-booster {
  --team-color: #ff73fa;
}

.team-member.team-owner {
  --team-color: #ffd678;
}

.home-system-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.system-status-main,
.system-status-card {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(178, 131, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.042);
}

.system-status-main {
  display: flex;
  align-items: center;
  gap: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(39, 230, 167, 0.14), transparent 45%),
    rgba(255, 255, 255, 0.045);
}

.system-pulse {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(178, 131, 255, 0.42);
  animation: systemPulse 1.8s ease-out infinite;
}

.home-system-panel.is-online .system-pulse {
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(39, 230, 167, 0.42);
}

.home-system-panel.is-offline .system-pulse {
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(236, 126, 126, 0.42);
}

.system-status-main strong,
.system-status-card b {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.18;
}

.system-status-main span:last-child,
.system-status-card > span,
.system-status-card em {
  display: block;
  color: rgba(244, 248, 255, 0.62);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.system-status-card {
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.system-status-card > span {
  color: var(--accent);
  text-transform: uppercase;
}

@keyframes systemPulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  70% {
    box-shadow: 0 0 0 14px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.md-category-shell {
  width: min(1180px, 100%);
  margin: 0 auto 42px;
}

.md-checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid rgba(178, 131, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.md-checkout-head span {
  display: block;
  color: rgba(244, 248, 255, 0.56);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.md-checkout-head h1 {
  margin: 0;
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.md-checkout-back {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(178, 131, 255, 0.28);
  border-radius: 10px;
  background: rgba(178, 131, 255, 0.12);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.md-category-products {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.md-category-products > .panel-body {
  padding: 0;
}

.packages-image.md-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.package.md-product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 131, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.package.md-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(178, 131, 255, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 131, 255, 0.2), transparent 46%),
    rgba(255, 255, 255, 0.05);
}

.package.md-product-card .image {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.package.md-product-card .image button {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
}

.package.md-product-card .image img {
  max-width: 88%;
  max-height: 162px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.34));
}

.package.md-product-card .info .text {
  display: grid;
  gap: 8px;
  text-align: center;
}

.package.md-product-card .name {
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.15;
}

.package.md-product-card .price {
  color: var(--accent);
  font-size: 19px;
  font-weight: 900;
}

.package.md-product-card p {
  margin: 0;
  color: rgba(244, 248, 255, 0.68);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.package-rank-benefits {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(7, 11, 18, 0.28);
}

.package-rank-benefits div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(244, 248, 255, 0.74);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.button.pbtns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  margin-top: auto;
}

.button.pbtns .btn {
  width: 100%;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(178, 131, 255, 0.34);
  background: rgba(178, 131, 255, 0.18);
  font-size: 13px;
  white-space: nowrap;
}

.button.pbtns .p-info {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.key-quantity-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 2px;
}

.key-quantity-picker button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(7, 11, 18, 0.45);
  color: rgba(244, 248, 255, 0.76);
  font-weight: 900;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.key-quantity-picker button:hover,
.key-quantity-picker button.active {
  transform: translateY(-1px);
  border-color: rgba(178, 131, 255, 0.62);
  background: rgba(178, 131, 255, 0.24);
  color: #fff;
}

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

.vote {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(178, 131, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.vote:hover,
.vote:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(212, 116, 255, 0.48);
  background: rgba(178, 131, 255, 0.1);
  box-shadow: 0 16px 34px rgba(111, 36, 214, 0.22);
  outline: none;
}

.v-nr {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.v-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(178, 131, 255, 0.18);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.v-link i {
  font-size: 12px;
  opacity: 0.82;
}

.daily-reward {
  --reward-glow: rgba(178, 131, 255, 0.28);
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(178, 131, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 79, 216, 0.16), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(121, 255, 157, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.daily-reward-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 18px;
  align-items: center;
}

.daily-reward-kicker,
.daily-choice-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a8ffbd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daily-reward-head h2,
.daily-choice-head h3 {
  margin: 7px 0 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.daily-reward-head p {
  max-width: 820px;
  margin: 0;
  color: rgba(244, 248, 255, 0.68);
  font-weight: 800;
  line-height: 1.55;
}

.daily-link-state {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(121, 255, 157, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(121, 255, 157, 0.12), rgba(178, 131, 255, 0.08)),
    rgba(5, 9, 19, 0.52);
}

.daily-link-state i {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #79ff9d;
  background: rgba(121, 255, 157, 0.12);
  box-shadow: 0 0 24px rgba(121, 255, 157, 0.14);
}

.daily-link-state div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.daily-link-state strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.daily-link-state span {
  color: rgba(244, 248, 255, 0.66);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.daily-reward.is-link-required .daily-ad-stage {
  border-color: rgba(255, 214, 128, 0.18);
}

.daily-reward.is-link-required .daily-ad-orb i {
  background: rgba(255, 214, 128, 0.18);
}

.daily-streak-meter {
  min-height: 128px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 214, 128, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(255, 214, 128, 0.2), transparent 64%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 28px rgba(255, 214, 128, 0.08);
}

.daily-streak-meter span {
  color: #ffd678;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.daily-streak-meter b {
  color: rgba(244, 248, 255, 0.58);
  font-size: 13px;
  font-weight: 900;
}

.daily-streak-meter em {
  color: rgba(244, 248, 255, 0.54);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-reward-stats,
.daily-rarity-strip,
.daily-reward-choices {
  display: grid;
  gap: 12px;
}

.daily-reward-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.daily-reward-stats div,
.daily-rarity-pill,
.daily-ad-stage,
.daily-reward-card,
.daily-reward-history {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(5, 9, 19, 0.48);
}

.daily-reward-stats div {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
}

.daily-reward-stats span,
.daily-ad-copy span,
.daily-reward-card span,
.daily-reward-history span {
  color: rgba(244, 248, 255, 0.55);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.daily-reward-stats b {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.daily-rarity-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
}

.daily-rarity-pill {
  --rarity-color: #b283ff;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 5px;
  padding: 11px;
}

.daily-rarity-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--rarity-color) 22%, transparent), transparent 62%);
  opacity: 0.9;
}

.daily-rarity-pill strong,
.daily-rarity-pill span {
  position: relative;
}

.daily-rarity-pill strong {
  color: var(--rarity-color);
  font-size: 13px;
  font-weight: 900;
}

.daily-rarity-pill span {
  color: rgba(244, 248, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.daily-ad-stage {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
}

.daily-ad-stage.is-running {
  border-color: rgba(121, 255, 157, 0.28);
  box-shadow: 0 0 34px rgba(121, 255, 157, 0.08);
}

.daily-ad-orb {
  position: relative;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  color: #fff;
}

.daily-ad-orb i {
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(178, 131, 255, 0.26);
  box-shadow: 0 0 22px rgba(178, 131, 255, 0.22);
}

.daily-ad-orb svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.daily-ad-orb circle {
  fill: none;
  stroke-width: 9;
}

.daily-ad-orb circle:first-child {
  stroke: rgba(255, 255, 255, 0.08);
}

#daily-ad-progress-ring {
  stroke: #79ff9d;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  filter: drop-shadow(0 0 7px rgba(121, 255, 157, 0.55));
  transition: stroke-dashoffset 0.25s ease;
}

.daily-ad-copy h3 {
  margin: 4px 0 7px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.daily-ad-copy p {
  margin: 0 0 10px;
  color: rgba(244, 248, 255, 0.66);
  font-weight: 800;
  line-height: 1.45;
}

.daily-ad-copy small {
  display: block;
  margin-top: 7px;
  color: rgba(244, 248, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.daily-ad-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.daily-ad-progress span {
  width: 0%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #79ff9d, #ffd678, #ff4fd8);
  transition: width 0.25s ease;
}

.daily-choice-stage {
  margin-top: 18px;
}

.daily-choice-head {
  margin-bottom: 12px;
}

.daily-reward-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.daily-reward-card {
  --rarity-color: #b283ff;
  position: relative;
  min-height: 228px;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 16px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.daily-reward-card::before {
  content: "";
  position: absolute;
  inset: -30% -20%;
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--rarity-color) 38%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--rarity-color) 18%, transparent), transparent 58%);
  animation: rewardAura 4s linear infinite;
}

.daily-reward-card > * {
  position: relative;
}

.daily-reward-card:hover,
.daily-reward-card:focus-visible {
  transform: translateY(-3px) scale(1.01);
  border-color: color-mix(in srgb, var(--rarity-color) 62%, transparent);
  box-shadow: 0 20px 44px color-mix(in srgb, var(--rarity-color) 18%, transparent);
  outline: none;
}

.daily-reward-card.is-picked {
  border-color: color-mix(in srgb, var(--rarity-color) 82%, transparent);
  animation: rewardPick 0.9s ease both;
}

.daily-reward-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--rarity-color) 22%, transparent);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 0 24px color-mix(in srgb, var(--rarity-color) 22%, transparent);
}

.daily-reward-card h4 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.daily-reward-card p {
  margin: 7px 0 0;
  color: rgba(244, 248, 255, 0.65);
  font-weight: 800;
  line-height: 1.4;
}

.daily-reward-card .daily-rarity-name {
  display: inline-flex;
  width: fit-content;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 42%, transparent);
  border-radius: 999px;
  color: var(--rarity-color);
  background: color-mix(in srgb, var(--rarity-color) 10%, transparent);
}

.daily-reward-history {
  margin-top: 16px;
  padding: 13px 14px;
  color: rgba(244, 248, 255, 0.68);
  font-weight: 800;
}

.daily-reward-history strong {
  color: #fff;
}

@keyframes rewardAura {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.08); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes rewardPick {
  0% { transform: scale(1); }
  45% { transform: scale(1.045); }
  100% { transform: scale(1.01); }
}

.info-grid,
.profile-stats-grid,
.profile-details-grid {
  display: grid;
  gap: 18px;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.profile-details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.profile-stat,
.profile-panel {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.info-card i {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 13px;
  background: rgba(178, 131, 255, 0.14);
  color: var(--accent);
  font-size: 21px;
}

.info-card h2,
.profile-panel h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.info-card p,
.profile-panel p {
  margin: 0;
  color: rgba(244, 248, 255, 0.68);
  font-weight: 700;
  line-height: 1.5;
}

.profile-stat {
  display: grid;
  gap: 10px;
}

.profile-stat span {
  color: rgba(244, 248, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-stat b {
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.profile-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-detail-row span {
  color: rgba(244, 248, 255, 0.58);
  font-weight: 800;
}

.profile-detail-row b {
  color: #fff;
  text-align: right;
}

.activity-bar {
  height: 12px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.activity-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--good));
}

.leaderboard {
  display: grid;
  gap: 12px;
}

.leader-row {
  display: grid;
  grid-template-columns: 58px 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(178, 131, 255, 0.11), transparent 44%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.leader-row:hover,
.leader-row:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(178, 131, 255, 0.36);
  background:
    radial-gradient(circle at 0 0, rgba(178, 131, 255, 0.18), transparent 44%),
    rgba(178, 131, 255, 0.075);
  outline: none;
}

.leader-row.first {
  border-color: rgba(255, 214, 120, 0.34);
  background:
    radial-gradient(circle at 0 0, rgba(255, 214, 120, 0.17), transparent 42%),
    rgba(255, 255, 255, 0.055);
}

.leader-row > span {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.leader-row img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.3));
}

.leader-row b {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.leader-player {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.leader-row em {
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.clan-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.home-clans-preview,
.clan-ranking-list {
  display: grid;
  gap: 14px;
}

.home-clans-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clan-toolbar {
  margin-bottom: 18px;
}

.clan-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--clan-color, #b283ff) 34%, transparent);
  border-radius: 12px;
  background: rgba(7, 11, 18, 0.82);
  box-shadow: 0 0 24px color-mix(in srgb, var(--clan-color, #b283ff) 10%, transparent);
}

.clan-card.compact {
  grid-template-columns: 1fr;
  align-content: start;
}

.clan-banner {
  position: relative;
  min-height: 126px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--clan-color, #b283ff) 54%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--clan-color, #b283ff) 13%, rgba(8, 14, 24, 0.96));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--clan-color-2, #74d7ff) 18%, transparent),
    0 0 22px color-mix(in srgb, var(--clan-color, #b283ff) 20%, transparent);
}

.clan-icon-panel {
  min-height: 142px;
}

.clan-banner::before,
.clan-banner::after {
  display: none;
}

.clan-banner::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 40%, rgba(0, 0, 0, 0.22));
}

.clan-banner::after {
  inset: auto 14px 12px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--clan-color, #b283ff), var(--clan-color-2, #74d7ff));
  box-shadow: 0 0 20px color-mix(in srgb, var(--clan-color, #b283ff) 60%, transparent);
}

.clan-banner-icon {
  position: relative;
  z-index: 1;
  color: var(--clan-color, #b283ff);
  font-size: 64px;
  filter:
    drop-shadow(0 0 18px color-mix(in srgb, var(--clan-color, #b283ff) 72%, transparent))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34));
}

.clan-banner .clan-banner-tag {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 100%;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.42);
}

.clan-card-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.clan-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.clan-card-head span {
  display: block;
  color: var(--clan-color, var(--accent));
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.clan-card-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.clan-card-head strong,
.clan-level-pill {
  min-width: max-content;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--clan-color, #b283ff) 42%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--clan-color, #b283ff) 24%, transparent), color-mix(in srgb, var(--clan-color-2, #74d7ff) 10%, transparent)),
    rgba(7, 11, 18, 0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 18px color-mix(in srgb, var(--clan-color, #b283ff) 16%, transparent);
}

.clan-level-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.clan-level-pill i {
  color: var(--clan-color, var(--accent));
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--clan-color, #b283ff) 66%, transparent));
}

.clan-stats-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clan-stats-line b,
.clan-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--clan-color, #b283ff) 28%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--clan-color, #b283ff) 12%, transparent), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.035);
  color: rgba(244, 248, 255, 0.78);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.clan-stats-line i,
.clan-badge i {
  color: var(--clan-color, var(--accent));
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--clan-color, #b283ff) 46%, transparent));
}

.clan-elo-pill i {
  color: var(--clan-elo-color, var(--clan-color, var(--accent)));
}

.clan-level-mini {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, var(--clan-color, #b283ff) 44%, transparent);
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.52);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.clan-banner .clan-level-mini {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--clan-color, #b283ff) 26%, transparent), rgba(7, 11, 18, 0.68)),
    rgba(7, 11, 18, 0.78);
}

.clan-level-mini i {
  color: var(--clan-color, var(--accent));
}

.clan-card p {
  margin: 0;
  color: rgba(244, 248, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.clan-members {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.clan-members span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(7, 11, 18, 0.38);
  color: rgba(244, 248, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
}

.clan-members em {
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}

.clan-badge {
  width: fit-content;
  min-height: 26px;
  padding: 0 8px;
  border-color: color-mix(in srgb, var(--clan-color, #b283ff) 46%, transparent);
  background: color-mix(in srgb, var(--clan-color, #b283ff) 16%, transparent);
  color: #fff;
}

.clan-badge-link {
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.clan-badge-link:hover,
.clan-badge-link:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--clan-color, #b283ff) 62%, rgba(255, 255, 255, 0.2));
  background: color-mix(in srgb, var(--clan-color, #b283ff) 24%, rgba(255, 255, 255, 0.06));
  box-shadow: 0 0 18px color-mix(in srgb, var(--clan-color, #b283ff) 22%, transparent);
  outline: none;
}

.clan-badge.empty {
  --clan-color: rgba(244, 248, 255, 0.42);
  color: rgba(244, 248, 255, 0.58);
}

.clan-summary {
  display: block;
}

.clan-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
  gap: 22px;
  min-height: 330px;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid rgba(178, 131, 255, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(178, 131, 255, 0.16), transparent 42%),
    radial-gradient(circle at 90% 16%, rgba(116, 215, 255, 0.12), transparent 36%),
    rgba(7, 11, 18, 0.72);
}

.clan-hero-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.clan-hero-copy > span,
.clan-members-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.clan-hero-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.04;
}

.clan-hero-copy p {
  margin: 0;
  color: rgba(244, 248, 255, 0.66);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.clan-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clan-hero-meta b {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.clan-hero-meta i {
  color: var(--accent);
}

.clan-hero-feature {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--clan-elo-color, #b283ff) 42%, transparent);
  border-radius: 10px;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--clan-elo-color, #b283ff) 20%, transparent), transparent 46%),
    rgba(255, 255, 255, 0.045);
}

.clan-hero-top {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--clan-elo-color, #b283ff) 46%, transparent);
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--clan-elo-color, #b283ff) 22%, transparent), transparent 44%),
    linear-gradient(135deg, color-mix(in srgb, var(--clan-color, #b283ff) 14%, transparent), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 24px color-mix(in srgb, var(--clan-elo-color, #b283ff) 18%, transparent);
}

.clan-hero-top > i {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--clan-elo-color, #b283ff) 20%, rgba(7, 11, 18, 0.74));
  color: var(--clan-elo-color, var(--accent));
  font-size: 28px;
  filter: drop-shadow(0 0 15px color-mix(in srgb, var(--clan-elo-color, #b283ff) 72%, transparent));
}

.clan-hero-top div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.clan-hero-top span {
  color: rgba(244, 248, 255, 0.58);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.clan-hero-top b {
  color: #fff;
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 950;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.clan-hero-top em {
  color: rgba(244, 248, 255, 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.clan-hero-feature > i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--clan-elo-color, #b283ff) 16%, rgba(255, 255, 255, 0.05));
  color: var(--clan-elo-color, var(--accent));
  font-size: 24px;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--clan-elo-color, #b283ff) 68%, transparent));
}

.clan-hero-feature div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.clan-hero-feature span {
  color: rgba(244, 248, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.clan-hero-feature b {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.clan-hero-feature em {
  color: rgba(244, 248, 255, 0.68);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.clan-elo-ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
}

.clan-tier-card {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 5px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--clan-elo-color, #b283ff) 38%, transparent);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--clan-elo-color, #b283ff) 20%, transparent), transparent 48%),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--clan-elo-color, #b283ff) 8%, transparent);
}

.clan-tier-card::before,
.clan-icon-panel::before,
.rank-badge::before {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background:
    radial-gradient(circle, currentColor 0 2px, transparent 3px) 12% 22% / 44px 44px,
    radial-gradient(circle, currentColor 0 1.5px, transparent 2.5px) 78% 64% / 36px 36px;
  color: var(--rank-color, var(--clan-elo-color, var(--clan-color, #b283ff)));
  opacity: 0;
  transform: rotate(12deg);
  transition: opacity 0.18s ease;
}

.clan-tier-card:hover::before,
.clan-card:hover .clan-icon-panel::before,
.clan-card.is-selected .clan-icon-panel::before,
.rank-badge:hover::before,
.rank-badge:focus-visible::before {
  opacity: 0.22;
  animation: mdParticleDrift 3s linear infinite;
}

.clan-tier-card i {
  color: var(--clan-elo-color, var(--accent));
  font-size: 24px;
  filter: drop-shadow(0 0 13px color-mix(in srgb, var(--clan-elo-color, #b283ff) 72%, transparent));
}

.clan-tier-card span {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.clan-tier-card b,
.clan-tier-card em {
  color: rgba(244, 248, 255, 0.68);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.clan-tier-card em {
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--clan-elo-color, #b283ff) 18%, rgba(255, 255, 255, 0.04));
  color: #fff;
}

.clan-tier-card.is-start {
  border-style: solid;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--clan-elo-color, #9ca3af) 16%, transparent), transparent 64%),
    rgba(255, 255, 255, 0.05);
}

.clan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.clan-search {
  min-width: min(280px, 100%);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(7, 11, 18, 0.64);
  color: var(--accent);
}

.clan-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.clan-search input::placeholder {
  color: rgba(244, 248, 255, 0.44);
}

.clan-card {
  position: relative;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.clan-card:not(.compact) {
  cursor: pointer;
}

.clan-card:not(.compact):hover,
.clan-card:not(.compact):focus-visible,
.clan-card.is-selected {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--clan-elo-color, var(--clan-color, #b283ff)) 62%, transparent);
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--clan-elo-color, #b283ff) 13%, transparent), transparent 42%),
    rgba(7, 11, 18, 0.9);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.28),
    0 0 30px color-mix(in srgb, var(--clan-elo-color, #b283ff) 24%, transparent);
}

.clan-card:focus-visible {
  outline: 2px solid var(--clan-elo-color, var(--accent));
  outline-offset: 3px;
}

.clan-icon-panel {
  isolation: isolate;
}

.clan-icon-aura {
  position: absolute;
  inset: 18px;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--clan-elo-color, #b283ff) 34%, transparent), transparent 62%),
    conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--clan-color, #b283ff) 42%, transparent), transparent, color-mix(in srgb, var(--clan-elo-color, #b283ff) 38%, transparent), transparent);
  filter: blur(5px);
  opacity: 0.7;
  animation: clanAuraSpin 8s linear infinite;
}

.clan-banner-icon {
  color: var(--clan-elo-color, var(--clan-color, #b283ff));
  animation: clanIconFloat 3.4s ease-in-out infinite;
}

.clan-elo-mini {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--clan-elo-color, #b283ff) 18%, rgba(7, 11, 18, 0.78));
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.clan-chip-head {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.clan-members span b {
  color: rgba(244, 248, 255, 0.88);
  font-size: 12px;
}

.clan-open-hint {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--clan-elo-color, #b283ff) 16%, rgba(255, 255, 255, 0.04));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.clan-open-hint i {
  color: var(--clan-elo-color, var(--accent));
}

.clan-detail {
  margin-bottom: 18px;
}

.clan-detail-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--clan-color, #b283ff) 36%, transparent);
  border-radius: 12px;
  background:
    radial-gradient(circle at 6% 0%, color-mix(in srgb, var(--clan-color, #b283ff) 18%, transparent), transparent 42%),
    radial-gradient(circle at 94% 2%, color-mix(in srgb, var(--clan-elo-color, #b283ff) 18%, transparent), transparent 42%),
    rgba(7, 11, 18, 0.84);
  box-shadow: 0 0 30px color-mix(in srgb, var(--clan-color, #b283ff) 14%, transparent);
}

.clan-detail-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.clan-detail-emblem {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--clan-color, #b283ff) 34%, transparent);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--clan-elo-color, #b283ff) 22%, transparent), transparent 52%),
    rgba(255, 255, 255, 0.035);
}

.clan-leader-skin {
  position: relative;
  z-index: 1;
  width: min(210px, 72%);
  max-height: 285px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.44));
}

.clan-detail-banner {
  width: 100%;
  min-height: 100%;
  border-radius: 12px;
}

.clan-detail-banner .clan-banner-icon {
  font-size: clamp(74px, 10vw, 118px);
}

.clan-detail-banner .clan-banner-tag {
  font-size: clamp(22px, 3vw, 34px);
}

.clan-detail-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 12px;
}

.clan-detail-copy > span {
  color: var(--clan-elo-color, var(--accent));
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.clan-detail-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 900;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.clan-detail-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(244, 248, 255, 0.68);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.clan-detail-badges,
.clan-detail-stats,
.clan-progress-grid,
.clan-member-grid {
  display: grid;
  gap: 10px;
}

.clan-detail-badges {
  display: flex;
  flex-wrap: wrap;
}

.clan-detail-badges > b {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--clan-color, #b283ff) 28%, transparent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 248, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.clan-detail-badges i {
  color: var(--clan-elo-color, var(--accent));
}

.clan-detail-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.clan-detail-stats div {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--clan-color, #b283ff) 11%, transparent), transparent 48%),
    rgba(255, 255, 255, 0.038);
}

.clan-detail-stats i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--clan-elo-color, #b283ff) 16%, transparent);
  color: var(--clan-elo-color, var(--accent));
}

.clan-detail-stats span,
.clan-progress-card span,
.clan-member-card span {
  color: rgba(244, 248, 255, 0.56);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.clan-detail-stats b {
  color: #fff;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.clan-progress-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clan-progress-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--clan-color, #b283ff) 24%, transparent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.clan-progress-card > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.clan-progress-card i {
  color: var(--clan-elo-color, var(--accent));
}

.clan-progress-card b {
  margin-left: auto;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.clan-progress-card em {
  color: rgba(244, 248, 255, 0.66);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.clan-progress-card strong {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.clan-progress-card strong span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--clan-color, #b283ff), var(--clan-elo-color, #74d7ff));
  box-shadow: 0 0 16px color-mix(in srgb, var(--clan-elo-color, #b283ff) 50%, transparent);
}

.clan-members-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.clan-members-head b {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.clan-members-head em {
  color: rgba(244, 248, 255, 0.58);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.clan-member-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.clan-member-card {
  --member-rank-color: var(--clan-color, #b283ff);
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--member-rank-color) 34%, rgba(255, 255, 255, 0.075));
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--member-rank-color) 12%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.clan-member-card.role-owner {
  border-color: color-mix(in srgb, #ffe100 52%, var(--clan-elo-color, #b283ff) 18%, transparent);
  background:
    radial-gradient(circle at 0 0, rgba(255, 225, 0, 0.18), transparent 44%),
    radial-gradient(circle at 100% 18%, color-mix(in srgb, var(--clan-elo-color, #b283ff) 16%, transparent), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.clan-member-card.role-owner::before {
  display: none;
}

.clan-member-card.role-owner > * {
  position: relative;
}

.clan-member-card.role-leader {
  border-color: color-mix(in srgb, var(--clan-elo-color, #b283ff) 48%, transparent);
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--clan-elo-color, #b283ff) 14%, transparent), transparent 46%),
    rgba(255, 255, 255, 0.04);
}

.clan-member-head {
  width: 54px;
  height: 54px;
  border: 1px solid color-mix(in srgb, var(--member-rank-color) 52%, transparent);
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter:
    drop-shadow(0 10px 14px rgba(0, 0, 0, 0.3))
    drop-shadow(0 0 10px color-mix(in srgb, var(--member-rank-color) 24%, transparent));
}

.clan-member-card > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.clan-member-card b {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clan-member-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clan-member-card span i {
  color: var(--member-rank-color, var(--clan-elo-color, var(--accent)));
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--member-rank-color) 52%, transparent));
}

.clan-member-card.role-owner span i {
  color: #ffe100;
  filter: drop-shadow(0 0 10px rgba(255, 225, 0, 0.45));
}

.clan-member-card em {
  grid-column: 1 / -1;
  color: rgba(244, 248, 255, 0.58);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.clan-member-ranks .rank-badges {
  gap: 5px;
  max-width: 100%;
}

.clan-member-ranks .rank-badge {
  min-height: 22px;
  padding: 0 7px;
  font-size: 10px;
}

.home-ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.rank-card {
  position: relative;
  isolation: isolate;
  min-height: 126px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--rank-color, #b283ff) 34%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--rank-color, #b283ff) 18%, transparent), transparent 46%),
    rgba(255, 255, 255, 0.045);
}

.rank-card::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: -1;
  background: linear-gradient(120deg, transparent 38%, color-mix(in srgb, var(--rank-color, #b283ff) 20%, transparent) 48%, transparent 58%);
  opacity: 0.58;
  transform: translateX(-55%) rotate(8deg);
  animation: rankCardSweep 5.4s ease-in-out infinite;
}

.rank-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rank-card-top > span:not(.rank-badge) {
  color: rgba(244, 248, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.rank-card-meta {
  display: grid;
  gap: 4px;
  margin-top: 20px;
}

.rank-card-meta b {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.08;
}

.rank-card-meta em {
  color: rgba(244, 248, 255, 0.62);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.rank-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rank-badge {
  --rank-color: var(--accent);
  position: relative;
  isolation: isolate;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--rank-color) 50%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--rank-color) 19%, transparent), rgba(255, 255, 255, 0.045)),
    rgba(7, 11, 18, 0.46);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.rank-badge.compact {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.rank-badge i {
  width: 1em;
  text-align: center;
  transform-origin: 50% 50%;
  color: var(--rank-color);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--rank-color) 64%, transparent));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.rank-badge:hover,
.rank-badge:focus-visible {
  transform: translateY(-2px) scale(1.035);
  border-color: color-mix(in srgb, var(--rank-color) 82%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--rank-color) 30%, transparent), rgba(255, 255, 255, 0.075)),
    rgba(7, 11, 18, 0.64);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.24),
    0 0 22px color-mix(in srgb, var(--rank-color) 34%, transparent);
}

.rank-badge:hover i,
.rank-badge:focus-visible i {
  transform: rotate(-8deg) scale(1.16);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--rank-color) 82%, transparent));
}

.rank-badge.rank-plus i {
  color: #fff27a;
  animation: rankPlusStar 2.2s ease-in-out infinite;
  filter:
    drop-shadow(0 0 8px rgba(252, 255, 0, 0.72))
    drop-shadow(0 0 18px rgba(252, 255, 0, 0.28));
}

.rank-badge.rank-plus:hover i,
.rank-badge.rank-plus:focus-visible i {
  animation-duration: 0.85s;
}

.rank-badge.rank-freund i {
  color: #ffd95f;
  filter:
    drop-shadow(0 0 8px rgba(255, 217, 95, 0.62))
    drop-shadow(0 0 14px rgba(255, 217, 95, 0.22));
}

.rank-badge.rank-booster i {
  animation: rankBoosterHover 2.4s ease-in-out infinite;
}

.rank-empty {
  --rank-color: rgba(244, 248, 255, 0.42);
  color: rgba(244, 248, 255, 0.62);
}

.discord-verified-badge {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(39, 230, 167, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(39, 230, 167, 0.24), rgba(116, 215, 255, 0.08)),
    rgba(7, 11, 18, 0.58);
  color: #eafff8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 18px rgba(39, 230, 167, 0.18);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.discord-verified-badge::before {
  content: "";
  position: absolute;
  inset: -24px -34px;
  z-index: -1;
  background: linear-gradient(110deg, transparent 22%, rgba(234, 255, 248, 0.34) 46%, transparent 68%);
  opacity: 0;
  transform: translateX(-55%) rotate(12deg);
  transition: opacity 0.18s ease, transform 0.32s ease;
}

.discord-verified-badge.compact {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.discord-verified-badge .fa-discord {
  color: #74d7ff;
  filter: drop-shadow(0 0 8px rgba(116, 215, 255, 0.5));
}

.discord-verified-badge .fa-circle-check {
  color: var(--good);
  filter: drop-shadow(0 0 8px rgba(39, 230, 167, 0.58));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.discord-verified-badge:hover {
  transform: translateY(-2px) scale(1.035);
  border-color: rgba(39, 230, 167, 0.8);
  background:
    linear-gradient(135deg, rgba(39, 230, 167, 0.34), rgba(116, 215, 255, 0.12)),
    rgba(7, 11, 18, 0.7);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(39, 230, 167, 0.3);
}

.discord-verified-badge:hover::before {
  opacity: 1;
  transform: translateX(45%) rotate(12deg);
}

.discord-verified-badge:hover .fa-circle-check {
  transform: rotate(-8deg) scale(1.18);
  filter:
    drop-shadow(0 0 10px rgba(39, 230, 167, 0.76))
    drop-shadow(0 0 18px rgba(39, 230, 167, 0.32));
}

.rank-owner {
  --rank-color: #ffd678;
}

.rank-badge.rank-owner {
  box-shadow: 0 0 0 1px rgba(255, 214, 120, 0.1), 0 0 26px rgba(255, 214, 120, 0.18);
  animation: rankOwnerGlow 1.7s ease-in-out infinite;
}

.rank-badge.rank-owner::before,
.rank-badge.rank-owner::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.rank-badge.rank-owner::before {
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 214, 120, 0.7);
  background: none;
  opacity: 0.58;
  transform: none;
}

.rank-badge.rank-owner::after {
  inset: 2px auto 2px 3px;
  z-index: 0;
  width: 34px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 0 36%, rgba(125, 249, 255, 0.95) 37% 45%, transparent 46% 100%) 4px 2px / 9px 13px no-repeat,
    linear-gradient(222deg, transparent 0 38%, rgba(41, 182, 255, 0.95) 39% 48%, transparent 49% 100%) 20px 9px / 8px 12px no-repeat,
    linear-gradient(34deg, transparent 0 42%, rgba(66, 153, 255, 0.88) 43% 51%, transparent 52% 100%) 12px 19px / 8px 11px no-repeat,
    radial-gradient(circle at 18% 28%, rgba(125, 249, 255, 0.95) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 78% 36%, rgba(41, 182, 255, 0.9) 0 1.4px, transparent 2px),
    radial-gradient(circle at 50% 82%, rgba(147, 197, 253, 0.76) 0 1.2px, transparent 1.9px);
  filter: drop-shadow(0 0 5px rgba(125, 249, 255, 0.9)) drop-shadow(0 0 12px rgba(41, 182, 255, 0.38));
  opacity: 0.82;
  transform: scale(0.98) rotate(-4deg);
  animation: rankOwnerBlueBolts 1.65s ease-in-out infinite;
}

.rank-developer,
.rank-dev {
  --rank-color: #74d7ff;
}

.rank-badge.rank-developer::after,
.rank-badge.rank-dev::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(90deg, transparent 0 16px, rgba(116, 215, 255, 0.16) 16px 18px);
  transform: translateX(-35%);
  animation: rankDeveloperScan 2.6s linear infinite;
}

.rank-builder,
.rank-build {
  --rank-color: #e2b4ff;
}

.rank-badge.rank-builder,
.rank-badge.rank-build {
  animation: rankBuilderPulse 2.4s ease-in-out infinite;
}

.rank-admin {
  --rank-color: #ec7e7e;
}

.rank-badge.rank-admin {
  animation: rankAdminPulse 1.9s ease-in-out infinite;
}

.rank-moderator,
.rank-mod {
  --rank-color: #27e6a7;
}

.rank-supporter,
.rank-sup {
  --rank-color: #7aca83;
}

.rank-badge.rank-moderator::after,
.rank-badge.rank-mod::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(39, 230, 167, 0.18), transparent);
  transform: translateX(-100%);
  animation: rankModSweep 2.8s ease-in-out infinite;
}

.rank-default {
  --rank-color: #8ea2ff;
}

.rank-media {
  --rank-color: #8df6ff;
}

.rank-helfer {
  --rank-color: #70ff6e;
}

.rank-freund {
  --rank-color: #ffe46e;
}

.rank-booster {
  --rank-color: #ff73fa;
}

.rank-premium {
  --rank-color: #4aff00;
}

.rank-elite {
  --rank-color: #89e7f0;
}

.rank-demon {
  --rank-color: #b589d6;
}

.rank-plus,
.rank-custom {
  --rank-color: #fcff00;
}

.rank-badge.rank-media,
.rank-badge.rank-helfer,
.rank-badge.rank-supporter,
.rank-badge.rank-sup,
.rank-badge.rank-freund,
.rank-badge.rank-booster,
.rank-badge.rank-premium,
.rank-badge.rank-elite,
.rank-badge.rank-demon,
.rank-badge.rank-plus,
.rank-badge.rank-custom {
  box-shadow: 0 0 18px color-mix(in srgb, var(--rank-color) 16%, transparent);
}

.rank-badge.rank-owner i {
  position: relative;
  z-index: 1;
  animation: rankCrownFloat 2.1s ease-in-out infinite;
}

.rank-badge.rank-developer i,
.rank-badge.rank-dev i {
  animation: rankCodeBlink 1.9s steps(2, end) infinite;
}

.rank-badge.rank-admin i {
  animation: rankShieldBeat 2s ease-in-out infinite;
}

.rank-badge.rank-builder i,
.rank-badge.rank-build i {
  animation: rankHammerTap 2.3s ease-in-out infinite;
}

.rank-badge.rank-moderator i,
.rank-badge.rank-mod i {
  animation: rankScaleTilt 2.5s ease-in-out infinite;
}

.rank-badge.rank-supporter i,
.rank-badge.rank-sup i,
.rank-badge.rank-helfer i {
  animation: rankSupportWave 2.4s ease-in-out infinite;
}

.rank-badge.rank-media i {
  animation: rankMediaRecord 2.6s ease-in-out infinite;
}

.rank-badge.rank-freund i {
  animation: rankHeartBeat 1.8s ease-in-out infinite;
}

.rank-badge.rank-premium i {
  animation: rankGemSpark 2.1s ease-in-out infinite;
}

.rank-badge.rank-elite i {
  animation: rankQueenGlow 2.3s ease-in-out infinite;
}

.rank-badge.rank-demon i {
  animation: rankDemonFlame 1.7s ease-in-out infinite;
}

.stats-player-ranks,
.stats-player-clan {
  margin-top: 8px;
}

@keyframes mdParticleDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 44px -44px, -36px 36px;
  }
}

@keyframes clanAuraSpin {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes clanIconFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.04);
  }
}

@keyframes rankCrownFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(-5deg);
  }
}

@keyframes rankOwnerBlueBolts {
  0%, 100% {
    opacity: 0.56;
    transform: scale(0.94) rotate(-8deg);
  }
  45%, 58% {
    opacity: 0.98;
    transform: scale(1.08) rotate(5deg);
  }
}

@keyframes rankCodeBlink {
  0%, 100% {
    filter: drop-shadow(0 0 7px rgba(116, 215, 255, 0.52));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(116, 215, 255, 0.9));
  }
}

@keyframes rankShieldBeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.16);
  }
}

@keyframes rankHammerTap {
  0%, 100% {
    transform: rotate(0deg);
  }
  44% {
    transform: rotate(-18deg);
  }
  56% {
    transform: rotate(8deg);
  }
}

@keyframes rankScaleTilt {
  0%, 100% {
    transform: rotate(0deg);
  }
  38% {
    transform: rotate(-8deg);
  }
  68% {
    transform: rotate(8deg);
  }
}

@keyframes rankSupportWave {
  0%, 100% {
    transform: rotate(0deg);
  }
  45% {
    transform: rotate(-10deg) translateY(-1px);
  }
}

@keyframes rankMediaRecord {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes rankHeartBeat {
  0%, 100% {
    transform: scale(1);
  }
  18%, 42% {
    transform: scale(1.2);
  }
}

@keyframes rankGemSpark {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(10deg) scale(1.14);
  }
}

@keyframes rankQueenGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--rank-color) 54%, transparent));
  }
  50% {
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--rank-color) 88%, transparent));
  }
}

@keyframes rankDemonFlame {
  0%, 100% {
    transform: translateY(0) skewX(0deg);
  }
  50% {
    transform: translateY(-2px) skewX(-5deg);
  }
}

@keyframes rankCardSweep {
  0%, 100% {
    opacity: 0.25;
    transform: translateX(-58%) rotate(8deg);
  }
  50% {
    opacity: 0.72;
    transform: translateX(48%) rotate(8deg);
  }
}

@keyframes rankOwnerGlow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 214, 120, 0.1), 0 0 18px rgba(255, 214, 120, 0.14);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 214, 120, 0.34), 0 0 34px rgba(255, 214, 120, 0.36);
  }
}

@keyframes rankDeveloperScan {
  from {
    transform: translateX(-36%);
  }
  to {
    transform: translateX(36%);
  }
}

@keyframes rankBuilderPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(226, 180, 255, 0);
  }
  50% {
    box-shadow: 0 0 22px rgba(226, 180, 255, 0.24);
  }
}

@keyframes rankAdminPulse {
  0%, 100% {
    border-color: rgba(236, 126, 126, 0.36);
  }
  50% {
    border-color: rgba(236, 126, 126, 0.86);
  }
}

@keyframes rankModSweep {
  0%, 35% {
    transform: translateX(-100%);
  }
  70%, 100% {
    transform: translateX(100%);
  }
}

@keyframes rankPlusStar {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  35% {
    transform: rotate(-12deg) scale(1.18);
  }
  58% {
    transform: rotate(10deg) scale(1.06);
  }
}

@keyframes rankBoosterHover {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-2px) rotate(8deg);
  }
}

.profile-panel h2 i {
  color: var(--accent);
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-title-row h2 {
  margin: 0;
}

.panel-title-row select,
.ranking-toolbar select,
.market-toolbar select,
.market-search input,
.stats-player-search input {
  min-height: 46px;
  border: 1px solid rgba(178, 131, 255, 0.2);
  border-radius: 10px;
  background: rgba(7, 11, 18, 0.48);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.panel-title-row select,
.ranking-toolbar select,
.market-toolbar select {
  padding: 0 12px;
}

.player-stat-grid,
.field-list {
  display: grid;
  gap: 10px;
}

.stats-player-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  margin: 0 0 18px;
}

.stats-player-search {
  position: relative;
  display: block;
}

.stats-player-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  color: var(--accent);
  transform: translateY(-50%);
  pointer-events: none;
}

.stats-player-search input {
  width: 100%;
  padding: 0 14px 0 42px;
}

.stats-random-player {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(178, 131, 255, 0.28);
  border-radius: 10px;
  background: rgba(178, 131, 255, 0.14);
  color: #fff;
  font-weight: 900;
  padding: 0 16px;
}

.stats-random-player:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.stats-player-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  margin-bottom: 18px;
}

.page-section[data-page="stats"] .profile-stats-grid {
  gap: 14px;
}

.stats-skin-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 430px;
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 131, 255, 0.13), transparent 46%),
    rgba(255, 255, 255, 0.045);
}

.stats-skin-stage {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.stats-skin-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 170px;
  height: 30px;
  border-radius: 999px;
  background: rgba(178, 131, 255, 0.18);
  filter: blur(10px);
  transform: translateX(-50%);
}

.stats-skin-body {
  position: relative;
  z-index: 1;
  width: min(210px, 74%);
  max-height: 270px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.42));
}

.stats-skin-meta span,
.stats-skin-facts span,
.stats-focus-card span,
.stats-focus-wide span,
#stats-player-status,
.stats-groups-panel .panel-title-row > span {
  color: rgba(244, 248, 255, 0.55);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-skin-meta h2 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.stats-rank-hero {
  --rank-color: var(--accent);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 12px 0 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--rank-color) 44%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--rank-color) 24%, transparent), transparent 54%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rank-color) 8%, transparent);
}

.stats-rank-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--rank-color) 22%, transparent) 0 1.4px, transparent 2.6px) 0 0 / 34px 34px;
  opacity: 0.5;
  animation: mdParticleDrift 9s linear infinite;
}

.stats-rank-hero > * {
  position: relative;
}

.stats-rank-hero > i {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--rank-color) 18%, rgba(7, 11, 18, 0.72));
  color: var(--rank-color);
  font-size: 30px;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--rank-color) 55%, transparent));
}

.stats-rank-hero span {
  color: rgba(244, 248, 255, 0.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats-rank-hero b {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.stats-skin-meta p {
  overflow-wrap: anywhere;
  color: rgba(244, 248, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.stats-skin-facts {
  display: grid;
  gap: 8px;
}

.stats-skin-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-skin-facts b {
  color: #fff;
  font-weight: 900;
  text-align: right;
}

.stats-skin-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: rgba(244, 248, 255, 0.65);
  text-align: center;
}

.stats-skin-empty i {
  color: var(--accent);
  font-size: 34px;
}

.stats-focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-focus-card,
.stats-focus-wide {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 0, rgba(116, 215, 255, 0.09), transparent 44%),
    rgba(255, 255, 255, 0.04);
}

.stats-focus-card {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 16px;
}

.stats-focus-card i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(116, 215, 255, 0.11);
  color: var(--accent);
  font-size: 19px;
}

.stats-focus-card b {
  color: #fff;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.stats-focus-wide {
  grid-column: 1 / -1;
  padding: 16px;
}

.stats-focus-wide b {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.stats-clan-panel {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--clan-elo-color, #9ca3af) 42%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--clan-color, #b283ff) 18%, transparent), transparent 48%),
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--clan-elo-color, #9ca3af) 18%, transparent), transparent 44%),
    rgba(255, 255, 255, 0.045);
}

.stats-clan-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--clan-color, #b283ff) 12%, transparent), transparent 62%);
  pointer-events: none;
}

.stats-clan-panel > * {
  position: relative;
}

.stats-clan-panel.is-empty {
  --clan-color: #9ca3af;
  --clan-color-2: #cbd5e1;
  --clan-elo-color: #9ca3af;
}

.stats-clan-icon {
  position: relative;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--clan-elo-color, #9ca3af) 14%, rgba(7, 11, 18, 0.72));
}

.stats-clan-icon > i {
  position: relative;
  z-index: 2;
  color: var(--clan-elo-color, #9ca3af);
  font-size: 42px;
  filter: drop-shadow(0 0 15px color-mix(in srgb, var(--clan-elo-color, #9ca3af) 64%, transparent));
}

.stats-clan-copy {
  min-width: 0;
}

.stats-clan-copy > span,
.stats-clan-grid span {
  color: rgba(244, 248, 255, 0.55);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats-clan-copy h3 {
  margin: 4px 0 10px;
  color: #fff;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.stats-clan-copy p {
  margin: 0;
  color: rgba(244, 248, 255, 0.65);
  font-weight: 800;
}

.stats-clan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clan-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--clan-color, #b283ff) 36%, transparent);
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, var(--clan-color, #b283ff) 14%, rgba(255, 255, 255, 0.04));
  font-size: 12px;
  font-weight: 900;
}

.clan-role-pill i {
  color: var(--clan-color, var(--accent));
}

.stats-clan-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stats-clan-grid div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(5, 9, 19, 0.38);
}

.stats-clan-grid b {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.stats-clan-open {
  grid-column: 1 / -1;
  width: fit-content;
}

.stats-groups-panel {
  margin-top: 18px;
}

.stats-field-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stats-field-group {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.stats-field-group h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.stats-field-group h3 i {
  color: var(--accent);
}

.player-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(178, 131, 255, 0.14);
  border-radius: 12px;
  background: rgba(178, 131, 255, 0.07);
}

.player-profile-head img {
  width: 74px;
  height: 74px;
  border-radius: 14px;
}

.player-profile-head span {
  color: rgba(244, 248, 255, 0.55);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-profile-head b {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.stat-detail span,
.field-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.stat-detail i,
.field-row i {
  width: 26px;
  color: var(--accent);
  text-align: center;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 248, 255, 0.68);
  font-weight: 800;
}

.field-row b {
  color: #fff;
  font-size: 12px;
  text-align: right;
}

.ranking-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}

.ranking-page-size {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(178, 131, 255, 0.18);
  border-radius: 10px;
  background: rgba(178, 131, 255, 0.1);
  color: rgba(244, 248, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.ranking-page-size i {
  color: var(--accent);
}

.md-pagination-slot {
  margin: 12px 0;
}

.md-pagination-slot[hidden] {
  display: none;
}

.md-pagination {
  display: grid;
  grid-template-columns: minmax(116px, auto) minmax(0, 1fr) minmax(132px, auto) minmax(116px, auto);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(178, 131, 255, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0, rgba(178, 131, 255, 0.13), transparent 58%),
    rgba(255, 255, 255, 0.035);
}

.md-pagination button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(178, 131, 255, 0.22);
  border-radius: 10px;
  background: rgba(178, 131, 255, 0.12);
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.md-pagination button:hover:not(:disabled),
.md-pagination button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(178, 131, 255, 0.62);
  background: rgba(178, 131, 255, 0.2);
  outline: none;
}

.md-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.md-pagination span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.md-pagination strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.md-pagination em {
  color: rgba(244, 248, 255, 0.56);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.md-page-size {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(178, 131, 255, 0.2);
  border-radius: 10px;
  background: rgba(7, 11, 18, 0.52);
  color: rgba(244, 248, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.md-page-size i {
  color: var(--accent);
}

.md-page-size select {
  min-width: 58px;
  border: 0;
  outline: 0;
  border-radius: 8px;
  background: rgba(178, 131, 255, 0.14);
  color: #fff;
  padding: 7px 8px;
  font: inherit;
  cursor: pointer;
}

.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-tabs button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(178, 131, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(244, 248, 255, 0.68);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.pill-tabs button:hover,
.pill-tabs button.active {
  transform: translateY(-1px);
  border-color: rgba(178, 131, 255, 0.62);
  background: rgba(178, 131, 255, 0.18);
  color: #fff;
}

.market-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.market-buffnerf {
  margin-bottom: 18px;
}

.market-change-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(178, 131, 255, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(178, 131, 255, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.market-change-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.market-change-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.market-change-head i {
  color: var(--accent);
}

.market-change-head b,
.market-change-panel p {
  color: rgba(244, 248, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
}

.market-change-panel p {
  margin: 0;
  line-height: 1.45;
}

.market-change-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.market-change-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
}

.market-change-card:hover {
  border-color: rgba(178, 131, 255, 0.42);
  background: rgba(178, 131, 255, 0.08);
}

.market-change-card span,
.market-change-card b,
.market-change-card em {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-change-card b {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.market-change-card em {
  color: rgba(244, 248, 255, 0.56);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.market-change-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 9px;
  color: rgba(244, 248, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.market-change-badge.buff {
  border-color: rgba(65, 213, 170, 0.26);
  background: rgba(65, 213, 170, 0.11);
  color: var(--good);
}

.market-change-badge.nerf {
  border-color: rgba(236, 126, 126, 0.28);
  background: rgba(236, 126, 126, 0.11);
  color: var(--danger);
}

.market-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.market-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 14px;
}

.market-category-strip button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(178, 131, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(244, 248, 255, 0.72);
  font-weight: 900;
  padding: 0 12px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.market-category-strip button i {
  color: var(--accent);
}

.market-category-strip button b {
  min-width: 24px;
  border-radius: 999px;
  background: rgba(178, 131, 255, 0.13);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 22px;
  text-align: center;
}

.market-category-strip button:hover,
.market-category-strip button.active {
  transform: translateY(-1px);
  border-color: rgba(178, 131, 255, 0.48);
  background: rgba(178, 131, 255, 0.13);
  color: #fff;
}

.market-feature-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(178, 131, 255, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(178, 131, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.market-feature-card > div,
.market-order div,
.stats-focus-card,
.stats-focus-wide,
.profile-stat {
  min-width: 0;
}

.market-feature-icon,
.market-mini-icon,
.item-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-weight: 900;
  box-shadow: none;
}

.market-feature-icon,
.market-mini-icon {
  width: 68px;
  height: 68px;
  color: var(--accent);
  font-size: 20px;
}

.texture-token {
  overflow: visible;
  position: relative;
}

.texture-token img {
  width: 74%;
  height: 74%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter:
    drop-shadow(0 4px 0 rgba(0, 0, 0, 0.24))
    drop-shadow(0 0 12px rgba(178, 131, 255, 0.28));
}

.market-feature-icon.texture-token img,
.market-mini-icon.texture-token img {
  width: 78%;
  height: 78%;
}

.market-feature-card span {
  color: rgba(244, 248, 255, 0.55);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-feature-card h2 {
  margin: 3px 0 6px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.market-feature-card p {
  margin: 0;
  color: rgba(244, 248, 255, 0.66);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.market-feature-seller {
  width: fit-content;
  display: grid;
  grid-template-columns: auto auto 36px;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 5px 6px 5px 10px;
  border: 1px solid rgba(178, 131, 255, 0.18);
  border-radius: 999px;
  background: rgba(178, 131, 255, 0.08);
}

.market-feature-seller span {
  color: rgba(244, 248, 255, 0.55);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-feature-seller b {
  max-width: 92px;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-feature-card strong {
  justify-self: end;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

.market-orders {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.market-orders-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.market-orders-head span {
  display: block;
  color: rgba(244, 248, 255, 0.55);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-orders-head b {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.market-orders-head p {
  max-width: 720px;
  margin: 0;
  color: rgba(244, 248, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.market-order-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.market-order,
.market-orders-empty {
  border: 1px solid rgba(178, 131, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.market-order {
  min-width: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
}

.market-order div {
  min-width: 0;
}

.market-order .market-mini-icon,
.market-detail-order .market-mini-icon {
  width: 54px;
  height: 54px;
}

.market-order b,
.market-order span,
.market-order em,
.market-order-seller span,
.market-order-seller b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-order b {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.market-order span,
.market-order em {
  color: rgba(244, 248, 255, 0.58);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.market-order-seller {
  min-width: 116px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  grid-template-rows: auto auto;
  align-items: center;
  justify-self: end;
  column-gap: 8px;
  padding: 5px 6px 5px 10px;
  border: 1px solid rgba(178, 131, 255, 0.16);
  border-radius: 999px;
  background: rgba(178, 131, 255, 0.08);
}

.market-order-seller span {
  grid-column: 1;
  color: rgba(244, 248, 255, 0.48);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-order-seller b {
  grid-column: 1;
  max-width: 76px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.market-seller-avatar {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.market-order strong {
  grid-column: 1 / -1;
  width: fit-content;
  border-radius: 999px;
  background: rgba(65, 213, 170, 0.12);
  color: var(--good);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
}

.market-order.is-order {
  border-color: rgba(65, 213, 170, 0.22);
  background: rgba(65, 213, 170, 0.055);
}

.market-order.is-order strong {
  background: rgba(178, 131, 255, 0.14);
  color: var(--accent);
}

.market-orders-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: rgba(244, 248, 255, 0.62);
  font-weight: 900;
}

.market-orders-empty i {
  color: var(--accent);
}

.market-feature-chart {
  justify-self: stretch;
}

.spark {
  width: 100%;
  min-width: 82px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(178, 131, 255, 0.12));
}

.market-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 14px;
}

.market-search {
  position: relative;
  display: block;
}

.market-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  color: var(--accent);
  transform: translateY(-50%);
  pointer-events: none;
}

.market-search input {
  width: 100%;
  padding: 0 14px 0 42px;
}

.market-search input::placeholder {
  color: rgba(244, 248, 255, 0.42);
}

.market-table-shell {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(7, 11, 18, 0.28);
}

.market-table-head,
.market-row {
  min-width: 1120px;
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) 132px 126px 154px 126px 126px 132px;
  align-items: center;
  gap: 12px;
}

.market-table-head {
  padding: 14px 16px;
  color: rgba(244, 248, 255, 0.52);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-table {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.market-row {
  width: 100%;
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 248, 255, 0.72);
  padding: 10px 12px;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.market-row:hover {
  transform: translateY(-1px);
  border-color: rgba(178, 131, 255, 0.28);
  background: rgba(178, 131, 255, 0.08);
}

.market-item-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.item-token {
  width: 46px;
  height: 46px;
  min-width: 46px;
  color: var(--accent);
  font-size: 14px;
}

.item-token.texture-token img {
  width: 70%;
  height: 70%;
}

.market-category-pill {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(178, 131, 255, 0.16);
  border-radius: 999px;
  background: rgba(178, 131, 255, 0.08);
  color: rgba(244, 248, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.market-category-pill i {
  color: var(--accent);
}

.market-meter {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.market-meter b {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.market-meter i {
  height: 7px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.market-meter i span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(178, 131, 255, 0.72), rgba(255, 79, 246, 0.82));
  box-shadow: 0 0 12px rgba(178, 131, 255, 0.24);
}

.market-meter.demand i span {
  background: linear-gradient(90deg, rgba(65, 213, 170, 0.7), rgba(178, 131, 255, 0.82));
}

.market-item-cell b,
.market-row b {
  color: #fff;
  font-weight: 900;
}

.market-item-cell em {
  display: block;
  overflow: hidden;
  color: rgba(244, 248, 255, 0.46);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-item-cell .market-change-badge {
  margin-top: 5px;
  padding: 4px 7px;
  font-size: 10px;
}

.market-trend {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.market-trend.up {
  color: var(--good);
}

.market-trend.down {
  color: var(--danger);
}

.market-trend .spark {
  height: 34px;
}

.market-empty {
  padding: 28px;
  color: rgba(244, 248, 255, 0.62);
  font-weight: 900;
  text-align: center;
}

.data-empty {
  min-height: 168px;
  display: grid;
  place-items: center;
  gap: 9px;
  border: 1px solid rgba(178, 131, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(244, 248, 255, 0.62);
  font-weight: 800;
  padding: 24px;
  text-align: center;
}

.data-empty i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(178, 131, 255, 0.13);
  color: var(--accent);
  font-size: 20px;
}

.data-empty b {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.data-empty span {
  max-width: 460px;
  line-height: 1.5;
}

.data-placeholder-card {
  cursor: default;
}

.md-footer {
  margin-top: 56px;
  padding: 42px 0 22px;
  border-top: 1px solid rgba(178, 131, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.52), rgba(6, 10, 18, 0.92)),
    radial-gradient(circle at 18% 0%, rgba(178, 131, 255, 0.16), transparent 34%);
  color: rgba(244, 248, 255, 0.76);
}

.md-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(300px, 1.9fr);
  gap: 34px;
}

.md-footer-brand {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.md-footer-logo {
  width: 110px;
  height: 86px;
  flex: 0 0 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  filter: drop-shadow(0 14px 22px rgba(178, 131, 255, 0.18));
}

.md-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.md-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.md-footer p {
  max-width: 430px;
  margin: 0;
  line-height: 1.55;
  font-weight: 700;
}

.md-footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.md-footer-socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(178, 131, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 19px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.md-footer-socials a:hover {
  transform: translateY(-3px);
  border-color: rgba(178, 131, 255, 0.74);
  background: rgba(178, 131, 255, 0.14);
  color: var(--accent);
}

.md-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 22px;
}

.md-footer .fblock ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.md-footer .fblock li {
  list-style: none;
}

.md-footer .fblock a {
  color: rgba(244, 248, 255, 0.72);
  font-weight: 800;
  text-decoration: none;
  transition: color 0.16s ease, padding-left 0.16s ease;
}

.md-footer .fblock a:hover {
  padding-left: 4px;
  color: var(--accent);
}

.md-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 248, 255, 0.48);
  font-size: 12px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid rgba(178, 131, 255, 0.32);
  border-radius: 12px;
  background: rgba(8, 14, 24, 0.94);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 900;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal,
.legal-drawer,
.market-detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.legal-drawer,
.market-detail-drawer {
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.legal-drawer.is-open,
.market-detail-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.legal-drawer.is-closing,
.market-detail-drawer.is-closing {
  opacity: 0;
  pointer-events: none;
}

.modal[hidden],
.legal-drawer[hidden],
.market-detail-drawer[hidden] {
  display: none;
}

.modal-backdrop,
.legal-drawer-backdrop,
.market-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.legal-drawer-backdrop,
.market-detail-backdrop {
  opacity: 0;
  transition: opacity 280ms ease;
}

.legal-drawer.is-open .legal-drawer-backdrop,
.market-detail-drawer.is-open .market-detail-backdrop {
  opacity: 1;
}

.package-modal-card {
  position: relative;
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 56px);
  margin: 28px auto;
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(178, 131, 255, 0.22);
  border-radius: 14px;
  background: rgba(12, 21, 28, 0.98);
  box-shadow: var(--shadow);
  scrollbar-color: rgba(178, 131, 255, 0.42) transparent;
  scrollbar-width: thin;
}

.package-modal-card::-webkit-scrollbar {
  width: 5px;
}

.package-modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.package-modal-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(178, 131, 255, 0.42);
}

.modal-close,
.legal-drawer-close,
.market-detail-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(236, 126, 126, 0.52);
  border-radius: 12px;
  background: rgba(255, 74, 74, 0.18);
  color: var(--danger);
  font-size: 26px;
  font-weight: 900;
  z-index: 2;
}

.package-modal-media {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.package-modal-media img {
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.36));
}

.package-modal-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.package-modal-price {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
}

.package-modal-description {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(8, 14, 24, 0.42);
  color: rgba(244, 248, 255, 0.78);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.package-modal-actions {
  display: grid;
  gap: 10px;
}

.legal-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(780px, calc(100vw - 22px));
  height: 100%;
  overflow: auto;
  padding: 68px 24px 24px;
  border-left: 1px solid rgba(178, 131, 255, 0.24);
  background: rgba(12, 21, 28, 0.98);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.legal-drawer.is-open .legal-drawer-panel {
  transform: translateX(0);
}

.market-detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(940px, calc(100vw - 18px));
  height: 100%;
  overflow: auto;
  padding: 68px 24px 24px;
  border-left: 1px solid rgba(178, 131, 255, 0.24);
  background: rgba(8, 14, 20, 0.985);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-color: rgba(178, 131, 255, 0.42) transparent;
  scrollbar-width: thin;
  will-change: transform;
}

.market-detail-drawer.is-open .market-detail-panel {
  transform: translateX(0);
}

.market-detail-content {
  display: grid;
  gap: 16px;
}

.market-detail-head {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(178, 131, 255, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(178, 131, 255, 0.16), transparent 44%),
    rgba(255, 255, 255, 0.045);
}

.market-detail-head span,
.market-detail-chart-head span {
  color: rgba(244, 248, 255, 0.56);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-detail-head h2 {
  margin: 3px 0 5px;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.market-detail-head p {
  margin: 0;
  color: rgba(244, 248, 255, 0.58);
  font-weight: 800;
}

.market-detail-tabs,
.market-detail-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.market-detail-tabs button,
.market-detail-ranges button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(178, 131, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(244, 248, 255, 0.72);
  font-weight: 900;
  padding: 0 13px;
}

.market-detail-tabs button.active,
.market-detail-ranges button.active {
  border-color: rgba(178, 131, 255, 0.58);
  background: rgba(178, 131, 255, 0.16);
  color: #fff;
}

.market-detail-chart,
.market-detail-section {
  padding: 16px;
  border: 1px solid rgba(178, 131, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.market-detail-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.market-detail-chart-head b,
.stat-up {
  color: var(--good);
}

.market-detail-chart-head b.down,
.stat-down {
  color: var(--danger);
}

.market-detail-chart-svg {
  width: 100%;
  min-height: 260px;
  color: var(--accent);
  overflow: visible;
}

.market-detail-chart-svg.market {
  color: var(--accent-2);
}

.market-detail-chart-svg.orders {
  color: var(--good);
}

.market-detail-chart-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.market-detail-chart-axis {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.2;
}

.market-detail-chart-y-label,
.market-detail-chart-x-label {
  fill: rgba(244, 248, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.market-detail-chart-y-label {
  dominant-baseline: middle;
}

.market-detail-chart-x-label {
  text-anchor: middle;
}

.market-detail-chart-area {
  fill: url(#marketChartFill);
  stroke: none;
}

.market-detail-chart-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  filter: drop-shadow(0 0 12px currentColor);
}

.market-detail-chart-point circle {
  fill: rgba(8, 14, 20, 0.98);
  stroke: currentColor;
  stroke-width: 3;
  cursor: crosshair;
}

.market-detail-chart-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.market-detail-chart-point:hover .market-detail-chart-tooltip,
.market-detail-chart-point:focus .market-detail-chart-tooltip {
  opacity: 1;
}

.market-detail-chart-tooltip rect {
  fill: rgba(8, 14, 20, 0.98);
  stroke: rgba(178, 131, 255, 0.35);
  stroke-width: 1;
}

.market-detail-chart-tooltip text {
  fill: #fff;
  font-size: 12px;
  font-weight: 900;
}

.market-detail-chart-tooltip tspan + tspan {
  fill: rgba(244, 248, 255, 0.62);
}

.market-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.market-detail-section h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.market-detail-section h3 i {
  color: var(--accent);
}

.market-detail-change-list,
.market-detail-orders {
  display: grid;
  gap: 10px;
}

.market-detail-order-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-detail-order-group {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(178, 131, 255, 0.12);
  border-radius: 12px;
  background: rgba(7, 11, 18, 0.24);
}

.market-detail-order-group h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.market-detail-order-group h4 i {
  color: var(--accent);
}

.market-detail-order-group h4 span {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(178, 131, 255, 0.14);
  color: rgba(244, 248, 255, 0.78);
  font-size: 11px;
}

.market-detail-change,
.market-detail-order {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.market-detail-change {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.market-detail-change span,
.market-detail-change em,
.market-detail-order span,
.market-detail-order em {
  color: rgba(244, 248, 255, 0.58);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.market-detail-order {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 14px;
}

.market-detail-order .market-mini-icon {
  grid-row: 1 / 3;
}

.market-detail-order .market-order-seller {
  grid-column: 2;
  justify-self: start;
}

.market-detail-order b {
  color: #fff;
  font-weight: 900;
}

.market-detail-muted,
.market-detail-loading {
  margin: 0;
  color: rgba(244, 248, 255, 0.62);
  font-weight: 800;
  line-height: 1.45;
}

.market-detail-loading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.legal-drawer-content h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.legal-drawer-content h3 {
  margin: 24px 0 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}

.legal-drawer-content p,
.legal-drawer-content li {
  color: rgba(244, 248, 255, 0.74);
  font-weight: 700;
  line-height: 1.58;
}

.legal-drawer-content ul {
  margin: 8px 0 18px;
  padding-left: 20px;
}

.legal-drawer-content a {
  color: #caa7ff;
  font-weight: 900;
}

.legal-meta,
.legal-note {
  padding: 14px;
  border: 1px solid rgba(178, 131, 255, 0.24);
  border-radius: 10px;
  background: rgba(178, 131, 255, 0.09);
}

.legal-note {
  border-color: rgba(255, 201, 102, 0.32);
  background: rgba(255, 201, 102, 0.09);
}

.legal-placeholder {
  color: #ffd680;
}

.minigame-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 16px;
}

.minigame-overview-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 136px;
  padding: 18px;
  border: 1px solid rgba(73, 243, 255, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(73, 243, 255, 0.17), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(178, 131, 255, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(178, 131, 255, 0.13), rgba(121, 255, 157, 0.045)),
    rgba(5, 9, 19, 0.76);
  overflow: hidden;
}

.minigame-overview-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(73, 243, 255, 0.26);
  border-radius: 10px;
  background: rgba(73, 243, 255, 0.1);
  color: #74d7ff;
  font-size: 28px;
  box-shadow: 0 0 26px rgba(73, 243, 255, 0.12);
}

.minigame-overview-card strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.05;
}

.minigame-overview-card p {
  max-width: 68ch;
  margin: 0;
  color: rgba(244, 248, 255, 0.68);
  font-weight: 800;
  line-height: 1.45;
}

.minigame-overview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.minigame-overview-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(244, 248, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.minigame-overview-tags i {
  color: #74d7ff;
}

.minigame-view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(178, 131, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(73, 243, 255, 0.13), transparent 36%),
    rgba(5, 9, 19, 0.72);
}

.minigame-view-switch button {
  min-width: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.minigame-view-switch button:hover,
.minigame-view-switch button.is-active {
  transform: translateY(-1px);
  border-color: rgba(73, 243, 255, 0.44);
  background: rgba(73, 243, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.minigame-view-switch i {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(178, 131, 255, 0.16);
  color: #d8c4ff;
  font-size: 21px;
}

.minigame-view-switch span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.minigame-view-switch b {
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.minigame-view-switch em {
  color: rgba(244, 248, 255, 0.62);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.minigame-profile-card,
.party-active-name {
  display: grid;
  align-content: center;
  gap: 9px;
  min-height: 106px;
  padding: 14px 15px;
  border: 1px solid rgba(178, 131, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(73, 243, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(178, 131, 255, 0.13), rgba(121, 255, 157, 0.045)),
    rgba(5, 9, 19, 0.72);
}

.minigame-profile-card span,
.party-active-name span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(244, 248, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.minigame-profile-card strong {
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}

.minigame-profile-field {
  position: relative;
  display: grid;
}

.minigame-profile-field > i {
  position: absolute;
  left: 13px;
  top: 50%;
  color: rgba(73, 243, 255, 0.78);
  transform: translateY(-50%);
  pointer-events: none;
}

.minigame-profile-card input {
  width: 100%;
  min-height: 50px;
  padding: 0 13px 0 39px;
  border: 1px solid rgba(178, 131, 255, 0.28);
  border-radius: 8px;
  outline: 0;
  background: rgba(4, 8, 18, 0.78);
  color: #fff;
  font: inherit;
  font-weight: 900;
}

.minigame-profile-card input:focus {
  border-color: rgba(73, 243, 255, 0.54);
  box-shadow: 0 0 0 3px rgba(73, 243, 255, 0.12);
}

.party-active-name strong {
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-minigame-mode-content][hidden] {
  display: none !important;
}

.minigame-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.minigame-card {
  position: relative;
  display: grid;
  align-items: stretch;
  min-height: 118px;
  border: 1px solid rgba(178, 131, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(178, 131, 255, 0.11), rgba(73, 243, 255, 0.045)),
    rgba(7, 12, 24, 0.78);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

.minigame-card:hover,
.minigame-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(178, 131, 255, 0.48);
  background:
    linear-gradient(135deg, rgba(178, 131, 255, 0.17), rgba(73, 243, 255, 0.08)),
    rgba(7, 12, 24, 0.9);
}

.minigame-card button {
  min-width: 0;
  width: 100%;
  min-height: 118px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.minigame-card button:disabled {
  cursor: not-allowed;
}

.minigame-card button:focus-visible {
  outline: 3px solid rgba(73, 243, 255, 0.34);
  outline-offset: -4px;
}

.minigame-card-icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(178, 131, 255, 0.15);
  color: #d8c4ff;
  font-size: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.minigame-card-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.minigame-card-copy b {
  overflow: hidden;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.minigame-card-copy em {
  color: rgba(244, 248, 255, 0.62);
  font-style: normal;
  font-weight: 800;
}

.minigame-card-copy small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: rgba(244, 248, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
}

.minigame-card-copy small i {
  color: #74d7ff;
}

.minigame-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.minigame-card-tags em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(73, 243, 255, 0.18);
  border-radius: 8px;
  background: rgba(73, 243, 255, 0.07);
  color: rgba(244, 248, 255, 0.74);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.minigame-card-online {
  justify-self: end;
  padding: 7px 9px;
  border: 1px solid rgba(121, 255, 157, 0.24);
  border-radius: 8px;
  background: rgba(121, 255, 157, 0.09);
  color: #a8ffbd;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.minigame-game-panel[hidden] {
  display: none !important;
}

.party-arcade {
  position: relative;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(178, 131, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(73, 243, 255, 0.12), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(255, 79, 216, 0.1), transparent 32%),
    rgba(7, 12, 24, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.party-arcade::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
}

.party-arcade-head,
.party-layout,
.party-playground {
  position: relative;
  z-index: 1;
}

.party-arcade-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.party-arcade-head h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.party-arcade-head p {
  margin: 0;
  color: rgba(244, 248, 255, 0.68);
  font-weight: 800;
  line-height: 1.45;
}

.party-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.party-profile label,
.party-create-form label {
  display: grid;
  gap: 7px;
  color: rgba(244, 248, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.party-profile input,
.party-create-form input,
.party-create-form select,
.party-game-control input,
.party-game-control select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(178, 131, 255, 0.25);
  border-radius: 8px;
  outline: 0;
  background: rgba(4, 8, 18, 0.76);
  color: #fff;
  font: inherit;
  font-weight: 900;
}

.party-profile input:focus,
.party-create-form input:focus,
.party-create-form select:focus,
.party-game-control input:focus,
.party-game-control select:focus {
  border-color: rgba(73, 243, 255, 0.54);
  box-shadow: 0 0 0 3px rgba(73, 243, 255, 0.12);
}

.party-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.party-catalog-wrap,
.party-create-card,
.party-lobby-list-wrap,
.party-playground {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(5, 9, 19, 0.62);
  backdrop-filter: blur(10px);
}

.party-catalog-wrap {
  padding: 13px;
  max-height: none;
  overflow: hidden;
}

.party-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.party-section-title strong {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.party-section-title span {
  color: rgba(168, 255, 189, 0.82);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.party-game-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  max-height: none;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.party-game-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.party-game-card:hover,
.party-game-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(73, 243, 255, 0.34);
  background: rgba(73, 243, 255, 0.09);
}

.party-game-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 28px;
}

.party-game-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.party-game-copy b {
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.party-game-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(244, 248, 255, 0.58);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.party-game-meta {
  grid-column: 2;
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  text-align: left;
}

.party-game-meta span {
  padding: 5px 7px;
  border: 1px solid rgba(121, 255, 157, 0.16);
  border-radius: 8px;
  background: rgba(121, 255, 157, 0.06);
  color: #a8ffbd;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.party-lobby-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 1fr);
  gap: 14px;
  min-width: 0;
}

.party-playground {
  grid-column: 1 / -1;
}

.party-create-card,
.party-lobby-list-wrap,
.party-playground {
  padding: 14px;
}

.party-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.party-create-form .btn {
  grid-column: 1 / -1;
}

.party-create-form .btn,
.party-profile .btn {
  min-height: 46px;
  border-radius: 8px;
  white-space: nowrap;
}

.party-lobby-list {
  display: grid;
  gap: 9px;
}

.party-lobby-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.party-lobby-card.is-current {
  border-color: rgba(178, 131, 255, 0.42);
  background: rgba(178, 131, 255, 0.09);
}

.party-lobby-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(178, 131, 255, 0.14);
  font-size: 24px;
}

.party-lobby-copy {
  min-width: 0;
}

.party-lobby-copy strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.party-lobby-copy span {
  display: block;
  margin-top: 4px;
  color: rgba(244, 248, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.party-lobby-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.party-lobby-actions button,
.party-room-actions button,
.party-game-control button,
.party-inline-button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(178, 131, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.party-lobby-actions button:hover,
.party-room-actions button:hover,
.party-game-control button:hover,
.party-inline-button:hover {
  transform: translateY(-1px);
  border-color: rgba(73, 243, 255, 0.44);
  background: rgba(73, 243, 255, 0.12);
}

.party-playground {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.party-empty-state {
  min-height: 390px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: rgba(244, 248, 255, 0.64);
}

.party-empty-state i {
  color: #d8c4ff;
  font-size: 42px;
}

.party-empty-state strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.party-room-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.party-room-title {
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.party-room-title .party-game-icon {
  flex: 0 0 auto;
}

.party-room-title h3 {
  margin: 0 0 3px;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.party-room-title span {
  color: rgba(244, 248, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.party-room-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.party-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.party-roster-group {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.party-roster-group strong {
  display: block;
  margin-bottom: 8px;
  color: rgba(244, 248, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.party-roster-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.party-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.party-player-chip i {
  color: #a8ffbd;
}

.party-game-board {
  position: relative;
  min-height: 360px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(4, 8, 18, 0.58);
  overflow: hidden;
}

.party-game-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(244, 248, 255, 0.68);
  font-size: 13px;
  font-weight: 900;
}

.party-game-status b {
  color: #fff;
}

.party-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.party-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(121, 255, 157, 0.09);
  color: #a8ffbd;
  font-size: 12px;
  font-weight: 900;
}

.party-game-control {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.party-board-grid {
  --party-cols: 3;
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(var(--party-cols), minmax(0, 1fr));
  gap: 7px;
  width: min(100%, 520px);
}

.party-cell {
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid rgba(178, 131, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font: inherit;
  font-size: clamp(16px, 4vw, 30px);
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    background 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.party-cell:hover {
  transform: translateY(-1px);
  border-color: rgba(73, 243, 255, 0.46);
  background: rgba(73, 243, 255, 0.12);
}

.party-cell.is-active,
.party-cell.is-hit,
.party-cell.is-match {
  border-color: rgba(121, 255, 157, 0.44);
  background: rgba(121, 255, 157, 0.14);
  box-shadow: 0 0 18px rgba(121, 255, 157, 0.12);
}

.party-cell.is-danger {
  border-color: rgba(255, 123, 114, 0.44);
  background: rgba(255, 123, 114, 0.14);
}

.party-connect-grid {
  --party-cols: 7;
  width: min(100%, 620px);
}

.party-connect-grid .party-cell {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.075);
}

.party-word-panel,
.party-card-table,
.party-dice-table,
.party-draw-table {
  align-self: center;
  justify-self: center;
  width: min(100%, 720px);
  display: grid;
  gap: 12px;
}

.party-big-prompt {
  display: grid;
  gap: 7px;
  padding: 22px;
  border: 1px solid rgba(73, 243, 255, 0.18);
  border-radius: 8px;
  background: rgba(73, 243, 255, 0.07);
  text-align: center;
}

.party-big-prompt strong {
  color: #fff;
  font-size: clamp(24px, 5vw, 46px);
  font-weight: 900;
}

.party-big-prompt span {
  color: rgba(244, 248, 255, 0.64);
  font-weight: 800;
}

.party-choice-row,
.party-card-row,
.party-dice-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.party-choice {
  min-width: 92px;
  min-height: 72px;
  border: 1px solid rgba(178, 131, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.party-choice span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  text-transform: uppercase;
}

.party-card,
.party-die {
  min-width: 58px;
  min-height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.party-card.is-red {
  color: #ffb4cc;
}

.party-card.is-blue {
  color: #74d7ff;
}

.party-card.is-green {
  color: #a8ffbd;
}

.party-card.is-yellow {
  color: #ffd680;
}

.party-die {
  min-height: 58px;
  font-size: 26px;
}

.party-reveal {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 360px);
  justify-self: center;
}

.party-reveal span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.party-reveal span.is-shown {
  background: linear-gradient(135deg, #74d7ff, #b283ff);
}

.party-draw-canvas {
  width: 100%;
  min-height: 280px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, rgba(73, 243, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.045);
}

.party-event-log {
  display: grid;
  gap: 6px;
  max-height: 120px;
  overflow: auto;
  color: rgba(244, 248, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.party-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  background: #74d7ff;
  box-shadow: 0 0 14px currentColor;
  animation: partySpark 0.72s ease-out forwards;
}

@keyframes partySpark {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.95;
  }
  to {
    transform: translate(var(--x), var(--y)) scale(0);
    opacity: 0;
  }
}

.minigame-shell {
  display: grid;
  gap: 16px;
}

.minigame-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
  gap: 14px;
}

.minigame-mode,
.minigame-live {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 16px;
  border: 1px solid rgba(178, 131, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(178, 131, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(7, 12, 24, 0.78);
}

.minigame-mode > span {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(178, 131, 255, 0.15);
  color: #d8c4ff;
  font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.minigame-mode strong,
.minigame-live strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.minigame-mode em,
.minigame-live em {
  display: block;
  margin-top: 3px;
  color: rgba(244, 248, 255, 0.6);
  font-style: normal;
  font-weight: 800;
}

.minigame-live .system-pulse {
  width: 16px;
  height: 16px;
  min-width: 16px;
}

.minigame-start {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(260px, 380px);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(178, 131, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(178, 131, 255, 0.14), rgba(73, 243, 255, 0.06)),
    rgba(7, 12, 24, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.agario-preview {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 79, 216, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.2), rgba(178, 131, 255, 0.08) 58%, rgba(6, 10, 20, 0.9));
  box-shadow: 0 0 28px rgba(255, 79, 216, 0.16);
  overflow: hidden;
}

.agario-preview img {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 50%;
  image-rendering: pixelated;
}

.minigame-start[hidden] {
  display: none !important;
}

.minigame-start h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.minigame-start p {
  margin: 0;
  color: rgba(244, 248, 255, 0.68);
  font-weight: 800;
  line-height: 1.45;
}

.minigame-login {
  display: grid;
  gap: 12px;
}

.minigame-login label {
  display: grid;
  gap: 8px;
  color: rgba(244, 248, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.minigame-login input,
.minigame-login select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(178, 131, 255, 0.28);
  border-radius: 7px;
  outline: 0;
  background: rgba(4, 8, 18, 0.76);
  color: #fff;
  font: inherit;
  font-weight: 900;
}

.minigame-login select {
  cursor: pointer;
}

.minigame-login input:focus,
.minigame-login select:focus {
  border-color: rgba(178, 131, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(178, 131, 255, 0.16);
}

.agario-stage {
  position: relative;
  display: block;
}

.agario-map-wrap {
  position: relative;
  min-width: 0;
}

#agario-canvas {
  display: block;
  width: 100%;
  height: clamp(560px, 66vw, 820px);
  border: 1px solid rgba(178, 131, 255, 0.32);
  border-radius: 8px;
  outline: 0;
  background: #060a14;
  box-shadow:
    inset 0 0 45px rgba(178, 131, 255, 0.1),
    0 18px 36px rgba(0, 0, 0, 0.32);
  cursor: crosshair;
  touch-action: none;
}

#agario-canvas:focus-visible {
  border-color: rgba(255, 79, 216, 0.82);
  box-shadow:
    0 0 0 3px rgba(255, 79, 216, 0.16),
    inset 0 0 45px rgba(178, 131, 255, 0.1),
    0 18px 36px rgba(0, 0, 0, 0.32);
}

.tank-preview {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(73, 243, 255, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(73, 243, 255, 0.28), transparent 42%),
    rgba(6, 10, 20, 0.88);
  color: #74d7ff;
  font-size: 36px;
  box-shadow: 0 0 28px rgba(73, 243, 255, 0.14);
}

.tank-stage {
  position: relative;
  display: block;
}

.tank-map-wrap {
  position: relative;
  min-width: 0;
}

#tank-canvas {
  display: block;
  width: 100%;
  height: clamp(560px, 66vw, 820px);
  border: 1px solid rgba(73, 243, 255, 0.3);
  border-radius: 8px;
  outline: 0;
  background: #050914;
  box-shadow:
    inset 0 0 45px rgba(73, 243, 255, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.32);
  cursor: crosshair;
  touch-action: none;
}

#tank-canvas:focus-visible {
  border-color: rgba(73, 243, 255, 0.78);
  box-shadow:
    0 0 0 3px rgba(73, 243, 255, 0.16),
    inset 0 0 45px rgba(73, 243, 255, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.32);
}

.minigame-result-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 38%, rgba(178, 131, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(3, 6, 14, 0.18), rgba(3, 6, 14, 0.58));
  pointer-events: none;
}

.minigame-result-card {
  width: min(440px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 9, 19, 0.86);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  text-align: center;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  animation: minigameResultIn 0.22s ease-out both;
}

.minigame-result-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 79, 216, 0.15);
  color: #ffb4cc;
  font-size: 27px;
  box-shadow: 0 0 28px rgba(255, 79, 216, 0.18);
}

.minigame-result-overlay.is-winner .minigame-result-icon {
  background: rgba(255, 209, 102, 0.16);
  color: #ffd166;
  box-shadow: 0 0 34px rgba(255, 209, 102, 0.22);
}

.minigame-result-card b {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.minigame-result-card p {
  max-width: 340px;
  margin: 0;
  color: rgba(244, 248, 255, 0.72);
  font-weight: 800;
  line-height: 1.45;
}

.minigame-result-card > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(121, 255, 157, 0.22);
  border-radius: 999px;
  background: rgba(121, 255, 157, 0.09);
  color: #a8ffbd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.minigame-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.minigame-result-actions .btn {
  min-height: 42px;
  border-radius: 8px;
}

@keyframes minigameResultIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tank-hud {
  max-width: calc(100% - 220px);
}

.tank-minimap {
  border-color: rgba(73, 243, 255, 0.34);
  box-shadow: 0 0 22px rgba(73, 243, 255, 0.12);
}

.tank-upgrade-panel {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: min(392px, calc(100% - 28px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(178, 131, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 9, 19, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  z-index: 4;
}

.tank-upgrade-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tank-upgrade-head strong {
  color: #fff;
  font-weight: 900;
}

.tank-upgrade-head span {
  color: #a8ffbd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tank-skill-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.tank-skill-grid button,
.tank-class-grid button {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.tank-skill-grid button {
  min-height: 68px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 8px 5px;
}

.tank-skill-grid button i {
  color: #74d7ff;
}

.tank-skill-grid button span {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.tank-skill-grid button b {
  color: #a8ffbd;
  font-size: 13px;
}

.tank-class-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.tank-class-grid button {
  min-height: 38px;
  padding: 0 7px;
  font-size: 11px;
}

.tank-skill-grid button:hover,
.tank-class-grid button:hover,
.tank-skill-grid button.is-active,
.tank-class-grid button.is-active {
  transform: translateY(-1px);
  border-color: rgba(178, 131, 255, 0.46);
  background: rgba(178, 131, 255, 0.16);
}

.tank-skill-grid button:disabled,
.tank-class-grid button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.tank-controls {
  max-width: calc(100% - 430px);
}

.tank-shell:not(.is-playing) .tank-controls,
.tank-shell:not(.is-playing) .tank-upgrade-panel {
  display: none;
}

.tank-shell:not(.is-playing) .tank-stage {
  opacity: 0.92;
}

.agario-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
  z-index: 2;
}

.agario-minimap {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 176px;
  height: 120px;
  border: 1px solid rgba(121, 255, 157, 0.3);
  border-radius: 8px;
  background: rgba(5, 9, 19, 0.78);
  box-shadow: 0 0 22px rgba(121, 255, 157, 0.1);
  z-index: 3;
}

.agario-chat {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: min(380px, calc(100% - 28px));
  border: 1px solid rgba(178, 131, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 9, 19, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  z-index: 4;
  transition:
    width 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.agario-chat[hidden],
.minigame-shell:not(.is-playing) .agario-chat {
  display: none;
}

.agario-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.agario-chat-head > div {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.agario-chat-head strong {
  color: #fff;
  font-weight: 900;
}

.agario-chat-head small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(168, 255, 189, 0.8);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.agario-chat-head small i {
  color: #79ff9d;
  font-size: 6px;
  filter: drop-shadow(0 0 6px rgba(121, 255, 157, 0.78));
}

.agario-chat-head span {
  margin-left: auto;
  color: rgba(244, 248, 255, 0.58);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.agario-chat-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.agario-chat-toggle:hover {
  border-color: rgba(178, 131, 255, 0.45);
  background: rgba(178, 131, 255, 0.18);
}

.agario-chat-toggle i {
  transition: transform 0.24s ease;
}

.agario-chat-body {
  display: grid;
  grid-template-rows: 136px 42px;
  max-height: 178px;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.28s ease;
}

.agario-chat-log {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 11px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.agario-chat-msg {
  color: rgba(244, 248, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.agario-chat-msg strong {
  color: #fff;
  font-weight: 900;
}

.agario-chat-msg.system {
  color: #d8c4ff;
}

.agario-chat-msg.kill {
  color: #ffd680;
}

.agario-chat-msg.join {
  color: #a8ffbd;
}

.agario-chat-msg.quit {
  color: #ffb4cc;
}

.agario-chat-peek {
  display: none;
  max-height: 0;
  padding: 0 11px;
  opacity: 0;
  transform: translateY(8px);
  overflow: hidden;
  transition:
    opacity 1.4s ease,
    transform 1.4s ease,
    max-height 0.28s ease,
    padding 0.28s ease;
}

.agario-chat-peek .agario-chat-msg {
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
}

.agario-chat.is-collapsed {
  width: min(310px, calc(100% - 28px));
  background: rgba(5, 9, 19, 0.58);
  border-color: rgba(178, 131, 255, 0.18);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.agario-chat.is-collapsed .agario-chat-head {
  border-bottom-color: transparent;
}

.agario-chat.is-collapsed .agario-chat-toggle i {
  transform: rotate(180deg);
}

.agario-chat.is-collapsed .agario-chat-body {
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
  overflow: hidden;
}

.agario-chat.is-collapsed.has-peek .agario-chat-head {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.agario-chat.is-collapsed.has-peek .agario-chat-peek {
  display: grid;
  gap: 6px;
  max-height: 128px;
  padding: 0 11px 11px;
  opacity: 1;
  transform: translateY(0);
}

.agario-chat.is-collapsed.has-peek .agario-chat-peek.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

.agario-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.agario-chat-form input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font: inherit;
  font-weight: 800;
}

.agario-chat-form input::placeholder {
  color: rgba(244, 248, 255, 0.42);
}

.agario-chat-form button {
  width: 42px;
  height: 42px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(178, 131, 255, 0.18);
  color: #fff;
  cursor: pointer;
}

.agario-chat-form button:hover {
  background: rgba(255, 79, 216, 0.25);
}

.agario-hud div {
  min-width: 96px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 9, 19, 0.76);
  backdrop-filter: blur(8px);
}

.agario-hud span,
.agario-board li em {
  display: block;
  color: rgba(244, 248, 255, 0.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agario-hud b {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.agario-board {
  position: absolute;
  top: 148px;
  right: 14px;
  width: 246px;
  max-height: calc(100% - 246px);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.82);
  z-index: 4;
}

.agario-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.agario-board h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.agario-board-head h2 {
  margin: 0;
}

.agario-board-head span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a8ffbd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.agario-board ol {
  display: grid;
  gap: 6px;
  max-height: 360px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.agario-board li {
  display: grid;
  grid-template-columns: 24px 28px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
}

.agario-board li.is-player {
  border-color: rgba(255, 79, 216, 0.32);
  background: transparent;
}

.agario-board li.is-empty {
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 72px;
}

.agario-board li.is-empty em {
  grid-column: 2;
}

.agario-board li span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: #d8c4ff;
  font-weight: 900;
}

.agario-board-avatar {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.4));
}

.agario-board li strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agario-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  width: auto;
  max-width: calc(100% - 430px);
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  z-index: 5;
}

.agario-controls .btn {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
}

.minigame-shell:not(.is-playing) .agario-controls {
  display: none;
}

.minigame-shell:not(.is-playing) .agario-stage {
  opacity: 0.92;
}

.minigame-shell:fullscreen,
.minigame-shell.is-fullscreen {
  width: 100vw;
  height: 100vh;
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 131, 255, 0.2), transparent 34%),
    #050914;
}

.minigame-shell:fullscreen .minigame-start,
.minigame-shell.is-fullscreen .minigame-start {
  display: none !important;
}

.minigame-shell:fullscreen .agario-stage,
.minigame-shell.is-fullscreen .agario-stage,
.minigame-shell:fullscreen .tank-stage,
.minigame-shell.is-fullscreen .tank-stage {
  min-height: 0;
}

.minigame-shell:fullscreen #agario-canvas,
.minigame-shell.is-fullscreen #agario-canvas,
.minigame-shell:fullscreen #tank-canvas,
.minigame-shell.is-fullscreen #tank-canvas {
  height: 100%;
  min-height: 0;
}

.minigame-shell:fullscreen .agario-map-wrap,
.minigame-shell.is-fullscreen .agario-map-wrap {
  min-height: 0;
  height: 100%;
}

.minigame-shell:fullscreen .agario-board,
.minigame-shell.is-fullscreen .agario-board {
  width: 270px;
  max-height: calc(100% - 252px);
}

.minigame-shell:fullscreen .agario-controls,
.minigame-shell.is-fullscreen .agario-controls {
  width: auto;
  max-width: calc(100% - 450px);
}

@media (max-width: 991px) {
  .minigame-head,
  .minigame-start,
  .agario-stage {
    grid-template-columns: 1fr;
  }

  .minigame-hub {
    grid-template-columns: 1fr;
  }

  .minigame-topbar {
    grid-template-columns: 1fr;
  }

  .minigame-overview-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .minigame-overview-icon {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .party-arcade-head,
  .party-layout,
  .party-create-form,
  .party-lobby-panel {
    grid-template-columns: 1fr;
  }

  .party-profile {
    grid-template-columns: 1fr;
  }

  .party-playground,
  .party-create-form .btn {
    grid-column: auto;
  }

  .party-catalog-wrap {
    max-height: none;
  }

  .party-game-catalog {
    max-height: 420px;
  }

  .party-room-head,
  .party-roster {
    grid-template-columns: 1fr;
  }

  .agario-preview,
  .tank-preview {
    justify-self: center;
  }

  .agario-board {
    width: 220px;
  }

  .agario-minimap {
    width: 138px;
    height: 94px;
  }
}

@media (max-width: 720px) {
  #agario-canvas,
  #tank-canvas {
    height: 560px;
  }

  .agario-hud {
    right: 10px;
    left: 10px;
  }

  .tank-hud {
    max-width: calc(100% - 20px);
  }

  .agario-hud div {
    min-width: 0;
    flex: 1 1 96px;
  }

  .agario-minimap {
    top: 10px;
    right: 10px;
    width: 120px;
    height: 82px;
  }

  .agario-board {
    top: 102px;
    right: 10px;
    width: 176px;
    max-height: 220px;
    padding: 8px;
  }

  .agario-board ol {
    max-height: 168px;
  }

  .agario-board li {
    grid-template-columns: 22px 24px minmax(0, 1fr) auto;
    padding: 6px;
  }

  .agario-board-avatar {
    width: 24px;
    height: 24px;
  }

  .agario-board li:nth-child(n + 7) {
    display: none;
  }

  .agario-chat {
    right: 10px;
    left: 10px;
    bottom: 88px;
    width: auto;
  }

  .agario-chat.is-collapsed {
    width: auto;
  }

  .agario-chat-body {
    grid-template-rows: 104px 42px;
    max-height: 146px;
  }

  .tank-upgrade-panel {
    right: 10px;
    left: 10px;
    bottom: 96px;
    width: auto;
  }

  .tank-skill-grid,
  .tank-class-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .agario-controls {
    right: 10px;
    bottom: 10px;
    left: auto;
    width: max-content;
    max-width: calc(100% - 20px);
    min-width: 0;
    justify-content: flex-end;
  }

  .agario-controls .btn {
    flex: 1 1 120px;
  }

}

@media (max-width: 1100px) {
  .top-donater-podium,
  .recent-grid,
  .profile-stats-grid,
  .market-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-feature-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .market-feature-chart,
  .market-feature-card strong {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  .market-order-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .home-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-clans-preview {
    grid-template-columns: 1fr;
  }

  .clan-hero {
    grid-template-columns: 1fr;
  }

  .clan-elo-ladder {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .system-status-main {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  .header,
  .header .container {
    min-height: 0;
  }

  .hero-status {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .header-logo {
    order: -1;
    min-height: 170px;
  }

  .header-logo img {
    width: min(320px, 84vw);
    max-height: 175px;
  }

  .status-card {
    min-height: 96px;
    padding: 16px;
  }

  .status-card .ip {
    font-size: 18px;
  }

  .post-header-panel {
    grid-template-columns: 1fr;
  }

  .htop {
    justify-content: center;
    flex-wrap: wrap;
  }

  .dzn-content {
    width: 100%;
  }

  #featured-module,
  .home-hero-copy,
  .md-footer-inner,
  .profile-details-grid,
  .stats-player-layout,
  .clan-detail-main,
  .clan-progress-grid,
  .market-feature,
  .market-toolbar,
  .market-order-list {
    grid-template-columns: 1fr;
  }

  .market-orders-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-orders-head p {
    text-align: left;
  }

  .market-detail-head,
  .market-detail-stats,
  .clan-card {
    grid-template-columns: 1fr;
  }

  .clan-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-detail-order-groups {
    grid-template-columns: 1fr;
  }

  .market-detail-head > .market-change-badge {
    justify-self: start;
  }

  .market-detail-order .market-order-seller {
    justify-self: start;
  }

  .home-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 20px, 1300px);
  }

  .home-categories,
  .top-donater-podium,
  .recent-grid,
  .vote-list,
  .daily-reward-head,
  .daily-reward-stats,
  .daily-rarity-strip,
  .daily-ad-stage,
  .daily-reward-choices,
  .info-grid,
  .profile-stats-grid,
  .stats-player-tools,
  .stats-focus-grid,
  .stats-field-list,
  .market-summary,
  .clan-summary,
  .md-footer-links {
    grid-template-columns: 1fr;
  }

  .daily-ad-stage {
    justify-items: stretch;
  }

  .daily-ad-orb {
    justify-self: center;
  }

  .daily-streak-meter {
    min-height: 96px;
  }

  .home-team-grid,
  .home-system-grid {
    grid-template-columns: 1fr;
  }

  .clan-elo-ladder,
  .clan-detail-stats,
  .clan-member-grid {
    grid-template-columns: 1fr;
  }

  .clan-toolbar {
    align-items: stretch;
  }

  .clan-toolbar .pill-tabs,
  .clan-search {
    width: 100%;
  }

  .clan-hero,
  .clan-detail-panel {
    padding: 14px;
  }

  .clan-detail-emblem {
    min-height: 250px;
  }

  .clan-members-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .clan-members-head em {
    text-align: left;
  }

  .system-status-main {
    min-height: 104px;
  }

  .stats-random-player {
    width: 100%;
  }

  .stats-skin-panel {
    min-height: 360px;
  }

  .stats-skin-stage {
    min-height: 220px;
  }

  .home-category {
    min-height: 88px;
  }

  .market-order {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .market-order-seller {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .market-change-head,
  .market-detail-chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-detail-tabs,
  .market-detail-ranges {
    display: grid;
    grid-template-columns: 1fr;
  }

  .market-change-card,
  .market-detail-change {
    grid-template-columns: 1fr;
  }

  .market-detail-panel {
    width: 100%;
    padding: 64px 14px 18px;
  }

  .home-category-image {
    width: 52px;
    height: 52px;
    min-width: 52px;
    font-size: 22px;
  }

  .panel-body {
    padding: 18px;
  }

  .md-checkout-head {
    align-items: stretch;
    flex-direction: column;
  }

  .button.pbtns {
    grid-template-columns: 1fr;
  }

  .button.pbtns .p-info {
    width: 100%;
  }

  .leader-row {
    grid-template-columns: 42px 50px minmax(0, 1fr);
  }

  .leader-row img {
    width: 50px;
    height: 50px;
  }

  .leader-row em {
    grid-column: 2 / -1;
  }

  .panel-title-row,
  .ranking-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .panel-title-row {
    flex-direction: column;
  }

  .market-table-head,
  .market-row {
    min-width: 1120px;
    grid-template-columns: minmax(260px, 1.45fr) 132px 126px 154px 126px 126px 132px;
  }

  .md-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* Header and footer motion sync */
.header,
.container,
.footer {
  position: relative;
  z-index: 1;
}

.enchant-particles {
  z-index: 0;
}

.enchant-particles span {
  bottom: -60px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #b283ff;
  box-shadow: 0 0 12px rgba(178, 131, 255, 0.75), 0 0 26px rgba(178, 131, 255, 0.28);
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(45deg);
  animation: enchantFloat 15s linear infinite;
}

.enchant-particles span::before {
  inset: 2px;
  border: 0;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0.55;
}

@keyframes enchantFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(45deg) scale(0.8);
  }
  12% {
    opacity: 0.72;
  }
  50% {
    opacity: 0.5;
    transform: translate3d(26px, -52vh, 0) rotate(225deg) scale(1);
  }
  88% {
    opacity: 0.62;
  }
  100% {
    opacity: 0;
    transform: translate3d(-20px, -112vh, 0) rotate(405deg) scale(0.65);
  }
}

.header {
  min-height: 340px;
}

.header::before,
.header::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.header::before {
  top: -120px;
  width: min(920px, 92vw);
  height: 420px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(178, 131, 255, 0.22), transparent 44%),
    radial-gradient(circle at 36% 44%, rgba(116, 215, 255, 0.14), transparent 36%);
  filter: blur(8px);
  opacity: 0.9;
  animation: headerAurora 7.5s ease-in-out infinite;
}

.header::after {
  top: 68px;
  width: min(520px, 78vw);
  height: 150px;
  background:
    radial-gradient(circle, rgba(178, 131, 255, 0.42) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(116, 215, 255, 0.32) 0 2px, transparent 3px);
  background-size: 52px 52px, 38px 38px;
  opacity: 0.32;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 74%, transparent);
  animation: headerGemDrift 9s linear infinite;
}

@keyframes headerAurora {
  0%, 100% {
    opacity: 0.74;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(10px) scale(1.04);
  }
}

@keyframes headerGemDrift {
  from {
    background-position: 0 0, 18px -18px;
  }
  to {
    background-position: 0 156px, 18px 118px;
  }
}

.hero-status {
  grid-template-columns: minmax(240px, 1fr) minmax(210px, 300px) minmax(240px, 1fr);
}

.status-card,
.hero-status .srvv {
  min-height: 96px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

.status-card:hover {
  background: transparent !important;
  transform: translateY(-1px);
}

.server-card {
  justify-content: flex-end;
  text-align: right;
}

.discord-card {
  justify-content: flex-start;
}

.server-card .status-copy {
  text-align: right;
}

.discord-card .status-copy {
  text-align: left;
}

.status-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 21px;
}

.discord-card .status-icon {
  width: 62px;
  height: 62px;
  min-width: 62px;
  color: #8ea2ff;
}

.status-copy {
  overflow: visible;
}

.status-card .copy {
  position: relative;
  height: 24px;
  min-height: 24px;
  overflow: hidden;
  perspective: 120px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  line-height: 24px;
  text-transform: none;
}

.copy-face,
.copy-face.copy-back,
.status-card:hover .copy-front,
.status-card:hover .copy-back {
  display: block;
}

.copy-face {
  height: 24px;
  transform-origin: center bottom;
  transition: transform 0.28s ease, opacity 0.28s ease;
  backface-visibility: hidden;
}

.copy-back {
  position: absolute;
  inset: 0;
  transform: translateY(100%) rotateX(-88deg);
  transform-origin: center top;
  opacity: 0;
}

.status-card:hover .copy::after {
  content: none;
}

.status-card:hover .copy-front {
  transform: translateY(-100%) rotateX(88deg);
  opacity: 0;
}

.status-card:hover .copy-back {
  transform: translateY(0) rotateX(0);
  opacity: 1;
}

.status-card .ip {
  font-size: 23px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.status-card .ip b {
  color: #fff;
}

.status-meta {
  margin-top: 5px;
  color: rgba(229, 229, 229, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.header-logo img {
  width: min(380px, 100%);
  max-height: 265px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.38));
  animation: logoFloat 4.8s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.38));
  }
  50% {
    transform: translateY(-8px) scale(1.025);
    filter: drop-shadow(0 26px 38px rgba(178, 131, 255, 0.22));
  }
}

.home-category.active .home-category-image {
  filter: drop-shadow(0 20px 34px rgba(178, 131, 255, 0.28));
  animation: activeCategoryImageFloat 3.2s ease-in-out infinite;
  will-change: transform;
}

.home-category.active .home-category-image i {
  animation: activeCategoryImagePulse 2.4s ease-in-out infinite;
}

@keyframes activeCategoryImageFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-7px) scale(1.035);
  }
}

@keyframes activeCategoryImagePulse {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(178, 131, 255, 0));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(178, 131, 255, 0.42));
  }
}

.md-footer {
  position: relative;
  overflow: hidden;
}

.md-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(178, 131, 255, 0.22), transparent 32%),
    linear-gradient(90deg, transparent, rgba(116, 215, 255, 0.06), transparent);
  opacity: 0.9;
  animation: footerGlow 8s ease-in-out infinite;
}

.md-footer > .container {
  position: relative;
  z-index: 1;
}

.md-footer-logo {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  filter: drop-shadow(0 14px 22px rgba(178, 131, 255, 0.18));
}

.md-footer-logo img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  animation: footerLogoFloat 5.4s ease-in-out infinite;
}

.md-footer-socials a {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.md-footer-socials a:hover {
  box-shadow: 0 0 24px rgba(178, 131, 255, 0.16);
}

@keyframes footerGlow {
  0%, 100% {
    opacity: 0.62;
    transform: translateX(-3%);
  }
  50% {
    opacity: 1;
    transform: translateX(3%);
  }
}

@keyframes footerLogoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.03);
  }
}

@media (max-width: 991px) {
  .server-card,
  .discord-card,
  .server-card .status-copy,
  .discord-card .status-copy {
    justify-content: center;
    text-align: center;
  }

  .server-card {
    flex-direction: row;
  }

  .status-card .ip {
    font-size: 20px;
  }

  .header-logo img {
    width: min(270px, 82%);
    max-height: 190px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 84px;
  }

  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(178, 131, 255, 0.2), transparent 28%),
      var(--bg);
    overflow-x: hidden;
  }

  #bg {
    inset: -32px 0 0;
    background:
      radial-gradient(circle at 50% 0%, rgba(178, 131, 255, 0.22), transparent 34%),
      linear-gradient(180deg, rgba(9, 15, 19, 0.12), rgb(9 15 19) 64%),
      url("https://i.imgur.com/UyLwKoe.png") top center / auto 520px no-repeat;
  }

  .enchant-particles span:nth-child(n + 13) {
    display: none;
  }

  .container {
    width: min(100% - 18px, 1300px);
  }

  .header {
    min-height: 0;
  }

  .header .container {
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .hero-status {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .header-logo {
    min-height: 118px;
    padding: 2px 0 4px;
  }

  .header-logo img {
    width: min(236px, 76vw);
    max-height: 128px;
  }

  .status-card,
  .hero-status .srvv {
    min-height: 64px;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(178, 131, 255, 0.16);
    border-radius: 10px;
    background: rgba(8, 14, 24, 0.62) !important;
    text-align: left;
  }

  .server-card,
  .discord-card {
    flex-direction: row;
  }

  .server-card .status-copy,
  .discord-card .status-copy {
    min-width: 0;
    text-align: left;
  }

  .status-card .copy {
    height: auto;
    min-height: 0;
    color: rgba(244, 248, 255, 0.56);
    font-size: 11px;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .copy-back {
    display: none !important;
  }

  .status-card:hover .copy-front {
    transform: none;
    opacity: 1;
  }

  .status-card .ip {
    margin-top: 3px;
    font-size: 17px;
    line-height: 1.12;
  }

  .status-meta {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.25;
  }

  .status-icon,
  .discord-card .status-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.075);
    font-size: 17px;
  }

  .global-categories-wrap {
    position: sticky;
    top: 0;
    z-index: 60;
    width: 100%;
    margin: 0 0 12px;
    padding: 6px 0;
    background:
      linear-gradient(180deg, rgba(9, 15, 19, 0.98), rgba(9, 15, 19, 0.82)),
      rgba(9, 15, 19, 0.94);
    backdrop-filter: blur(12px);
  }

  .global-categories-panel {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .home-categories {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 0 2px 2px;
    margin: 0;
  }

  .home-categories::-webkit-scrollbar {
    display: none;
  }

  .home-category {
    flex: 0 0 96px;
    min-height: 70px;
    scroll-snap-align: start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border-radius: 10px;
    text-align: center;
    touch-action: manipulation;
  }

  .home-category-image {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    font-size: 15px;
  }

  .home-category-name {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  main.container {
    width: min(100% - 14px, 1300px);
  }

  .main {
    margin-bottom: 12px;
    border-bottom-width: 16px;
    border-radius: 12px;
  }

  .panel-body {
    min-width: 0;
    max-width: 100%;
    padding: 14px;
  }

  .main h1 {
    min-height: 50px;
    margin-bottom: 12px;
    padding: 10px 10px 10px 12px;
    border-radius: 10px;
    font-size: 17px;
    line-height: 1.15;
  }

  .main h1 i {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 9px;
    font-size: 14px;
  }

  .home-hero-copy {
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-hero-copy > div {
    min-width: 0;
  }

  .home-hero-copy h2 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(24px, 7.3vw, 32px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .home-hero-copy p {
    max-width: min(100%, 38ch);
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .hero-orb {
    order: -1;
    min-height: 86px;
    justify-content: flex-start;
  }

  .hero-orb img {
    width: min(142px, 46vw);
    max-height: 92px;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.44));
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 16px;
  }

  .btn,
  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.15;
    text-align: center;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .hero-facts span {
    min-height: 44px;
    justify-content: flex-start;
    padding: 8px 9px;
    font-size: 11px;
    line-height: 1.18;
  }

  .top-donater-podium {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .top-podium-slot,
  .topd,
  .top-podium-1 {
    min-height: 150px;
    padding: 14px;
  }

  .top-podium-1 .avatar img {
    width: 86px;
    height: 98px;
  }

  .avatar img {
    width: 62px;
    height: 62px;
    border-radius: 12px;
  }

  .don-name {
    font-size: 16px;
  }

  .home-team-grid,
  .home-system-grid,
  .home-clans-preview,
  .home-ranks-grid,
  .profile-stats-grid,
  .profile-details-grid,
  .stats-focus-grid,
  .stats-field-list,
  .market-summary,
  .market-feature,
  .market-order-list,
  .minigame-hub,
  .party-game-catalog {
    grid-template-columns: 1fr;
  }

  .rank-card,
  .profile-stat,
  .stats-focus-card,
  .stats-focus-wide,
  .market-feature-card,
  .market-order,
  .clan-card,
  .minigame-card {
    border-radius: 10px;
  }

  .data-empty,
  .market-empty,
  .market-orders-empty,
  .party-empty-state {
    min-width: 0;
    max-width: 100%;
    padding-inline: 12px;
    overflow: hidden;
  }

  .data-empty b,
  .data-empty span,
  .market-empty,
  .market-orders-empty span,
  .party-empty-state strong,
  .party-empty-state p {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .data-empty b,
  .party-empty-state strong {
    max-width: 30ch;
    margin-inline: auto;
    line-height: 1.25;
  }

  .team-member {
    min-height: 118px;
  }

  .team-skin {
    min-height: 106px;
  }

  .rank-badges {
    gap: 5px;
  }

  .rank-badge {
    min-height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }

  .ranking-toolbar,
  .market-toolbar,
  .stats-player-tools,
  .minigame-topbar,
  .party-create-form,
  .party-layout,
  .party-lobby-panel,
  .party-room-head,
  .party-roster {
    grid-template-columns: 1fr;
  }

  .ranking-page-size {
    width: 100%;
  }

  .md-pagination {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px;
  }

  .md-pagination span {
    order: -1;
  }

  .md-pagination button {
    width: 100%;
    min-height: 44px;
  }

  .md-page-size {
    width: 100%;
  }

  .md-page-size select {
    flex: 1;
  }

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

  .pill-tabs button {
    min-width: 0;
    justify-content: center;
    min-height: 42px;
    padding: 0 8px;
    font-size: 12px;
  }

  .ranking-toolbar select,
  .market-toolbar select,
  .stats-player-search,
  .market-search,
  .clan-search,
  .minigame-profile-card input,
  .party-profile input {
    min-height: 48px;
  }

  .stats-player-layout {
    gap: 12px;
  }

  .stats-skin-panel {
    min-height: 0;
  }

  .stats-skin-stage {
    min-height: 180px;
  }

  .stats-skin-body {
    width: min(150px, 58%);
    max-height: 190px;
  }

  .stats-skin-meta h2 {
    font-size: 24px;
    overflow-wrap: anywhere;
  }

  .stats-focus-card {
    min-height: 92px;
    padding: 13px;
  }

  .stats-focus-card b {
    font-size: 22px;
  }

  .stats-rank-hero {
    min-height: 92px;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 13px;
  }

  .stats-rank-hero > i {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .stats-rank-hero b {
    font-size: 20px;
  }

  .stats-clan-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .stats-clan-icon {
    justify-self: center;
    width: 78px;
    height: 78px;
  }

  .stats-clan-icon > i {
    font-size: 34px;
  }

  .stats-clan-copy {
    text-align: center;
  }

  .stats-clan-badges {
    justify-content: center;
  }

  .stats-clan-grid {
    grid-template-columns: 1fr;
  }

  .stats-clan-open {
    width: 100%;
    justify-content: center;
  }

  .clan-hero {
    gap: 12px;
    margin-bottom: 12px;
    padding: 13px;
    border-radius: 10px;
  }

  .clan-hero-copy h2 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .clan-hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .clan-elo-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clan-tier-card {
    min-height: 92px;
    padding: 10px;
  }

  .clan-detail-panel {
    padding: 13px;
    border-radius: 10px;
  }

  .clan-detail-copy h2 {
    font-size: clamp(30px, 11vw, 44px);
  }

  .clan-detail-stats,
  .clan-progress-grid,
  .clan-member-grid {
    grid-template-columns: 1fr;
  }

  .clan-detail-stats div {
    min-height: 88px;
  }

  .clan-member-card {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 10px;
  }

  .clan-member-head {
    width: 46px;
    height: 46px;
  }

  .market-category-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .market-category-strip::-webkit-scrollbar {
    display: none;
  }

  .market-category-strip button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 11px;
  }

  .market-table-shell {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .market-table-head {
    display: none;
  }

  .market-table {
    gap: 10px;
    padding: 0;
  }

  .market-row {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 12px;
  }

  .market-row > span:not(.market-item-cell):not(.market-category-pill):not(.market-meter) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .market-row > span:not(.market-item-cell):not(.market-category-pill):not(.market-meter)::before {
    content: "Wert";
    color: rgba(244, 248, 255, 0.46);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .market-meter {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .market-order {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .market-order-seller {
    grid-column: 1 / -1;
  }

  .minigame-card button {
    grid-template-columns: 1fr;
  }

  .minigame-view-switch button {
    min-height: 68px;
    padding: 11px;
  }

  .minigame-view-switch i,
  .minigame-card-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .minigame-card {
    min-height: 0;
  }

  .minigame-card button {
    justify-items: start;
    gap: 10px;
    padding: 14px;
  }

  .minigame-card-tags {
    justify-content: flex-start;
  }

  .minigame-card-online {
    justify-self: start;
  }

  #agario-canvas,
  #tank-canvas {
    height: min(560px, 72vh);
  }

  .agario-controls,
  .tank-controls {
    right: 8px;
    left: 8px;
    width: auto;
    justify-content: stretch;
  }

  .agario-controls .btn,
  .tank-controls .btn {
    flex: 1 1 46%;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .container,
  main.container {
    width: calc(100% - 12px);
  }

  .home-category {
    flex-basis: 86px;
  }

  .home-hero-copy h2 {
    font-size: clamp(23px, 7.6vw, 30px);
  }

  .hero-facts,
  .pill-tabs,
  .clan-elo-ladder,
  .tank-skill-grid,
  .tank-class-grid {
    grid-template-columns: 1fr;
  }

  .status-card .ip {
    font-size: 16px;
  }

  .market-item-cell {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .enchant-particles span,
  .header::before,
  .header::after,
  .header-logo img,
  .home-category.active .home-category-image,
  .home-category.active .home-category-image i,
  .system-pulse,
  .rank-card::before,
  .rank-badge,
  .rank-badge::after,
  .discord-verified-badge,
  .md-footer::before,
  .md-footer-logo img {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Homepage login final header overrides */
.hero-status {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 300px) minmax(220px, 1fr) minmax(220px, 0.82fr);
}

.homepage-login-card {
  justify-content: flex-start;
}

.homepage-login-card .status-copy {
  text-align: left;
}

.homepage-login-card .status-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
}

@media (max-width: 1120px) {
  .hero-status {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
  }

  .header-logo {
    order: -1;
    grid-column: 1 / -1;
    min-height: 150px;
  }
}

@media (max-width: 720px) {
  .hero-status {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .server-card,
  .server-card .status-copy,
  .discord-card,
  .discord-card .status-copy,
  .homepage-login-card,
  .homepage-login-card .status-copy {
    justify-content: flex-start;
    text-align: left;
  }
}

/* Header login and owner setup */
.header .container {
  position: relative;
}

.header-top-actions {
  position: absolute;
  top: 18px;
  right: 0;
  z-index: 8;
  display: flex;
  justify-content: flex-end;
  width: min(292px, calc(100vw - 32px));
}

.header-top-actions .homepage-login-card {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(126, 231, 255, 0.2);
  border-radius: 14px;
  background: rgba(8, 14, 24, 0.78) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26), 0 0 26px rgba(126, 231, 255, 0.08) !important;
  backdrop-filter: blur(14px);
  gap: 10px;
}

.header-top-actions .homepage-login-card:hover {
  border-color: rgba(126, 231, 255, 0.42);
  background: rgba(10, 18, 30, 0.92) !important;
  transform: translateY(-2px);
}

.header-top-actions .homepage-login-card .status-copy {
  min-width: 0;
  text-align: left;
}

.header-top-actions .homepage-login-card .copy {
  font-size: 10px;
}

.header-top-actions .homepage-login-card .ip {
  overflow: hidden;
  max-width: 180px;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.header-top-actions .homepage-login-card .status-meta {
  overflow: hidden;
  max-width: 180px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.header-top-actions .homepage-login-card .status-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: rgba(126, 231, 255, 0.11);
  color: #7ee7ff;
}

.header-top-actions .homepage-login-card.is-logged-in .status-icon {
  background: rgba(121, 255, 157, 0.11);
  color: #79ff9d;
}

.hero-status {
  grid-template-columns: minmax(240px, 1fr) minmax(210px, 300px) minmax(240px, 1fr) !important;
}

.clan-toolbar {
  margin-top: 18px;
}

.setup-root {
  display: grid;
  gap: 18px;
}

.setup-hero,
.setup-editor-section,
.setup-locked {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(126, 231, 255, 0.08), rgba(178, 131, 255, 0.055)),
    rgba(8, 14, 24, 0.58);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.setup-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 4vw, 28px);
}

.setup-hero span,
.setup-locked b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7ee7ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.setup-hero h2 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.02;
}

.setup-hero p,
.setup-locked span {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.55;
}

.setup-editor-section {
  display: grid;
  gap: 14px;
  padding: clamp(14px, 3vw, 20px);
}

.setup-editor-list,
.setup-level-grid {
  display: grid;
  gap: 10px;
}

.setup-level-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-editor-row,
.setup-level-row {
  display: grid;
  grid-template-columns: 52px minmax(150px, 1fr) minmax(126px, 0.62fr) 80px minmax(98px, 0.52fr) 44px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.setup-level-row {
  grid-template-columns: 52px minmax(120px, 1fr) minmax(110px, 0.72fr) minmax(104px, 0.62fr);
}

.setup-preview {
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--setup-color) 54%, transparent);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--setup-color) 36%, transparent), transparent 48%),
    rgba(0, 0, 0, 0.18);
  color: var(--setup-color);
  font-size: 21px;
  box-shadow: 0 0 24px color-mix(in srgb, var(--setup-color) 18%, transparent);
}

.setup-level-row .setup-preview {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--setup-color) 34%, transparent), color-mix(in srgb, var(--setup-color-2) 28%, transparent)),
    rgba(0, 0, 0, 0.2);
  color: #fff;
}

.setup-editor-copy {
  min-width: 0;
}

.setup-editor-copy span,
.setup-editor-row label span,
.setup-level-row label span {
  display: block;
  margin-bottom: 4px;
  color: rgba(244, 248, 255, 0.52);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.setup-editor-copy b {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.setup-editor-copy em {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.setup-editor-row label,
.setup-level-row label {
  min-width: 0;
}

.setup-editor-row select,
.setup-editor-row input[type="text"],
.setup-level-row input[type="text"] {
  width: 100%;
  height: 38px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-weight: 800;
}

.setup-editor-row input[type="color"],
.setup-level-row input[type="color"] {
  width: 100%;
  height: 38px;
  min-width: 48px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.setup-row-reset {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.setup-row-reset:hover {
  border-color: rgba(236, 126, 126, 0.4);
  color: #ec7e7e;
}

.setup-locked {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(28px, 6vw, 54px);
  text-align: center;
}

.setup-locked > i {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 231, 255, 0.22);
  border-radius: 20px;
  background: rgba(126, 231, 255, 0.08);
  color: #7ee7ff;
  font-size: 28px;
}

@media (max-width: 1180px) {
  .setup-level-grid {
    grid-template-columns: 1fr;
  }

  .setup-editor-row,
  .setup-level-row {
    grid-template-columns: 52px minmax(0, 1fr) minmax(126px, 0.8fr) 78px;
  }

  .setup-editor-row label:nth-of-type(3),
  .setup-level-row label:nth-of-type(3),
  .setup-level-row label:nth-of-type(4) {
    grid-column: 3 / span 1;
  }
}

@media (max-width: 720px) {
  .header-top-actions {
    position: static;
    order: -2;
    width: 100%;
    margin-bottom: 12px;
  }

  .header-top-actions .homepage-login-card {
    max-width: none;
  }

  .header-top-actions .homepage-login-card .ip,
  .header-top-actions .homepage-login-card .status-meta {
    max-width: none;
  }

  .hero-status {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .setup-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-editor-row,
  .setup-level-row {
    grid-template-columns: 48px minmax(0, 1fr) 42px;
  }

  .setup-editor-row label,
  .setup-level-row label {
    grid-column: 1 / -1;
  }

  .setup-row-reset {
    grid-column: 3;
    grid-row: 1;
  }
}

/* Clan page polish: top clan, progress colors, member rank icons */
.clan-progress-card.elo {
  border-color: color-mix(in srgb, #b283ff 36%, transparent);
  background:
    radial-gradient(circle at 0 0, rgba(178, 131, 255, 0.14), transparent 46%),
    rgba(255, 255, 255, 0.035);
}

.clan-progress-card.elo i {
  color: #b283ff;
}

.clan-progress-card.elo strong span {
  background: linear-gradient(90deg, #7c3aed, #b283ff, #c4b5fd);
  box-shadow: 0 0 16px rgba(178, 131, 255, 0.46);
}

.clan-progress-card.xp {
  border-color: color-mix(in srgb, #27e6a7 36%, transparent);
  background:
    radial-gradient(circle at 0 0, rgba(39, 230, 167, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.035);
}

.clan-progress-card.xp i {
  color: #27e6a7;
}

.clan-progress-card.xp strong span {
  background: linear-gradient(90deg, #00a84c, #27e6a7, #79ff9d);
  box-shadow: 0 0 16px rgba(39, 230, 167, 0.42);
}

.clan-hero-feature {
  display: none;
}

.clan-hero-top {
  min-height: 178px;
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 18px;
  border-radius: 14px;
}

.clan-hero-top > i {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  font-size: 34px;
}

.clan-hero-top b {
  font-size: clamp(26px, 3.3vw, 42px);
}

.clan-hero-owner {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--clan-elo-color, #b283ff) 34%, transparent);
  border-radius: 12px;
  background: rgba(7, 11, 18, 0.48);
}

.clan-hero-owner img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  image-rendering: pixelated;
}

.clan-hero-owner span {
  color: rgba(244, 248, 255, 0.54);
}

.clan-hero-owner strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.clan-hero-top-members {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.clan-hero-top-members span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 170px;
  padding: 3px 8px 3px 4px;
  border: 1px solid color-mix(in srgb, var(--clan-color, #b283ff) 24%, transparent);
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.42);
  color: rgba(244, 248, 255, 0.8);
}

.clan-hero-top-members img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  image-rendering: pixelated;
}

.clan-hero-top-members b {
  overflow: hidden;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-clans-preview {
  grid-template-columns: minmax(0, 1fr);
}

.home-clans-preview .clan-card.compact {
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  min-height: 240px;
  padding: 18px;
}

.home-clans-preview .clan-card.compact .clan-banner {
  min-height: 205px;
}

.home-clans-preview .clan-card.compact .clan-card-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.home-clans-preview .clan-card.compact .clan-card-body {
  align-content: center;
}

.clan-member-rank-mark {
  width: fit-content;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--member-rank-color) 48%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--member-rank-color) 18%, transparent), rgba(255, 255, 255, 0.04)),
    rgba(7, 11, 18, 0.42);
  color: #fff !important;
  font-size: 11px;
  font-weight: 900;
}

.clan-member-rank-mark i {
  color: var(--member-rank-color) !important;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--member-rank-color) 70%, transparent)) !important;
}

.clan-member-card.role-owner .clan-member-rank-mark {
  border-color: rgba(255, 225, 0, 0.52);
  background:
    radial-gradient(circle at 0 0, rgba(255, 225, 0, 0.18), transparent 56%),
    rgba(7, 11, 18, 0.48);
}

@media (max-width: 760px) {
  .clan-hero-top {
    grid-template-columns: 1fr;
  }

  .clan-hero-top > i {
    width: 64px;
    height: 64px;
    font-size: 29px;
  }

  .home-clans-preview .clan-card.compact {
    grid-template-columns: 1fr;
  }
}
