:root {
  --win-accent: #d59a3d;
  --win-accent-strong: #8b5525;
  --win-accent-soft: #f2c16b;
  --win-wallpaper-1: #120b06;
  --win-wallpaper-2: #24150c;
  --win-wallpaper-3: #4a2a13;
  --win-window: #242528;
  --win-window-2: #2d2f32;
  --win-card: #2b2d30;
  --win-card-2: #383a3e;
  --win-border: #71685b;
  --win-text: #ffffff;
  --win-muted: #dedede;
  --win-taskbar: #101112;
  --win-success: #c88c38;
  --win-danger: #c35f42;
  --win-warning: #d6a247;
  --win-shadow: 0 22px 48px rgba(0, 0, 0, 0.58);
}

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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  overflow: hidden;
}

body {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--win-text);
  background:
    radial-gradient(38rem 28rem at 4% 0%, rgba(213, 154, 61, 0.28), transparent 66%),
    radial-gradient(34rem 24rem at 94% 10%, rgba(117, 61, 26, 0.32), transparent 64%),
    linear-gradient(130deg, var(--win-wallpaper-1) 0%, var(--win-wallpaper-2) 48%, var(--win-wallpaper-3) 100%);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.18));
  box-shadow:
    inset 0 0 72px rgba(0, 0, 0, 0.42),
    inset 0 0 18px rgba(242, 193, 107, 0.06);
  opacity: 0.72;
  animation: crtFlicker 5.5s steps(2, end) infinite;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sky-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.035), transparent 42%),
    radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.48) 100%);
  z-index: -2;
}

.sky-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 18%, transparent 72%, rgba(0, 0, 0, 0.22)),
    radial-gradient(circle at 50% 42%, transparent 0 48%, rgba(0, 0, 0, 0.28) 100%);
  opacity: 0.82;
  animation: crtFlicker 5.5s steps(2, end) infinite;
}

.sky-grid::after {
  content: "";
  position: absolute;
  right: max(-11rem, calc((100vw - 1120px) / 2 - 17rem));
  bottom: -12rem;
  width: clamp(26rem, 48vw, 42rem);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 193, 107, 0.18), transparent 62%),
    url("/assets/oscilloscope-gear.svg") center / contain no-repeat;
  filter: sepia(1) saturate(1.9) hue-rotate(340deg) drop-shadow(0 0 22px rgba(213, 154, 61, 0.24));
  mix-blend-mode: lighten;
  opacity: 0.34;
  transform-origin: 50% 50%;
  animation:
    scopeGearSpin 58s linear infinite,
    scopeGearPulse 6s ease-in-out infinite;
}

.site-header,
main,
.site-footer {
  width: min(1320px, calc(100vw - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-top: 12px;
  padding: 0;
  border: 1px solid rgba(242, 193, 107, 0.34);
  border-radius: 0;
  box-shadow: var(--win-shadow);
  background:
    linear-gradient(180deg, rgba(56, 58, 62, 0.98), rgba(36, 37, 40, 0.98));
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  text-decoration: none;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(126, 78, 35, 0.96), rgba(213, 154, 61, 0.9));
  padding: 0.62rem 1rem;
  min-width: 280px;
  box-shadow: inset -1px 0 0 rgba(255, 218, 143, 0.28);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-block;
  background: url("/assets/logo.png?v=20260427-16") center / contain no-repeat;
  color: transparent;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 158, 0.42);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 2px rgba(28, 13, 4, 0.4),
    0 0 18px rgba(242, 193, 107, 0.22);
}

.brand-text {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(46, 23, 8, 0.9);
}

.menu-toggle {
  display: none;
  border: 0;
  border-left: 1px solid var(--win-border);
  background: var(--win-window);
  color: var(--win-text);
  padding: 0 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
}

.site-nav::before {
  display: none;
}

.site-nav a,
.nav-icon-button,
.nav-profile-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--win-text);
  font-size: 0.93rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.92rem 1.05rem;
  border-left: 1px solid var(--win-border);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  transition: background-color 120ms ease, color 120ms ease;
  position: relative;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.site-nav > a[href="/rules"],
.nav-login-link {
  border-right: 1px solid var(--win-border);
}

.site-nav a:hover,
.nav-icon-button:hover,
.nav-profile-button:hover {
  background: rgba(213, 154, 61, 0.16);
}

.nav-profile-button:hover {
  background: linear-gradient(180deg, rgba(230, 180, 92, 0.98), rgba(139, 85, 37, 0.94));
}

.site-nav a.active,
.nav-profile-button.active {
  background: var(--win-accent-strong);
  color: #ffffff;
}

.nav-account {
  display: inline-flex;
  align-items: stretch;
  margin-left: auto;
  position: relative;
  border-left: 1px solid var(--win-border);
}

.nav-login-link {
  margin-left: auto;
}

.nav-menu-unit {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.nav-profile-button {
  gap: 0.55rem;
  background: linear-gradient(180deg, rgba(213, 154, 61, 0.92), rgba(139, 85, 37, 0.92));
  color: #211006;
  text-shadow: 0 1px 0 rgba(255, 236, 184, 0.36);
}

.nav-account .nav-icon-button {
  border-left: 0;
}

.nav-profile-button img {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(242, 193, 107, 0.45);
  border-radius: 0;
  object-fit: cover;
  background: rgba(18, 10, 5, 0.86);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 45;
  min-width: 230px;
  max-width: min(360px, calc(100vw - 2rem));
  border: 1px solid var(--win-border);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(56, 58, 62, 0.98), rgba(36, 37, 40, 0.98));
  box-shadow: var(--win-shadow);
  padding: 0.45rem;
}

.nav-notifications-dropdown {
  width: min(360px, calc(100vw - 2rem));
}

.nav-profile-dropdown {
  display: grid;
  gap: 0.22rem;
}

.nav-profile-dropdown a,
.nav-profile-dropdown button,
.nav-dropdown-head button,
.nav-notification-item button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--win-text);
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  padding: 0.58rem 0.62rem;
  cursor: pointer;
}

