* {
  box-sizing: border-box;
}

:root {
  --bg: #040406;
  --bg-soft: #0b0b10;
  --panel: rgba(18, 18, 25, 0.84);
  --panel-solid: #121219;
  --panel-light: rgba(255, 255, 255, 0.055);
  --text: #f4f4f7;
  --muted: #a3a3b0;
  --line: rgba(255, 255, 255, 0.12);
  --danger: #318dff;
  --danger-2: #318dff;
  --green: #50ff75;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(90deg, white 1px, transparent 1px),
    linear-gradient(white 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
  animation: gridDrift 34s linear infinite;
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 44px 44px;
  }
}

@keyframes onlinePulse {
  0%,
  100% {
    box-shadow: 0 0 26px rgba(80, 255, 117, 0.52);
  }
  50% {
    box-shadow: 0 0 34px rgba(80, 255, 117, 0.88);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 16px 28px;
  background: rgba(4, 4, 6, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: 1.6px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  background: #050506;
  box-shadow: 0 0 34px rgba(49, 141, 255, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand:hover .brand-mark {
  transform: translateY(-2px);
  box-shadow: 0 0 42px rgba(49, 141, 255, 0.38);
}

.nav {
  justify-self: center;
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.login-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: var(--panel-light);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
  scroll-margin-top: 96px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  color: var(--danger);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(60px, 9vw, 132px);
  line-height: 0.85;
  letter-spacing: -5px;
  text-transform: uppercase;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
  text-shadow: 0 0 70px rgba(49, 141, 255, 0.34);
}

h2 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.lead {
  color: #d3d3dc;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.48;
  max-width: 760px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.tag-row span,
.feature-mini-list span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 1px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tag-row span::before,
.feature-mini-list span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  opacity: 0;
  transform: translateX(-80%);
  transition: opacity 0.18s ease, transform 0.38s ease;
}

.tag-row span:hover,
.tag-row span:focus-visible,
.feature-mini-list span:hover,
.feature-mini-list span:focus-visible,
.feature-mini-list span.chip-active,
.tag-row span.chip-active {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(49, 141, 255, 0.48);
  background: rgba(49, 141, 255, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), 0 0 24px rgba(49, 141, 255, 0.08);
  outline: none;
}

.tag-row span:hover::before,
.tag-row span:focus-visible::before,
.feature-mini-list span:hover::before,
.feature-mini-list span:focus-visible::before {
  opacity: 1;
  transform: translateX(80%);
}

.feature-mini-list span:nth-child(1),
.feature-mini-list span:nth-child(4),
.feature-mini-list span:nth-child(6),
.feature-mini-list span:nth-child(10) {
  border-color: rgba(49, 141, 255, 0.34);
  background: rgba(49, 141, 255, 0.095);
}

.feature-mini-list span:nth-child(2),
.feature-mini-list span:nth-child(3),
.feature-mini-list span:nth-child(11) {
  border-color: rgba(49, 141, 255, 0.32);
  background: rgba(49, 141, 255, 0.075);
}

.feature-detail {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-top: 12px;
  padding: 13px 15px;
  overflow: hidden;
  border: 1px solid rgba(49, 141, 255, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(49, 141, 255, 0.1), rgba(255, 255, 255, 0.025) 58%),
    rgba(8, 8, 11, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  animation: featureDetailIn 0.18s ease both;
}

.feature-detail[hidden] {
  display: none;
}

.feature-detail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--danger);
}

.feature-detail-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(49, 141, 255, 0.38);
  border-radius: 8px;
  background: rgba(49, 141, 255, 0.12);
  color: #318dff;
  font-size: 12px;
  font-weight: 950;
}

.feature-detail strong {
  display: block;
  margin: 1px 0 5px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}

.feature-detail p {
  margin: 0;
  color: #bcbcc5;
  font-size: 13px;
  line-height: 1.48;
}

.feature-detail-hero {
  max-width: 720px;
}

@keyframes featureDetailIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.hero-actions.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 13px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.095);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--danger), var(--danger-2));
  box-shadow: 0 10px 26px rgba(49, 141, 255, 0.14);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #318dff, #318dff);
  box-shadow: 0 18px 44px rgba(49, 141, 255, 0.28);
}

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

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn.ghost {
  background: transparent;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.btn.full {
  width: 100%;
}

.command-card,
.live-card,
.product-card,
.point-card,
.info-split > article,
.rules-grid > div,
.final-cta {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.command-card:hover,
.live-card:hover,
.info-split > article:hover,
.final-cta:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.56), 0 0 30px rgba(49, 141, 255, 0.07);
}

.command-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.command-card::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(49, 141, 255, 0.38), transparent 68%);
}

.command-label,
.card-kicker {
  color: var(--danger);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.command-title {
  position: relative;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 950;
  margin-bottom: 26px;
}

.command-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}

.command-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d9d9e2;
  font-size: 13px;
}

.command-copy button {
  border: 0;
  background: var(--text);
  color: #09090b;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.command-copy button:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(255, 255, 255, 0.12);
}

.dashboard {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1fr;
  gap: 18px;
  padding-top: 12px;
}

.live-card {
  padding: 26px;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 30px;
  font-weight: 950;
  margin-bottom: 14px;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #777;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.16);
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 26px rgba(80, 255, 117, 0.68);
  animation: onlinePulse 2.6s ease-in-out infinite;
}

.status-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 26px rgba(49, 141, 255, 0.68);
}

.stat-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-line span,
.micro-note {
  color: var(--muted);
}

.stat-line strong {
  text-align: right;
}

.wipe-date {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 950;
  margin-bottom: 10px;
}

.countdown {
  color: var(--danger);
  font-size: 22px;
  font-weight: 950;
  margin-bottom: 12px;
}

.force-wipe-note {
  margin-top: 5px;
  font-size: 12px;
}

#wipeCard.is-force-wipe .card-kicker,
#wipeCard.is-force-wipe .wipe-date {
  color: var(--danger);
}

