:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-elevated: #1a1a1a;
  --bg-hover: #252528;
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-muted: rgba(244, 241, 232, 0.72);
  --text-dim: rgba(244, 241, 232, 0.48);
  --accent: #C3073F;
  --accent-hover: #e94560;
  --accent-dark: #6F2232;
  --accent-dim: rgba(195, 7, 63, 0.14);
  --accent-glow: rgba(195, 7, 63, 0.35);
  --accent-subtle: rgba(111, 34, 50, 0.35);
  --radius: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.55s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(195, 7, 63, 0.28), transparent 62%),
    radial-gradient(ellipse 45% 35% at 92% 18%, rgba(195, 7, 63, 0.16), transparent 58%),
    radial-gradient(ellipse 40% 30% at 8% 82%, rgba(149, 7, 64, 0.14), transparent 55%),
    radial-gradient(ellipse 35% 25% at 72% 88%, rgba(195, 7, 63, 0.1), transparent 50%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(195, 7, 63, 0.08) 0, transparent 8%),
    radial-gradient(circle at 80% 60%, rgba(195, 7, 63, 0.06) 0, transparent 6%),
    radial-gradient(circle at 45% 75%, rgba(149, 7, 64, 0.07) 0, transparent 7%);
  animation: bgGlowDrift 18s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.28) 100%
  );
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(195, 7, 63, 0.18);
  animation: headerSlideIn 0.55s var(--ease-out) backwards;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 75% 140% at 50% -30%,
    rgba(195, 7, 63, 0.22),
    transparent 68%
  );
}

.header__inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  height: 92px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__inner--wide {
  max-width: 1280px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition: opacity 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 48px;
  padding-right: 150px;
}

.nav__center {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.nav__account {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  margin-left: 0;
  padding: 11px 24px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  box-shadow: 0 2px 16px var(--accent-glow);
  animation: navAccountIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards;
}

.nav__account:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 4px 22px var(--accent-glow);
}

.nav__account.nav__link--active {
  background: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(195, 7, 63, 0.45);
}

.logo:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.nav__account::after {
  display: none;
}

.nav__account.nav__account--logged {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.nav__account.nav__account--logged:hover {
  background: var(--accent-dim);
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(calc(-50% - 1px));
}

.nav__account.nav__account--logged.nav__link--active {
  background: var(--accent-dim);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--accent-dark);
}

.nav__link:not(.nav__account) {
  animation: navItemIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.nav__center .nav__link:nth-child(1) { animation-delay: 0.04s; }
.nav__center .nav__link:nth-child(2) { animation-delay: 0.08s; }
.nav__center .nav__link:nth-child(3) { animation-delay: 0.12s; }
.nav__center .nav__link:nth-child(4) { animation-delay: 0.16s; }
.nav__center .nav__link:nth-child(5) { animation-delay: 0.20s; }
.nav__center .nav__link:nth-child(6) { animation-delay: 0.24s; }

.nav__link {
  position: relative;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s, background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 2px;
}

.nav__link:not(.nav__account):hover {
  color: var(--text);
  background: var(--accent-dim);
  transform: none;
}

.nav__link:hover::after {
  width: 70%;
}

.nav__link--active {
  color: var(--text);
  background: var(--accent-dim);
  box-shadow: none;
}

.nav__link--active::after {
  width: 50%;
}

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

@keyframes navAccountIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-left: auto;
  transition:
    background var(--duration-normal),
    border-color var(--duration-normal),
    transform var(--duration-normal) var(--ease-out);
}

.menu-toggle--open {
  transform: rotate(90deg);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.menu-toggle:hover {
  background: var(--bg-elevated);
  border-color: var(--border-light);
}

/* Ash background */
.ash-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.header,
.main,
.footer {
  position: relative;
  z-index: 1;
}

/* Main */
.main {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 560px;
}

/* Hero */
.hero {
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(195, 7, 63, 0.08), transparent);
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate;
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 8px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.hero__visual:active {
  cursor: grabbing;
}

#hero-3d {
  display: block;
  max-width: 100%;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

.hero__hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-top: -8px;
  pointer-events: none;
}

.hero__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-transform: lowercase;
}

.hero__desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition:
    transform var(--duration-normal) var(--ease-out),
    background var(--duration-normal),
    border-color var(--duration-normal),
    box-shadow var(--duration-normal);
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 14px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dim);
}

.btn--danger {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--danger:hover {
  background: var(--accent-dim);
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition:
    border-color var(--duration-normal),
    background var(--duration-normal),
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.card:hover {
  border-color: var(--accent-dark);
  background: var(--bg-elevated);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.card:hover .icon-box {
  transform: scale(1.06);
  border-color: var(--accent-dark);
}

.card__icon {
  margin-bottom: 16px;
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration-slow) var(--ease-out), border-color var(--duration-normal);
}

.icon-box svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Server info */
.server-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
  transition:
    border-color var(--duration-normal),
    box-shadow var(--duration-slow) var(--ease-out);
}

.server-box:hover {
  border-color: var(--accent-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.server-box__label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.server-box__ip {
  font-size: clamp(0.9rem, 2.5vw, 1.35rem);
  font-weight: 700;
  font-family: 'Consolas', 'Courier New', monospace;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.server-box__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  flex-shrink: 0;
}

.status-dot--green {
  background: #3ddc84;
  box-shadow: 0 0 6px rgba(61, 220, 132, 0.5);
  animation: statusPulse 2.5s ease-in-out infinite;
}

.status-dot--yellow {
  background: #f5c542;
  box-shadow: 0 0 6px rgba(245, 197, 66, 0.45);
}

.status-dot--red {
  background: var(--accent-hover);
  box-shadow: 0 0 6px var(--accent-glow);
}

.server-box__players {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.server-box__players:not(:empty)::before {
  content: '·';
  margin: 0 6px;
  opacity: 0.5;
}
.container--players {
  max-width: 1100px;
  padding-bottom: 64px;
}

.players-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.players-pagination {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition:
    background var(--duration-normal),
    border-color var(--duration-normal),
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.player-card:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-dark);
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--accent-dark), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.player-card__rank {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.player-card__head {
  width: 48px !important;
  height: 48px !important;
  flex-shrink: 0;
}

.player-card__info {
  flex: 1;
  min-width: 0;
  padding-right: 28px;
}

.player-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.player-card__nick {
  font-weight: 600;
  font-size: 0.95rem;
}

.player-card__online {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #3ddc84;
}

.player-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.player-card__sep {
  margin: 0 4px;
}

.players-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* Player page */
.container--player-page {
  max-width: 900px;
  padding-bottom: 64px;
}

.page-title--small {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.player-settings-btn[hidden] {
  display: none !important;
}

.player-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.player-settings-btn:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: var(--bg-elevated);
}

.player-settings-btn svg {
  display: block;
}

.player-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.player-hero__banner {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--accent-dark) 50%, var(--bg) 100%);
  background-size: cover;
  background-position: center;
}

.player-hero__banner--custom {
  background-color: var(--bg);
}

.player-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.15) 72%,
    rgba(0, 0, 0, 0.05) 100%
  );
  pointer-events: none;
}