.nav-profile-dropdown a:hover,
.nav-profile-dropdown button:hover,
.nav-dropdown-head button:hover,
.nav-notification-item button:hover {
  background: rgba(213, 154, 61, 0.15);
  border-color: rgba(242, 193, 107, 0.35);
}

.nav-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.25rem 0.2rem 0.5rem;
  border-bottom: 1px solid var(--win-border);
  margin-bottom: 0.45rem;
}

.nav-dropdown-head div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav-dropdown-head button {
  width: auto;
  padding: 0.34rem 0.48rem;
  font-size: 0.78rem;
}

.nav-notifications-list {
  display: grid;
  gap: 0.35rem;
  max-height: min(48vh, 360px);
  overflow: auto;
  scrollbar-width: none;
}

.nav-notifications-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.nav-notification-item {
  border: 1px solid var(--win-border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.55rem;
  display: grid;
  gap: 0.28rem;
}

.nav-notification-item.is-unread {
  border-color: rgba(242, 193, 107, 0.55);
  background: rgba(213, 154, 61, 0.13);
}

.nav-notification-item strong,
.nav-notification-item span,
.nav-notification-item p {
  overflow-wrap: anywhere;
}

.nav-notification-item p {
  margin: 0;
  color: var(--win-muted);
  font-size: 0.86rem;
}

.nav-notification-item .nav-notification-actor {
  color: var(--win-text);
}

.nav-notification-item span {
  color: var(--win-muted);
  font-size: 0.76rem;
}

.nav-notification-item div {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-notification-item a {
  border-left: 0;
  padding: 0;
  color: var(--win-accent-soft);
}

.nav-notification-item button {
  width: auto;
  padding: 0;
  color: var(--win-accent-soft);
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 1rem;
  align-items: start;
}

.community-feed-column,
.community-side-column {
  display: grid;
  gap: 1rem;
}

.community-feed {
  display: grid;
  gap: 0.85rem;
}

.community-post {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.group-create-page-card {
  max-width: 760px;
  margin: 0 auto;
}

.group-create-page-card + .group-create-page-card {
  margin-top: 1rem;
}

.group-management-block {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.group-management-block h3 {
  margin: 0;
  color: var(--win-text);
}

.community-post-body {
  display: grid;
  gap: 0.5rem;
}

.community-post-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.55rem;
}

.community-post-media a {
  display: block;
  border: 1px solid var(--win-border);
  background: var(--win-card);
  overflow: hidden;
}

.community-post-media img {
  display: block;
  width: 100%;
  height: clamp(140px, 22vw, 260px);
  object-fit: cover;
}

.community-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.community-post-source {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.community-post-actions {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.community-post-delete {
  padding: 0.34rem 0.58rem;
  font-size: 0.82rem;
}

.community-composer + .community-feed,
.profile-post-composer + .profile-posts-card {
  margin-top: 0.3rem;
}

.community-user-mini,
.community-group-card-main,
.player-card-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--win-text);
  text-decoration: none;
}

.community-user-mini img,
.community-group-card-main img,
.player-card-main img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--win-border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.community-user-mini span,
.community-group-card-main span,
.player-card-main span {
  min-width: 0;
}

.community-group-card,
.player-card,
.community-member-row {
  border: 1px solid var(--win-border);
  background: rgba(255, 255, 255, 0.035);
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.community-group-card p,
.player-card p {
  margin: 0;
  color: var(--win-muted);
  overflow-wrap: anywhere;
}

.community-group-card small,
.player-card small {
  display: block;
  color: var(--win-muted);
  margin-top: 0.15rem;
}

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

.admin-settings + .players-grid {
  margin-top: 1rem;
}

.group-cover {
  min-height: 240px;
  border: 1px solid var(--win-border);
  background: linear-gradient(135deg, rgba(201, 157, 82, 0.18), rgba(255, 255, 255, 0.04));
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 1rem;
}

.group-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.group-avatar {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border: 1px solid var(--win-border);
  background: var(--win-panel);
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

.group-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-cover-info {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.group-cover-info h1,
.group-cover-info p {
  margin: 0;
}

.group-cover-info p:last-child {
  color: var(--win-muted);
  overflow-wrap: anywhere;
}

.group-cover-membership {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
}

.group-stats-under-hero {
  margin-top: 0.85rem;
}

.community-members-list {
  display: grid;
  gap: 0.65rem;
}

#js-group-invite-form + #js-group-pending {
  margin-top: 0.85rem;
}

.community-member-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.community-member-row .admin-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

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

  .community-member-row {
    grid-template-columns: 1fr;
  }
}

.nav-dropdown-empty {
  margin: 0;
  color: var(--win-muted);
  padding: 0.55rem;
}

.nav-notification-badge {
  position: absolute;
  top: 0.28rem;
  right: 0.28rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.26rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f2b84b;
  color: #1b1305;
  font-size: 0.67rem;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(7, 18, 10, 0.72);
}

.cookie-notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  width: min(420px, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--win-border);
  background: linear-gradient(180deg, rgba(56, 58, 62, 0.98), rgba(36, 37, 40, 0.98));
  box-shadow: var(--win-shadow);
  padding: 0.72rem;
}

.cookie-notice p {
  margin: 0;
  color: var(--win-text);
  line-height: 1.45;
  font-size: 0.9rem;
}

.cookie-notice .btn {
  flex: 0 0 auto;
}

main {
  flex: 1 0 auto;
  padding-top: 1.1rem;
  padding-bottom: 1.4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.hero-content,
.hero-panel {
  border: 1px solid var(--win-border);
  background: var(--win-window);
  border-radius: 2px;
  box-shadow: var(--win-shadow);
  padding: 1.3rem;
  position: relative;
}

.hero-content::before,
.hero-panel::before,
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--win-accent), var(--win-accent-soft));
}

.hero h1 {
  margin: 0.45rem 0 0.9rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffe0a0;
  text-shadow: 0 2px 0 rgba(46, 23, 8, 0.82);
  max-width: 20ch;
}

.hero p {
  margin: 0;
  color: var(--win-muted);
  line-height: 1.62;
  max-width: 56ch;
}

.kicker {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--win-accent-strong);
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.56rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: filter 120ms ease, background-color 120ms ease;
}