.feature-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-header {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-header p {
  color: var(--muted);
  line-height: 1.65;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card,
.point-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 395px;
}

.product-featured,
.point-featured {
  border-color: rgba(255, 255, 255, 0.18);
}

.product-card:hover,
.point-card:hover,
.rules-grid > div:hover {
  transform: translateY(-5px);
  border-color: rgba(49, 141, 255, 0.45);
  background:
    radial-gradient(circle at 50% 0%, rgba(49, 141, 255, 0.15), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58), 0 0 36px rgba(49, 141, 255, 0.12);
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.product-badge.hot {
  color: white;
  border-color: rgba(49, 141, 255, 0.5);
  background: rgba(49, 141, 255, 0.18);
}

.product-price {
  font-weight: 950;
  font-size: 20px;
}

.product-card p,
.point-card p,
.info-split p,
.rules-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.product-card ul {
  color: #d0d0da;
  line-height: 1.9;
  padding-left: 18px;
  margin: 8px 0 28px;
}

.product-card .btn,
.point-card .btn {
  margin-top: auto;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.point-card {
  min-height: 270px;
}

.point-price {
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
  white-space: nowrap;
}

.point-amount {
  display: block;
  color: var(--danger);
  font-size: 46px;
  font-weight: 950;
  letter-spacing: -1px;
  line-height: 1;
}

.info-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.info-split > article {
  padding: 30px;
}

.steps {
  display: grid;
  gap: 12px;
  align-content: start;
}

.steps div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.steps strong {
  color: var(--danger);
  font-size: 22px;
}

.steps span {
  color: #d7d7df;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rules-grid > div {
  padding: 24px;
}

.final-cta {
  text-align: center;
  padding: 46px;
  margin-bottom: 30px;
  background:
    radial-gradient(circle at top, rgba(49, 141, 255, 0.25), transparent 50%),
    var(--panel);
}

.footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(14px);
  z-index: 100;
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  background: #121219;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.modal h2 {
  font-size: 42px;
}

.modal p {
  color: var(--muted);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.modal-actions {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: #f4f4f5;
  color: #050505;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 950;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 120;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 940px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .dashboard,
  .shop-grid,
  .points-grid,
  .info-split,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  h1 {
    letter-spacing: -2px;
  }
.product-card,
  .point-card {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}


.newsletter-section {
  padding-top: 30px;
}

.newsletter-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
  background:
    radial-gradient(circle at 0% 0%, rgba(49, 141, 255, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    var(--panel);
  border: 1px solid rgba(49, 141, 255, 0.28);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.newsletter-card p {
  color: var(--muted);
  line-height: 1.65;
}

.newsletter-form {
  display: grid;
  gap: 12px;
}

.newsletter-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  border-color: rgba(49, 141, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(49, 141, 255, 0.12);
}

.consent-line {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.consent-line input {
  margin-top: 2px;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-message.success {
  color: var(--green);
}

.form-message.error {
  color: var(--danger);
}

.newsletter-modal::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(49, 141, 255, 0.34), transparent 70%);
  pointer-events: none;
}

.modal-newsletter-form {
  margin-top: 22px;
}

@media (max-width: 940px) {
  .newsletter-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* =========================================================
   Project: Violation v6 header experiment
   Desktop: floating left rail navigation
   Mobile: compact top bar
   ========================================================= */

@media (min-width: 941px) {
  html {
    scroll-padding-top: 28px;
  }

  main,
  .footer {
    padding-left: 132px;
  }

  .section {
    scroll-margin-top: 36px;
  }

  .topbar {
    position: fixed;
    left: 22px;
    top: 22px;
    bottom: 22px;
    width: 92px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    padding: 14px 10px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
      rgba(4, 4, 6, 0.72);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow:
      0 30px 90px rgba(0, 0, 0, 0.56),
      0 0 42px rgba(49, 141, 255, 0.08);
    overflow: hidden;
  }

  .topbar::before {
    content: "";
    position: absolute;
    inset: -90px -60px auto -60px;
    height: 180px;
    background: radial-gradient(circle, rgba(49, 141, 255, 0.34), transparent 68%);
    pointer-events: none;
  }

  .topbar::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 96px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
  }

  .brand {
    position: relative;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    min-height: 76px;
    padding: 0;
    text-align: center;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 18px;
    background:
      radial-gradient(circle at 50% 38%, rgba(49, 141, 255, 0.25), transparent 58%),
      #050506;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.04),
      0 0 36px rgba(49, 141, 255, 0.28);
  }

  .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    padding: 7px;
  }

  .brand-text {
    display: block;
    max-width: 68px;
    color: rgba(244, 244, 247, 0.92);
    font-size: 9px;
    line-height: 1.1;
    letter-spacing: 1.55px;
  }

  .nav {
    position: relative;
    z-index: 1;
    justify-self: auto;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 6px;
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(244, 244, 247, 0.66);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.35px;
    text-align: center;
    line-height: 1.05;
  }

  .nav a:hover,
  .nav a:focus-visible {
    color: #fff;
    border-color: rgba(49, 141, 255, 0.48);
    background:
      radial-gradient(circle at 50% 0%, rgba(49, 141, 255, 0.24), transparent 58%),
      rgba(255, 255, 255, 0.075);
    transform: translateX(3px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22), 0 0 24px rgba(49, 141, 255, 0.08);
    outline: none;
  }

  .login-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 44px;
    padding: 0;
    border-radius: 16px;
    border-color: rgba(49, 141, 255, 0.42);
    background: linear-gradient(135deg, rgba(49, 141, 255, 0.92), rgba(49, 141, 255, 0.88));
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.7px;
    box-shadow: 0 14px 34px rgba(49, 141, 255, 0.16);
  }

  .login-btn:hover,
  .login-btn:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.34);
    background: linear-gradient(135deg, #318dff, #318dff);
    box-shadow: 0 20px 44px rgba(49, 141, 255, 0.26);
    outline: none;
  }

  .hero-left {
    position: relative;
  }

  .hero-left::after {
    content: none;
  }
}

@media (max-width: 940px) {
  html {
    scroll-padding-top: 88px;
  }

  main {
    padding-top: 72px;
  }

  .topbar {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 12px;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(4, 4, 6, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .brand-mark img {
    object-fit: contain;
    padding: 5px;
  }

  .brand-text {
    display: inline;
    font-size: 12px;
    letter-spacing: 1.05px;
  }

  .login-btn {
    min-height: 40px;
    padding: 0 15px;
  }
}

/* =========================================================
   Project: Violation v7 rail polish
   Squarer / industrial left rail
   ========================================================= */

@media (min-width: 941px) {
  main,
  .footer {
    padding-left: 214px;
  }

  .footer {
    padding-top: 38px;
  }

  .topbar {
    left: 24px;
    top: 24px;
    bottom: 24px;
    width: 164px;
    gap: 16px;
    padding: 14px;
    align-items: stretch;
    backdrop-filter: blur(16px);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
      linear-gradient(90deg, rgba(49, 141, 255, 0.14), transparent 22px),
      rgba(6, 6, 10, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-left: 3px solid rgba(49, 141, 255, 0.82);
    border-radius: 8px;
    box-shadow:
      0 26px 70px rgba(0, 0, 0, 0.54),
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      inset 0 0 0 1px rgba(0, 0, 0, 0.44),
      0 0 34px rgba(49, 141, 255, 0.045);
    overflow: hidden;
  }

  .topbar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--danger), var(--danger-2), transparent 72%);
    pointer-events: none;
  }

  .topbar::after {
    content: "VIOLATION";
    position: absolute;
    left: 50%;
    right: auto;
    top: clamp(365px, 53.5vh, 505px);
    bottom: 113px;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: translateX(-50%) rotate(180deg);
    font-size: clamp(68px, 9vh, 96px);
    font-weight: 950;
    letter-spacing: 7px;
    line-height: 0.72;
    color: rgba(255, 255, 255, 0.055);
    text-shadow: 0 0 28px rgba(49, 141, 255, 0.14);
    pointer-events: none;
    user-select: none;
  }

  .brand {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 146px;
    padding: 12px 6px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
  }

  .brand::before {
    content: "";
    position: absolute;
    inset: 10px 2px auto;
    height: 92px;
    background:
      radial-gradient(circle at 50% 42%, rgba(49, 141, 255, 0.24), transparent 68%);
    opacity: 0.9;
    pointer-events: none;
  }

  .brand-mark {
    position: relative;
    z-index: 1;
    width: 94px;
    height: 94px;
    margin: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow:
      0 0 32px rgba(49, 141, 255, 0.16),
      0 16px 34px rgba(0, 0, 0, 0.32);
  }

  .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    filter: drop-shadow(0 0 16px rgba(49, 141, 255, 0.18));
  }

  .brand:hover .brand-mark {
    transform: translateY(-1px);
    box-shadow:
      0 0 40px rgba(49, 141, 255, 0.25),
      0 18px 38px rgba(0, 0, 0, 0.36);
  }

  .brand-text {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 128px;
    color: rgba(244, 244, 247, 0.98);
    font-size: 11px;
    line-height: 1.08;
    letter-spacing: 1.35px;
    text-align: center;
  }

  .brand-text::after {
    content: "RUST 2X";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    min-height: 18px;
    padding: 0 8px;
    border: 1px solid rgba(49, 141, 255, 0.45);
    background: rgba(49, 141, 255, 0.11);
    color: var(--danger);
    font-size: 9px;
    letter-spacing: 1.65px;
  }

  .nav {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 100%;
  }

  .nav a {
    position: relative;
    z-index: 1;
    justify-content: flex-start;
    min-height: 42px;
    padding: 0 10px 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014));
    color: rgba(244, 244, 247, 0.72);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.55px;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
  }

  .nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 2px;
    background: rgba(49, 141, 255, 0.32);
    transition: width 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }

  .nav a::after {
    content: "›";
    margin-left: auto;
    color: rgba(255, 255, 255, 0.22);
    font-size: 17px;
    line-height: 1;
    transform: translateY(-1px);
    transition: color 0.18s ease, transform 0.18s ease;
  }

  .nav a:hover,
  .nav a:focus-visible {
    color: #fff;
    border-color: rgba(49, 141, 255, 0.48);
    background:
      linear-gradient(90deg, rgba(49, 141, 255, 0.2), rgba(255, 255, 255, 0.045));
    transform: translateX(0);
    box-shadow:
      inset 0 0 0 1px rgba(49, 141, 255, 0.08),
      0 12px 24px rgba(0, 0, 0, 0.22);
    outline: none;
  }

  .nav a:hover::before,
  .nav a:focus-visible::before {
    width: 4px;
    background: var(--danger);
    box-shadow: 0 0 18px rgba(49, 141, 255, 0.58);
  }

  .nav a:hover::after,
  .nav a:focus-visible::after {
    color: rgba(255, 255, 255, 0.78);
    transform: translate(2px, -1px);
  }

  .login-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid rgba(49, 141, 255, 0.58);
    background:
      linear-gradient(135deg, rgba(49, 141, 255, 0.84), rgba(23, 66, 120, 0.82));
    color: #fff;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 14px 34px rgba(49, 141, 255, 0.12);
  }

  .login-btn:hover,
  .login-btn:focus-visible {
    transform: translateY(0);
    border-color: rgba(255, 255, 255, 0.32);
    background:
      linear-gradient(135deg, #318dff, #1b4d8c);
    box-shadow: 0 18px 38px rgba(49, 141, 255, 0.22);
    outline: none;
  }
}

@media (min-width: 941px) {
  .nav, .login-btn { position: relative; z-index: 2; }
}




/* v18 status cleanup + wordmark position */
.live-card:first-child {
  min-height: auto;
}

.live-card:first-child .stat-line {
  padding: 9px 0;
}

@media (min-width: 941px) {
  .dashboard {
    align-items: stretch;
  }

  .dashboard .live-card {
    align-self: stretch;
  }
}


/* v19: sjednocení tlačítek v sekci Body do shopu */
#points .btn.primary,
#points .btn.secondary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--danger), var(--danger-2));
  box-shadow: 0 10px 26px rgba(49, 141, 255, 0.14);
}

#points .btn.primary:hover,
#points .btn.secondary:hover,
#points .btn.primary:focus-visible,
#points .btn.secondary:focus-visible {
  background: linear-gradient(135deg, #318dff, #318dff);
  box-shadow: 0 18px 44px rgba(49, 141, 255, 0.28);
}


/* v20 clean: language flags + raised login button */
.rail-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  border-radius: 10px;
  min-width: 42px;
  min-height: 38px;
  padding: 0 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.11);
  outline: none;
}

.lang-btn.active {
  border-color: rgba(49, 141, 255, 0.62);
  background: linear-gradient(135deg, rgba(49, 141, 255, 0.2), rgba(49, 141, 255, 0.16));
  box-shadow: 0 10px 24px rgba(49, 141, 255, 0.13);
}

@media (max-width: 940px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .rail-actions {
    justify-self: end;
    display: grid;
    grid-template-columns: auto;
    gap: 7px;
  }

  .lang-switch {
    justify-content: end;
  }

  .lang-btn {
    min-width: 36px;
    min-height: 32px;
    border-radius: 9px;
    font-size: 17px;
  }

  .rail-actions .login-btn {
    min-height: 36px;
    padding: 0 13px;
  }
}

@media (min-width: 941px) {
  .nav {
    flex: 0 0 auto;
    margin-top: 18px;
    margin-bottom: 14px;
  }

  .rail-actions {
    position: relative;
    z-index: 2;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    margin-bottom: auto;
  }

  .rail-actions .login-btn {
    width: 100%;
    margin: 0;
  }

  .rail-actions .lang-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .rail-actions .lang-btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    border-radius: 4px;
    font-size: 18px;
    backdrop-filter: blur(8px);
  }

  .topbar::after {
    top: clamp(340px, 50vh, 450px);
    bottom: 96px;
    font-size: clamp(60px, 7.8vh, 86px);
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.048);
  }
}


/* v21: move login/lang to bottom + flag-filled language buttons */
.lang-btn {
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,0.96);
  font-weight: 900;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}

.lang-btn[data-lang="cs"] {
  background:
    linear-gradient(150deg, #11457e 0 32%, transparent 32.5%),
    linear-gradient(to bottom, #ffffff 0 50%, #2977d7 50% 100%);
  border-color: rgba(255,255,255,0.28);
}

.lang-btn[data-lang="en"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255,255,255,0.02)),
    rgba(18, 18, 24, 0.78);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255,255,255,0.02)),
    url("./gb_flag.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 100% 100%, 82% 74%;
  border-color: rgba(255,255,255,0.34);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.68);
}

.lang-btn.active {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 12px 28px rgba(49, 141, 255, 0.18);
}

.lang-btn:hover,
.lang-btn:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.08) brightness(1.04);
}

@media (min-width: 941px) {
  .topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .nav {
    flex: 0 0 auto;
    margin-top: 18px;
    margin-bottom: 14px;
  }

  .rail-actions {
    position: relative;
    z-index: 2;
    flex-direction: column;
    width: 100%;
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 18px;
  }

  .rail-actions .login-btn {
    order: 1;
    width: 100%;
    margin: 0;
  }

  .rail-actions .lang-switch {
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: 10px;
  }
}