.player-hero__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 20px 24px;
  z-index: 1;
}

.player-hero__head {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: visible;
}

.player-hero__head .skin-head {
  transform: none;
}

.player-hero__info {
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}

.player-hero__nick {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.player-hero__desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 8px;
  justify-content: flex-start;
}

.player-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.player-tag--icon {
  --tag-color: #9ca3af;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--tag-color) 45%, transparent);
  background: color-mix(in srgb, var(--tag-color) 14%, rgba(0, 0, 0, 0.35));
  color: var(--tag-color);
  cursor: pointer;
  font: inherit;
  transition: width 0.2s ease, padding 0.2s ease, background 0.2s ease;
}

.player-tag__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.player-tag__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-size: 0.72rem;
  font-weight: 600;
  transition: max-width 0.2s ease, opacity 0.15s ease, margin 0.2s ease;
  margin-left: 0;
}

.player-tag--icon:hover,
.player-tag--icon:focus-visible,
.player-tag--icon.player-tag--open {
  width: auto;
  padding: 0 10px 0 8px;
  outline: none;
  background: color-mix(in srgb, var(--tag-color) 22%, rgba(0, 0, 0, 0.4));
}

.player-tag--icon:hover .player-tag__label,
.player-tag--icon:focus-visible .player-tag__label,
.player-tag--icon.player-tag--open .player-tag__label {
  max-width: 140px;
  opacity: 1;
  margin-left: 6px;
}

.player-info-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.player-info-grid__skin {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 16px;
}

.player-info-grid__skin canvas {
  max-width: 100%;
}

.player-info-grid__panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  flex: 1;
}