.btn-small {
  min-height: 32px;
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.btn-primary {
  background: var(--win-accent-strong);
  border-color: #6f441e;
  color: #ffffff;
}

.btn-secondary {
  background: var(--win-card);
  border-color: #80542a;
  color: var(--win-text);
}

.hero-panel h2 {
  margin: 0 0 0.95rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.hero-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.hero-panel li {
  border: 1px solid var(--win-border);
  background: var(--win-card);
  padding: 0.58rem 0.68rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 2px;
}

.hero-panel span {
  color: var(--win-muted);
}

.section {
  margin-top: 0.9rem;
  padding: 1.25rem;
  border: 1px solid var(--win-border);
  border-radius: 2px;
  background: var(--win-window);
  box-shadow: var(--win-shadow);
  position: relative;
}

.section-heading h1,
.section-heading h2 {
  margin: 0.45rem 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.12;
  font-weight: 700;
  color: #ffe0a0;
  letter-spacing: 0.01em;
}

.section-heading p {
  margin: 0;
  color: var(--win-muted);
  line-height: 1.6;
}

.feature-grid,
.steps,
.download-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

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

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

.feature-card,
.step-card,
.download-card,
.server-card {
  background: var(--win-card);
  border: 1px solid var(--win-border);
  border-radius: 2px;
  padding: 0.95rem;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 171, 0.08),
    0 12px 28px rgba(7, 3, 1, 0.28);
}

.feature-card::before,
.step-card::before,
.download-card::before,
.server-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--win-accent);
}

.feature-card h3,
.step-card h2,
.download-card h3,
.server-card h2 {
  margin: 0 0 0.42rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffe0a0;
}

.feature-card p,
.step-card p,
.download-card p {
  margin: 0;
  color: var(--win-muted);
  line-height: 1.55;
}

.step-card {
  padding-top: 1.45rem;
}

.step-number {
  position: absolute;
  top: -0.6rem;
  left: 0.95rem;
  min-width: 1.55rem;
  height: 1.55rem;
  padding-inline: 0.3rem;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: var(--win-accent-strong);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(99, 51, 19, 0.35);
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  --download-accent: var(--win-accent);
  --download-accent-strong: var(--win-accent-strong);
  --download-accent-soft: rgba(242, 193, 107, 0.14);
  border-color: color-mix(in srgb, var(--download-accent) 52%, var(--win-border));
  background:
    radial-gradient(circle at 100% 0%, var(--download-accent-soft), transparent 42%),
    linear-gradient(180deg, var(--win-card-2), var(--win-card));
}

.download-card .btn {
  width: 100%;
}

.download-card::before {
  background: var(--download-accent);
}

.download-card h3 {
  color: color-mix(in srgb, var(--download-accent) 72%, #ffffff);
}

.download-card .btn-secondary {
  background: linear-gradient(180deg, var(--download-accent), var(--download-accent-strong));
  border-color: color-mix(in srgb, var(--download-accent) 70%, #ffffff);
  color: #ffffff;
}

.download-card .btn-secondary:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--download-accent) 88%, #ffffff), var(--download-accent-strong));
}

.download-card--prism {
  --download-accent: #5aa7ff;
  --download-accent-strong: #316bd6;
  --download-accent-soft: rgba(90, 167, 255, 0.17);
}

.download-card--modrinth {
  --download-accent: #00af5c;
  --download-accent-strong: #007a45;
  --download-accent-soft: rgba(0, 175, 92, 0.18);
}

.download-card--curseforge {
  --download-accent: #f16436;
  --download-accent-strong: #b83c1f;
  --download-accent-soft: rgba(241, 100, 54, 0.17);
}

.download-card--zip {
  --download-accent: #f7c948;
  --download-accent-strong: #c58b16;
  --download-accent-soft: rgba(247, 201, 72, 0.18);
}

.server-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.server-card ul {
  margin: 0.15rem 0 0;
  padding-left: 1rem;
  color: var(--win-muted);
  display: grid;
  gap: 0.26rem;
}

.server-card strong {
  color: var(--win-text);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  padding: 0.2rem 0.52rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-yes {
  background: var(--win-success);
  color: #ffffff;
}

.badge-no {
  background: #b13d3d;
  color: #ffffff;
}

.badge-pending {
  background: #b3751d;
  color: #ffffff;
}

.badge-info {
  background: #2a5f96;
  color: #ffffff;
}

.status-card {
  margin-top: 0.75rem;
}

.status-note {
  margin: 0.72rem 0 0;
  color: var(--win-muted);
}

.mods-wide {
  margin-top: 0.75rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mods-intro {
  margin: 0 0 0.55rem;
  color: var(--win-muted);
}

.mods-list {
  flex: 1 1 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--win-border);
  background: var(--win-card);
  height: auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mods-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body[data-page="server"] main {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0.75rem;
}

body[data-page="server"] main > .section:first-child {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.mods-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.5rem 0.68rem;
  border-top: 1px solid #deefe0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.mods-list li:first-child {
  border-top: 0;
}

.mods-list a {
  color: var(--win-accent-soft);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mods-list a:hover {
  text-decoration: underline;
}

.mods-list span {
  color: var(--win-muted);
  white-space: nowrap;
}

.rules-shell {
  padding-bottom: 1rem;
}

.rules-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.rules-nav {
  border: 1px solid var(--win-border);
  background: var(--win-card);
  padding: 0.82rem;
  position: sticky;
  top: 84px;
}

.rules-nav h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
}

.rules-nav a {
  display: block;
  text-decoration: none;
  color: var(--win-accent-soft);
  padding: 0.38rem 0.48rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.9rem;
}

.rules-nav a:hover {
  background: rgba(213, 154, 61, 0.14);
  border-color: rgba(242, 193, 107, 0.36);
}

.rules-content {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.rule-section {
  background: var(--win-card);
  border: 1px solid var(--win-border);
  border-radius: 2px;
  padding: 1rem;
  position: relative;
  scroll-margin-top: 90px;
}

.rule-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--win-accent);
}

.rule-section h2 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 600;
}