/* v22: CZ is neutral, only GB has British flag fill */
.lang-btn[data-lang="cs"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(18, 18, 24, 0.78);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255,255,255,0.96);
  text-shadow: none;
}

.lang-btn[data-lang="cs"].active {
  border-color: rgba(49, 141, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(49, 141, 255, 0.20), rgba(49, 141, 255, 0.14)),
    rgba(18, 18, 24, 0.82);
  box-shadow: 0 0 0 1px rgba(49, 141, 255, 0.12) inset, 0 12px 28px rgba(49, 141, 255, 0.16);
}


/* v23: fixed GB flag selector */
.lang-btn[data-lang="en"].active {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.20) inset, 0 12px 30px rgba(1, 33, 105, 0.28);
}


/* v26: simple text language toggle without flags */
.lang-switch {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0 !important;
  padding: 4px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    rgba(16, 16, 22, 0.86);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 14px 28px rgba(0,0,0,0.24);
  overflow: hidden;
}

.lang-switch::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(49, 141, 255, 0.92), rgba(49, 141, 255, 0.88));
  box-shadow: 0 8px 22px rgba(49, 141, 255, 0.24);
  transition: transform 0.22s ease;
}

.lang-switch.is-en::before {
  transform: translateX(100%);
}

.lang-btn,
.lang-btn[data-lang="cs"],
.lang-btn[data-lang="en"] {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  color: rgba(255,255,255,0.74);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow: none !important;
  filter: none !important;
}

.lang-btn.active {
  color: #fff;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  transform: none;
  color: #fff;
  outline: none;
}

@media (max-width: 940px) {
  .lang-switch {
    min-width: 104px;
  }

  .lang-btn {
    min-height: 34px;
    font-size: 12px;
  }
}

@media (min-width: 941px) {
  .rail-actions .lang-switch {
    width: 100%;
    margin-top: 10px;
  }

  .rail-actions .lang-btn {
    width: 100%;
    min-height: 36px;
    border-radius: 999px;
  }
}

/* Player statistics page */
.nav a.active {
  color: var(--text);
}

.stats-shell {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding-top: 28px;
  padding-bottom: 72px;
}

.stats-hero-panel,
.stats-layout,
.stats-board,
.stats-sidebar {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(7, 7, 10, 0.88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.stats-hero-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 14px 20px;
  border-radius: 6px;
}

.stats-mode-tabs {
  display: flex;
  gap: 14px;
}

.stats-mode,
.stats-server-btn,
.stats-category,
.wipe-select,
.stats-search,
.page-size,
.stats-pagination button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.stats-mode,
.stats-server-btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 4px;
  cursor: pointer;
}

.stats-mode:hover,
.stats-mode.active,
.stats-server-btn:hover,
.stats-category:hover,
.stats-category.active,
.stats-pagination button:hover:not(:disabled),
.stats-pagination button.active {
  transform: translateY(-1px);
  border-color: rgba(49, 141, 255, 0.82);
  background: linear-gradient(180deg, rgba(49, 141, 255, 0.23), rgba(19, 54, 98, 0.56));
  box-shadow: inset 0 -1px 0 rgba(49, 141, 255, 0.32), 0 14px 32px rgba(49, 141, 255, 0.12);
}

.stats-server-heading {
  text-align: center;
  line-height: 1.08;
  max-width: 780px;
}

.stats-server-heading strong {
  display: block;
  color: #318dff;
  font-size: clamp(15px, 1.35vw, 23px);
  font-weight: 950;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.stats-server-heading span {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-weight: 900;
}

.stats-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 6px;
  min-height: 620px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    radial-gradient(circle at 50% 100%, rgba(49, 141, 255, 0.1), transparent 44%),
    rgba(7, 7, 10, 0.86);
}

.stats-sidebar {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 20px 18px;
  border-radius: 6px;
}

.stats-search,
.wipe-select {
  width: 100%;
  min-height: 42px;
  border-radius: 5px;
  padding: 0 12px;
  outline: none;
}