.player-panel__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.player-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-contacts__line {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.warnings-box {
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.warnings-box--clean {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.warnings-box--has {
  background: rgba(195, 7, 63, 0.08);
  border: 1px solid rgba(195, 7, 63, 0.25);
  text-align: left;
}

.warnings-box__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.warnings-box__title {
  font-weight: 600;
  margin-bottom: 4px;
}

.warnings-box__sub {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.warning-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.warning-item:last-child {
  border-bottom: none;
}

.warning-item__reason {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.warning-item__meta {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.guild-box {
  padding: 0;
  background: transparent;
}

.guild-box--empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border-radius: 12px;
}

/* Guild - player profile card */
.guild-profile-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.15s, background 0.15s;
}

.guild-profile-card:hover {
  border-color: var(--accent-dark);
  background: var(--bg-hover);
}

.guild-profile-card__flag {
  width: 44px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.guild-profile-card__flag--placeholder {
  background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
}

.guild-profile-card__name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.guild-profile-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guild-profile-card__badge {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(111, 34, 50, 0.35);
  color: #e8a0b0;
  border: 1px solid rgba(195, 7, 63, 0.25);
}

.guild-profile-card__badge--dim {
  background: var(--bg-card);
  color: var(--text-muted);
  border-color: var(--border);
}

.guild-profile-card__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.guild-profile-card__count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 10px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Guild - shared */
.guild-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.guild-dot--green { background: #3ddc84; box-shadow: 0 0 6px rgba(61, 220, 132, 0.5); }
.guild-dot--yellow { background: #fbbf24; box-shadow: 0 0 6px rgba(251, 191, 36, 0.4); }
.guild-dot--gray { background: var(--border); }

.guild-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.guild-status-pill--sm {
  font-size: 0.72rem;
  padding: 5px 10px;
}

.guild-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Guild - list page */
.container--guilds {
  max-width: 1100px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color var(--duration-normal);
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs__sep {
  opacity: 0.45;
}

.breadcrumbs__current {
  color: var(--text);
}

.guilds-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.guilds-page-head__sub {
  margin-bottom: 0;
}

.guilds-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.guilds-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
}

.guilds-stat__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.guilds-stat__value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.guilds-section {
  margin-bottom: 48px;
}

.guilds-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.guilds-section__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.guilds-section__sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.guilds-section__count {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

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

.guild-top-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition:
    border-color var(--duration-normal),
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.guild-top-card:hover {
  border-color: var(--accent-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.guild-top-card__rank {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.guild-top-card__flag {
  width: 52px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.guild-top-card__flag--placeholder {
  background: linear-gradient(180deg, #3a3a3d 0%, #1a1a1a 100%);
}

.guild-top-card__body {
  flex: 1;
  min-width: 0;
  padding-right: 28px;
}

.guild-top-card__name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.guild-top-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.guild-top-card__count-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.guild-top-card__count-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.guilds-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.guild-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--duration-normal),
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.guild-card:hover {
  border-color: var(--accent-dark);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.guild-card__top {
  display: flex;
  gap: 16px;
}

.guild-card__flag {
  width: 56px;
  height: 74px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.guild-card__flag--placeholder {
  background: linear-gradient(180deg, #3a3a3d 0%, #1a1a1a 100%);
}

.guild-card__head {
  flex: 1;
  min-width: 0;
}

.guild-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.guild-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.guild-card__emoji {
  font-weight: 400;
}

.guild-card__date {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.guild-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guild-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.guild-stat-box__value--leader {
  font-size: 0.95rem;
  word-break: break-word;
}

.guild-card__desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  min-height: 2.8em;
}

.guild-card__desc-empty {
  color: var(--text-dim);
  font-style: italic;
}

.guild-card__members {
  margin-top: auto;
}

.guild-card__member-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guild-member-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

.guilds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.guilds-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 48px 24px;
}

.guild-list-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--duration-normal),
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.guild-list-card:hover {
  border-color: var(--accent-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.guild-list-card__flag {
  width: 48px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.guild-list-card__flag--placeholder {
  background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
}

.guild-list-card__name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.guild-list-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.guild-list-card__count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.guild-list-card__leader {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Guild - detail page */
.container--guild {
  max-width: 900px;
}

.guild-page__hero {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 16px;
}

.guild-page__flag {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.guild-page__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guild-page__flag--placeholder {
  background: linear-gradient(180deg, #444 0%, #1a1a1a 100%);
}

.guild-page__head {
  flex: 1;
  min-width: 0;
}

.guild-page__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.guild-page__name {
  font-size: 1.5rem;
  font-weight: 700;
}

.guild-page__emoji {
  font-size: 1.2rem;
}

.guild-page__status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.guild-page__date {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.guild-page__stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.guild-stat-box {
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 100px;
}

.guild-stat-box__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.guild-stat-box__value {
  font-size: 1.1rem;
  font-weight: 600;
}

.guild-stat-box__link {
  color: var(--accent);
  font-size: 0.95rem;
}

.guild-stat-box__link:hover {
  text-decoration: underline;
}

.guild-page__about {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
}

.guild-page__desc {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.guild-page__members {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
}

.guild-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.guild-member-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s;
}

.guild-member-card:hover {
  border-color: var(--accent-dark);
}

.guild-member-card__nick {
  font-weight: 600;
  font-size: 0.9rem;
}

.guild-role {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guild-role--leader {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}

.guild-role--mod {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.guild-role--member {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.guild-page__actions {
  padding: 16px 0;
}

/* Modal */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s var(--ease-out);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 28px 32px;
  animation: fadeUp 0.35s var(--ease-out);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--duration-normal), color var(--duration-normal);
}

.modal__close:hover {
  border-color: var(--accent);
  color: var(--text);
}

.modal__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding-right: 40px;
}

.modal__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.btn--block {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .guilds-top-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .guilds-stats {
    grid-template-columns: 1fr;
  }

  .guilds-card-grid {
    grid-template-columns: 1fr;
  }

  .guild-card__stats {
    grid-template-columns: 1fr;
  }
}

.guild-action-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.guild-action-form .reg-form__input {
  max-width: 200px;
}

@media (max-width: 768px) {
  .guild-profile-card {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
  }

  .guild-profile-card__aside {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .guild-page__hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .guild-page__stats {
    justify-content: center;
    width: 100%;
  }

  .guild-page__status-row {
    justify-content: center;
  }
}

/* Admin panel */
.container--admin {
  max-width: 1100px;
  padding-bottom: 64px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-tabs--header {
  margin: 0;
  padding: 4px;
  flex-wrap: nowrap;
  gap: 2px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-tabs--header[hidden] {
  display: none !important;
}

.admin-tabs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.admin-tabs--header .admin-tabs__btn {
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(244, 241, 232, 0.72);
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
  min-height: 36px;
  box-shadow: none;
}

.admin-tabs__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
}

.admin-tabs--header .admin-tabs__btn svg {
  width: 15px;
  height: 15px;
}

.admin-tabs__btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.admin-tabs--header .admin-tabs__btn:hover {
  color: #F4F1E8;
  background: rgba(255, 255, 255, 0.06);
}

.admin-tabs__btn--active {
  background: rgba(195, 7, 63, 0.18);
  border-color: rgba(195, 7, 63, 0.45);
  color: var(--text);
  box-shadow: 0 0 18px rgba(195, 7, 63, 0.12);
}

.admin-tabs--header .admin-tabs__btn--active {
  background: rgba(195, 7, 63, 0.22);
  border-color: rgba(195, 7, 63, 0.4);
  color: #F4F1E8;
  box-shadow: none;
}

.admin-tabs__btn--active svg {
  opacity: 1;
}

.page-title--admin {
  margin-bottom: 16px;
}

.admin-tab-pane {
  margin-top: 0;
}

.admin-tab-pane[hidden] {
  display: none !important;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-grid--server {
  align-items: start;
}

.admin-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.95), rgba(12, 12, 12, 0.98));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.admin-card--list,
.admin-card--preview {
  min-height: 100%;
}

.admin-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 4px;
}

.admin-card .reg-form__label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.admin-card .reg-form__input,
.admin-card .reg-form__textarea,
.admin-card .admin-input {
  width: 100%;
  box-sizing: border-box;
}

.admin-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 4px;
}

.admin-card__actions .btn {
  margin: 0;
}

.admin-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.admin-card__icon svg {
  width: 20px;
  height: 20px;
}

.admin-card__icon--news {
  background: rgba(195, 7, 63, 0.15);
  color: #e00848;
}

.admin-card__icon--list {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.admin-card__icon--server {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.admin-card__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-card__sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.admin-card__preview-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.admin-input {
  background: #221a1e;
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff8f9;
  color-scheme: dark;
}

select.admin-input,
select.admin-select,
.admin-card select {
  color-scheme: dark;
}

select.admin-input option,
select.admin-select option,
.admin-card select option {
  background-color: #1a1418;
  color: #fff8f9;
}

.admin-status-badge {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
  white-space: nowrap;
}

.admin-status-badge--maint {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.admin-maint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.admin-maint-row__text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.admin-maint-row__text p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.admin-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.admin-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-switch__track {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.admin-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.admin-switch input:checked + .admin-switch__track {
  background: rgba(195, 7, 63, 0.55);
  border-color: rgba(195, 7, 63, 0.7);
}

.admin-switch input:checked + .admin-switch__track::after {
  transform: translateX(20px);
}

.admin-maint-preview {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 28px 20px;
  border-radius: 14px;
  border: 1px solid rgba(195, 7, 63, 0.2);
  background: radial-gradient(circle at 50% 30%, rgba(195, 7, 63, 0.12), transparent 55%), #0a0a0a;
  text-align: center;
  transition: opacity 0.2s, filter 0.2s;
}

.admin-maint-preview--off {
  opacity: 0.45;
  filter: grayscale(0.4);
}

.admin-maint-preview__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 50%, rgba(195, 7, 63, 0.15), transparent 40%),
    radial-gradient(circle at 100% 50%, rgba(195, 7, 63, 0.15), transparent 40%);
  pointer-events: none;
}

.admin-maint-preview__logo {
  position: relative;
  border-radius: 12px;
  margin-bottom: 14px;
}

.admin-maint-preview__title {
  position: relative;
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.admin-maint-preview__title span {
  color: #e00848;
}

.admin-maint-preview__dots {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.admin-maint-preview__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(195, 7, 63, 0.35);
}

.admin-maint-preview__dots span:nth-child(2) {
  background: #e00848;
  transform: scale(1.25);
}

.admin-maint-preview__msg {
  position: relative;
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 280px;
  color: var(--text-dim);
  text-align: center;
}

.admin-empty svg {
  width: 48px;
  height: 48px;
  opacity: 0.35;
}

.admin-empty p {
  margin: 0;
  font-size: 0.92rem;
}

.admin-editor--empty {
  display: grid;
  place-items: center;
}

.admin-editor__head {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-detail {
  min-width: 0;
}

.admin-detail .admin-editor[hidden] {
  display: none !important;
}

.admin-detail .admin-editor--empty[hidden] {
  display: none !important;
}

.admin-editor--wide {
  margin-top: 16px;
}

.admin-block__hint {
  margin: -4px 0 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
}

.admin-news-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-news-item__title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-news-item__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-news-item__body {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  line-height: 1.5;
}

.admin-news-item__thumb {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.file-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 4px;
  position: relative;
}

.file-pick__input {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-pick__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #C3073F;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.file-pick__btn:hover {
  background: #e94560;
}

.file-pick__name {
  max-width: 100%;
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#btn-admin-publish-news {
  margin-top: 14px;
  display: inline-flex;
  width: auto;
}

@media (max-width: 900px) {
  .admin-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.admin-list__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.admin-player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.admin-player-item:hover {
  background: var(--bg-elevated);
}

.admin-player-item--active {
  background: var(--bg-elevated);
  border-color: var(--border);
}

.admin-player-item__nick {
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-player-item__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-player-item__meta--warn {
  color: #fbbf24;
  font-weight: 600;
}

.admin-tickets-filter {
  max-width: 140px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

/* —— Tickets immersive chat —— */
body.admin-tickets-tab .page-title--admin {
  display: none;
}

body.admin-tickets-tab .container--admin {
  max-width: 980px;
}

body.admin-tickets-chat {
  overflow: hidden;
}

body.admin-tickets-chat .footer {
  display: none;
}

body.admin-tickets-chat .main {
  padding-top: 0;
  padding-bottom: 0;
}

body.admin-tickets-chat .container--admin {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.admin-tickets-chat .admin-tab-pane[data-admin-pane="tickets"] {
  margin: 0;
}

body.admin-tickets-chat .tickets-app,
body.admin-tickets-chat .tickets-chat-screen {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  min-height: 0;
  height: auto;
  margin: 0;
  gap: 0;
  background: #0a0a0a;
}

.tickets-app {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 140px);
}

.tickets-list-screen,
.tickets-chat-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: calc(100vh - 140px);
  flex: 1;
}

.tickets-list-screen[hidden],
.tickets-chat-screen[hidden] {
  display: none !important;
}

.tickets-list-screen__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.tickets-list-screen__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: none;
  overflow-y: visible;
  flex: 1;
}

.admin-ticket-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.admin-ticket-item:hover {
  border-color: rgba(195, 7, 63, 0.45);
  background: rgba(195, 7, 63, 0.08);
  transform: translateY(-1px);
}

.admin-ticket-item--closed {
  opacity: 0.72;
}

.admin-ticket-item__top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-ticket-item__id {
  font-weight: 700;
  font-size: 0.95rem;
}

.admin-ticket-item__status {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-ticket-item__type,
.admin-ticket-item__nick {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tickets-chat-screen__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex-wrap: wrap;
  flex-shrink: 0;
  z-index: 2;
}

.tickets-chat-back {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tickets-chat-back:hover {
  background: rgba(195, 7, 63, 0.18);
  color: #ff6b8a;
}

.tickets-chat-screen__titles {
  flex: 1;
  min-width: 140px;
}

.tickets-chat-screen__titles .admin-editor__nick {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tickets-chat-screen__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.tickets-chat-screen__actions .btn--outline {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 7px 14px;
  font-size: 0.78rem;
}

.tickets-chat-screen__actions .btn--outline:hover:not(:disabled) {
  border-color: rgba(195, 7, 63, 0.5);
  background: rgba(195, 7, 63, 0.12);
}

.tickets-chat-screen__actions .btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.tickets-chat-thread {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  padding: 18px 12px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(195, 7, 63, 0.07), transparent 60%),
    #0a0a0a;
}

.tickets-chat-thread::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.tickets-chat-col {
  width: min(640px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.tickets-chat-original {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.95), rgba(16, 16, 16, 0.98));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.tickets-chat-original__head {
  margin-bottom: 12px;
}

.tickets-chat-original__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff8aa3;
  background: rgba(195, 7, 63, 0.14);
  border: 1px solid rgba(195, 7, 63, 0.28);
}

.tickets-chat-messages {
  max-height: none;
  overflow: visible;
}

.tickets-chat-empty {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tickets-chat-footer {
  margin-top: 0;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #111111;
  flex-shrink: 0;
}

.tickets-chat-closed {
  margin: 0;
  padding: 12px 16px;
  text-align: center;
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.admin-list--tickets .admin-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-list--tickets .admin-list__title {
  margin-bottom: 0;
}

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

.admin-ticket-head__meta {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.admin-ticket-status {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-ticket-status--open {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.admin-ticket-status--closed {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.admin-ticket-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 1.08rem;
  color: rgba(244, 241, 232, 0.94);
}

.admin-ticket-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-ticket-images__item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: min(320px, 100%);
}

.admin-ticket-images__item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.admin-ticket-photo-pick {
  margin: 10px 0 12px;
}

.tg-composer {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.tg-composer__chip[hidden],
.tg-emoji-panel[hidden] {
  display: none !important;
}

.tg-composer__chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 8px 48px;
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1a1a;
}

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

.tg-composer__chip-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.tg-composer__row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.tg-composer__btn,
.tg-composer__send,
.tg-composer__emoji-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.tg-composer__btn:hover,
.tg-composer__emoji-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.tg-composer__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 4px 6px 4px 14px;
  border-radius: 22px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tg-composer__input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  max-height: 160px;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.45;
  padding: 9px 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.tg-composer__input::-webkit-scrollbar {
  display: none;
}

.tg-composer__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.tg-composer__send {
  color: #fff;
  background: #2aabee;
  box-shadow: 0 4px 14px rgba(42, 171, 238, 0.28);
}

.tg-composer__send:hover {
  background: #229ed9;
  color: #fff;
  transform: scale(1.04);
}

.tg-emoji-panel {
  position: absolute;
  right: 52px;
  bottom: calc(100% + 10px);
  z-index: 30;
  width: min(320px, calc(100% - 20px));
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  border-radius: 14px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  scrollbar-width: none;
}

.tg-emoji-panel::-webkit-scrollbar {
  display: none;
}

.tg-emoji-panel__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.tg-emoji-panel__grid button {
  width: 100%;
  aspect-ratio: 1;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.tg-emoji-panel__grid button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-ticket-replies {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: none;
  overflow: visible;
  scroll-behavior: smooth;
  padding-bottom: 8px;
}

.admin-ticket-reply {
  position: relative;
  max-width: min(88%, 100%);
  padding: 10px 14px 8px;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.admin-ticket-reply--user {
  align-self: flex-start;
  border-radius: 14px 14px 14px 4px;
  background: #1c1c1c;
  color: #f4f1e8;
}

.admin-ticket-reply--admin {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(160deg, #5a1a2e, #3d0f1c);
  color: #fff;
}

.admin-ticket-reply__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.admin-ticket-reply__author {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ff7a96;
}

.admin-ticket-reply--admin .admin-ticket-reply__author {
  color: #ffb3c4;
}

.admin-ticket-reply__date {
  display: block;
  margin-top: 4px;
  text-align: right;
  font-size: 0.75rem;
  color: rgba(244, 241, 232, 0.45);
  line-height: 1;
}

.admin-ticket-reply--admin .admin-ticket-reply__date {
  color: rgba(255, 255, 255, 0.5);
}

.admin-ticket-reply__body {
  margin: 0;
  font-size: 1.05rem;
  white-space: pre-wrap;
  line-height: 1.5;
  word-break: break-word;
}

.admin-ticket-reply .admin-ticket-images {
  margin-top: 8px;
}

.admin-ticket-reply .admin-ticket-images__item {
  max-width: min(300px, 100%);
  border: none;
}

.admin-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

.tickets-chat-footer .admin-ticket-actions {
  margin-top: 10px;
}

.ticket-bans {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-bans__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.ticket-bans__form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 8px;
  margin-bottom: 12px;
}

.ticket-bans__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket-bans__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.ticket-bans__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ticket-bans__meta strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 720px) {
  .ticket-bans__form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.admin-tickets-chat .tickets-app,
  body.admin-tickets-chat .tickets-chat-screen {
    top: 64px;
  }

  .tickets-chat-screen__actions {
    width: 100%;
    margin-left: 0;
    padding-left: 50px;
  }

  .admin-ticket-reply {
    max-width: 90%;
  }
}

.admin-build-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
}

@media (max-width: 720px) {
  .admin-build-row {
    grid-template-columns: 1fr;
  }
}

.admin-build-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 0;
}

.admin-build-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-build-meta__wide {
  grid-column: 1 / -1;
}

.admin-build-meta dt {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.admin-build-meta dd {
  margin: 0;
  font-size: 0.9rem;
  word-break: break-all;
}

.admin-editor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.admin-editor__nick {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.admin-editor__contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.admin-editor__contact {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-editor__contacts-note {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.admin-block {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.admin-block:last-of-type {
  border-bottom: none;
}

.admin-block__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.admin-block__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-block__stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.admin-block__stack .reg-form__textarea,
.admin-block__stack textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  resize: vertical;
}

.admin-block__stack .btn {
  align-self: flex-start;
  margin: 0;
}

.admin-guilds-manage,
.admin-comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-guilds-manage__item,
.admin-comments-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-guilds-manage__name,
.admin-comments-list__meta {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-guilds-manage__meta,
.admin-comments-list__text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.admin-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-role-check {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.admin-role-check input {
  accent-color: var(--accent);
}

.admin-panel-access {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(195, 7, 63, 0.08);
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
}

.admin-panel-access input {
  width: 16px;
  height: 16px;
  accent-color: #C3073F;
}

.admin-panel-access input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.admin-warnings-list {
  margin-bottom: 12px;
}

.admin-warn-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.admin-warn-item__reason {
  font-size: 0.9rem;
}

.admin-warn-item__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-warn-count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-warn-count--clean {
  color: #22c55e;
}

@media (max-width: 768px) {
  .player-info-grid {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.container--settings {
  max-width: 880px;
  padding-bottom: 64px;
}

.settings-login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}

.settings-app {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.settings-nav {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.settings-nav__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.settings-nav__avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.settings-nav__nick {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.settings-nav__profile-link {
  font-size: 0.78rem;
  color: var(--accent);
  opacity: 0.9;
}

.settings-nav__profile-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.settings-nav__menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-nav__item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.settings-nav__item:hover {
  color: var(--text);
  background: var(--accent-dim);
}

.settings-nav__item--active {
  color: var(--text);
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px var(--accent-dark);
}

.settings-nav__admin {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--accent-dark);
  background: var(--accent-dim);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.settings-nav__admin:hover {
  background: rgba(195, 7, 63, 0.22);
  border-color: var(--accent);
  color: #fff;
}

.settings-nav__admin[hidden] {
  display: none;
}

.settings-nav__logout {
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid rgba(195, 7, 63, 0.35);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.settings-nav__logout:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.settings-main {
  min-width: 0;
}

.settings-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 24px;
}

.settings-panel__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.settings-panel__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.settings-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-field__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.settings-field__hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.settings-field--password {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.settings-skin-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-skin-upload__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.settings-skin-upload__btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.settings-skin-upload__btn:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dim);
}

.settings-skin-upload__name {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.settings-panel__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.settings-accounts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-account-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.settings-account-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.settings-account-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.settings-account-card__badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.settings-account-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-account-card__body .reg-form__input--code {
  font-size: 1.25rem;
  letter-spacing: 0.25em;
  text-align: center;
}

.settings-account-card__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-account-card--danger {
  border-color: rgba(195, 7, 63, 0.4);
}

.settings-account-card--danger .settings-account-card__name {
  color: #f87171;
}

.settings-accounts__done {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 12px 0;
}

.code-block--compact {
  padding: 16px;
  margin-bottom: 0;
}

.code-block--compact .code-block__command {
  font-size: 1rem;
  margin-bottom: 6px;
}

.reg-form__file {
  padding: 10px;
  cursor: pointer;
}

.reg-form__file::file-selector-button {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 14px;
  margin-right: 12px;
  cursor: pointer;
  font-family: inherit;
}

.reg-form__hint-inline {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 4px;
  font-weight: 400;
}

.reg-success-inline {
  color: #3ddc84;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.player-edit {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.player-edit__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.player-section {
  margin-bottom: 32px;
}

.player-section__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.player-skin-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 400px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.comment-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-item__author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.comment-item__author:hover {
  text-decoration: underline;
}

.comment-item__date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.comment-item__delete {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.comment-item__delete:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.comment-item__text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.comments-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.comment-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-login-hint {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.comment-login-hint a {
  color: var(--text);
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.stats-header .player-section__title {
  margin-bottom: 0;
}

.stats-online {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #3ddc84;
}

.stats-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.stats-tab {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.stats-tab--active {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-light);
}

.stats-tab:disabled {
  opacity: 0.4;
  cursor: default;
}

.stats-season-info {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stats-cards {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.stats-cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
}

.stats-card__value {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}

.stats-card__label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.heatmap-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.heatmap-year {
  font-weight: 600;
  margin-bottom: 8px;
}

.heatmap-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  min-width: 600px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
  grid-auto-rows: 12px;
  gap: 3px;
  min-width: 600px;
}

.heatmap-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--bg-elevated);
}

.heatmap-cell--empty {
  background: transparent;
}

.heatmap-cell--l1 { background: var(--accent-dark); }
.heatmap-cell--l2 { background: #5a1a2e; }
.heatmap-cell--l3 { background: var(--accent-hover); }
.heatmap-cell--l4 { background: var(--accent); }

.header__inner--wide {
  max-width: 1280px;
}

/* Wiki layout */
.main--wiki {
  padding: 0;
}

.wiki-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 72px - 80px);
}

.wiki-sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 32px 20px 48px 24px;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.wiki-sidebar-toggle {
  display: none;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.wiki-nav-group {
  margin-bottom: 28px;
}

.wiki-nav-group__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-left: 2px;
}

.wiki-nav-group__title--pink { color: var(--accent); }
.wiki-nav-group__title--blue { color: var(--border-light); }
.wiki-nav-group__title--yellow { color: var(--accent-hover); }

.wiki-nav-link {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s;
  line-height: 1.4;
}

.wiki-nav-link:hover {
  color: var(--text);
}

.wiki-nav-link--active {
  color: var(--accent);
  font-weight: 500;
}

.wiki-content {
  padding: 40px 48px 80px;
  max-width: 820px;
}

.wiki-content__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.wiki-content__body {
  font-size: 0.95rem;
  line-height: 1.7;
}

.wiki-lead {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.wiki-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 14px;
}

.wiki-text {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.wiki-text--muted {
  font-size: 0.85rem;
}

.wiki-links {
  list-style: none;
  margin-bottom: 8px;
}

.wiki-links li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.wiki-links li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.wiki-links a,
.wiki-inline-link {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}

.wiki-links a:hover,
.wiki-inline-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.wiki-bullets {
  list-style: none;
  margin-bottom: 16px;
}

.wiki-bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.wiki-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.wiki-steps {
  margin: 0 0 20px 20px;
  color: var(--text-muted);
}

.wiki-steps li {
  margin-bottom: 10px;
}

.wiki-steps li::marker {
  color: var(--accent);
}

.wiki-dl {
  display: grid;
  gap: 16px;
}

.wiki-dl dt {
  font-weight: 600;
  color: var(--text);
}

.wiki-dl dd {
  color: var(--text-muted);
  margin-left: 0;
}

.wiki-code {
  padding: 2px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85em;
  color: var(--accent);
}

.wiki-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.wiki-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wiki-table th,
.wiki-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.wiki-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wiki-table td {
  color: var(--text-muted);
}

.wiki-table code {
  color: var(--accent);
}

@media (max-width: 900px) {
  .wiki-layout {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
  }

  .wiki-sidebar-toggle {
    display: block;
  }

  .wiki-nav {
    display: none;
  }

  .wiki-nav.wiki-nav--open {
    display: block;
  }

  .wiki-content {
    padding: 32px 24px 64px;
  }
}

/* Wiki (legacy list - kept for compatibility) */
.wiki-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wiki-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.wiki-item:hover {
  border-color: var(--border-light);
  background: var(--bg-elevated);
}

.wiki-item__title {
  font-weight: 600;
}

.wiki-item__desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 4px;
}

.wiki-item__arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.wiki-section {
  margin-top: 48px;
}

.wiki-section h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Staff / Состав */
.container--staff {
  max-width: 1100px;
}

.container--staff .page-title {
  margin-bottom: 40px;
}

.staff-section {
  margin-bottom: 56px;
}

.staff-section__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px 10px 10px;
  transition:
    background var(--duration-normal),
    border-color var(--duration-normal),
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.member-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.member-card__head {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  overflow: visible;
}

.skin-head {
  display: block;
  width: 100px;
  height: 100px;
  transform: translateY(-16px);
}

.member-card__info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.member-card__name {
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 2px;
  word-break: break-word;
}

.member-card__role {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.3;
}

/* Registration */
.container--register {
  max-width: 640px;
}

.reg-method-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.reg-method-tab {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.reg-method-tab:hover {
  color: var(--text);
  border-color: var(--border-light);
}

.reg-method-tab--active {
  color: var(--text);
  background: var(--accent-dim);
  border-color: var(--accent);
}

.reg-form__input--code {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-align: center;
  font-weight: 700;
}

.reg-dev-hint {
  color: var(--accent);
  font-size: 0.85rem;
  padding: 10px 12px;
  background: var(--accent-dim);
  border-radius: 8px;
  border: 1px solid rgba(195, 7, 63, 0.25);
}

.reg-step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.reg-step-indicator__item {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
}

.reg-step-indicator__item--active {
  color: var(--text-muted);
  border-color: var(--border-light);
}

.reg-step-indicator__item--current {
  color: var(--text);
  background: var(--accent-dim);
  border-color: var(--accent);
}

.reg-step {
  display: none;
}

.reg-step--active {
  display: block;
}

.reg-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}

.reg-panel__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.reg-panel__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.reg-panel__success {
  color: #7dcea0;
  font-size: 0.95rem;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(125, 206, 160, 0.1);
  border: 1px solid rgba(125, 206, 160, 0.25);
  border-radius: 10px;
}

#register-email:not([hidden]) .reg-step--active,
.register-page--email .reg-step--active {
  display: block !important;
}

#register-email[hidden],
#register-telegram[hidden],
.register-page--email #register-telegram,
.register-page--telegram #register-email {
  display: none !important;
}

.reg-instructions {
  margin: 24px 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.reg-instructions strong {
  color: var(--text);
}

.reg-instructions a {
  color: var(--text);
  text-decoration: underline;
}

.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin-bottom: 8px;
}

.code-block__label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.code-block__code {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.code-block__command code {
  font-family: 'Consolas', 'Courier New', monospace;
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.code-block__hint {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 12px;
}

.verify-status {
  margin: 20px 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

.verify-status--wait {
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.verify-status--ok {
  color: var(--text);
  background: var(--bg-elevated);
  border-color: var(--border-light);
}

.verify-status--error {
  color: var(--text-muted);
  background: var(--bg-card);
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reg-form__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reg-form__input {
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition:
    border-color var(--duration-normal),
    box-shadow var(--duration-normal),
    background var(--duration-normal);
}

.reg-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: var(--bg-hover);
}

.reg-form__input::placeholder {
  color: var(--text-dim);
}

.reg-error {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 12px;
}

.reg-success {
  text-align: center;
  padding: 16px 0;
}

.reg-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

.reg-success h3 {
  margin-bottom: 8px;
}

.reg-success p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.reg-success .btn {
  margin-top: 16px;
}

.reg-success .btn + .btn {
  margin-left: 8px;
}

/* Profile */
.container--profile {
  max-width: 560px;
  margin: 0 auto;
  padding-top: 48px;
  padding-bottom: 64px;
}

.profile-login {
  text-align: center;
  border-radius: 20px;
  padding: 36px 28px 32px;
}

.profile-login__form {
  max-width: 360px;
  margin: 32px auto 0;
  text-align: left;
}

.profile-login__hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 24px;
}

.profile-login__hint a {
  color: var(--text);
  text-decoration: underline;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.profile-card__head {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 32px;
}

.profile-skin {
  display: block;
  transform: translateY(-16px);
}

.profile-card__body {
  padding: 32px 36px 36px;
  text-align: center;
}

.profile-card__nick {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.profile-card__role {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.profile-card__telegram {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: -4px 0 8px;
}

.profile-tg-link {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.profile-tg-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.profile-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
}

.profile-stat__label {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.profile-stat__value {
  font-weight: 600;
  font-size: 0.85rem;
  word-break: break-word;
}

.profile-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* About */
.container--about {
  max-width: 900px;
  padding-bottom: 64px;
}

.about-nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0 28px;
}

.about-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 140px;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition:
    border-color var(--duration-normal),
    color var(--duration-normal),
    background var(--duration-normal),
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.about-nav-card:hover {
  border-color: var(--accent-dark);
  color: var(--text);
  background: var(--bg-elevated);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.about-nav-card--active {
  border-color: var(--accent);
  color: var(--text);
  background: var(--bg-elevated);
  box-shadow: inset 0 0 0 1px var(--accent-dark);
}

.about-nav-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.about-nav-card__icon svg {
  width: 32px;
  height: 32px;
}

.about-nav-card:hover .about-nav-card__icon,
.about-nav-card--active .about-nav-card__icon {
  color: var(--accent);
}

.about-nav-card__label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.about-guild-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.about-guild-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 160px;
  padding: 20px 14px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color var(--duration-normal),
    background var(--duration-normal),
    transform var(--duration-slow) var(--ease-spring),
    box-shadow var(--duration-slow) var(--ease-out);
}

.about-guild-card:hover {
  border-color: var(--accent-dark);
  background: var(--bg-elevated);
  color: var(--text);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.about-guild-card:hover .about-guild-card__flag-svg {
  color: var(--accent);
  transform: scale(1.1);
}

.about-guild-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 56px;
}

.about-guild-card__flag-img {
  width: 44px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.about-guild-card__flag-svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  transition: color var(--duration-normal), transform var(--duration-slow) var(--ease-spring);
}

.about-guild-card__name {
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.25;
}

.about-guild-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-tabs {
  display: none;
}

.about-tab {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.about-tab:hover {
  color: var(--text);
}

.about-tab--active {
  background: var(--bg-elevated);
  color: var(--text);
}

.about-panel {
  display: none;
}

.about-panel--active {
  display: block;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding-bottom: 32px;
  position: relative;
}

.timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline__year {
  font-weight: 700;
  font-size: 0.9rem;
  text-align: right;
  padding-top: 2px;
  color: var(--text-muted);
}

.timeline__body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
}

.timeline__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-lore-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.about-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.admin-sponsor-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
}

.admin-sponsor-preview__head {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.admin-sponsor-preview__nick {
  font-weight: 600;
  font-size: 1rem;
}

.admin-sponsor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}

.admin-sponsor-item:last-child {
  border-bottom: none;
}

.admin-sponsor-item__head {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.admin-sponsor-item__nick {
  font-weight: 600;
}

.admin-sponsor-item__amount {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.about-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 40px 0 20px;
}

.lore-editor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 8px;
}

.lore-editor__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.lore-editor__form {
  max-width: 100%;
}

.reg-form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.reg-form__optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.reg-form__hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.reg-form__hint a {
  color: var(--text);
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.lore-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition:
    border-color var(--duration-normal),
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.lore-card:hover {
  border-color: var(--accent-dark);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.lore-card__head {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 20px;
}

.lore-card__body {
  padding: 20px 24px 24px;
}

.lore-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.lore-card__role {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.lore-card__text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--border);
  }

  .timeline__item:not(:last-child)::before {
    display: none;
  }

  .timeline__year {
    text-align: left;
  }

  .about-nav-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-nav-card {
    min-height: 100px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 18px;
    gap: 14px;
  }

  .about-nav-card__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .about-nav-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .about-guild-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-card__body {
    padding: 24px 20px 28px;
  }
}

/* Sections */
.section-block {
  margin-top: 64px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  text-align: center;
  transition:
    border-color var(--duration-normal),
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.stat-card:hover {
  border-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.stat-card__value {
  font-size: clamp(0.75rem, 2vw, 1.05rem);
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Consolas', 'Courier New', monospace;
}

.stat-card__label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.steps--compact {
  margin-top: 0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.info-panel__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.info-panel__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-list__item {
  display: block;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border-radius: 10px;
  transition: background 0.2s;
}

.link-list__item:hover {
  background: var(--bg-hover);
}

.link-list__title {
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
}

.link-list__desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cta-banner {
  margin-top: 64px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 18px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transition:
    border-color var(--duration-normal),
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.cta-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.cta-banner h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Launcher - EasyLauncher-style landing */
.main--launcher {
  padding-bottom: 0;
}

.main--launcher .container {
  max-width: 1140px;
}

.launcher-hero {
  position: relative;
  padding: 64px 24px 80px;
  overflow: hidden;
}

.launcher-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(195, 7, 63, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 60%, rgba(111, 34, 50, 0.12), transparent);
  pointer-events: none;
}

.launcher-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.launcher-hero__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-dark);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.launcher-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.launcher-hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 32px;
}

.launcher-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 460px;
  margin-bottom: 16px;
}

.launcher-hero__actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.launcher-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  text-align: center;
}

.launcher-hero__btn--primary {
  width: 100%;
}

.launcher-hero__actions-row .launcher-hero__btn {
  width: 100%;
}

.launcher-hero__note {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.launcher-mock--hero {
  min-height: 420px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  border-color: var(--border-light);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.launcher-mock__play--demo {
  cursor: default;
  opacity: 0.92;
}

.launcher-features {
  padding: 72px 24px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(37, 37, 40, 0.35) 0%, transparent 100%);
}

.launcher-features__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.launcher-features__brand {
  color: var(--accent);
}

.launcher-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 960px) {
  .launcher-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.launcher-feature {
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition:
    border-color var(--duration-normal),
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.launcher-feature:hover {
  border-color: var(--accent-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.launcher-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.launcher-feature__icon svg {
  width: 24px;
  height: 24px;
}

.launcher-feature__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.launcher-feature__text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.launcher-cta {
  padding: 56px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.launcher-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.launcher-cta__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.launcher-cta__sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.launcher-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.launcher-bottom {
  padding: 64px 24px 80px;
}

.steps--launcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.steps--launcher .step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

/* Launcher (legacy layout) */
.launcher-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
  gap: 20px;
  align-items: stretch;
}

.launcher-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.launcher-box--wide {
  max-width: none;
  margin: 0;
}

.launcher-box__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--bg-elevated);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 1px solid var(--border);
}

.launcher-box h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.launcher-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.launcher-box__version {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: -8px 0 16px !important;
}

.launcher-box__note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

.btn--large {
  padding: 16px 36px;
  font-size: 1rem;
}

/* Launcher mockup - sidebar + main panel */
.launcher-mock {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  min-height: 380px;
}

.launcher-mock__titlebar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.launcher-mock__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.launcher-mock__controls {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 7px;
}

.launcher-mock__controls span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}

.launcher-mock__body {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 14px;
  padding: 16px;
  flex: 1;
  min-height: 0;
}

.launcher-mock__sidebar {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  padding: 10px;
  overflow: hidden;
}

.launcher-mock__accounts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.launcher-mock__account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.launcher-mock__account--active {
  border-color: var(--border-light);
  background: rgba(195, 7, 63, 0.08);
}

.launcher-mock__account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  image-rendering: pixelated;
  object-fit: cover;
}

.launcher-mock__account-avatar--ph {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.launcher-mock__account-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.launcher-mock__account-nick {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launcher-mock__account-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.launcher-mock__account-line {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  width: 72%;
}

.launcher-mock__account-line--short {
  width: 48%;
}

.launcher-mock__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.launcher-mock__preview {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0a0a0a;
  min-height: 160px;
}

.launcher-mock__preview-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.launcher-mock__preview-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 28px 16px 16px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.45) 55%, transparent 100%);
}

.launcher-mock__preview-logo {
  display: none;
}

.launcher-mock__preview-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transform: rotate(-45deg);
}

.launcher-mock__preview-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.launcher-mock__preview-meta {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

.launcher-mock__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.launcher-mock__btn-secondary {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  cursor: default;
  user-select: none;
}

.launcher-mock__play {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px var(--accent-glow);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background var(--duration-normal),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal);
}

a.launcher-mock__play:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
  color: #fff;
}

a.launcher-mock__play:active {
  transform: translateY(0);
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.req-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.req-card__label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.req-card__value {
  font-weight: 600;
  font-size: 0.95rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 20px;
}

.faq-item__q {
  padding: 16px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item[open] .faq-item__q {
  padding-bottom: 8px;
}

.faq-item__a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-bottom: 16px;
  line-height: 1.6;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
  text-align: left;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-dark);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step__title {
  font-weight: 600;
  margin-bottom: 4px;
}

.step__text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: auto;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--duration-normal), transform var(--duration-normal) var(--ease-out);
  display: inline-block;
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: transform 0.45s var(--ease-spring), opacity 0.35s var(--ease-out);
  z-index: 200;
  pointer-events: none;
}

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

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header__inner {
    flex-wrap: wrap;
    position: relative;
  }

  .nav {
    display: flex;
    flex: 1 1 100%;
    order: 3;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    min-height: auto;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition:
      max-height 0.45s var(--ease-out),
      opacity 0.35s var(--ease-out),
      padding 0.45s var(--ease-out),
      visibility 0.45s;
  }

  .nav--open {
    max-height: min(80vh, 520px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 16px;
  }

  .nav__center {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  .nav__center.admin-tabs--header {
    position: static;
    transform: none;
    left: auto;
    flex-wrap: wrap;
    width: 100%;
  }

  .admin-tabs--header .admin-tabs__btn {
    width: 100%;
    justify-content: center;
  }

  .nav__center .nav__link {
    width: 100%;
    text-align: center;
    padding: 12px;
    animation: none;
  }

  .nav__center .nav__link:hover {
    transform: none;
  }

  .nav__account {
    order: 2;
    margin-left: auto;
    margin-right: 4px;
    width: auto;
    animation: navAccountIn 0.4s ease backwards;
  }

  .menu-toggle {
    order: 3;
    margin-left: 0;
  }

  .hero {
    padding: 48px 24px 64px;
  }

  .server-box {
    flex-direction: column;
    text-align: center;
  }

  .launcher-box {
    padding: 32px 24px;
  }

  .launcher-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .launcher-hero__content {
    align-items: center;
  }

  .launcher-hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .launcher-hero__actions {
    margin-left: auto;
    margin-right: auto;
    justify-content: stretch;
  }

  .launcher-hero__actions-row {
    grid-template-columns: 1fr;
  }

  .launcher-mock--hero {
    max-width: 100%;
    margin: 0 auto;
    min-height: 380px;
  }

  .launcher-mock__body {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .launcher-mock__sidebar {
    max-height: 120px;
    overflow-y: auto;
  }

  .launcher-mock__accounts {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
  }

  .launcher-mock__account {
    flex: 0 0 auto;
    min-width: 140px;
  }

  .launcher-features__grid {
    grid-template-columns: 1fr;
  }

  .launcher-cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .launcher-cta__actions {
    justify-content: center;
    width: 100%;
  }

  .steps--launcher {
    grid-template-columns: 1fr;
  }

  .launcher-layout {
    grid-template-columns: 1fr;
  }

  .launcher-mock {
    order: -1;
    min-height: 340px;
    padding: 0;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .member-card__head,
  .skin-head {
    width: 90px;
    height: 90px;
  }

  .stats-cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .players-grid {
    grid-template-columns: 1fr;
  }

  .player-hero__bar {
    flex-direction: row;
    align-items: flex-end;
    padding: 16px;
  }

  .player-hero__banner {
    height: 180px;
  }

  .player-hero__head {
    width: 64px;
    height: 64px;
  }

  .settings-app {
    grid-template-columns: 1fr;
  }

  .settings-nav {
    position: static;
  }

  .settings-nav__menu {
    flex-direction: row;
  }

  .settings-nav__item {
    flex: 1;
    text-align: center;
  }

  .settings-nav__logout {
    margin-top: 0;
  }
}

/* ── Motion system ── */

@keyframes headerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bgGlowDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2%, 1.5%, 0) scale(1.04);
  }
}

@keyframes heroGlow {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 6px rgba(61, 220, 132, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 14px rgba(61, 220, 132, 0.85);
    transform: scale(1.15);
  }
}

html.motion-enabled .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(2px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out),
    filter 0.55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform, filter;
}

html.motion-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

html.motion-enabled .reveal-scale {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.55s var(--ease-spring);
  transition-delay: var(--reveal-delay, 0s);
}

html.motion-enabled .reveal-scale.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html.motion-enabled .hero__visual {
  animation: fadeUp 0.8s var(--ease-out) 0.05s backwards;
}

html.motion-enabled .hero__hint {
  animation: fadeIn 0.6s var(--ease-out) 0.5s backwards;
}

html.motion-enabled .hero__title {
  animation: fadeUp 0.7s var(--ease-out) 0.2s backwards;
}

html.motion-enabled .hero__desc {
  animation: fadeUp 0.7s var(--ease-out) 0.32s backwards;
}

html.motion-enabled .hero__actions {
  animation: fadeUp 0.7s var(--ease-out) 0.44s backwards;
}

html.motion-enabled .footer {
  animation: fadeUp 0.6s var(--ease-out) 0.2s backwards;
}

.lore-editor,
.reg-panel,
.about-panel,
.info-panel {
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
}

.timeline__item {
  transition: transform var(--duration-slow) var(--ease-out);
}

.timeline__item:hover {
  transform: translateX(6px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.motion-enabled .reveal,
  html.motion-enabled .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Map / claims page */
body.map-page {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.map-page .main.map-main {
  padding-top: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.map-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: calc(100vh - 92px);
  min-height: 0;
  gap: 0;
  overflow: hidden;
}

.map-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 16px 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

.map-sidebar__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.map-sidebar__hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.map-sidebar__subtitle {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.map-sidebar__block {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.map-sidebar__block--claims {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.map-sidebar__block:last-child {
  border-bottom: none;
}

.map-sidebar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.map-sidebar__status {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.map-sidebar__coords {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--accent);
  font-family: ui-monospace, monospace;
}

.map-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  background: #0d0d12;
  overflow: hidden;
}

.map-offline {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 650;
  transform: translate(-50%, -50%);
  max-width: 360px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(12, 12, 18, 0.95);
  text-align: center;
}

.map-offline strong {
  display: block;
  margin-bottom: 8px;
  color: #f87171;
}

.map-offline p {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.map-offline code {
  color: var(--accent);
}

.map-offline[hidden] {
  display: none !important;
}

.map-mode-bar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 700;
  display: flex;
  gap: 6px;
}

.map-mode-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 14, 0.9);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.map-mode-btn--active {
  color: #fff;
  border-color: var(--accent);
  background: rgba(195, 7, 63, 0.25);
}

.map-mode-btn--link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.squaremap-frame,
.bluemap-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0d0d12;
  z-index: 500;
}

.bluemap-frame[hidden] {
  display: none !important;
}

.map-claim-item__coords {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}

.map-manual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.bluemap-tile-layer {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: rgba(13, 13, 18, 0.92);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.map-loading[hidden] {
  display: none !important;
}

.world-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #12121a;
  z-index: 400;
}

.world-map[hidden] {
  display: none !important;
}

.map-stage__footer {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 500;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  pointer-events: none;
}

.map-claims-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.map-claim-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: background 0.15s;
}

.map-claim-item:hover {
  background: var(--bg-elevated);
}

.map-claim-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-claim-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.map-claim-item__body strong {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-claim-item__body span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.map-claim-item__delete {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.map-claim-item__delete:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.map-spawn-marker span {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(195, 7, 63, 0.85);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.map-bluemap {
  padding-top: 24px;
  padding-bottom: 40px;
}

.map-bluemap__frame {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0d0d12;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  background: #12121a;
  font-family: inherit;
}

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 64px);
  }

  .map-sidebar {
    max-height: none;
  }

  .map-stage {
    min-height: 50vh;
    height: 50vh;
  }
}