.rule-section p {
  margin: 0.45rem 0 0;
  color: var(--win-muted);
  line-height: 1.6;
}

.rule-section a {
  color: var(--win-accent-soft);
}

.rule-section blockquote {
  margin: 0.7rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 4px solid var(--win-accent);
  background: rgba(213, 154, 61, 0.14);
  color: var(--win-text);
}

.rule-list {
  margin: 0.52rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.42rem;
  color: var(--win-muted);
  line-height: 1.56;
}

.rule-list strong {
  color: var(--win-text);
}

.rule-list code {
  background: rgba(213, 154, 61, 0.14);
  border: 1px solid rgba(242, 193, 107, 0.36);
  border-radius: 2px;
  padding: 0.08rem 0.3rem;
  color: var(--win-accent-soft);
}

.cta-band {
  border: 1px solid rgba(242, 193, 107, 0.46);
  border-radius: 2px;
  padding: 1rem;
  background:
    linear-gradient(110deg, rgba(213, 154, 61, 0.14), rgba(255, 255, 255, 0.03)),
    #2b2d30;
}

.cta-band h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 600;
}

.cta-band p {
  margin: 0.5rem 0 0.95rem;
  color: var(--win-muted);
}

.hidden {
  display: none !important;
}

.status-message {
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--win-border);
  border-radius: 2px;
  background: var(--win-card);
  color: var(--win-muted);
}

.status-message.status-success {
  border-color: rgba(213, 154, 61, 0.5);
  background: rgba(213, 154, 61, 0.14);
  color: #ffe0a0;
}

.status-message.status-error {
  border-color: #d9a2a2;
  background: #fff0f0;
  color: #8f2828;
}

.status-message.status-info {
  border-color: #bbcfec;
  background: #f2f7ff;
  color: #29496e;
}

.profile-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border: 1px solid var(--win-border);
  background: var(--win-card);
  padding: 0.35rem;
}

.account-tabs a {
  color: var(--win-text);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0.48rem 0.7rem;
  font-weight: 600;
}

.account-tabs button {
  appearance: none;
  color: var(--win-text);
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0.48rem 0.7rem;
  font: inherit;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
}

.account-tabs a:hover,
.account-tabs button:hover {
  background: rgba(213, 154, 61, 0.14);
  border-color: rgba(242, 193, 107, 0.36);
}

.account-tabs a.active,
.account-tabs button.active {
  background: var(--win-accent-strong);
  border-color: #6f441e;
  color: #ffffff;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.auth-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  width: min(100%, 640px);
  margin-inline: auto;
}

.profile-card {
  display: grid;
  gap: 0.85rem;
}

.profile-card p {
  margin: 0;
  color: var(--win-muted);
  line-height: 1.55;
}

.profile-view-card {
  gap: 0.7rem;
}

.profile-cover {
  position: relative;
  height: clamp(180px, 24vw, 260px);
  max-height: 260px;
  border: 1px solid var(--win-border);
  background:
    linear-gradient(135deg, rgba(213, 154, 61, 0.18), rgba(91, 45, 17, 0.06)),
    linear-gradient(135deg, #2b2d30, #202124);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem;
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 24%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}

.profile-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-avatar {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border: 2px solid #8c8f94;
  background: var(--win-card);
  box-shadow: 0 8px 18px rgba(7, 3, 1, 0.42);
}

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

.profile-cover-info {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  align-self: flex-end;
  padding-bottom: 0;
}

.profile-cover-info h2 {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.profile-cover-info span {
  width: fit-content;
  border: 1px solid rgba(242, 193, 107, 0.44);
  background: rgba(213, 154, 61, 0.18);
  color: #ffe0a0;
  padding: 0.22rem 0.52rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-ban-alert {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(238, 90, 90, 0.65);
  border-radius: 2px;
  background: rgba(238, 90, 90, 0.12);
  color: #ffd6d6;
  padding: 0.72rem;
}

.profile-ban-alert strong {
  color: #ff8f8f;
}

.profile-ban-alert span {
  color: var(--win-muted);
  overflow-wrap: anywhere;
}

.profile-appeal {
  border: 1px solid var(--win-border);
  border-radius: 2px;
  padding: 0.75rem;
  background: rgba(213, 154, 61, 0.09);
}

.profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.server-card .profile-list {
  padding-left: 0;
}

.profile-list li {
  border: 1px solid var(--win-border);
  background: var(--win-card);
  border-radius: 2px;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.52rem 0.65rem;
}

.profile-list span {
  color: var(--win-muted);
}

.profile-stats {
  border: 1px solid var(--win-border);
  border-radius: 2px;
  padding: 0.72rem;
  background: rgba(213, 154, 61, 0.07);
}

.profile-stats .server-head {
  margin-bottom: 0.58rem;
}

.profile-stats h2 span {
  color: var(--win-accent-soft);
}

.profile-stats-empty {
  margin: 0;
  color: var(--win-muted);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.profile-stat-card {
  min-width: 0;
  border: 1px solid var(--win-border);
  border-radius: 2px;
  padding: 0.62rem;
  background: linear-gradient(180deg, var(--win-card-2), var(--win-card));
}

.profile-stat-card span {
  display: block;
  color: var(--win-muted);
  font-size: 0.84rem;
}

.profile-stat-card strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--win-text);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.application-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.72rem;
}

.application-form label {
  display: grid;
  gap: 0.32rem;
  font-weight: 600;
}

.auth-form {
  display: grid;
  gap: 0.62rem;
}

.auth-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

.auth-switch {
  margin: 0;
  color: var(--win-muted);
}

.link-button {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--win-accent-soft);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover {
  color: #0f4a1f;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.form-note {
  margin: 0;
  color: var(--win-muted);
  line-height: 1.5;
}

.media-preview-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: end;
}

.media-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--win-muted);
  font-weight: 600;
}

.settings-avatar-preview {
  width: 140px;
  height: 140px;
  border: 1px solid var(--win-border);
  background: var(--win-card);
  object-fit: cover;
  display: block;
}