.stats-search:focus,
.wipe-select:focus {
  border-color: rgba(49, 141, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(49, 141, 255, 0.12);
}

.wipe-select-wrap {
  display: grid;
  gap: 8px;
}

.wipe-select-wrap span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wipe-picker {
  position: relative;
}

.wipe-select-native {
  display: none;
}

.wipe-picker-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 0 42px 0 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(7, 7, 10, 0.94);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.wipe-picker-trigger:hover,
.wipe-picker.is-open .wipe-picker-trigger {
  border-color: rgba(49, 141, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(49, 141, 255, 0.11), rgba(19, 54, 98, 0.18)),
    rgba(7, 7, 10, 0.96);
}

.wipe-picker-trigger:focus-visible {
  outline: none;
  border-color: rgba(49, 141, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(49, 141, 255, 0.14);
}

.wipe-picker-trigger > span:first-child {
  overflow: hidden;
  color: #fff;
  font-size: inherit;
  letter-spacing: normal;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.wipe-picker-chevron {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}

.wipe-picker.is-open .wipe-picker-chevron {
  transform: translateY(-28%) rotate(225deg);
}

.wipe-picker-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  max-height: 250px;
  padding: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(49, 141, 255, 0.58);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 38%),
    rgba(7, 7, 10, 0.985);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.wipe-picker-menu[hidden] {
  display: none;
}

.wipe-picker-option {
  position: relative;
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 8px 34px 8px 11px;
  border: 0;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease;
}

.wipe-picker-option + .wipe-picker-option {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.wipe-picker-option:hover,
.wipe-picker-option:focus-visible {
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.wipe-picker-option[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(90deg, rgba(49, 141, 255, 0.3), rgba(19, 54, 98, 0.16));
  box-shadow: inset 3px 0 0 #318dff;
}

.wipe-picker-option[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #318dff;
  border-bottom: 2px solid #318dff;
  transform: translateY(-65%) rotate(-45deg);
}

.wipe-picker-menu::-webkit-scrollbar {
  width: 8px;
}

.wipe-picker-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
}

.wipe-picker-menu::-webkit-scrollbar-thumb {
  border: 2px solid rgba(7, 7, 10, 0.98);
  border-radius: 999px;
  background: rgba(49, 141, 255, 0.56);
}

.stats-category-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.stats-category {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
}

.stats-board {
  min-width: 0;
  border-radius: 10px;
  padding: 14px;
  background: rgba(3, 3, 5, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.stats-table-wrap {
  position: relative;
  min-height: 510px;
  overflow-x: auto;
  padding: 2px;
}

.stats-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.stats-table th,
.stats-table td {
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
}

.stats-table th {
  color: #dcdce7;
  font-size: 15px;
  font-weight: 500;
  background: rgba(6, 6, 9, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-sort-button {
  appearance: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  cursor: pointer;
}

.stats-sort-button:hover,
.stats-sort-button.active {
  color: #318dff;
}

.stats-table td {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  background: rgba(10, 10, 13, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.stats-table tbody tr {
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.stats-table tbody tr:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.stats-table tbody tr:hover td {
  border-top-color: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 22px rgba(0, 0, 0, 0.22);
}

.stats-table th:first-child,
.stats-table td:first-child {
  width: 74px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px 0 0 5px;
}

.stats-table th:last-child,
.stats-table td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 5px 5px 0;
}

.stats-table tr.rank-gold td {
  border-color: rgba(255, 215, 40, 0.8);
  background: linear-gradient(90deg, rgba(21, 61, 110, 0.62), rgba(10, 10, 13, 0.92) 32%);
}

.stats-table tr.rank-silver td {
  border-color: rgba(210, 210, 220, 0.46);
  background: linear-gradient(90deg, rgba(82, 82, 88, 0.4), rgba(10, 10, 13, 0.92) 30%);
}

.stats-table tr.rank-bronze td {
  border-color: rgba(49, 141, 255, 0.64);
  background: linear-gradient(90deg, rgba(18, 53, 96, 0.5), rgba(10, 10, 13, 0.92) 30%);
}

.stats-empty {
  position: absolute;
  inset: 82px 22px auto;
  padding: 28px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.stats-empty[hidden] {
  display: none;
}

.stats-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 2px 4px;
  color: rgba(255, 255, 255, 0.52);
}

.page-size {
  width: 100%;
  min-height: 34px;
  border-radius: 4px;
  padding: 0 8px;
}

.page-size-native {
  display: none;
}

.stats-length-picker {
  flex: 0 0 92px;
  min-width: 92px;
}

.stats-length-trigger {
  min-height: 38px;
  padding: 0 34px 0 12px;
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(7, 7, 10, 0.94);
}

.stats-length-trigger > span:first-child {
  width: 100%;
  text-align: left;
}

.stats-length-menu {
  min-width: 92px;
}

.stats-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.stats-pagination button {
  min-width: 32px;
  min-height: 32px;
  border-radius: 5px;
  cursor: pointer;
}

.stats-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

#statsShowing {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 4px;
}

.stats-length-picker,
.stats-pagination,
#statsShowing {
  align-self: stretch;
}

.heatmap-board {
  min-height: 560px;
  padding: 24px;
}

.heatmap-shell {
  display: grid;
  gap: 18px;
}

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

.heatmap-layer-tabs,
.heatmap-time-tabs,
.heatmap-density-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.heatmap-window-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.heatmap-layer-tab,
.heatmap-time-tab {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #d4d4de;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.heatmap-layer-tab:hover,
.heatmap-layer-tab.active,
.heatmap-time-tab:hover,
.heatmap-time-tab.active {
  transform: translateY(-1px);
  border-color: rgba(49, 141, 255, 0.82);
  color: #fff;
  background: linear-gradient(180deg, rgba(49, 141, 255, 0.26), rgba(49, 141, 255, 0.16));
  box-shadow: 0 14px 34px rgba(49, 141, 255, 0.12);
}

.heatmap-density-chip {
  min-height: 56px;
  padding: 0 18px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.heatmap-content-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.heatmap-info-panel,
.heatmap-stage-frame {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  box-shadow: 0 28px 80px rgba(0,0,0,0.35);
}

.heatmap-info-panel {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 24px;
}

.heatmap-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(111, 255, 161, 0.26);
  background: rgba(80, 255, 117, 0.08);
  color: #dfffe7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.heatmap-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #64ff84;
  box-shadow: 0 0 18px rgba(100,255,132,0.8);
}

.heatmap-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3vw, 50px);
  line-height: 0.98;
}

.heatmap-copy p {
  margin: 0;
  color: #c1c1cc;
  line-height: 1.7;
}

.heatmap-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.heatmap-summary-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}

.heatmap-summary-label {
  display: block;
  margin-bottom: 8px;
  color: #9f9fad;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.heatmap-summary-card strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.heatmap-stage-frame {
  padding: 20px;
}

.heatmap-map-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.heatmap-map-meta-title,
.heatmap-map-meta-layer,
.heatmap-last-update {
  color: #d6d6dd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.heatmap-map-meta-title {
  color: #fff;
}

.heatmap-canvas {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 50% 60%, rgba(255,255,255,0.02), transparent 45%),
    linear-gradient(180deg, #0c0d12, #07080c);
}

.heatmap-grid-overlay,
.heatmap-shoreline,
.heatmap-roads {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.heatmap-grid-overlay {
  opacity: 0.2;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.5));
}

.heatmap-shoreline {
  background:
    radial-gradient(circle at 8% 14%, rgba(255,255,255,0.09), transparent 18%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.06), transparent 14%),
    radial-gradient(circle at 26% 84%, rgba(255,255,255,0.08), transparent 12%),
    radial-gradient(circle at 92% 78%, rgba(255,255,255,0.07), transparent 13%);
  filter: blur(14px);
  opacity: 0.38;
}

.heatmap-roads {
  background:
    linear-gradient(120deg, transparent 34%, rgba(255,255,255,0.05) 35%, rgba(255,255,255,0.05) 36%, transparent 37%),
    linear-gradient(25deg, transparent 46%, rgba(255,255,255,0.05) 47%, rgba(255,255,255,0.05) 48%, transparent 49%),
    linear-gradient(165deg, transparent 58%, rgba(255,255,255,0.05) 59%, rgba(255,255,255,0.05) 60%, transparent 61%);
  opacity: 0.42;
}

.heatmap-hotspot {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  /* Normal blending keeps the map readable under dense resource layers. */
  mix-blend-mode: normal;
  opacity: 0.88;
}

.hotspot-a { left: 10%; top: 20%; width: 170px; height: 140px; }
.hotspot-b { right: 11%; top: 14%; width: 210px; height: 170px; }
.hotspot-c { left: 34%; top: 38%; width: 240px; height: 190px; }
.hotspot-d { right: 24%; bottom: 18%; width: 180px; height: 150px; }
.hotspot-e { left: 18%; bottom: 14%; width: 190px; height: 150px; }

.layer-pvp .hotspot-a,
.layer-pvp .hotspot-b,
.layer-pvp .hotspot-c,
.layer-pvp .hotspot-d,
.layer-pvp .hotspot-e {
  background: radial-gradient(circle, rgba(255, 243, 71, 0.75), rgba(49, 141, 255, 0.5) 40%, rgba(49, 141, 255, 0.18) 70%, transparent 100%);
}

.layer-raids .hotspot-a,
.layer-raids .hotspot-b,
.layer-raids .hotspot-c,
.layer-raids .hotspot-d,
.layer-raids .hotspot-e {
  background: radial-gradient(circle, rgba(49, 141, 255, 0.72), rgba(239, 57, 255, 0.46) 42%, rgba(97, 31, 255, 0.2) 72%, transparent 100%);
}

.layer-nodes .hotspot-a,
.layer-nodes .hotspot-b,
.layer-nodes .hotspot-c,
.layer-nodes .hotspot-d,
.layer-nodes .hotspot-e {
  background: radial-gradient(circle, rgba(255, 240, 120, 0.72), rgba(49, 141, 255, 0.44) 42%, rgba(49, 141, 255, 0.16) 72%, transparent 100%);
}

.layer-berries .hotspot-a,
.layer-berries .hotspot-b,
.layer-berries .hotspot-c,
.layer-berries .hotspot-d,
.layer-berries .hotspot-e {
  background: radial-gradient(circle, rgba(140, 255, 124, 0.75), rgba(57, 190, 101, 0.46) 42%, rgba(255, 214, 79, 0.16) 72%, transparent 100%);
}

.layer-animals .hotspot-a,
.layer-animals .hotspot-b,
.layer-animals .hotspot-c,
.layer-animals .hotspot-d,
.layer-animals .hotspot-e {
  background: radial-gradient(circle, rgba(94, 255, 240, 0.74), rgba(62, 191, 255, 0.4) 42%, rgba(92, 255, 159, 0.14) 72%, transparent 100%);
}

.heatmap-label {
  position: absolute;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(4,4,7,0.6);
  color: #e6e6ee;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.label-one { left: 8%; top: 10%; }
.label-two { right: 10%; top: 10%; }
.label-three { right: 18%; bottom: 12%; }
.label-four { left: 28%; bottom: 10%; }

.heatmap-legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.heatmap-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.heatmap-legend-label {
  color: #d0d0d8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.heatmap-legend-bar {
  width: 220px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,211,79,0.72), rgba(49, 141, 255,0.86), rgba(49, 141, 255,1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 28px rgba(49, 141, 255, 0.12);
}

@media (max-width: 940px) {
  .stats-shell {
    padding-top: 96px;
  }

  .stats-hero-panel,
  .stats-layout {
    grid-template-columns: 1fr;
  }

  .stats-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .stats-footer {
    flex-wrap: wrap;
    padding: 16px 0 2px;
  }

  .stats-pagination {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
}

@media (min-width: 941px) {
  .stats-page .stats-shell {
    width: min(1440px, calc(100% - 48px));
  }
}

/* =========================================================
   Mobile experience
   Keeps desktop rail intact, but turns phones into a compact app-like layout.
   ========================================================= */

@media (max-width: 940px) {
  html {
    scroll-padding-top: 126px;
  }

  body {
    min-width: 0;
  }

  .background-grid {
    background-size: 32px 32px;
    opacity: 0.045;
  }

  main,
  .footer {
    padding-left: 0 !important;
  }

  main {
    padding-top: 132px;
  }

  .topbar {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 10px;
    bottom: auto;
    width: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    align-items: center;
    gap: 10px 12px;
    padding: 10px;
    border-radius: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
      rgba(5, 5, 8, 0.92);
    box-shadow:
      0 18px 52px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
  }

  .topbar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--danger), var(--danger-2), transparent 76%);
    pointer-events: none;
  }

  .topbar::after {
    content: none;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
    min-height: 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    border-bottom: 0;
    text-align: left;
  }

  .brand::before,
  .brand-text::after {
    content: none;
  }

  .brand-mark {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: 0 0 26px rgba(49, 141, 255, 0.16);
  }

  .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
  }

  .brand-text {
    display: block;
    max-width: none;
    min-width: 0;
    color: #fff;
    font-size: 11px;
    line-height: 1.05;
    letter-spacing: 1.15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rail-actions {
    grid-area: actions;
    justify-self: end;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 0;
  }

  .rail-actions .login-btn {
    width: auto;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: none;
  }

  .rail-actions .lang-switch {
    width: 94px;
    min-width: 94px;
    margin: 0;
  }

  .rail-actions .lang-btn {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }

  .nav {
    grid-area: nav;
    display: flex !important;
    flex-direction: row;
    justify-content: flex-start;
    gap: 7px;
    width: 100%;
    margin: 0;
    padding: 2px 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    min-width: auto;
    padding: 0 11px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(244, 244, 247, 0.78);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.35px;
    text-transform: none;
    white-space: nowrap;
    backdrop-filter: none;
  }

  .nav a::before,
  .nav a::after {
    content: none;
  }

  .nav a:hover,
  .nav a:focus-visible,
  .nav a.active {
    transform: none;
    color: #fff;
    border-color: rgba(49, 141, 255, 0.55);
    background: linear-gradient(135deg, rgba(49, 141, 255, 0.24), rgba(49, 141, 255, 0.12));
  }

  .section {
    width: min(100% - 28px, 620px);
    padding: 42px 0;
    scroll-margin-top: 128px;
  }

  .hero {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    padding-top: 28px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 2.4px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(46px, 18vw, 72px);
    line-height: 0.88;
    letter-spacing: -1.5px;
  }

  h1 span {
    -webkit-text-stroke: 1px var(--text);
  }

  h2 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1;
    letter-spacing: -1px;
  }

  h3 {
    font-size: 21px;
  }

  .lead,
  .section-header p,
  .info-split p,
  .newsletter-card p,
  .rules-grid p,
  .product-card p,
  .point-card p {
    font-size: 15px;
    line-height: 1.62;
  }

  .tag-row {
    gap: 8px;
    margin-top: 22px;
  }

  .tag-row span,
  .feature-mini-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    text-align: center;
  }

  .hero-actions,
  .hero-actions.center {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    border-radius: 10px;
    padding: 0 16px;
  }

  .command-card,
  .live-card,
  .product-card,
  .point-card,
  .info-split > article,
  .steps,
  .newsletter-card,
  .rules-grid > div {
    border-radius: 12px;
  }

  .command-card {
    padding: 18px;
    min-width: 0;
  }

  .command-title,
  .command-copy span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .command-copy {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .command-copy button {
    width: 100%;
    min-height: 42px;
  }

  .dashboard,
  .shop-grid,
  .points-grid,
  .info-split,
  .rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .live-card,
  .product-card,
  .point-card {
    min-height: auto;
    padding: 20px;
  }

  .feature-mini-list {
    gap: 8px;
  }

  .product-top {
    gap: 12px;
  }

  .product-price,
  .point-price {
    white-space: nowrap;
  }

  .product-card ul,
  .point-card ul {
    padding-left: 18px;
  }

  .point-amount {
    font-size: clamp(40px, 14vw, 58px);
  }

  .info-split,
  .newsletter-card {
    padding: 22px;
  }

  .steps {
    gap: 10px;
  }

  .steps div {
    min-height: 58px;
    padding: 12px 14px;
  }

  .newsletter-section {
    padding-top: 18px;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .newsletter-form input[type="email"] {
    min-height: 48px;
    border-radius: 10px;
  }

  .final-cta {
    text-align: left;
  }

  .footer {
    width: min(100% - 28px, 620px);
    margin: 0 auto;
    gap: 8px;
    padding: 22px 0 34px;
    text-align: center;
  }

  .modal-backdrop {
    padding: 16px;
  }

  .modal {
    width: min(100%, 520px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border-radius: 14px;
    padding: 24px;
  }

  .toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    transform: translateY(12px);
  }

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

@media (max-width: 560px) {
  main {
    padding-top: 142px;
  }

  .topbar {
    left: 8px;
    right: 8px;
    top: 8px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "actions"
      "nav";
    gap: 9px;
  }

  .rail-actions {
    justify-self: stretch;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .rail-actions .login-btn {
    width: 100%;
  }

  .brand-text {
    font-size: 10px;
  }

  .nav {
    padding-bottom: 1px;
  }

  .section {
    width: min(100% - 20px, 520px);
    padding: 34px 0;
  }

  .hero {
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(40px, 17vw, 58px);
  }

  .tag-row span,
  .feature-mini-list span {
    min-height: 32px;
    font-size: 11px;
  }
}

@media (max-width: 940px) {
  .stats-page main {
    padding-top: 0;
  }

  .stats-shell {
    width: min(100% - 20px, 720px);
    padding-top: 142px;
    padding-bottom: 40px;
  }

  .stats-hero-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .stats-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    order: 2;
  }

  .stats-server-heading {
    order: 1;
    max-width: none;
  }

  .stats-server-heading strong {
    font-size: 13px;
    line-height: 1.28;
    letter-spacing: 1.1px;
  }

  .stats-layout {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    padding: 12px;
  }

  .stats-sidebar {
    padding: 14px;
  }

  .stats-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
    padding-top: 12px;
  }

  .stats-category {
    min-height: 42px;
    text-align: center;
  }

  .stats-table-wrap {
    min-height: 430px;
    margin: 0 -4px;
    padding: 0 4px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .stats-table {
    min-width: 720px;
  }

  .stats-table th,
  .stats-table td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .stats-table th:first-child,
  .stats-table td:first-child {
    width: 56px;
  }

  .stats-empty {
    position: static;
    margin: 18px 0;
  }

  .stats-footer {
    align-items: stretch;
    gap: 10px;
  }

  .page-size {
    width: 72px;
  }

  #statsShowing {
    flex: 1 1 100%;
  }

  .stats-pagination {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .heatmap-board {
    min-height: 360px;
  }
}

/* Final header logo normalization: keep Status and Stats pages visually identical. */
.topbar .brand-mark {
  width: 42px;
  height: 42px;
  min-width: 42px;
  flex: 0 0 42px;
}

.topbar .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

@media (min-width: 769px) {
  .topbar .brand-mark {
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex-basis: 38px;
  }
}

/* Homepage current-wipe leaderboard */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.top-players-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(49, 141, 255, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(49, 141, 255, 0.24), transparent 48%),
    radial-gradient(circle at 12% 12%, rgba(49, 141, 255, 0.10), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.54),
    0 0 32px rgba(49, 141, 255, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.top-players-card:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 141, 255, 0.56);
  box-shadow:
    0 34px 92px rgba(0, 0, 0, 0.58),
    0 0 40px rgba(49, 141, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.top-players-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(49, 141, 255, 0.18) 48%, transparent 100%),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.025) 35px, transparent 36px);
  opacity: 0.34;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.top-players-head,
.top-players-table,
.top-players-link {
  position: relative;
  z-index: 1;
}

.top-players-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.top-players-trophy {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(49, 141, 255, 0.38);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 205, 83, 0.34), transparent 50%),
    rgba(49, 141, 255, 0.10);
  box-shadow: 0 0 26px rgba(49, 141, 255, 0.10), inset 0 0 18px rgba(49, 141, 255, 0.08);
  font-size: 22px;
  line-height: 1;
}