.settings-banner-preview {
  min-height: 140px;
  border: 1px solid var(--win-border);
  background:
    linear-gradient(135deg, rgba(213, 154, 61, 0.18), rgba(91, 45, 17, 0.06)),
    linear-gradient(135deg, #2b2d30, #202124);
  overflow: hidden;
}

.settings-banner-preview img {
  width: 100%;
  height: 140px;
  display: block;
  object-fit: cover;
}

.application-form textarea,
.application-form input,
.application-form select,
.auth-form input,
.auth-form textarea,
.auth-form select,
.admin-toolbar select,
.admin-actions select {
  width: 100%;
  border: 1px solid var(--win-border);
  border-radius: 2px;
  padding: 0.52rem 0.6rem;
  font: inherit;
  color: var(--win-text);
  background: var(--win-card);
}

.application-form textarea {
  resize: vertical;
  min-height: 108px;
}

.auth-form textarea {
  resize: vertical;
  min-height: 120px;
}

.custom-form-builder {
  display: grid;
  gap: 0.55rem;
}

.custom-form-fields {
  display: grid;
  gap: 0.65rem;
}

.custom-form-field-editor {
  display: grid;
  gap: 0.58rem;
}

.applications-card {
  margin-top: 0.95rem;
}

.applications-list,
.admin-applications,
.news-list {
  display: grid;
  gap: 0.62rem;
  min-width: 0;
  max-width: 100%;
}

.leaderboard-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.leaderboard-list {
  display: grid;
  gap: 0.62rem;
  margin-top: 0.9rem;
  min-width: 0;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: auto 48px minmax(0, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--win-border);
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 193, 107, 0.07), transparent 38%),
    linear-gradient(180deg, var(--win-card-2), var(--win-card));
  padding: 0.72rem;
  min-width: 0;
}

.leaderboard-rank {
  min-width: 3.2rem;
  color: var(--win-accent-soft);
  font-size: 1.05rem;
}

.leaderboard-item img {
  width: 48px;
  height: 48px;
  border: 1px solid #8c8f94;
  object-fit: cover;
  background: #25272b;
}

.leaderboard-player {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.leaderboard-player a,
.leaderboard-player span {
  color: var(--win-text);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.leaderboard-player a:hover {
  color: var(--win-accent-soft);
}

.leaderboard-player small,
.leaderboard-score span {
  color: var(--win-muted);
  font-size: 0.8rem;
}

.leaderboard-score {
  display: grid;
  gap: 0.12rem;
  justify-items: end;
  text-align: right;
}

.leaderboard-score strong {
  color: #ffffff;
  font-size: 1.08rem;
}

.application-item {
  border: 1px solid var(--win-border);
  border-radius: 2px;
  background: var(--win-card);
  padding: 0.82rem;
  min-width: 0;
  overflow: hidden;
}

.application-item p {
  margin: 0.35rem 0 0;
  color: var(--win-muted);
  line-height: 1.5;
}

.application-item p strong {
  color: var(--win-text);
}

.news-image {
  display: block;
  width: 100%;
  max-height: min(46vh, 420px);
  margin: 0.7rem 0 0.35rem;
  border: 1px solid var(--win-border);
  border-radius: 2px;
  object-fit: cover;
  background: rgba(18, 10, 5, 0.86);
}

.news-image-link {
  display: block;
  color: inherit;
}

.news-item {
  display: grid;
  gap: 0.55rem;
}

.news-item .application-header a {
  color: var(--win-text);
  text-decoration: none;
}

.news-item .application-header a:hover {
  color: var(--win-accent-soft);
}

.news-body {
  min-width: 0;
  color: var(--win-text);
  overflow-wrap: anywhere;
}

.news-body p,
.markdown-body p,
.markdown-body ul,
.markdown-body blockquote {
  margin: 0.45rem 0 0;
  line-height: 1.62;
}

.markdown-body h3,
.markdown-body h4,
.markdown-body h5 {
  margin: 0.72rem 0 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

.markdown-body ul {
  padding-left: 1.15rem;
}

.markdown-body li {
  margin-top: 0.25rem;
}

.markdown-body blockquote {
  border-left: 3px solid var(--win-accent-soft);
  padding: 0.35rem 0 0.35rem 0.7rem;
  color: var(--win-muted);
  background: rgba(213, 154, 61, 0.08);
}

.markdown-body code {
  border: 1px solid rgba(113, 104, 91, 0.65);
  background: rgba(18, 10, 5, 0.5);
  padding: 0.08rem 0.25rem;
  color: #ffe0a0;
}

.markdown-body a {
  color: var(--win-accent-soft);
}

.news-body-preview {
  position: relative;
  max-height: 5.4rem;
  overflow: hidden;
}

.news-body-preview::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2rem;
  background: linear-gradient(180deg, rgba(42, 43, 46, 0), var(--win-card));
  pointer-events: none;
}

.news-preview .news-image {
  max-height: min(22vh, 180px);
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.news-like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 1px solid var(--win-border);
  border-radius: 0;
  background: linear-gradient(180deg, var(--win-card-2), var(--win-card));
  color: var(--win-text);
  padding: 0.52rem 0.72rem;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  min-height: 2.36rem;
  cursor: pointer;
}

.news-like-button:hover,
.news-like-button.is-liked {
  border-color: rgba(242, 193, 107, 0.66);
  background: linear-gradient(180deg, rgba(213, 154, 61, 0.28), rgba(126, 78, 35, 0.26));
  color: #ffffff;
}

.news-like-button strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  text-align: center;
  color: #ffe0a0;
}

.news-carousel {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.news-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid var(--win-border);
  background: var(--win-card);
  padding: 0.55rem 0.65rem;
}

.news-carousel-head span {
  color: var(--win-muted);
  font-weight: 700;
}

.news-carousel-head div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.news-carousel-slide {
  min-width: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.news-grid.news-carousel {
  grid-template-columns: 1fr;
}

.news-carousel-track,
.news-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  min-width: 0;
}

.news-carousel-track .news-item {
  min-width: 0;
}

.news-gallery {
  margin-top: 0.6rem;
}

.news-gallery .news-image {
  margin: 0;
}

.news-gallery.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.news-gallery-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
  min-width: 0;
}