.top-players-sub {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.top-players-table {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.top-players-header,
.top-player-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 12px;
}

.top-players-header {
  padding: 12px 16px 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 950;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.top-players-header span:first-child,
.top-players-header span:last-child {
  color: var(--danger);
}

.top-players-header span:last-child,
.top-player-row b {
  text-align: right;
}

.top-player-row {
  min-height: 52px;
  padding: 0 16px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.top-player-row:last-child {
  border-bottom: 0;
}

.top-player-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 950;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.top-player-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 950;
}

.top-player-row b {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.top-player-row.rank-1 {
  border-color: rgba(49, 141, 255, 0.50);
  background:
    linear-gradient(90deg, rgba(49, 141, 255, 0.16), rgba(49, 141, 255, 0.055) 42%, rgba(49, 141, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(49, 141, 255, 0.20), 0 0 20px rgba(49, 141, 255, 0.06);
}

.top-player-row.rank-1 span,
.top-player-row.rank-1 b {
  color: #ffd45c;
}

.top-player-row.rank-1 span {
  border-color: rgba(49, 141, 255, 0.36);
  background: rgba(49, 141, 255, 0.12);
}

.top-player-row.rank-2 span {
  color: rgba(232, 235, 244, 0.95);
  border-color: rgba(232, 235, 244, 0.20);
}

.top-player-row.rank-3 {
  background: linear-gradient(90deg, rgba(49, 141, 255, 0.10), rgba(255, 255, 255, 0.018));
}

.top-player-row.rank-3 span {
  color: #318dff;
  border-color: rgba(49, 141, 255, 0.28);
  background: rgba(49, 141, 255, 0.08);
}

.top-player-row.is-empty,
.top-player-row.is-loading {
  color: rgba(255, 255, 255, 0.58);
}

.top-players-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 12px;
  border-radius: 13px;
  color: var(--text);
  text-decoration: none;
  font-weight: 950;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.top-players-link::after {
  content: "›";
  color: rgba(255, 255, 255, 0.78);
  font-size: 24px;
  line-height: 1;
}

.top-players-link:hover,
.top-players-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(49, 141, 255, 0.42);
  background: rgba(49, 141, 255, 0.10);
  outline: none;
}

/* Leaderboard polish + Steam avatars */
.top-players-card {
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(120deg, rgba(49, 141, 255, 0.13), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(49, 141, 255, 0.34), transparent 34%),
    linear-gradient(180deg, rgba(27, 28, 36, 0.94), rgba(9, 10, 14, 0.96));
}

.top-players-head {
  align-items: flex-start;
}

.top-players-trophy {
  display: none;
}

.top-players-sub {
  margin-top: 6px;
  color: rgba(244, 244, 247, 0.58);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.top-players-table {
  display: grid;
  gap: 10px;
  border: 0;
  background: transparent;
}

.top-players-header {
  display: none;
}

.top-player-row {
  position: relative;
  grid-template-columns: 46px 42px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.top-player-row .top-rank {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.top-player-avatar,
.player-avatar {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: #07080b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 18px rgba(49, 141, 255, 0.10);
}

.top-player-row strong {
  letter-spacing: 0.1px;
}

.top-player-row b {
  color: rgba(255, 255, 255, 0.70);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.9px;
}

.top-player-row b em {
  color: var(--danger);
  font-style: normal;
}

.top-player-row.rank-1 {
  border-color: rgba(49, 141, 255, 0.62);
  background:
    linear-gradient(90deg, rgba(49, 141, 255, 0.20), rgba(49, 141, 255, 0.05) 45%, rgba(49, 141, 255, 0.06)),
    rgba(0, 0, 0, 0.28);
}

.top-player-row.rank-1 .top-rank,
.top-player-row.rank-1 b em {
  color: #ffd45c;
}

.top-player-row.rank-2 {
  border-color: rgba(232, 235, 244, 0.30);
}

.top-player-row.rank-3 {
  border-color: rgba(49, 141, 255, 0.34);
}

.player-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.player-name-cell:hover strong {
  color: #fff;
}

.player-name-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.player-name-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.player-name-text small {
  color: rgba(244, 244, 247, 0.42);
  font-size: 10px;
  line-height: 1;
}

@media (max-width: 940px) {
  .hero-side {
    gap: 14px;
  }

  .top-players-card {
    padding: 18px;
    border-radius: 12px;
  }

  .top-players-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .top-players-trophy {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 19px;
  }

  .top-players-header,
  .top-player-row {
    grid-template-columns: 52px minmax(0, 1fr) 56px;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .top-player-row {
    min-height: 50px;
  }

  .top-player-row span {
    width: 36px;
    height: 32px;
    border-radius: 10px;
  }

  .top-player-row strong,
  .top-player-row b {
    font-size: 14px;
  }

  .top-players-link {
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .top-players-header,
  .top-player-row {
    grid-template-columns: 45px minmax(0, 1fr) 48px;
    gap: 6px;
  }

  .top-player-row strong,
  .top-player-row b {
    font-size: 13px;
  }
}

/* Final top-player avatar layout: keep mobile media rules from reverting to old columns. */
.top-player-row {
  grid-template-columns: 46px 42px minmax(0, 1fr) auto;
}

.top-player-row.is-empty {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

@media (max-width: 940px) {
  .top-player-row {
    grid-template-columns: 40px 38px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .top-player-row.is-empty {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .top-player-avatar,
  .player-avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
}

@media (max-width: 420px) {
  .top-player-row {
    grid-template-columns: 36px 34px minmax(0, 1fr);
  }

  .top-player-row b {
    grid-column: 3;
    justify-self: start;
    font-size: 11px;
  }
}

/* Final 2026-07-09 polish: stable rail logo, mobile header spacing and Steam profile links. */
.top-player-avatar-link,
.top-player-name-link {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.top-player-avatar-link {
  display: inline-grid;
  place-items: center;
}

.top-player-name-link {
  display: block;
  overflow: hidden;
}

.top-player-name-link strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-player-name-link:hover strong,
.top-player-avatar-link:hover + .top-player-name-link strong {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(49, 141, 255, 0.72);
  text-underline-offset: 3px;
}

@media (min-width: 941px) {
  .topbar .brand {
    min-height: 158px;
  }

  .topbar .brand-mark {
    width: 104px;
    height: 104px;
    min-width: 104px;
    flex: 0 0 104px;
  }

  .topbar .brand-text {
    max-width: 132px;
  }

  .topbar::after {
    top: clamp(382px, 55vh, 520px);
  }
}

@media (max-width: 940px) {
  body:not(.stats-page) main {
    padding-top: 184px;
  }

  .stats-page .stats-shell {
    padding-top: 184px;
  }

  .topbar {
    overflow: hidden;
  }

  .topbar .brand-mark {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex: 0 0 48px;
  }

  .topbar .brand-mark img {
    padding: 0;
    object-fit: contain;
  }

  .topbar .brand-text {
    line-height: 1;
    white-space: nowrap;
  }

  .nav a,
  .tag-row span,
  .feature-mini-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .hero {
    padding-top: 18px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 13.6vw, 64px);
    line-height: 0.94;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .hero h1 span {
    display: block;
    white-space: nowrap;
    letter-spacing: 0;
  }
}

@media (max-width: 560px) {
  body:not(.stats-page) main {
    padding-top: 214px;
  }

  .stats-page .stats-shell {
    padding-top: 214px;
  }

  .topbar {
    left: 8px;
    right: 8px;
    top: 8px;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
  }

  .topbar .brand {
    gap: 10px;
  }

  .topbar .brand-mark {
    width: 52px;
    height: 52px;
    min-width: 52px;
    flex-basis: 52px;
  }

  .topbar .brand-text {
    font-size: 12px;
    letter-spacing: 1.35px;
  }

  .rail-actions .login-btn {
    min-height: 38px;
  }

  .rail-actions .lang-switch {
    min-height: 38px;
  }

  .nav {
    gap: 8px;
    padding-top: 0;
  }

  .nav a {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 14px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(40px, 12.4vw, 54px);
    line-height: 0.98;
  }
}

@media (max-width: 390px) {
  body:not(.stats-page) main {
    padding-top: 222px;
  }

  .stats-page .stats-shell {
    padding-top: 222px;
  }

  .topbar .brand-text {
    font-size: 11px;
    letter-spacing: 1.05px;
  }

  .nav a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(38px, 11.8vw, 48px);
  }
}


@media (max-width: 1180px) {
  .heatmap-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .stats-hero-panel {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .stats-server-heading {
    text-align: left;
  }

  .heatmap-toolbar,
  .heatmap-window-controls,
  .heatmap-legend-row {
    flex-direction: column;
    align-items: stretch;
  }

  .heatmap-layer-tabs,
  .heatmap-time-tabs,
  .heatmap-density-chip {
    width: 100%;
    flex-wrap: wrap;
  }

  .heatmap-summary-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .heatmap-board {
    padding: 14px;
  }

  .heatmap-info-panel,
  .heatmap-stage-frame {
    border-radius: 18px;
  }

  .heatmap-canvas {
    min-height: 380px;
  }

  .heatmap-legend-bar {
    width: 100%;
    max-width: 160px;
  }
}

/* ========================================================================== */
/* Project: Violation Heatmap v1 — 2026-07-12                               */
/* ========================================================================== */
.stats-hero-panel {
  grid-template-columns: minmax(190px, 1fr) minmax(420px, 2.4fr) minmax(190px, 1fr);
}

.stats-hero-spacer {
  min-height: 48px;
}

#overviewControls,
#heatmapControls {
  display: grid;
  gap: 12px;
}

#overviewControls[hidden],
#heatmapControls[hidden],
#heatmapTypeWrap[hidden],
#heatmapPeriodWrap[hidden],
#heatmapPanel[hidden],
#overviewPanel[hidden] {
  display: none !important;
}

.heatmap-sidebar-title {
  margin: 0 0 8px;
  color: #318dff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.heatmap-layer-list {
  display: grid;
  gap: 8px;
}

.heatmap-layer {
  position: relative;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 5px;
  color: #f6f6f8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(13, 13, 17, 0.92);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.heatmap-layer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(49, 141, 255, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.heatmap-layer:hover,
.heatmap-layer.active {
  transform: translateY(-1px);
  border-color: rgba(49, 141, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(49, 141, 255, 0.21), rgba(20, 57, 103, 0.56)),
    rgba(14, 7, 10, 0.96);
  box-shadow: inset 0 -1px 0 rgba(49, 141, 255, 0.32), 0 12px 26px rgba(49, 141, 255, 0.11);
}

.heatmap-layer.active::before {
  background: #318dff;
  box-shadow: 0 0 18px rgba(49, 141, 255, 0.85);
}

.heatmap-period-wrap {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.heatmap-current-label {
  margin-top: 18px;
  padding: 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #d4d4dc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.heatmap-update-box {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #c9c9d0;
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  line-height: 1.4;
}

.heatmap-update-box strong {
  color: #318dff;
}

.heatmap-info-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: #f1f1f4;
  font-size: 12px;
  font-weight: 900;
}

.heatmap-board {
  min-height: 620px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 50% 60%, rgba(16, 48, 54, 0.22), transparent 52%),
    rgba(2, 4, 7, 0.9);
}

.heatmap-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  min-height: 620px;
}

.heatmap-map-column {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.heatmap-map-card {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(119, 173, 181, 0.18);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 44, 51, 0.34), transparent 56%),
    #03070b;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.62);
}

.heatmap-map-card.dragging {
  cursor: grabbing;
}

.heatmap-stage {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  will-change: transform;
  transition: transform 0.10s ease-out;
}

.heatmap-map-card.dragging .heatmap-stage {
  transition: none;
}

.heatmap-stage img,
.heatmap-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.heatmap-stage img {
  filter: saturate(0.68) brightness(0.78) contrast(1.12);
}

.heatmap-stage canvas {
  pointer-events: none;
  /* Normal blending keeps the map readable under dense resource layers. */
  mix-blend-mode: normal;
}

.heatmap-map-tools {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: grid;
  gap: 8px;
}

.heatmap-map-tools button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  color: #fff;
  background: rgba(9, 10, 13, 0.88);
  font: inherit;
  font-size: 23px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.heatmap-map-tools button:hover {
  transform: translateY(-1px);
  border-color: rgba(49, 141, 255, 0.8);
  background: rgba(15, 44, 79, 0.9);
}

.heatmap-legend {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 4;
  width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(1, 3, 5, 0.72);
  backdrop-filter: blur(12px);
}

.heatmap-legend strong {
  display: block;
  margin-bottom: 8px;
  color: #f6f6f8;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.heatmap-gradient {
  display: block;
  width: 100%;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(90deg, #ffe14a, #318dff 48%, #318dff 82%, #318dff);
  box-shadow: 0 0 20px rgba(49, 141, 255, 0.16);
}

.heatmap-legend-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #b8b8c1;
  font-size: 10px;
  font-weight: 800;
}

.heatmap-loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: #f5f5f7;
  background: rgba(2, 4, 7, 0.76);
  backdrop-filter: blur(6px);
}

.heatmap-loading[hidden] {
  display: none;
}

.heatmap-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: #318dff;
  border-radius: 50%;
  animation: heatmapSpin 0.75s linear infinite;
}

@keyframes heatmapSpin {
  to { transform: rotate(360deg); }
}

.heatmap-fairplay-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 5px;
  color: #d7d7dd;
  background: rgba(4, 5, 8, 0.88);
  font-size: 13px;
  text-align: center;
}

.heatmap-fairplay-note > span:first-child {
  color: #318dff;
  font-size: 20px;
}

.heatmap-statistics {
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(5, 6, 9, 0.92);
  box-shadow: inset 1px 0 0 rgba(49, 141, 255, 0.05);
}

.heatmap-stat-kicker {
  display: block;
  color: #b9bac7;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.heatmap-stat-block {
  margin-top: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.heatmap-stat-primary {
  display: block;
  margin: 12px 0 2px;
  color: #318dff;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -1px;
}

.heatmap-stat-block > span:last-child,
.heatmap-stat-row span {
  color: #c6c6cf;
  font-size: 13px;
}

.heatmap-stat-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 12px 0 0;
}

.heatmap-stat-row strong {
  color: #f5f5f7;
  font-size: 21px;
}

.heatmap-top-areas,
.heatmap-info-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.heatmap-top-areas ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: heatmapRank;
}

.heatmap-top-areas li {
  counter-increment: heatmapRank;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #f1f1f4;
  font-size: 13px;
}

.heatmap-top-areas li::before {
  content: counter(heatmapRank) ".";
  color: #9fa0ad;
}

.heatmap-top-areas li span {
  font-weight: 900;
}

.heatmap-top-areas li em {
  color: #d5d5dc;
  font-style: normal;
}

.heatmap-info-block p {
  margin: 12px 0 0;
  color: #b8b8c1;
  font-size: 12px;
  line-height: 1.55;
}

.heatmap-info-block strong {
  color: #318dff;
}

@media (max-width: 1120px) {
  .heatmap-main-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}

@media (max-width: 940px) {
  .stats-hero-panel {
    grid-template-columns: 1fr;
  }

  .stats-hero-spacer {
    display: none;
  }

  .heatmap-main-grid {
    grid-template-columns: 1fr;
  }

  .heatmap-statistics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
  }

  .heatmap-statistics > .heatmap-sidebar-title,
  .heatmap-statistics > .heatmap-top-areas,
  .heatmap-statistics > .heatmap-info-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .heatmap-map-card {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .heatmap-statistics {
    grid-template-columns: 1fr;
  }

  .heatmap-statistics > * {
    grid-column: 1 !important;
  }

  .heatmap-map-tools {
    top: 10px;
    right: 10px;
  }

  .heatmap-map-tools button {
    width: 38px;
    height: 38px;
  }

  .heatmap-legend {
    left: 12px;
    bottom: 12px;
    width: 170px;
  }
}

/* Resolve legacy inline-flex rule from the old heatmap preview. */
.stats-page .heatmap-legend {
  display: block;
}

/* ========================================================================== */
/* Project: Violation guide page                                               */
/* ========================================================================== */
.product-more-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  color: rgba(244, 244, 247, 0.78);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: rgba(49, 141, 255, 0.58);
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.nav .guide-nav-link {
  min-height: 48px;
  height: auto;
  padding-top: 7px;
  padding-bottom: 7px;
  line-height: 1.15;
  white-space: normal;
}

@media (max-width: 1180px) {
  .nav .guide-nav-link {
    min-height: 38px;
    padding-top: 0;
    padding-bottom: 0;
    white-space: nowrap;
  }
}

.product-more-link:hover,
.product-more-link:focus-visible {
  color: #fff;
  text-decoration-color: var(--danger);
  outline: none;
}

.product-card .product-more-link + .btn {
  margin-top: 16px;
}

.guide-shell {
  position: relative;
  width: min(1420px, calc(100% - 44px));
  margin: 0 auto;
  padding-top: 70px;
  padding-bottom: 72px;
}

.guide-hero {
  max-width: 1060px;
  margin-bottom: 34px;
}

.guide-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.22em;
  margin: 0 0 22px;
  font-size: clamp(56px, 7.2vw, 112px);
  line-height: 0.88;
  letter-spacing: 0;
}

.guide-title span,
.guide-title strong {
  display: inline-block;
  letter-spacing: 0;
  white-space: nowrap;
}

.guide-title span {
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.guide-title strong {
  color: var(--danger);
  font: inherit;
}

.guide-lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.guide-tabs {
  position: sticky;
  top: 18px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(7, minmax(108px, 1fr));
  gap: 8px;
  padding: 10px;
  margin-bottom: 22px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 8, 12, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36);
}

.guide-tab {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(244, 244, 247, 0.66);
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.guide-tab:hover,
.guide-tab:focus-visible {
  color: #fff;
  border-color: rgba(49, 141, 255, 0.5);
  transform: translateY(-1px);
  outline: none;
}

.guide-tab.active {
  color: #fff;
  border-color: rgba(49, 141, 255, 0.74);
  background: linear-gradient(135deg, rgba(49, 141, 255, 0.28), rgba(49, 141, 255, 0.14));
  box-shadow: inset 3px 0 0 var(--danger), 0 12px 28px rgba(49, 141, 255, 0.12);
}

.guide-panel {
  --guide-accent: 49, 141, 255;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(var(--guide-accent), 0.075), transparent 210px),
    rgba(11, 11, 16, 0.82);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.guide-panel[hidden] {
  display: none !important;
}

.guide-panel.theme-mymini {
  --guide-accent: 255, 137, 18;
}

.guide-panel.theme-qol {
  --guide-accent: 63, 150, 255;
}

.guide-panel.theme-vip {
  --guide-accent: 49, 141, 255;
}

.guide-panel.theme-vipplus {
  --guide-accent: 80, 255, 36;
}

.guide-panel.theme-elite {
  --guide-accent: 162, 60, 255;
}

.guide-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(var(--guide-accent), 0.34);
}

.guide-panel-head > div {
  min-width: 0;
}

.guide-panel-head h2 {
  margin: 12px 0 8px;
  color: rgb(var(--guide-accent));
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0;
}

.guide-panel-head p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(var(--guide-accent), 0.5);
  border-radius: 4px;
  background: rgba(var(--guide-accent), 0.1);
  color: rgb(var(--guide-accent));
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.guide-buy {
  flex: 0 0 auto;
  min-width: 168px;
}

.guide-gallery {
  display: grid;
  align-items: start;
  gap: 20px;
}

.guide-gallery.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-gallery.single {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
}

.guide-art {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--guide-accent), 0.28);
  border-radius: 6px;
  background: #050507;
  color: #fff;
  cursor: zoom-in;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.38);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-art:hover,
.guide-art:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--guide-accent), 0.8);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.5), 0 0 34px rgba(var(--guide-accent), 0.12);
  outline: none;
}