.news-gallery-button .news-image {
  height: 100%;
  min-height: 180px;
}

.news-lightbox-open {
  overflow: hidden;
}

.news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(7, 3, 1, 0.78);
  padding: 4vh 4vw;
}

.news-lightbox-panel {
  width: min(1120px, 100%);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  border: 1px solid rgba(242, 193, 107, 0.45);
  background: linear-gradient(180deg, rgba(56, 58, 62, 0.98), rgba(36, 37, 40, 0.98));
  box-shadow: var(--win-shadow);
  padding: 0.75rem;
}

.news-lightbox-head,
.news-lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.news-lightbox-head span {
  color: var(--win-muted);
  font-weight: 700;
}

.news-lightbox-panel img {
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  background: rgba(18, 10, 5, 0.86);
  border: 1px solid var(--win-border);
}

.admin-applications .news-image {
  max-height: 260px;
}

.custom-form-response {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  contain: inline-size;
}

.custom-form-response p,
.custom-form-response div,
.custom-form-response strong,
.custom-form-response span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.custom-form-response-meta,
.custom-form-response-answer {
  display: block;
  margin-top: 0.52rem;
}

.custom-form-response-meta strong,
.custom-form-response-answer strong {
  display: block;
  color: var(--win-text);
}

.custom-form-response-meta span,
.custom-form-response-value {
  display: block;
  margin-top: 0.18rem;
  white-space: pre-wrap;
}

.application-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.application-date {
  color: var(--win-muted);
  font-size: 0.85rem;
}

.empty-message {
  margin: 0;
  border: 1px dashed var(--win-border);
  border-radius: 2px;
  padding: 0.85rem;
  color: var(--win-muted);
  background: var(--win-card);
}

.admin-toolbar {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.62rem;
}

.admin-toolbar h2 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
}

.admin-toolbar label {
  min-width: 200px;
  display: grid;
  gap: 0.32rem;
  font-weight: 600;
}

.admin-toolbar .btn {
  min-width: 140px;
}

.admin-applications {
  margin-top: 0.85rem;
}

.admin-shell,
.admin-section {
  margin-top: 1rem;
}

.admin-applications-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.admin-subsection {
  align-self: start;
}

.admin-settings {
  margin-top: 0.85rem;
}

.admin-settings-status {
  margin: 0;
}

.admin-item {
  border-left: 5px solid #9dc8a7;
}

.admin-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.admin-actions select {
  max-width: 180px;
}

.site-footer {
  flex-shrink: 0;
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(51, 32, 18, 0.96), var(--win-taskbar));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  text-align: left;
  padding: 0.82rem;
}