.guide-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.guide-art > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(3, 3, 5, 0.82);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.guide-art:hover > span,
.guide-art:focus-visible > span {
  opacity: 1;
  transform: translateY(0);
}

.guide-lightbox {
  width: min(97vw, 1800px);
  height: 94vh;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #050507;
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.78);
}

.guide-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
}

.guide-lightbox-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0b0e;
}

.guide-lightbox-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.guide-viewer-button,
.guide-viewer-fit,
.guide-lightbox-close {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 800 15px/1 var(--font-body);
  cursor: pointer;
}

.guide-viewer-button {
  width: 40px;
  padding: 0;
  font-size: 25px;
}

.guide-viewer-fit {
  padding: 0 15px;
}

.guide-viewer-button:hover,
.guide-viewer-fit:hover,
.guide-lightbox-close:hover {
  border-color: rgba(49, 141, 255, 0.78);
  background: rgba(49, 141, 255, 0.16);
}

.guide-viewer-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.guide-zoom-value {
  min-width: 64px;
  color: #fff;
  font: 800 14px/1 var(--font-body);
  text-align: center;
}

.guide-viewer-hint {
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  text-align: center;
}

.guide-lightbox-viewport {
  position: relative;
  height: calc(94vh - 58px);
  overflow: hidden;
  background-color: #020203;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  cursor: default;
  touch-action: none;
}