.site-footer p {
  margin: 0;
  color: var(--win-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.42rem;
  margin-left: auto;
}

.footer-links a {
  color: var(--win-accent-soft);
  text-decoration: none;
  border: 1px solid rgba(242, 193, 107, 0.3);
  border-radius: 2px;
  padding: 0.28rem 0.52rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.footer-links a:hover {
  background: rgba(213, 154, 61, 0.13);
  border-color: rgba(242, 193, 107, 0.5);
}

/* Steampunk brass-and-coal surface pass. */
a {
  color: var(--win-accent-soft);
}

.site-header,
.site-nav {
  background:
    linear-gradient(180deg, rgba(56, 58, 62, 0.98), rgba(36, 37, 40, 0.98));
  border-color: var(--win-border);
}

.hero-content,
.hero-panel,
.section {
  background:
    linear-gradient(180deg, rgba(56, 58, 62, 0.98), rgba(36, 37, 40, 0.98));
  border-color: var(--win-border);
}

.site-nav a:hover,
.nav-icon-button:hover,
.nav-profile-button:hover,
.rules-nav a:hover,
.account-tabs a:hover,
.account-tabs button:hover {
  background: rgba(213, 154, 61, 0.16);
  border-color: rgba(242, 193, 107, 0.42);
}

.site-nav a.active,
.nav-profile-button.active,
.account-tabs a.active,
.account-tabs button.active {
  background: linear-gradient(180deg, #e6b45c, #8b5525);
  border-color: rgba(242, 193, 107, 0.58);
  color: #211006;
}

.kicker,
.mods-list a,
.rules-nav a,
.rule-section a,
.link-button {
  color: var(--win-accent-soft);
}

.link-button:hover {
  color: #ffe0a0;
}

.btn-primary {
  background: linear-gradient(180deg, #efc36f, #9a6027);
  border-color: rgba(242, 193, 107, 0.58);
  color: #241207;
  text-shadow: 0 1px 0 rgba(255, 236, 184, 0.45);
}

.btn-secondary {
  background: #303236;
  border-color: var(--win-border);
  color: var(--win-text);
}

.btn-secondary:hover {
  background: #3b3d42;
}

.hero-panel li,
.feature-card,
.step-card,
.download-card,
.server-card,
.rules-nav,
.rule-section,
.status-message,
.account-tabs,
.profile-list li,
.profile-stat-card,
.settings-avatar-preview,
.application-item,
.empty-message,
.mods-list {
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 193, 107, 0.055), transparent 38%),
    linear-gradient(180deg, var(--win-card-2), var(--win-card));
  border-color: var(--win-border);
}

.mods-list li {
  border-top-color: rgba(113, 104, 91, 0.72);
}

.download-card {
  border-color: color-mix(in srgb, var(--download-accent) 52%, var(--win-border));
  background:
    radial-gradient(circle at 100% 0%, var(--download-accent-soft), transparent 42%),
    linear-gradient(180deg, var(--win-card-2), var(--win-card));
}

.rule-section blockquote,
.rule-list code {
  background: rgba(213, 154, 61, 0.1);
  border-color: rgba(242, 193, 107, 0.36);
  color: var(--win-text);
}

.cta-band {
  border-color: rgba(242, 193, 107, 0.46);
  background:
    linear-gradient(110deg, rgba(213, 154, 61, 0.14), rgba(255, 255, 255, 0.03)),
    #2b2d30;
}

.status-message {
  color: var(--win-muted);
}

.status-message.status-success {
  border-color: rgba(213, 154, 61, 0.5);
  background: rgba(213, 154, 61, 0.14);
  color: #ffe0a0;
}

.status-message.status-error {
  border-color: rgba(209, 93, 93, 0.5);
  background: rgba(209, 93, 93, 0.12);
  color: #ffc6c6;
}

.status-message.status-info {
  border-color: rgba(101, 156, 214, 0.5);
  background: rgba(74, 128, 184, 0.14);
  color: #cde6ff;
}

.profile-cover,
.settings-banner-preview {
  background:
    linear-gradient(135deg, rgba(213, 154, 61, 0.18), rgba(91, 45, 17, 0.06)),
    linear-gradient(135deg, #2b2d30, #202124);
}

.profile-avatar {
  border-color: #8c8f94;
  border-width: 2px;
  background: #25272b;
}

.application-form textarea,
.application-form input,
.application-form select,
.auth-form input,
.auth-form textarea,
.auth-form select,
.admin-toolbar select,
.admin-actions select {
  background: #25272b;
  border-color: var(--win-border);
  color: var(--win-text);
}

.application-form textarea:focus,
.application-form input:focus,
.application-form select:focus,
.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus,
.admin-toolbar select:focus,
.admin-actions select:focus {
  outline: 2px solid rgba(242, 193, 107, 0.38);
  outline-offset: 1px;
}

.application-form input::placeholder,
.application-form textarea::placeholder,
.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: #a98d68;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 0;
  height: clamp(650px, calc(100vh - 190px), 920px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--win-border);
  background:
    linear-gradient(135deg, rgba(213, 154, 61, 0.12), transparent 34%),
    rgba(18, 10, 5, 0.9);
}

@media (min-width: 1025px) {
  body[data-page="admin"] {
    overflow: hidden;
  }

  body[data-page="admin"] main {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  body[data-page="admin"] main > .section {
    flex: 1 1 0;
    min-height: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body[data-page="admin"] .section-heading,
  body[data-page="admin"] #js-admin-status {
    flex: 0 0 auto;
  }

  body[data-page="admin"] .admin-shell {
    margin-top: 0.7rem;
  }

  body[data-page="admin"] .admin-dashboard {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
  }
}

.admin-dashboard .admin-section {
  margin-top: 0;
  min-width: 0;
}

.admin-sidebar {
  padding: 0.82rem;
  border-right: 1px solid var(--win-border);
  background: linear-gradient(180deg, rgba(48, 50, 54, 0.96), rgba(34, 35, 38, 0.96));
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.admin-sidebar-head {
  padding: 0.85rem;
  border: 1px solid var(--win-border);
  background: rgba(43, 45, 48, 0.96);
}

.admin-sidebar-head strong {
  display: block;
  margin-top: 0.26rem;
  font-size: 1.18rem;
}

.admin-sidebar-head span {
  display: block;
  margin-top: 0.25rem;
  color: var(--win-muted);
  font-size: 0.88rem;
}

.admin-nav {
  display: grid;
  gap: 0.42rem;
  margin-top: 0.72rem;
}

.admin-nav button {
  appearance: none;
  width: 100%;
  display: grid;
  gap: 0.14rem;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0.68rem 0.75rem;
  background: transparent;
  color: var(--win-text);
  font: inherit;
  cursor: pointer;
}

.admin-nav button:hover {
  background: rgba(213, 154, 61, 0.12);
  border-color: rgba(242, 193, 107, 0.28);
}

.admin-nav button.active {
  background:
    linear-gradient(90deg, rgba(213, 154, 61, 0.94), rgba(139, 85, 37, 0.74)),
    #2b2d30;
  border-color: rgba(242, 193, 107, 0.52);
  box-shadow: inset 4px 0 0 #ffd985;
}

.admin-nav span {
  font-weight: 700;
}

.admin-nav small {
  color: var(--win-muted);
}

.admin-nav button.active small {
  color: #fff0c8;
}

.admin-workspace {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem;
}

.admin-workspace::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.82rem;
  border-bottom: 1px solid var(--win-border);
}

.admin-section-head h2 {
  margin: 0.22rem 0 0;
  font-size: clamp(1.24rem, 2vw, 1.7rem);
  font-weight: 600;
}

.admin-metrics-grid,
.admin-team-grid,
.admin-parameters-grid {
  display: grid;
  gap: 0.7rem;
}

.admin-metrics-grid {
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.admin-team-grid {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
}

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

.admin-search {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.admin-search input,
.admin-user-editor input,
.admin-user-editor select,
.admin-user-editor textarea {
  width: 100%;
  min-width: 0;
}

.admin-user-editor {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--win-border);
}

.admin-metric {
  min-height: 64px;
  padding: 0.68rem 0.72rem;
  border: 1px solid var(--win-border);
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 193, 107, 0.12), transparent 42%),
    linear-gradient(180deg, var(--win-card-2), var(--win-card));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.admin-metric span {
  color: var(--win-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.admin-metric strong {
  margin-top: 0;
  color: var(--win-text);
  font-size: clamp(1.08rem, 1.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1;
  text-align: right;
  overflow-wrap: anywhere;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.62rem;
  border: 1px solid var(--win-border);
  background: rgba(43, 45, 48, 0.92);
}

.admin-pagination span {
  color: var(--win-muted);
  font-size: 0.9rem;
}

.admin-pagination .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.admin-toolbar {
  margin-top: 0;
}

.admin-settings {
  margin-top: 0;
}

.admin-item {
  border-left-color: var(--win-accent);
}

.site-footer {
  background: linear-gradient(180deg, rgba(32, 20, 13, 0.98), var(--win-taskbar));
  border-color: var(--win-border);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 380ms ease, transform 380ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scopeGearSpin {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes scopeGearPulse {
  0%,
  100% {
    opacity: 0.34;
    filter: drop-shadow(0 0 14px rgba(242, 193, 107, 0.12));
  }

  50% {
    opacity: 0.52;
    filter: drop-shadow(0 0 26px rgba(242, 193, 107, 0.28));
  }
}

@keyframes crtFlicker {
  0%,
  100% {
    opacity: 0.76;
  }

  50% {
    opacity: 0.9;
  }
}

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

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

  .admin-dashboard {
    height: auto;
    grid-template-columns: 1fr;
    min-height: 650px;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--win-border);
    overflow: visible;
  }

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

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

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

  .news-carousel-track,
  .news-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(1120px, calc(100vw - 2rem));
    background: var(--win-window);
    border: 1px solid var(--win-border);
    border-radius: 2px;
    box-shadow: var(--win-shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav::before {
    display: none;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--win-border);
    padding: 0.72rem 0.84rem;
  }

  .site-nav a:first-child {
    border-top: 0;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(1120px, calc(100vw - 2rem));
    background: var(--win-window);
    border: 1px solid var(--win-border);
    border-radius: 2px;
    box-shadow: var(--win-shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav::before {
    display: none;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--win-border);
    padding: 0.72rem 0.84rem;
  }

  .site-nav a:first-child {
    border-top: 0;
  }

  .rules-layout,
  .steps,
  .download-grid,
  .news-grid,
  .news-carousel-track,
  .news-gallery,
  .auth-grid,
  .media-preview-grid,
  .admin-applications-grid {
    grid-template-columns: 1fr;
  }

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

  .rules-nav {
    position: static;
  }

  .mods-list {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .sky-grid {
    display: block;
  }

  .sky-grid::after {
    display: none;
  }

  body {
    background: linear-gradient(135deg, #120b06 0%, #24150c 58%, #4a2a13 100%);
  }

  .site-header,
  .hero-content,
  .hero-panel,
  .section,
  .site-nav {
    box-shadow: 0 6px 14px rgba(7, 3, 1, 0.24);
  }
}

@media (max-width: 700px) {
  .cookie-notice {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    width: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-notice .btn {
    width: 100%;
  }

  .news-carousel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .news-carousel-head div {
    justify-content: stretch;
  }

  .news-carousel-head .btn {
    flex: 1 1 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
    margin-left: 0;
  }

  .profile-cover {
    height: 180px;
    max-height: 180px;
  }

  .leaderboard-item {
    grid-template-columns: auto 40px minmax(0, 1fr);
  }

  .leaderboard-item img {
    width: 40px;
    height: 40px;
  }

  .leaderboard-score {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(113, 104, 91, 0.56);
  }

  .admin-nav,
  .admin-metrics-grid,
  .admin-team-grid,
  .profile-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-workspace,
  .admin-sidebar {
    padding: 0.7rem;
  }

  .admin-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header,
  main,
  .site-footer {
    width: calc(100vw - 1rem);
  }

  .site-header {
    margin-top: 8px;
  }
}

@media (max-width: 1060px) {
  .site-nav > a[href="/rules"],
  .nav-login-link {
    border-right: 0;
  }
}

@media (max-width: 1060px) {
  .site-nav {
    width: min(1320px, calc(100vw - 2rem));
  }

  .site-nav a,
  .nav-icon-button,
  .nav-profile-button {
    width: 100%;
    justify-content: flex-start;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--win-border);
    padding: 0.72rem 0.84rem;
  }

  .nav-account {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    border-left: 0;
  }

  .nav-menu-unit {
    display: block;
  }

.nav-dropdown {
  position: static;
  width: auto;
  max-width: none;
  margin: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
}

.site-header,
.site-nav,
.site-nav a,
.menu-toggle,
.nav-icon-button,
.nav-profile-button,
.nav-profile-button img,
.nav-dropdown,
.nav-profile-dropdown a,
.nav-profile-dropdown button,
.nav-dropdown-head button,
.nav-notification-item,
.nav-notification-item button {
  border-radius: 0;
}

.brand {
  background: linear-gradient(90deg, rgba(126, 78, 35, 0.96), rgba(213, 154, 61, 0.9));
}

.nav-profile-button,
.nav-profile-button.active {
  background: linear-gradient(180deg, rgba(213, 154, 61, 0.92), rgba(139, 85, 37, 0.92));
  color: #211006;
  text-shadow: 0 1px 0 rgba(255, 236, 184, 0.36);
}

.nav-profile-button:hover {
  background: linear-gradient(180deg, rgba(230, 180, 92, 0.98), rgba(139, 85, 37, 0.94));
  color: #211006;
}

.nav-dropdown,
.nav-notifications-dropdown,
.nav-profile-dropdown {
  background: linear-gradient(180deg, rgba(56, 58, 62, 0.98), rgba(36, 37, 40, 0.98));
  border-color: var(--win-border);
}

.nav-notification-item {
  background: linear-gradient(180deg, var(--win-card-2), var(--win-card));
}

.nav-notification-item.is-unread {
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 193, 107, 0.12), transparent 42%),
    linear-gradient(180deg, var(--win-card-2), var(--win-card));
}

.admin-sidebar,
.admin-sidebar-head,
.admin-pagination {
  background: linear-gradient(180deg, rgba(56, 58, 62, 0.96), rgba(36, 37, 40, 0.96));
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--win-border);
  border-radius: 2px;
  background: #25272b;
  color: var(--win-text);
  font: inherit;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
select {
  padding: 0.52rem 0.6rem;
}

input[type="file"] {
  padding: 0.45rem;
}

input::file-selector-button {
  margin-right: 0.65rem;
  border: 1px solid rgba(242, 193, 107, 0.42);
  border-radius: 0;
  background: linear-gradient(180deg, #e6b45c, #8b5525);
  color: #211006;
  font: inherit;
  font-weight: 700;
  padding: 0.42rem 0.68rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(242, 193, 107, 0.38);
  outline-offset: 1px;
}

input::placeholder,
textarea::placeholder {
  color: #b8b8b8;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .sky-grid::after {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce), (max-width: 860px) {
  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.reveal,
.reveal.visible {
  opacity: 1;
  transform: none;
}