.guide-lightbox-viewport.is-zoomed {
  cursor: grab;
}

.guide-lightbox-viewport.is-dragging {
  cursor: grabbing;
}

.guide-lightbox-viewport img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  user-select: none;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}

.guide-lightbox-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 38px;
  padding: 0;
  font-size: 24px;
}

@media (max-width: 680px) {
  .guide-lightbox {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .guide-lightbox-toolbar {
    grid-template-columns: 1fr auto;
    min-height: 54px;
    padding: 7px 8px;
  }

  .guide-viewer-hint {
    display: none;
  }

  .guide-viewer-button,
  .guide-lightbox-close {
    width: 38px;
  }

  .guide-viewer-fit {
    padding: 0 10px;
    font-size: 13px;
  }

  .guide-lightbox-viewport {
    height: calc(100dvh - 54px);
  }
}

.guide-footer {
  padding-bottom: 38px;
}

@media (min-width: 941px) {
  .guide-page .guide-shell {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 70px 34px 72px 248px;
  }
}

@media (max-width: 1180px) {
  .guide-tabs {
    grid-template-columns: repeat(7, minmax(118px, 1fr));
  }

  .guide-gallery.two-up {
    grid-template-columns: 1fr;
  }

  .guide-gallery.two-up .guide-art {
    max-width: 920px;
    margin: 0 auto;
  }
}

@media (max-width: 940px) {
  .guide-shell {
    width: min(100% - 24px, 900px);
    padding-top: 196px;
  }

  .guide-tabs {
    position: static;
  }
}

@media (max-width: 680px) {
  .guide-shell {
    width: min(100% - 16px, 900px);
    padding-top: 222px;
  }

  .guide-hero {
    margin-bottom: 24px;
  }

  .guide-title {
    display: block;
    font-size: clamp(42px, 14vw, 68px);
    line-height: 0.92;
  }

  .guide-title span,
  .guide-title strong {
    display: block;
    white-space: normal;
  }

  .guide-title strong {
    margin-top: 6px;
  }

  .guide-lead {
    font-size: 16px;
  }

  .guide-tabs {
    grid-template-columns: repeat(7, minmax(110px, 1fr));
    padding: 8px;
  }

  .guide-panel {
    padding: 16px;
  }

  .guide-panel-head {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .guide-panel-head h2 {
    font-size: 42px;
  }

  .guide-buy {
    width: 100%;
  }

  .guide-art > span {
    display: none;
  }

  .product-more-link {
    width: 100%;
  }
}
/* Account, privacy and secure newsletter flows. */
.account-page {
  min-height: 100vh;
  margin: 0;
  background-color: #08080b;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 42px 42px;
  color: #f4f4f5;
}

.account-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 0 2px;
}

.account-brand {
  color: #f4f4f5;
  font: 900 16px/1 var(--font-body);
  letter-spacing: 2px;
  text-decoration: none;
}

.account-brand span { color: #a1a1aa; }
.account-brand b { color: #318dff; }

.account-back {
  color: #c4c4ca;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.account-back:hover,
.account-back:focus-visible,
.account-card a:hover,
.account-card a:focus-visible { color: #fff; }

.account-card {
  border: 1px solid #383840;
  border-top: 3px solid #318dff;
  border-radius: 6px;
  background: rgba(22, 22, 28, 0.96);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.account-card .eyebrow {
  margin: 0 0 10px;
  color: #318dff;
  font-size: 12px;
  letter-spacing: 2px;
}

.account-card h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.account-card h2 { margin: 0 0 14px; color: #fff; font-size: 20px; }
.account-intro,
.account-copy,
.account-legal,
.privacy-card p { color: #b9b9c2; line-height: 1.65; }
.account-intro { max-width: 610px; margin: 0 0 24px; }
.account-legal { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid #33333b; font-size: 13px; }
.account-card a { color: #318dff; }

.account-form {
  display: grid;
  gap: 18px;
  margin: 22px 0 18px;
}

.account-card label {
  display: grid;
  gap: 8px;
  color: #e4e4e7;
  font-size: 14px;
  font-weight: 800;
}

.field-hint { color: #8f8f99; font-size: 12px; font-weight: 600; }

.account-card input:not([type="checkbox"]) {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #464650;
  border-radius: 4px;
  outline: 0;
  background: #0d0d12;
  color: #fff;
  font: inherit;
}

.account-card input:not([type="checkbox"]):focus {
  border-color: #318dff;
  box-shadow: 0 0 0 3px rgba(49, 141, 255, 0.13);
}

.account-card .btn {
  min-height: 48px;
  border-radius: 4px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.account-card .btn.primary {
  border-color: #318dff;
  background: #318dff;
  color: #fff;
  box-shadow: none;
}

.account-card .btn.primary:hover,
.account-card .btn.primary:focus-visible { background: #2d80e8; border-color: #318dff; }
.account-card button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: 0.55; }

.account-message {
  margin: 0 0 14px;
  padding: 13px 15px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #101015;
  line-height: 1.5;
}

.account-message.success { border-color: #448b42; color: #c9ffc7; }
.account-message.error { border-color: #2365b7; color: #ffd0d7; }

.account-switch { margin: 20px 0 0; color: #b9b9c2; text-align: center; }
.account-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 20px; color: #85858e; font-size: 12px; text-transform: uppercase; }
.account-divider::before,
.account-divider::after { content: ""; flex: 1; height: 1px; background: #34343c; }
.account-divider span { white-space: nowrap; }

.account-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.account-link-card {
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 15px;
  border: 1px solid #383840;
  border-radius: 4px;
  background: #111116;
  text-decoration: none;
}
.account-link-card strong { color: #fff; }
.account-link-card span { color: #96969f; font-size: 13px; line-height: 1.45; }
.account-link-card:hover,
.account-link-card:focus-visible { border-color: #318dff; background: #17171d; }

.account-summary,
.account-status-row,
.account-steam {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid #34343c;
}

.account-summary span,
.account-status-row span { color: #96969f; }
.account-summary strong,
.account-steam strong { color: #fff; }
.account-steam p { margin: 5px 0 0; color: #9f9fa8; font-size: 13px; }
.account-status { text-align: right; }
.account-status.good,
.account-linked { color: #8fe88b; font-weight: 800; }
.account-status.pending { color: #ffd36c; }
.account-status.neutral { color: #b8b8c0; }
.account-status.bad { color: #318dff; }

.account-settings-form { display: grid; gap: 18px; margin: 24px 0; }
.consent-line { display: grid !important; grid-template-columns: 20px 1fr; align-items: start; gap: 10px !important; }
.consent-line input { margin-top: 3px; }
.account-secondary-actions { display: grid; gap: 16px; margin-top: 24px; }
.account-secondary-actions form { margin: 0; }
.account-delete { border: 0; background: transparent; color: #318dff; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.account-steam-login { margin: 22px 0 0; }
.btn.steam { border-color: #4c77a5; background: #182b3d; color: #fff; }
.btn.steam:hover { border-color: #75a8db; background: #213c55; }
.btn.discord { border-color: #6877d9; background: #29305e; color: #fff; }
.btn.discord:hover { border-color: #94a0ff; background: #353d75; }
.account-card .btn.disabled { cursor: not-allowed; filter: grayscale(0.55); opacity: 0.58; pointer-events: none; }

.auth-map {
  margin: 22px 0 10px;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid #393943;
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(49, 141, 255, 0.045), transparent 42%),
    #101015;
}

.auth-map-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.auth-map-heading .eyebrow { display: block; margin-bottom: 7px; color: #318dff; font-size: 10px; font-weight: 900; letter-spacing: 2px; }
.auth-map-heading h2 { margin: 0; font-size: 21px; }
.auth-map-legend { display: flex; align-items: center; gap: 7px; max-width: 210px; color: #92929c; font-size: 11px; line-height: 1.4; text-align: right; }
.auth-map-legend i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #8fe88b; box-shadow: 0 0 0 3px rgba(143, 232, 139, 0.08); }

.auth-map-track {
  display: grid;
  grid-template-columns: minmax(66px, 1fr) minmax(18px, 0.42fr) minmax(66px, 1fr) minmax(18px, 0.42fr) minmax(66px, 1fr) minmax(18px, 0.42fr) minmax(66px, 1fr);
  align-items: center;
  margin-bottom: 24px;
}

.auth-map-node { display: grid; place-items: center; min-height: 70px; padding: 8px 5px; border: 1px solid #43434d; border-radius: 5px; background: #17171d; text-align: center; }
.auth-map-node b { color: #fff; font-size: 12px; letter-spacing: 0.6px; }
.auth-map-node span { margin-top: 4px; color: #8d8d97; font-size: 10px; }
.auth-map-node.is-good { border-color: rgba(108, 188, 105, 0.72); background: rgba(41, 75, 43, 0.42); }
.auth-map-node.is-good b { color: #bff6bc; }
.auth-map-node.is-bad { border-color: #205da9; background: rgba(20, 58, 104, 0.42); }
.auth-map-node.is-bad b { color: #ffbdc5; }
.auth-map-node.is-off { opacity: 0.58; }
.auth-map-node.is-preview { border-color: #4b4e72; background: rgba(45, 49, 86, 0.38); }

.auth-map-line { height: 2px; background: #383841; }
.auth-map-line::after { content: ""; display: block; width: 0; height: 0; margin-left: auto; transform: translate(3px, -3px); border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid #474751; }
.auth-map-line.is-good { background: #65ae63; }
.auth-map-line.is-good::after { border-left-color: #65ae63; }
.auth-map-line.is-preview { background: linear-gradient(90deg, #555a91 55%, transparent 55%); background-size: 9px 2px; }
.auth-map-line.is-preview::after { border-left-color: #646baf; }

.auth-state-list { border-top: 1px solid #313139; }
.auth-state-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #2b2b33; }
.auth-state-row > span { color: #b9b9c2; font-size: 13px; }
.auth-state-row small { display: block; margin-top: 4px; color: #777781; font-size: 11px; }
.auth-state-row .account-status { max-width: 55%; font-size: 13px; overflow-wrap: anywhere; }
.auth-state-row-main { padding-block: 16px; }

.auth-map-note,
.auth-map-warning { margin: 18px 0 0; padding: 13px 14px; border-left: 3px solid #646baf; background: rgba(62, 66, 111, 0.18); color: #bdbdc7; font-size: 13px; line-height: 1.55; }
.auth-map-warning { border-left-color: #2976d6; background: rgba(21, 61, 111, 0.2); color: #ffd0d6; }
.auth-map-actions,
.login-provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.auth-map-actions .btn { text-align: center; }
.account-inline-action { margin: 11px 0 0; text-align: right; }
.account-inline-action button { padding: 3px 0; border: 0; background: transparent; color: #9d9da7; cursor: pointer; font-size: 12px; text-decoration: underline; }
.account-inline-action button:hover { color: #fff; }
.account-steam-hint { margin-top: 16px; }
.auth-map-login { margin-bottom: 18px; }
.auth-map-login .auth-map-note { margin-bottom: 0; }
.privacy-card h2 { color: #fff; margin-top: 30px; }

/* Strong but restrained account entry, aligned with the rail navigation. */
.rail-actions .login-btn {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
  border: 1px solid rgba(49, 141, 255, 0.48);
  border-radius: 4px;
  background:
    linear-gradient(105deg, rgba(27, 79, 142, 0.9), rgba(11, 32, 58, 0.96));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.account-select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 42px 12px 14px;
  border: 1px solid #464650;
  border-radius: 4px;
  outline: 0;
  background: #0d0d12;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.account-select:focus {
  border-color: #318dff;
  box-shadow: 0 0 0 3px rgba(49, 141, 255, 0.13);
}

.account-language-form {
  padding-bottom: 24px;
  border-bottom: 1px solid #34343c;
}

.rail-actions .login-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #318dff;
  pointer-events: none;
}

.rail-actions .login-btn:hover,
.rail-actions .login-btn:focus-visible {
  transform: none;
  border-color: rgba(49, 141, 255, 0.72);
  background:
    linear-gradient(105deg, rgba(32, 91, 165, 0.94), rgba(13, 39, 70, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 24px rgba(0, 0, 0, 0.34);
  outline: none;
}

.rail-actions .login-btn:active {
  background: linear-gradient(105deg, rgba(23, 66, 120, 0.96), rgba(9, 27, 48, 0.98));
}

@media (max-width: 680px) {
  body.account-page main.account-shell { width: min(100% - 20px, 760px); padding-top: 22px; }
  .account-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .account-card { padding: 24px 18px; }
  .account-link-grid { grid-template-columns: 1fr; }
  .account-summary,
  .account-status-row,
  .account-steam { align-items: flex-start; flex-direction: column; gap: 8px; }
  .account-status { text-align: left; }
  .auth-map { padding: 18px 12px; }
  .auth-map-heading { margin-bottom: 18px; }
  .auth-map-legend { display: none; }
  .auth-map-track { grid-template-columns: minmax(50px, 1fr) minmax(7px, 0.22fr) minmax(50px, 1fr) minmax(7px, 0.22fr) minmax(50px, 1fr) minmax(7px, 0.22fr) minmax(50px, 1fr); }
  .auth-map-node { min-height: 60px; padding-inline: 2px; }
  .auth-map-node b { font-size: 9px; letter-spacing: 0; }
  .auth-map-node span { font-size: 8px; }
  .auth-state-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .auth-state-row .account-status { max-width: none; }
  .auth-map-actions,
  .login-provider-grid { grid-template-columns: 1fr; }
}

/* Partners page */
.partners-section {
  min-height: calc(100vh - 150px);
  padding-top: 72px;
}

.partners-header {
  margin-bottom: 28px;
}

.partners-header h2 {
  margin-bottom: 14px;
}

.partner-card.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
  gap: 0;
  width: min(100%, 1060px);
  margin-inline: auto;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.15);
}

.partner-card.product-card:hover {
  transform: translateY(-3px);
}

.partner-visual-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
}

.partner-media {
  align-self: stretch;
  width: 100%;
  min-height: 0;
  aspect-ratio: 2 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(71, 183, 255, 0.34);
  background: #0757df;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 22px 56px rgba(0, 71, 205, 0.22);
}

.partner-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.partner-copy {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  padding: 0 24px 2px;
}

.partner-top {
  align-items: center;
  margin-bottom: 20px;
}

.partner-badge {
  color: #aeeaff;
  border-color: rgba(47, 181, 255, 0.45);
  background: rgba(17, 135, 255, 0.12);
}

.partner-region {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 2px;
}

.partner-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 0.98;
  letter-spacing: -1.6px;
}

.partner-copy > p {
  margin-bottom: 16px;
  font-size: 15px;
}

.partner-connect-block {
  margin-top: 0;
}

.partner-connect-under-media {
  padding: 0 2px 2px;
}

.partner-connect-block .command-label {
  margin-bottom: 10px;
}

.partner-connect-under-media .command-label {
  position: relative;
  top: -4px;
  margin-left: 8px;
}

.partner-command-copy {
  grid-template-columns: minmax(0, 1fr) auto;
}

.partner-command-copy span {
  font-family: Consolas, "Courier New", monospace;
}

.partner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.partner-actions .btn {
  width: 100%;
  margin-top: 0;
}

.partner-join-btn {
  border-color: rgba(80, 255, 117, 0.28);
  background: rgba(80, 255, 117, 0.07);
}

.partner-join-btn:hover {
  border-color: rgba(80, 255, 117, 0.52);
  background: rgba(80, 255, 117, 0.12);
}



.partner-features {
  margin: 0 0 14px;
}

.partner-features span {
  min-height: 34px;
  padding-inline: 12px;
  border-color: rgba(47, 181, 255, 0.28);
  background: rgba(17, 135, 255, 0.075);
  color: #d9f4ff;
  letter-spacing: 0.35px;
  text-transform: none;
}

.partner-features span:hover,
.partner-features span:focus-visible,
.partner-features span.chip-active {
  border-color: rgba(47, 181, 255, 0.62);
  background: rgba(17, 135, 255, 0.16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), 0 0 24px rgba(17, 135, 255, 0.14);
}

.partner-feature-detail {
  margin: -2px 0 20px;
  border-color: rgba(47, 181, 255, 0.30);
  background:
    linear-gradient(110deg, rgba(17, 135, 255, 0.12), rgba(255, 255, 255, 0.025) 58%),
    rgba(8, 8, 11, 0.76);
}

.partner-feature-detail::before {
  background: #2fb5ff;
}

.partner-feature-detail .feature-detail-mark {
  border-color: rgba(47, 181, 255, 0.42);
  background: rgba(17, 135, 255, 0.14);
  color: #9be4ff;
  font-size: 9px;
  letter-spacing: 0.2px;
}

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

  .partner-media {
    min-height: 0;
    aspect-ratio: 2 / 1;
  }

  .partner-connect-under-media {
    padding-inline: 0;
  }

  .partner-copy {
    height: auto;
    padding: 24px 12px 14px;
  }
}

@media (max-width: 640px) {
  .partners-section {
    padding-top: 42px;
  }

  .partner-card.product-card {
    padding: 10px;
    border-radius: 22px;
  }

  .partner-media {
    border-radius: 16px;
  }

  .partner-copy {
    padding: 24px 12px 14px;
  }

  .partner-actions {
    grid-template-columns: 1fr;
  }

  .partner-command-copy {
    grid-template-columns: 1fr;
  }

  .partner-command-copy button {
    width: 100%;
  }
}


/* Account navigation + dashboard layout */
.account-shell--dashboard {
  width: min(1120px, calc(100% - 32px));
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.account-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #393943;
  border-radius: 4px;
  background: #111116;
  color: #b7b7c0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .5px;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.account-nav__item:hover,
.account-nav__item:focus-visible {
  border-color: #676772;
  background: #17171d;
  color: #fff;
  transform: translateY(-1px);
}

.account-nav__item.is-active {
  border-color: #318dff;
  background: rgba(49, 141, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(49, 141, 255, 0.14);
}

.account-summary--dashboard {
  margin-bottom: 18px;
}

.account-select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #464650;
  border-radius: 4px;
  outline: 0;
  background: #0d0d12;
  color: #fff;
  font: inherit;
}

@media (max-width: 900px) {
  .account-shell--dashboard {
    width: min(100% - 24px, 760px);
  }
}

.hero h1 span{font-size:.75em;white-space:nowrap}
