﻿:root {
  --color-bg: #0b162c;
  --color-bg-alt: #111e35;
  --color-surface: rgba(20, 32, 54, 0.9);
  --color-card: rgba(21, 33, 56, 0.92);
  --color-primary: #4ec7ff;
  --color-primary-strong: #6de4ff;
  --color-accent: #bf7bff;
  --button-ice: linear-gradient(120deg, #9beeff, #4ec7ff);
  --color-text: #f4f8ff;
  --color-muted: #8ea2c5;
  --shadow-soft: 0 30px 120px rgba(9, 16, 32, 0.55);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  /* Type scale for UI text. Display headings use their own clamp() sizes. */
  --text-2xs: 0.75rem;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --frostline-page-bg-image: url("../img/home-hero-bg.webp");
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  scrollbar-color: rgba(85, 198, 255, 0.58) rgba(4, 14, 31, 0.96);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(4, 14, 31, 0.96);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(4, 14, 31, 0.96);
  border-radius: 999px;
  background: linear-gradient(180deg, #55c6ff, #694cff);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7ad6ff, #8068ff);
}

body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top, rgba(44, 84, 140, 0.3), rgba(10, 18, 36, 0.93) 60%) fixed var(--color-bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: clip;
}

/* The staff panel keeps its dense layout at roughly 90% browser zoom. */
@media (min-width: 1024px) {
  body:has(.account-settings-page--panel) {
    zoom: 0.9;
    /* Compensate for the zoom so short pages still fill the viewport. */
    min-height: 111.111111vh;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 16% 18%, rgba(78, 199, 255, 0.16), transparent 32%),
    radial-gradient(ellipse at 84% 12%, rgba(191, 123, 255, 0.12), transparent 30%),
    radial-gradient(ellipse at 54% 54%, rgba(109, 228, 255, 0.07), transparent 36%);
  filter: blur(24px);
  opacity: 0.7;
  transform: translate3d(0, 0, 0);
  animation: frostline-aurora 24s ease-in-out infinite alternate;
}

@keyframes frostline-aurora {
  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.03);
  }
}

/* Long inner pages should not repaint a fixed background or animate behind every scroll. */
body:not(.home) {
  background-attachment: scroll;
}

body:not(.home)::before {
  animation: none;
}

body.is-modal-open {
  overflow: hidden;
}

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

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

main {
  display: block;
}

#main-content {
  flex: 1 0 auto;
  width: 100%;
}

.site-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-reveal] {
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.98);
  transition: transform 1s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.8s ease;
  transition-delay: var(--reveal-delay);
  will-change: auto;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

[data-reveal="slide-left"] {
  transform: translate3d(-44px, 0, 0) scale(0.98);
}

[data-reveal="slide-right"] {
  transform: translate3d(44px, 0, 0) scale(0.98);
}

[data-reveal="slide-up"] {
  transform: translate3d(0, 42px, 0) scale(0.96);
}

[data-reveal="fade-up"] {
  transform: translate3d(0, 28px, 0) scale(0.98);
}

[data-reveal="zoom-in"] {
  transform: scale(0.9);
}

.fade-in-on-load {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  animation: frostline-fade-in 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  animation-delay: var(--fade-in-delay, 0ms);
  will-change: auto;
}

@keyframes frostline-fade-in {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .fade-in-on-load {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .home .hero__title,
  .home .hero__subtitle,
  .home .hero__actions,
  .home .hero-status__label,
  .home .hero-status-card,
  .home .hero-card,
  .home .home-why__intro,
  .home .home-why .feature-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
  }
}

.home [data-reveal],
.home .fade-in-on-load {
  opacity: 1;
  transform: none;
  transition: none;
  animation: none;
  will-change: auto;
}

.home .hero__title,
.home .hero__subtitle,
.home .hero__actions,
.home .hero-status__label,
.home .hero-status-card,
.home .hero-card,
.home .home-why__intro,
.home .home-why .feature-card {
  animation: frostline-home-enter 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home .hero__title {
  animation-delay: 80ms;
}

.home .hero__subtitle {
  animation-delay: 160ms;
}

.home .hero__actions {
  animation-delay: 240ms;
}

.home .hero-status__label {
  animation-delay: 320ms;
}

.home .hero-status-card:nth-child(1) {
  animation-delay: 390ms;
}

.home .hero-status-card:nth-child(2) {
  animation-delay: 460ms;
}

.home .hero-card {
  animation-delay: 300ms;
}

.home .home-why__intro {
  animation-delay: 520ms;
}

.home .home-why .feature-card:nth-child(1) {
  animation-delay: 600ms;
}

.home .home-why .feature-card:nth-child(2) {
  animation-delay: 680ms;
}

.home .home-why .feature-card:nth-child(3) {
  animation-delay: 760ms;
}

.home .home-why .feature-card:nth-child(4) {
  animation-delay: 840ms;
}

@keyframes frostline-home-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px 0;
  background: rgba(9, 16, 33, 0.92);
  backdrop-filter: blur(20px);
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-bar .site-header {
  top: 32px;
}

.site-announcement-host {
  display: block;
  position: fixed;
  top: var(--frostline-header-bottom, 72px);
  left: 0;
  right: 0;
  z-index: 19;
  padding-top: 0;
}

.site-announcement-host[hidden],
.service-status-host[hidden] {
  display: none;
}

.site-announcement {
  background: rgba(7, 18, 36, 0.98);
  border-top: 1px solid rgba(78, 199, 255, 0.12);
  border-bottom: 1px solid rgba(78, 199, 255, 0.24);
  box-shadow: 0 18px 34px rgba(0, 6, 18, 0.28);
}

.site-announcement__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 24px;
  color: var(--color-text);
}

.site-announcement__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(78, 199, 255, 0.24);
  border-radius: 10px;
  background: rgba(78, 199, 255, 0.1);
  color: var(--color-primary);
}

.site-announcement__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.site-announcement__content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 10px;
  min-width: 0;
}

.site-announcement__label {
  grid-row: 1;
  color: var(--color-primary);
  font-size: var(--text-2xs);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.site-announcement__title {
  grid-row: 1;
  overflow-wrap: anywhere;
  font-size: var(--text-base);
  line-height: 1.35;
  text-wrap: balance;
}

.site-announcement__message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-line;
  text-wrap: pretty;
}

.site-announcement__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-muted);
  cursor: pointer;
}

.site-announcement__close:hover {
  border-color: rgba(78, 199, 255, 0.3);
  background: rgba(78, 199, 255, 0.1);
  color: var(--color-text);
}

.site-announcement__close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.site-announcement__close svg {
  width: 18px;
  height: 18px;
}

.service-status-host {
  display: block;
  position: fixed;
  top: calc(var(--frostline-status-top, var(--frostline-header-bottom, 72px)) - 1px);
  left: 0;
  right: 0;
  z-index: 18;
}

.service-status {
  background: rgba(8, 15, 30, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.service-status__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 24px;
}

.service-status__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #45d483;
  box-shadow: 0 0 0 4px rgba(69, 212, 131, 0.14), 0 0 18px rgba(69, 212, 131, 0.28);
}

.service-status--issue .service-status__dot {
  background: #ff5d6c;
  box-shadow: 0 0 0 4px rgba(255, 93, 108, 0.16), 0 0 18px rgba(255, 93, 108, 0.28);
}

.service-status--maintenance .service-status__dot {
  background: #ffd166;
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.16), 0 0 18px rgba(255, 209, 102, 0.24);
}

.service-status__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.service-status__body strong {
  font-weight: 700;
}

.service-status__body span {
  color: var(--color-muted);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 48px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-nav-toggle__bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .mobile-nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .mobile-nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .mobile-nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.brand__icon {
  height: 45px;
  width: auto;
  display: inline-block;
  border-radius: 6px;
  box-shadow: none;
  flex-shrink: 0;
  object-fit: contain;
}

.primary-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 6px;
  gap: 4px;
  border: 1px solid rgba(133, 166, 210, 0.18);
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.74);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  color: #b7c7dc;
  font-size: var(--text-xs);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.primary-nav a::after {
  content: none;
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current_page_parent > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav a:hover {
  color: #04131c;
  background: linear-gradient(135deg, #58c9ff 0%, #3f7cff 100%);
  box-shadow: 0 10px 26px rgba(84, 215, 255, 0.2);
}

.primary-nav a:hover {
  transform: translateY(-1px);
}

@media (min-width: 1181px) {
  .primary-nav {
    position: absolute;
    top: 12px;
    left: calc(50% - 78px);
    transform: translateX(-50%);
  }
}

.cta-pill {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: var(--text-sm);
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  z-index: 0;
}

.cta-pill::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(155, 238, 255, 0.25), rgba(78, 199, 255, 0.25));
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
  filter: blur(12px);
}

.cta-pill::after {
  content: "\2192";
  font-size: var(--text-xs);
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.cta-pill:hover {
  border-color: transparent;
  color: #050315;
  background: var(--button-ice);
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(78, 199, 255, 0.32);
}

.cta-pill:hover::before {
  opacity: 0.85;
}

.cta-pill:hover::after {
  color: #050315;
  transform: translateX(3px);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher__link {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 15, 28, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-switcher__link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
}

.lang-switcher__link.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(78, 199, 255, 0.25);
}

.lang-switcher__flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 720px) {
  :root {
    --frostline-page-bg-image: url("../img/home-hero-bg-mobile.webp");
  }

  .site-announcement-host {
    padding-top: 0;
  }

  .site-announcement__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    min-height: 0;
    padding: 10px 16px;
  }

  .site-announcement__icon {
    width: 34px;
    height: 34px;
  }

  .site-announcement__content {
    display: block;
  }

  .site-announcement__label {
    display: block;
    margin-bottom: 2px;
    white-space: normal;
  }

  .site-announcement__title {
    display: block;
  }

  .site-announcement__message {
    margin-top: 2px;
    font-size: var(--text-xs);
  }

  .site-announcement__close {
    width: 36px;
    height: 36px;
  }

  .service-status__inner {
    align-items: flex-start;
    padding: 9px 16px;
  }

  .service-status__dot {
    margin-top: 5px;
  }

  .server-favorite {
    margin-left: 0;
  }
}

.hero {
  padding: 54px 0 44px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}

.hero-copy {
  padding-top: 52px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: var(--text-sm);
  color: var(--color-primary);
  width: min(100%, 350px);
  margin: 0 0 18px clamp(64px, 11vw, 180px);
  padding-left: 0.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  flex: 1 1 72px;
  max-width: 88px;
  height: 1px;
  display: block;
}

.hero__eyebrow::before {
  background: linear-gradient(90deg, transparent, var(--color-primary));
}

.hero__eyebrow::after {
  background: linear-gradient(90deg, var(--color-primary), transparent);
}

.hero__title {
  font-size: clamp(3rem, 5vw, 5.15rem);
  line-height: 0.96;
  margin: 0 0 20px;
  letter-spacing: 0;
  width: fit-content;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #dff6ff 42%, #65caff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(116, 213, 255, 0.24);
  filter: drop-shadow(0 0 10px rgba(78, 199, 255, 0.26));
  animation: hero-title-neon 3.8s ease-in-out infinite;
}

@keyframes hero-title-neon {
  0%,
  100% {
    -webkit-text-stroke-color: rgba(116, 213, 255, 0.2);
    filter: drop-shadow(0 0 8px rgba(78, 199, 255, 0.22));
  }

  50% {
    -webkit-text-stroke-color: rgba(116, 213, 255, 0.54);
    filter: drop-shadow(0 0 16px rgba(78, 199, 255, 0.48)) drop-shadow(0 0 34px rgba(76, 128, 255, 0.2));
  }
}

.hero__subtitle {
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 0 26px;
  font-size: var(--text-md);
}

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

.hero-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 22px;
}

.hero-status-card {
  --status-fill: 0%;
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(78, 199, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 28, 50, 0.78), rgba(8, 16, 31, 0.82));
  color: var(--color-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-status-card:hover,
.hero-status-card:focus-visible {
  border-color: rgba(78, 199, 255, 0.38);
  transform: translateY(-1px);
}

.hero-status-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.hero-status-card__top,
.hero-status-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.hero-status-card__top strong {
  font-size: var(--text-base);
}

.hero-status-card__top span,
.hero-status-card__bottom {
  color: var(--color-muted);
  font-size: var(--text-2xs);
  font-weight: 700;
}

.hero-status-card__bottom b {
  color: var(--color-primary-strong);
  white-space: nowrap;
}

.hero-status-card__meter {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-status-card__meter span {
  display: block;
  width: var(--status-fill);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.hero-featured-server {
  --featured-fill: 0%;
  display: block;
  max-width: 560px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(78, 199, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(18, 31, 54, 0.86), rgba(9, 18, 34, 0.92));
  box-shadow: 0 18px 48px rgba(3, 10, 24, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-featured-server:hover,
.hero-featured-server:focus-visible {
  border-color: rgba(78, 199, 255, 0.42);
  box-shadow: 0 22px 60px rgba(78, 199, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.hero-featured-server:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.hero-featured-server__header,
.hero-featured-server__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-featured-server__eyebrow {
  color: var(--color-primary);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-featured-server__status {
  color: #76f6c8;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-featured-server strong {
  display: block;
  margin: 7px 0 5px;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
}

.hero-featured-server__meta {
  color: var(--color-muted);
  font-weight: 600;
  font-size: var(--text-sm);
}

.hero-featured-server__activity {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--color-muted);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-featured-server__activity b {
  color: var(--color-primary-strong);
}

.hero-featured-server__meter {
  display: block;
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-featured-server__meter span {
  display: block;
  width: var(--featured-fill);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 0 18px rgba(78, 199, 255, 0.42);
  transition: width 0.45s ease;
}

.btn {
  position: relative;
  border: none;
  border-radius: 999px;
  padding: 15px 28px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #030214;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  filter: blur(18px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.2s ease;
}

.btn--primary {
  background: var(--button-ice);
  color: #050315;
  box-shadow: 0 15px 45px rgba(78, 199, 255, 0.34);
}

.btn--primary::after {
  background: linear-gradient(120deg, rgba(190, 245, 255, 0.45), rgba(109, 228, 255, 0.45));
}

.btn--ghost {
  background: rgba(78, 199, 255, 0.12);
  color: #d9f6ff;
  box-shadow: inset 0 0 0 1px rgba(109, 228, 255, 0.45);
}

.btn--ghost::after {
  background: rgba(78, 199, 255, 0.14);
}

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

.btn:hover::after {
  opacity: 0.9;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--text-base);
}

.hero-card {
  background: linear-gradient(145deg, rgba(18, 31, 54, 0.88), rgba(12, 21, 39, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 18px;
  padding: clamp(22px, 2.5vw, 32px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(6, 12, 28, 0.38);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(78, 199, 255, 0.2), transparent 60%);
  z-index: 0;
  opacity: 0.5;
  transition: opacity 0.8s ease, transform 1s ease;
}

.hero-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.stat {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(4, 11, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat__value {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-primary-strong);
  margin-bottom: 6px;
}

.hero-card[data-reveal].is-visible {
  box-shadow: var(--shadow-soft);
}

.hero-card[data-reveal].is-visible::after {
  opacity: 0.85;
  transform: scale(1.05);
}

.spotlight-leaderboard {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.spotlight-leaderboard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.spotlight-leaderboard__top h3 {
  margin: 0 0 4px;
  font-size: var(--text-lg);
}

.spotlight-leaderboard__top p,
.spotlight-leaderboard__desc {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-base);
}

.spotlight-leaderboard__top a {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
}

.spotlight-leaderboard__top a:hover,
.spotlight-leaderboard__top a:focus-visible {
  text-shadow: 0 0 12px rgba(78, 199, 255, 0.62);
}

.spotlight-leaderboard__game-tabs,
.spotlight-leaderboard__server-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spotlight-leaderboard__game-tabs {
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(4, 10, 22, 0.48);
}

.spotlight-leaderboard__server-tabs {
  margin-bottom: 12px;
}

.spotlight-leaderboard__tab,
.spotlight-leaderboard__server-tab {
  border: 0;
  cursor: pointer;
  color: var(--color-muted);
  font: inherit;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-leaderboard__tab {
  flex: 1 1 120px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
}

.spotlight-leaderboard__server-tab {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.spotlight-leaderboard__tab.is-active,
.spotlight-leaderboard__server-tab.is-active {
  color: #041020;
  background: var(--button-ice);
  box-shadow: 0 10px 26px rgba(78, 199, 255, 0.18);
}

.spotlight-leaderboard__tab:focus-visible,
.spotlight-leaderboard__server-tab:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.spotlight-leaderboard__panel,
.spotlight-leaderboard__subpanel {
  display: none;
}

.spotlight-leaderboard__panel.is-active,
.spotlight-leaderboard__subpanel.is-active {
  display: block;
}

.spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__desc,
.spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__header,
.spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__row,
.spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__empty,
.spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__desc,
.spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__header,
.spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__row,
.spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__empty {
  animation: spotlight-fade-down 880ms cubic-bezier(0.16, 0.8, 0.2, 1) both;
}

.spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__header,
.spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__header {
  animation-delay: 110ms;
}

.spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__row:nth-of-type(1),
.spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__row:nth-of-type(1) {
  animation-delay: 210ms;
}

.spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__row:nth-of-type(2),
.spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__row:nth-of-type(2) {
  animation-delay: 320ms;
}

.spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__row:nth-of-type(3),
.spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__row:nth-of-type(3) {
  animation-delay: 430ms;
}

.spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__row:nth-of-type(4),
.spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__row:nth-of-type(4) {
  animation-delay: 540ms;
}

.spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__row:nth-of-type(5),
.spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__row:nth-of-type(5) {
  animation-delay: 650ms;
}

@keyframes spotlight-fade-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spotlight-leaderboard__desc {
  margin-bottom: 12px;
}

.spotlight-leaderboard__header,
.spotlight-leaderboard__row {
  display: grid;
  gap: 10px;
  align-items: center;
}

.spotlight-leaderboard__header {
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto) minmax(64px, auto);
}

.spotlight-leaderboard__row {
  grid-template-columns: 24px minmax(0, 1fr) minmax(72px, auto) minmax(64px, auto);
}

.spotlight-leaderboard__header--single {
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto);
}

.spotlight-leaderboard__row--single {
  grid-template-columns: 24px minmax(0, 1fr) minmax(72px, auto);
}

.spotlight-leaderboard__header {
  margin-bottom: 6px;
  color: var(--color-muted);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spotlight-leaderboard__header span:not(:first-child) {
  text-align: right;
}

.spotlight-leaderboard__row {
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 12px;
  color: var(--color-text);
  text-decoration: none;
}

.spotlight-leaderboard__row:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.035);
}

a.spotlight-leaderboard__row:hover,
a.spotlight-leaderboard__row:focus-visible {
  background: rgba(78, 199, 255, 0.1);
}

.spotlight-leaderboard__rank {
  color: var(--color-primary);
  font-weight: 700;
}

.spotlight-leaderboard__player {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.spotlight-leaderboard__player > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-leaderboard__avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-primary-strong);
  font-size: var(--text-xs);
  font-weight: 700;
}

.spotlight-leaderboard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-leaderboard__row strong,
.spotlight-leaderboard__secondary {
  text-align: right;
  white-space: nowrap;
}

.spotlight-leaderboard__row strong {
  color: var(--color-primary-strong);
}

.spotlight-leaderboard__secondary {
  color: var(--color-muted);
  font-weight: 700;
}

.spotlight-leaderboard__empty {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-muted);
}

.section {
  padding: 90px 0;
}

.section--home-why {
  padding: 42px 0 78px;
}
.page-template-page-servers .section:first-of-type {
  padding-top: 30px;
}
.page-template-page-servers #main-content {
  margin-top: -30px;
}

.server-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.server-toolbar .server-switcher {
  margin: 0;
}

.section--servers .section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary-strong);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.section--servers .section__eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary-strong), var(--color-accent));
}

.section--servers .section__heading {
  font-size: clamp(2.2rem, 3vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.server-switcher {
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(142, 178, 230, 0.13);
}

.server-switcher .rules-switcher__button {
  min-height: 40px;
  padding: 0 12px 0 10px;
  border-radius: 11px;
  color: #aebfdc;
  font-size: var(--text-sm);
}

.server-switcher .rules-switcher__button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.server-switcher .rules-switcher__button.is-active {
  color: #ffffff;
  background: rgba(78, 199, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(109, 228, 255, 0.4);
}

.server-switcher .rules-switcher__icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.server-switcher__count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-muted);
  font-size: var(--text-2xs);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.server-switcher .rules-switcher__button.is-active .server-switcher__count {
  background: rgba(109, 228, 255, 0.2);
  color: #dff6ff;
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-muted);
  font-size: var(--text-xs);
  margin-bottom: 12px;
}

.section__heading {
  font-size: 2.4rem;
  margin: 0 0 16px;
}

.section__description {
  max-width: 640px;
  color: var(--color-muted);
  margin-bottom: 48px;
}

.section--home-why .section__description {
  max-width: 760px;
  margin-bottom: 28px;
}

.home-why {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 28, 50, 0.78), rgba(10, 18, 34, 0.86));
  box-shadow: 0 22px 70px rgba(4, 10, 24, 0.28);
}

.glass-surface {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.glass-surface[data-reveal].is-visible {
  background: linear-gradient(145deg, rgba(17, 26, 43, 0.95), rgba(13, 21, 37, 0.92));
  box-shadow: 0 30px 90px rgba(6, 10, 22, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 20px;
  border-radius: 12px;
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(78, 199, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.feature-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(78, 199, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: var(--text-md);
  color: var(--color-primary);
}

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

.highlight-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(17, 26, 43, 0.95), rgba(26, 18, 40, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.35s ease, box-shadow 0.45s ease, transform 0.45s ease;
}

.highlight-card[data-reveal].is-visible {
  border-color: rgba(78, 199, 255, 0.22);
  box-shadow: 0 20px 70px rgba(6, 10, 22, 0.55);
  transform: translate3d(0, 0, 0);
}

.server-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
  gap: 22px;
  align-items: stretch;
}

.server-board > .alert {
  grid-column: 1 / -1;
}

.server-dashboard {
  display: block;
}

.server-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.server-refresh-status {
  color: var(--color-muted);
  font-weight: 700;
}

.server-refresh-status.is-updating {
  color: var(--color-primary-strong);
}

.server-refresh-status.is-error {
  color: #ff7a88;
}

.server-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  background: linear-gradient(180deg, #0e1b32 0%, #0b1529 100%);
  border: 1px solid rgba(142, 178, 230, 0.14);
  box-shadow: 0 24px 50px -32px rgba(0, 0, 0, 0.95);
}

.server-card svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.server-card svg.server-icon--fill {
  fill: currentColor;
  stroke: none;
}

.server-board.is-reveal-ready .server-card:not(.server-card--skeleton) {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

.server-board.is-reveal-ready .server-card.is-server-revealed:not(.server-card--skeleton) {
  animation: server-card-fade-in 0.94s cubic-bezier(0.2, 0.78, 0.24, 1) both;
  animation-delay: var(--server-reveal-delay, 0ms);
}

@keyframes server-card-fade-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .server-board.is-reveal-ready .server-card:not(.server-card--skeleton),
  .server-board.is-reveal-ready .server-card.is-server-revealed:not(.server-card--skeleton) {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

.server-card--clickable {
  cursor: pointer;
  transition: translate 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* translate instead of transform: the reveal animation keeps its final transform. */
.server-card--clickable:hover {
  translate: 0 -3px;
  border-color: rgba(109, 228, 255, 0.3);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
}

.server-card--clickable:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.server-card__media {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 196px;
  padding: 14px;
  overflow: hidden;
  isolation: isolate;
}

/* --server-image is set lazily by hydrateServerBackgrounds(); the gradients show until then. */
.server-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 11, 24, 0.44) 0%, rgba(5, 11, 24, 0.05) 34%, rgba(14, 27, 50, 0.6) 70%, #0e1b32 100%),
    var(--server-image, none) center / cover no-repeat,
    radial-gradient(120% 90% at 12% 0%, rgba(78, 199, 255, 0.3), transparent 55%),
    radial-gradient(100% 90% at 100% 100%, rgba(143, 139, 255, 0.26), transparent 60%),
    linear-gradient(135deg, #172b4d, #0b1629);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s ease;
}

.server-card--clickable:hover .server-card__media::before {
  transform: scale(1.04);
}

.server-card--fallback .server-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/brand-custom.webp") 50% 40% / 92px no-repeat;
  opacity: 0.09;
  pointer-events: none;
}

.server-card[data-status="offline"] .server-card__media::before {
  filter: grayscale(1) brightness(0.6);
}

.server-card[data-status="maintenance"] .server-card__media::before {
  filter: saturate(0.5) brightness(0.78);
}

.server-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.server-card__chips,
.server-card__top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.server-card__chips {
  flex-wrap: wrap;
}

.server-card__top-actions {
  flex: none;
}

.server-game {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(6, 13, 28, 0.72);
  backdrop-filter: blur(8px);
  color: #f4f8ff;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.server-game__icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

.server-card__badge-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.server-card__badge-list:empty {
  display: none;
}

.server-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(6, 13, 28, 0.72);
  backdrop-filter: blur(8px);
  color: #f5f8ff;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-badge--new {
  border-color: rgba(93, 199, 255, 0.38);
  background: linear-gradient(rgba(93, 199, 255, 0.16), rgba(93, 199, 255, 0.16)), rgba(6, 13, 28, 0.72);
  color: #bdefff;
}

.server-badge--active {
  border-color: rgba(62, 230, 164, 0.34);
  background: linear-gradient(rgba(62, 230, 164, 0.12), rgba(62, 230, 164, 0.12)), rgba(6, 13, 28, 0.72);
  color: #a9ffd6;
}

.server-badge--favorite {
  border-color: rgba(255, 209, 102, 0.4);
  background: linear-gradient(rgba(255, 209, 102, 0.14), rgba(255, 209, 102, 0.14)), rgba(6, 13, 28, 0.72);
  color: #ffd166;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(6, 13, 28, 0.72);
  backdrop-filter: blur(8px);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.server-favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(6, 13, 28, 0.72);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-size: var(--text-base);
  line-height: 1;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.server-favorite:hover,
.server-favorite:focus-visible {
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(255, 209, 102, 0.1);
  color: #ffe08a;
  transform: translateY(-1px);
}

.server-favorite.is-active {
  border-color: rgba(255, 209, 102, 0.58);
  background: rgba(255, 209, 102, 0.15);
  color: #ffd166;
}

.server-card--skeleton {
  pointer-events: none;
}

.server-card--skeleton .server-card__media::before {
  background: linear-gradient(135deg, #14264a, #0c172c);
}

.server-skeleton {
  display: inline-flex;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.server-skeleton--tag {
  width: 78px;
  height: 30px;
  border-radius: 10px;
}

.server-skeleton--status {
  width: 86px;
  height: 30px;
}

.server-skeleton--title {
  display: block;
  width: 150px;
  height: 26px;
  margin-bottom: 8px;
  border-radius: 8px;
}

.server-skeleton--line {
  display: block;
  width: 190px;
  max-width: 100%;
  height: 14px;
}

.server-skeleton--meter {
  display: block;
  width: 100%;
  height: 6px;
}

.server-skeleton--address {
  flex: 1;
  height: 46px;
  border-radius: 13px;
}

.server-skeleton--button {
  width: 110px;
  height: 46px;
  border-radius: 13px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.status-pill--online {
  color: #8ff5c9;
  border-color: rgba(62, 230, 164, 0.38);
}

.status-pill--maintenance {
  color: #ffd88a;
  border-color: rgba(255, 196, 75, 0.4);
}

.status-pill--offline {
  color: #ffb3bf;
  border-color: rgba(255, 107, 127, 0.4);
}

.status-pill--unknown {
  color: #c4cfdd;
  border-color: rgba(196, 207, 221, 0.35);
}

/* Leaderboards served from an old cache while the game servers are unreachable. */
.stats-stale-note {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #ffd88a;
}

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

.server-card__heading {
  min-width: 0;
}

.server-card__title {
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: var(--text-xl);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.server-card__tagline {
  margin: 4px 0 0;
  color: rgba(214, 226, 246, 0.86);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.server-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 10px 20px 20px;
}

.server-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.server-card__map,
.server-card__ping {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.server-card__meta svg {
  width: 15px;
  height: 15px;
}

.server-mapname {
  overflow: hidden;
  color: #c9d7ef;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: var(--text-xs);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-card__ping {
  flex: none;
  font-weight: 700;
}

.server-card__ping[data-ping-level="good"] {
  color: #8ff5c9;
}

.server-card__ping[data-ping-level="ok"] {
  color: #ffd88a;
}

.server-card__ping[data-ping-level="bad"] {
  color: #ffb3bf;
}

.server-card__load {
  display: grid;
  gap: 9px;
}

.server-card__meter {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.server-card__meter span {
  display: block;
  width: var(--server-fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4ec7ff, #8f8bff);
  transition: width 0.6s ease;
}

.server-card[data-status="offline"] .server-card__meter span {
  background: rgba(255, 255, 255, 0.14);
}

.server-maplink {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  color: var(--color-primary-strong);
  font-size: var(--text-xs);
  font-weight: 600;
}

.server-maplink svg {
  width: 14px;
  height: 14px;
}

.server-maplink:hover,
.server-maplink:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.server-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(93, 199, 255, 0.22);
  border-radius: 12px;
  background: rgba(93, 199, 255, 0.08);
  color: #d8f6ff;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.server-card[data-status="offline"] .server-note {
  border-color: rgba(255, 107, 127, 0.24);
  background: rgba(255, 107, 127, 0.07);
  color: #ffd9df;
}

.server-note[hidden] {
  display: none;
}

.toast-host {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.site-toast {
  transform: translateY(12px);
  opacity: 0;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 13, 26, 0.94);
  color: #f5f8ff;
  box-shadow: 0 18px 46px rgba(2, 6, 16, 0.42);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.35;
  backdrop-filter: blur(14px);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.site-toast::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: #59ff82;
  box-shadow: 0 0 12px rgba(89, 255, 130, 0.5);
  vertical-align: 0.1em;
}

.site-toast--error::before {
  background: #ff6c6c;
  box-shadow: 0 0 12px rgba(255, 108, 108, 0.45);
}

.site-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .toast-host {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
  }
}

.server-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.server-count__main,
.server-count__button {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.server-count strong {
  color: #ffffff;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}

.server-count__percent {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: 600;
}

.server-count__value {
  position: relative;
  display: inline-block;
  line-height: 1.05;
  vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}

.server-count__value.is-animating {
  overflow: hidden;
  height: 1.05em;
  vertical-align: bottom;
}

.server-count__digit {
  position: absolute;
  inset: 0;
  display: block;
  transition: transform 850ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 850ms ease;
}

.server-count__value.is-up .server-count__digit--current,
.server-count__value.is-down .server-count__digit--current {
  transform: translateY(0);
  opacity: 1;
}

.server-count__value.is-up .server-count__digit--next {
  transform: translateY(120%);
  opacity: 0;
}

.server-count__value.is-down .server-count__digit--next {
  transform: translateY(-120%);
  opacity: 0;
}

.server-count__value.is-running.is-up .server-count__digit--current {
  transform: translateY(-120%);
  opacity: 0;
}

.server-count__value.is-running.is-down .server-count__digit--current {
  transform: translateY(120%);
  opacity: 0;
}

.server-count__value.is-running .server-count__digit--next {
  transform: translateY(0);
  opacity: 1;
}

.server-count__button {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.server-count__button:hover .server-count__max,
.server-count__button:focus-visible .server-count__max {
  color: #ffffff;
  text-decoration: underline;
}

.server-count__button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 8px;
}

.server-copy {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.server-address {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  height: 46px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(142, 178, 230, 0.14);
  border-radius: 13px;
  background: rgba(2, 8, 20, 0.55);
  color: #c5d3ee;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: var(--text-2xs);
  font-weight: 600;
  cursor: copy;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.server-address span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-address svg {
  color: var(--color-muted);
}

.server-address:hover,
.server-address:focus-visible {
  border-color: rgba(109, 228, 255, 0.4);
  background: rgba(2, 8, 20, 0.75);
  color: #ffffff;
}

.server-address:focus-visible,
.server-copy__button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.server-address[hidden] {
  display: none;
}

.server-copy__button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(142, 178, 230, 0.24);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #dfe8f8;
  font: inherit;
  font-size: var(--text-base);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.server-copy__button:hover {
  border-color: rgba(142, 178, 230, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Copy feedback floats above the buttons so it never shifts the card height. */
.server-copy__status {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 2;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(109, 228, 255, 0.3);
  border-radius: 9px;
  background: rgba(7, 13, 26, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  color: #e9f7ff;
  font-size: var(--text-2xs);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.server-copy__status.is-visible {
  opacity: 1;
  transform: none;
}

.server-copy__status.is-error {
  border-color: rgba(255, 107, 127, 0.4);
  color: #ffb3bf;
}

.minecraft-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease;
  contain: layout paint style;
}

.minecraft-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.minecraft-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.86);
}

.minecraft-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  max-height: 82vh;
  overflow: auto;
  border-radius: 24px;
  padding: 32px;
  background: linear-gradient(160deg, rgba(14, 22, 40, 0.97), rgba(6, 10, 22, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 46px rgba(3, 7, 18, 0.5);
  transform: translateY(8px);
  transition: transform 120ms ease;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  contain: layout paint style;
}

.minecraft-modal__dialog--wide {
  width: min(1400px, 100%);
}

.minecraft-modal.is-open .minecraft-modal__dialog {
  transform: translateY(0);
}

.minecraft-modal.is-open .minecraft-modal__close,
.minecraft-modal.is-open .minecraft-modal__eyebrow,
.minecraft-modal.is-open .minecraft-modal__title,
.minecraft-modal.is-open .minecraft-modal__desc,
.minecraft-modal.is-open .server-players-modal__meta,
.minecraft-modal.is-open .server-players-modal__list,
.minecraft-modal.is-open .minecraft-modal__tabs,
.minecraft-modal.is-open .minecraft-modal__panel,
.minecraft-modal.is-open .jb-modal__grid,
.minecraft-modal.is-open .alert {
  animation: modalContentIn 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.minecraft-modal.is-open .minecraft-modal__close {
  animation-delay: 90ms;
}

.minecraft-modal.is-open .minecraft-modal__eyebrow {
  animation-delay: 140ms;
}

.minecraft-modal.is-open .minecraft-modal__title {
  animation-delay: 220ms;
}

.minecraft-modal.is-open .minecraft-modal__desc {
  animation-delay: 300ms;
}

.minecraft-modal.is-open .server-players-modal__meta,
.minecraft-modal.is-open .minecraft-modal__tabs,
.minecraft-modal.is-open .jb-modal__grid,
.minecraft-modal.is-open .alert {
  animation-delay: 420ms;
}

.minecraft-modal.is-open .server-players-modal__list,
.minecraft-modal.is-open .minecraft-modal__panel {
  animation-delay: 520ms;
}

.minecraft-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(3, 6, 12, 0.7);
  color: var(--color-text);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.minecraft-modal__close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(8, 14, 30, 0.85);
}

.minecraft-modal__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: var(--text-2xs);
  color: var(--color-muted);
  margin: 0 0 10px;
}

.minecraft-modal__title {
  margin: 0 0 10px;
  font-size: var(--text-2xl);
}

.minecraft-modal__desc {
  margin: 0 0 24px;
  color: var(--color-muted);
}

.minecraft-modal__tabs {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.server-players-modal__meta {
  margin: 18px 0 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 18px;
}

.server-players-modal__label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--text-2xs);
  color: var(--color-muted);
  display: block;
  margin-bottom: 6px;
}

.server-players-modal__list {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 9, 20, 0.8);
  padding: 14px;
  max-height: 46vh;
  overflow: auto;
}

.server-players-modal__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.server-players-modal__empty {
  margin: 0;
  color: var(--color-muted);
}

.server-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.server-player__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-primary-strong);
  overflow: hidden;
  flex-shrink: 0;
}

.server-player__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-player__name {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}


.minecraft-modal__panel {
  padding: 20px;
  border-radius: 20px;
  background: rgba(5, 9, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.minecraft-modal__empty {
  margin: 0;
  color: var(--color-muted);
}

.mc-toplist {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 9, 20, 0.75);
  overflow: hidden;
}

.mc-toplist__header,
.mc-toplist__row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.6fr);
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
}

.mc-toplist--dual .mc-toplist__header,
.mc-toplist--dual .mc-toplist__row {
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 0.6fr) minmax(120px, 0.7fr);
}

.mc-toplist__header {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--text-2xs);
  color: var(--color-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.minecraft-modal.is-open .mc-toplist__header,
.minecraft-modal.is-open .jb-modal__header {
  animation: leaderboardHeaderIn 700ms cubic-bezier(0.16, 1, 0.3, 1) 620ms both;
}

.mc-toplist__header span:not(:first-child) {
  text-align: center;
}

.mc-toplist__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease;
  content-visibility: auto;
  contain-intrinsic-size: 60px;
}

.minecraft-modal.is-open .mc-toplist__row,
.minecraft-modal.is-open .jb-modal__row,
.minecraft-modal.is-open .jb-card,
.minecraft-modal.is-open .minecraft-modal__command,
.minecraft-modal.is-open .server-player {
  animation: leaderboardRowIn 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.minecraft-modal.is-open .mc-toplist__row:nth-child(2),
.minecraft-modal.is-open .jb-modal__row:nth-child(2),
.minecraft-modal.is-open .jb-card:nth-child(1),
.minecraft-modal.is-open .minecraft-modal__command:nth-child(1),
.minecraft-modal.is-open .server-player:nth-child(1) {
  animation-delay: 720ms;
}

.minecraft-modal.is-open .mc-toplist__row:nth-child(3),
.minecraft-modal.is-open .jb-modal__row:nth-child(3),
.minecraft-modal.is-open .jb-card:nth-child(2),
.minecraft-modal.is-open .minecraft-modal__command:nth-child(2),
.minecraft-modal.is-open .server-player:nth-child(2) {
  animation-delay: 820ms;
}

.minecraft-modal.is-open .mc-toplist__row:nth-child(4),
.minecraft-modal.is-open .jb-modal__row:nth-child(4),
.minecraft-modal.is-open .minecraft-modal__command:nth-child(3),
.minecraft-modal.is-open .server-player:nth-child(3) {
  animation-delay: 920ms;
}

.minecraft-modal.is-open .mc-toplist__row:nth-child(5),
.minecraft-modal.is-open .jb-modal__row:nth-child(5),
.minecraft-modal.is-open .minecraft-modal__command:nth-child(4),
.minecraft-modal.is-open .server-player:nth-child(4) {
  animation-delay: 1020ms;
}

.minecraft-modal.is-open .mc-toplist__row:nth-child(6),
.minecraft-modal.is-open .jb-modal__row:nth-child(6),
.minecraft-modal.is-open .minecraft-modal__command:nth-child(5),
.minecraft-modal.is-open .server-player:nth-child(5) {
  animation-delay: 1120ms;
}

.minecraft-modal.is-open .mc-toplist__row:nth-child(7),
.minecraft-modal.is-open .jb-modal__row:nth-child(7),
.minecraft-modal.is-open .minecraft-modal__command:nth-child(6),
.minecraft-modal.is-open .server-player:nth-child(6) {
  animation-delay: 1220ms;
}

.minecraft-modal.is-open .mc-toplist__row:nth-child(8),
.minecraft-modal.is-open .jb-modal__row:nth-child(8),
.minecraft-modal.is-open .minecraft-modal__command:nth-child(7),
.minecraft-modal.is-open .server-player:nth-child(7) {
  animation-delay: 1320ms;
}

.minecraft-modal.is-open .mc-toplist__row:nth-child(9),
.minecraft-modal.is-open .jb-modal__row:nth-child(9),
.minecraft-modal.is-open .minecraft-modal__command:nth-child(8),
.minecraft-modal.is-open .server-player:nth-child(8) {
  animation-delay: 1420ms;
}

.minecraft-modal.is-open .mc-toplist__row:nth-child(10),
.minecraft-modal.is-open .jb-modal__row:nth-child(10),
.minecraft-modal.is-open .minecraft-modal__command:nth-child(9),
.minecraft-modal.is-open .server-player:nth-child(9) {
  animation-delay: 1520ms;
}

.minecraft-modal.is-open .mc-toplist__row:nth-child(11),
.minecraft-modal.is-open .jb-modal__row:nth-child(11),
.minecraft-modal.is-open .minecraft-modal__command:nth-child(10),
.minecraft-modal.is-open .server-player:nth-child(10) {
  animation-delay: 1620ms;
}

.mc-toplist__row:last-child {
  border-bottom: none;
}

a.mc-toplist__row:hover,
a.mc-toplist__row:focus-visible {
  background: rgba(76, 163, 255, 0.08);
}

.mc-toplist__player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mc-toplist__player span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-primary-strong);
  overflow: hidden;
  flex-shrink: 0;
}

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

.mc-stat {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.minecraft-modal__commands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.minecraft-modal__heading {
  grid-column: 1 / -1;
  margin: 8px 0 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: var(--text-2xs);
  color: var(--color-muted);
}

.minecraft-modal__heading:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.minecraft-modal__command {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(5, 9, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.minecraft-modal__command code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
  color: var(--color-primary-strong);
  font-size: var(--text-base);
}

.minecraft-modal__command span {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.jb-modal__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 1.4fr);
  gap: 20px;
}

.jb-modal__spotlight {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jb-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(5, 9, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jb-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: var(--text-2xs);
  color: var(--color-muted);
  margin: 0;
}

.jb-card__empty {
  color: var(--color-muted);
  margin: 0;
}

.jb-card__stats {
  display: grid;
  gap: 10px;
}

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

.jb-card__stats span {
  font-size: var(--text-2xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.jb-card__stats strong {
  font-size: var(--text-lg);
  display: block;
}

.jb-player {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.jb-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-primary-strong);
  overflow: hidden;
  flex-shrink: 0;
}

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

.jb-player__name {
  font-weight: 600;
}

.jb-modal__leaderboard {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 9, 20, 0.75);
  overflow-x: auto;
  overscroll-behavior: contain;
}

.jb-modal__table {
  min-width: 520px;
}

.jb-modal__table--arena {
  width: 100%;
  min-width: 100%;
}

.jb-modal__table--arena .jb-modal__header,
.jb-modal__table--arena .jb-modal__row {
  grid-template-columns: minmax(160px, 1.4fr) minmax(90px, 0.65fr) repeat(5, minmax(60px, 0.55fr));
}

.jb-modal__table--arena .jb-modal__header span:not(:first-child),
.jb-modal__table--arena .jb-stat {
  text-align: center;
}

.jb-modal__table--minigames {
  width: 100%;
  min-width: 100%;
}

.jb-modal__table--minigames .jb-modal__header,
.jb-modal__table--minigames .jb-modal__row {
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.6fr);
}

.jb-modal__table--minigames .jb-modal__header span:not(:first-child),
.jb-modal__table--minigames .jb-stat {
  text-align: center;
}

.jb-modal__table--retake {
  width: 100%;
  min-width: 100%;
}

.jb-modal__table--retake .jb-modal__header,
.jb-modal__table--retake .jb-modal__row {
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(90px, 0.55fr));
}

.jb-modal__table--retake .jb-modal__header span:not(:first-child),
.jb-modal__table--retake .jb-stat {
  text-align: center;
}

.jb-modal__leaderboard .jb-modal__table:not(.jb-modal__table--arena):not(.jb-modal__table--minigames):not(.jb-modal__table--retake) .jb-modal__header span:not(:first-child),
.jb-modal__leaderboard .jb-modal__table:not(.jb-modal__table--arena):not(.jb-modal__table--minigames):not(.jb-modal__table--retake) .jb-stat {
  text-align: center;
}

.jb-modal__header,
.jb-modal__row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(80px, 0.6fr));
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
}

.jb-modal__header {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--text-2xs);
  color: var(--color-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.jb-modal__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  content-visibility: auto;
  contain-intrinsic-size: 66px;
}

.jb-modal__row:last-child {
  border-bottom: none;
}

.jb-modal__player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.jb-modal__player a,
.jb-modal__player span {
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jb-stat {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@keyframes modalContentIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes leaderboardHeaderIn {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes leaderboardRowIn {
  from {
    opacity: 0;
    transform: translate3d(0, -12px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .minecraft-modal,
  .minecraft-modal__dialog {
    transition: none;
  }

  .minecraft-modal__dialog {
    transform: none;
  }

  .minecraft-modal.is-open .minecraft-modal__close,
  .minecraft-modal.is-open .minecraft-modal__eyebrow,
  .minecraft-modal.is-open .minecraft-modal__title,
  .minecraft-modal.is-open .minecraft-modal__desc,
  .minecraft-modal.is-open .server-players-modal__meta,
  .minecraft-modal.is-open .server-players-modal__list,
  .minecraft-modal.is-open .minecraft-modal__tabs,
  .minecraft-modal.is-open .minecraft-modal__panel,
  .minecraft-modal.is-open .jb-modal__grid,
  .minecraft-modal.is-open .alert,
  .minecraft-modal.is-open .mc-toplist__header,
  .minecraft-modal.is-open .jb-modal__header,
  .minecraft-modal.is-open .mc-toplist__row,
  .minecraft-modal.is-open .jb-modal__row,
  .minecraft-modal.is-open .jb-card,
  .minecraft-modal.is-open .minecraft-modal__command,
  .minecraft-modal.is-open .server-player {
    animation: none;
  }

  .server-count__digit {
    transition: none;
  }
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.live-indicator::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #59ff82;
  box-shadow: 0 0 10px #59ff82;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.contact-page {
  position: relative;
  padding-top: calc(var(--frostline-fixed-stack-height, 88px) + 28px);
  padding-bottom: 188px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 12, 26, 0.82) 0%, rgba(4, 12, 26, 0.96) 42%, rgba(2, 4, 9, 1) 76%, rgba(2, 4, 9, 1) 100%),
    linear-gradient(90deg, rgba(4, 14, 31, 0.4), rgba(4, 14, 31, 0.16), rgba(4, 14, 31, 0.56)),
    var(--frostline-page-bg-image) center 32% / cover no-repeat;
}

.page-template-page-contact #main-content,
.page-template-page-contact-php #main-content {
  padding-top: 0;
}

.page-template-page-contact .site-footer,
.page-template-page-contact-php .site-footer {
  margin-top: 0;
}

.page-template-page-vanliga-fragor .site-footer,
.page-template-page-vanliga-fragor-php .site-footer {
  margin-top: 0;
}

.page-template-page-servers .section:first-of-type,
.page-template-page-regler .section:first-of-type,
.page-template-page-regler-php .section:first-of-type,
.page-template-page-banlista .section:first-of-type,
.page-template-page-banlista-php .section:first-of-type {
  padding-top: calc(var(--frostline-fixed-stack-height, 88px) + 28px);
}

.contact-page::after,
.section--faq::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 260px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 4, 9, 0) 0%, #020409 38%, #020409 100%);
}

.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 16% 34%, rgba(78, 199, 255, 0.14), transparent 34%),
    linear-gradient(180deg, transparent 0%, rgba(4, 12, 26, 0.68) 40%, rgba(2, 4, 9, 1) 74%, rgba(2, 4, 9, 1) 100%);
}

.contact-page > .site-container {
  position: relative;
  z-index: 1;
}

.contact-page__hero {
  max-width: 780px;
  margin-bottom: 28px;
}

.contact-page .section__description strong {
  color: var(--color-primary-strong);
}

.contact-page__status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(126, 162, 197, 0.18);
  background: rgba(7, 18, 38, 0.58);
  color: rgba(214, 230, 255, 0.84);
  font-size: var(--text-sm);
  font-weight: 700;
}

.contact-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(109, 228, 255, 0.88);
  box-shadow: 0 0 14px rgba(109, 228, 255, 0.45);
}

.contact-status-pill--online::before {
  background: #34f28a;
  box-shadow: 0 0 14px rgba(52, 242, 138, 0.72);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.76fr) minmax(0, 1.42fr);
  gap: 30px;
  align-items: stretch;
}

.contact-card,
.contact-form {
  padding: clamp(24px, 2.5vw, 34px);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8, 20, 40, 0.82), rgba(4, 11, 24, 0.9));
  border: 1px solid rgba(126, 162, 197, 0.16);
  box-shadow: 0 28px 90px rgba(0, 6, 18, 0.42);
  backdrop-filter: blur(14px);
}

.contact-card h2,
.contact-form h2 {
  position: relative;
  margin: 0 0 22px;
  font-size: clamp(1.18rem, 1.4vw, 1.38rem);
  line-height: 1.2;
}

.contact-card h2::after,
.contact-form h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 0 12px rgba(78, 199, 255, 0.42);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list__item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 54px;
  color: var(--color-muted);
}

.contact-list__icon,
.contact-discord-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 26%, rgba(105, 210, 255, 0.24), rgba(56, 130, 255, 0.14) 52%, rgba(45, 31, 124, 0.62));
  color: var(--color-primary-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-list__icon svg,
.contact-discord-card__icon svg,
.contact-input-lock,
.contact-submit svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.contact-list__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.contact-list__content strong {
  color: var(--color-text);
  font-weight: 700;
}

.contact-list__content a,
.contact-list__content span {
  color: rgba(214, 230, 255, 0.72);
  overflow-wrap: anywhere;
}

.contact-list__content a:hover {
  color: var(--color-primary-strong);
}

.contact-discord-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(126, 162, 197, 0.14);
  background: rgba(7, 18, 38, 0.58);
}

.contact-discord-card strong,
.contact-discord-card small {
  display: block;
}

.contact-discord-card strong {
  font-size: var(--text-base);
  line-height: 1.25;
}

.contact-discord-card small {
  margin-top: 3px;
  color: rgba(214, 230, 255, 0.66);
  line-height: 1.35;
}

.contact-discord-card__button {
  min-height: 40px;
  padding: 9px 14px;
  white-space: nowrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(126, 162, 197, 0.16);
  background: rgba(3, 8, 18, 0.62);
  color: var(--color-text);
  padding: 14px 16px;
  font-size: var(--text-base);
  font-family: inherit;
}

.form-group textarea {
  min-height: 128px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(214, 230, 255, 0.48);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 48px;
  border-color: rgba(126, 162, 197, 0.2);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%239db1d3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 16px center;
  background-size: 100% 100%, 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color-scheme: dark;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group select:invalid {
  color: rgba(214, 230, 255, 0.58);
}

.form-group select option {
  background: #0b1220;
  color: var(--color-text);
}

.form-group select option[disabled] {
  color: rgba(214, 230, 255, 0.58);
}

.form-group select:focus {
  outline: none;
  border-color: rgba(105, 210, 255, 0.62);
  box-shadow:
    0 0 0 3px rgba(105, 210, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-provider-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-order-fields {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(105, 210, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(105, 210, 255, 0.08), transparent 46%),
    rgba(7, 23, 43, 0.54);
}

.contact-order-fields[hidden],
.contact-provider-row[hidden] {
  display: none !important;
}

.contact-order-fields .form-group {
  margin-bottom: 0;
}

.contact-input-wrap {
  position: relative;
  display: block;
}

.contact-input-wrap input {
  padding-right: 44px;
}

.contact-input-lock {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: rgba(214, 230, 255, 0.56);
  transform: translateY(-50%);
  pointer-events: none;
}

.form-group__note {
  color: rgba(214, 230, 255, 0.58);
  font-size: var(--text-2xs);
  line-height: 1.45;
}

.form-group.is-locked input[readonly] {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(214, 230, 255, 0.78);
  cursor: default;
}

.contact-account-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(12, 29, 54, 0.68);
  border: 1px solid rgba(126, 162, 197, 0.14);
}

.contact-account-note__profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-account-note__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #5dc7ff, #b266ff);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(93, 199, 255, 0.18);
}

.contact-account-note__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-account-note__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.contact-account-note strong {
  color: var(--color-text);
  line-height: 1.25;
}

.contact-account-note span {
  color: var(--color-muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-account-note__action {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(164, 199, 255, 0.28);
  color: rgba(244, 248, 255, 0.9);
  font-weight: 700;
  font-size: var(--text-sm);
}

.contact-account-note__action:hover {
  border-color: rgba(105, 210, 255, 0.5);
  color: #fff;
}

.contact-submit {
  width: 100%;
  justify-content: center;
}

.contact-submit .btn__icon {
  position: absolute;
  right: 18px;
}

.contact-form__privacy {
  margin: 12px 0 0;
  color: rgba(198, 216, 238, 0.62);
  font-size: var(--text-2xs);
  line-height: 1.5;
  text-align: center;
}

.contact-form__privacy a,
.support-widget__privacy a {
  color: #7cdfff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .contact-page {
    padding-top: calc(var(--frostline-fixed-stack-height, 72px) + 20px);
    padding-bottom: 132px;
    background-position: 58% center;
  }

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

  .contact-provider-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-discord-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .contact-discord-card__icon {
    width: 48px;
    height: 48px;
  }

  .contact-discord-card__button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .contact-account-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-account-note__action {
    width: 100%;
    text-align: center;
  }
}

.alert {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: var(--text-base);
}

.alert--success {
  background: rgba(64, 255, 164, 0.12);
  color: #5aff9d;
  border: 1px solid rgba(64, 255, 164, 0.3);
}

.alert--error {
  background: rgba(255, 86, 86, 0.12);
  color: #ff8a8a;
  border: 1px solid rgba(255, 86, 86, 0.3);
}
.alert--info {
  background: rgba(78, 199, 255, 0.12);
  color: var(--color-primary-strong);
  border: 1px solid rgba(78, 199, 255, 0.35);
}

.section--banlist {
  padding-top: 90px;
}

.banlist-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.banlist-summary {
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: center;
  gap: 0;
  min-width: min(620px, 100%);
  padding: 16px 18px;
  border: 1px solid rgba(78, 199, 255, 0.16);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(13, 31, 54, 0.86), rgba(8, 18, 33, 0.82));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.banlist-summary__item {
  display: grid;
  grid-template-columns: 36px auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-width: 122px;
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.banlist-summary__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.banlist-summary__item:last-child {
  padding-right: 0;
}

.banlist-summary__icon {
  grid-row: 1 / 3;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #c9dcff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 18px rgba(78, 199, 255, 0.08);
}

.banlist-summary__icon--active {
  color: #ff6262;
  background: rgba(255, 74, 74, 0.14);
  border-color: rgba(255, 74, 74, 0.28);
}

.banlist-summary__icon--expired {
  color: #ffc451;
  background: rgba(255, 183, 55, 0.14);
  border-color: rgba(255, 183, 55, 0.3);
}

.banlist-summary strong {
  color: var(--color-text);
  font-size: var(--text-xl);
  line-height: 1;
}

.banlist-summary small {
  color: var(--color-muted);
  font-size: var(--text-2xs);
  line-height: 1.25;
}

.banlist-summary__item--time {
  min-width: 178px;
}

.banlist-summary__item--time strong {
  font-size: var(--text-base);
  line-height: 1.25;
}

.banlist-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: end;
  padding: 16px;
  margin-bottom: 22px;
  border: 1px solid rgba(78, 199, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(8, 22, 39, 0.7);
}

.banlist-filter-panel__tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  grid-column: 1 / -1;
}

.banlist-filter-panel__tabs > .rules-switcher:first-child {
  justify-self: start;
}

.banlist-filter-panel__tabs > .rules-switcher--sub {
  justify-self: start;
}

.banlist-filter-panel .rules-switcher--sub {
  border-radius: 12px;
  padding: 4px;
}

.banlist-filter-panel .rules-switcher--sub .rules-switcher__button {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 9px;
}

.banlist-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 40px;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.banlist-meta .btn {
  margin-left: auto;
}

.banlist-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.banlist-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 13, 27, 0.45);
  color: var(--color-muted);
  box-shadow: inset 0 0 20px rgba(78, 199, 255, 0.03);
}

.banlist-search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
}

.banlist-search input::placeholder {
  color: var(--color-muted);
}

.banlist-search__reset {
  color: var(--color-primary-strong);
  font-size: var(--text-sm);
  text-decoration: none;
}

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

.ban-table-wrap {
  overflow: hidden;
  border: 1px solid rgba(78, 199, 255, 0.15);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(8, 24, 43, 0.82), rgba(5, 16, 31, 0.88));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.ban-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ban-table th,
.ban-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  text-align: left;
  vertical-align: middle;
}

.ban-table th {
  color: var(--color-muted);
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.015);
}

.ban-table tbody tr {
  transition: background 0.18s ease;
}

.ban-table tbody tr:hover {
  background: rgba(78, 199, 255, 0.045);
}

.ban-table tr:last-child td {
  border-bottom: 0;
}

.ban-table th:nth-child(1),
.ban-table td:nth-child(1) {
  width: 104px;
}

.ban-table th:nth-child(2),
.ban-table td:nth-child(2) {
  width: 28%;
}

.ban-table th:nth-child(3),
.ban-table td:nth-child(3) {
  width: 13%;
}

.ban-table th:nth-child(4),
.ban-table td:nth-child(4) {
  width: 68px;
}

.ban-table th:nth-child(5),
.ban-table td:nth-child(5),
.ban-table th:nth-child(6),
.ban-table td:nth-child(6) {
  width: 14%;
}

.ban-table th:nth-child(7),
.ban-table td:nth-child(7) {
  width: 88px;
}

.ban-table th:nth-child(8),
.ban-table td:nth-child(8) {
  width: 0;
  padding: 0;
  overflow: hidden;
}

.ban-table th:nth-child(8) {
  font-size: 0;
}

.ban-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(78, 199, 255, 0.18);
  background: rgba(78, 199, 255, 0.08);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fdcff;
}

.ban-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 7px;
  padding: 4px 9px;
  border: 1px solid transparent;
  font-weight: 700;
}

.ban-badge--active {
  background: rgba(255, 74, 74, 0.14);
  border-color: rgba(255, 74, 74, 0.3);
  color: #ff7777;
}

.ban-badge--expired {
  background: rgba(255, 201, 91, 0.15);
  border-color: rgba(255, 201, 91, 0.4);
  color: #ffd993;
}

.ban-badge--removed {
  background: rgba(255, 122, 169, 0.15);
  border-color: rgba(255, 122, 169, 0.4);
  color: #ff99ba;
}

.ban-table__player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ban-table__player strong,
.ban-table__player small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ban-table__player small {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.ban-table td:nth-child(5),
.ban-table td:nth-child(6) {
  line-height: 1.35;
}

.ban-table__avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
}

.ban-actions {
  display: none;
  gap: 8px;
}

.ban-action {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ban-action:hover,
.ban-action:focus-visible {
  border-color: rgba(78, 199, 255, 0.5);
  background: rgba(78, 199, 255, 0.1);
  color: var(--color-primary-strong);
}

.ban-action--inline {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  vertical-align: -2px;
}
.ban-unban-note {
  margin-top: 6px;
  color: var(--color-muted);
  font-weight: 400;
  font-size: var(--text-sm);
}

.banlist-sidebar {
  display: grid;
  gap: 14px;
}

.banlist-side-card {
  padding: 20px;
  border: 1px solid rgba(78, 199, 255, 0.15);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(8, 24, 43, 0.82), rgba(5, 16, 31, 0.88));
}

.banlist-side-card h2 {
  margin: 0 0 16px;
  font-size: var(--text-base);
}

.ban-reason-bars {
  display: grid;
  gap: 12px;
}

.ban-reason-bar {
  display: grid;
  grid-template-columns: 74px minmax(70px, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.ban-reason-bar div {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.ban-reason-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #48baff, #6ed8ff);
}

.ban-reason-bar strong {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.ban-admin-list {
  display: grid;
  gap: 12px;
}

.ban-admin-list__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.ban-admin-list__avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(78, 199, 255, 0.12);
  border: 1px solid rgba(78, 199, 255, 0.18);
  color: var(--color-primary-strong);
  font-size: var(--text-2xs);
  font-weight: 700;
}

.ban-admin-list__item strong {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.ban-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ban-pagination__info {
  color: var(--color-muted);
  font-size: var(--text-base);
}

.ban-pagination__actions {
  display: flex;
  gap: 12px;
}

@media (max-width: 1180px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .banlist-summary {
    width: 100%;
    min-width: 0;
  }

  .banlist-meta {
    justify-content: flex-start;
  }

}

@media (max-width: 900px) {
  .ban-table {
    display: block;
  }

  .ban-table thead {
    display: none;
  }

  .ban-table tbody,
  .ban-table tr,
  .ban-table td {
    display: block;
    width: 100% !important;
  }

  .ban-table tr {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ban-table td {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border: 0;
  }

  .ban-table td::before {
    content: attr(data-label);
    color: var(--color-muted);
    font-size: var(--text-2xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .ban-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .banlist-summary {
    grid-template-columns: 1fr 1fr;
    gap: 14px 0;
  }

  .banlist-summary__item {
    min-width: 0;
    padding: 0 12px;
  }

  .banlist-summary__item:nth-child(odd) {
    border-left: 0;
  }

  .banlist-filter-panel {
    padding: 12px;
  }

  .banlist-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .banlist-meta .btn {
    margin-left: 0;
  }

  .banlist-search {
    flex-direction: column;
    align-items: stretch;
  }

  .ban-table td {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.faq-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-header__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--color-muted);
  margin: 0;
  font-size: var(--text-xs);
}

.faq-header__title {
  margin: 0;
  font-size: 3.2rem;
}

.faq-header__description {
  margin: 0;
  color: var(--color-muted);
}

.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

details.faq-card {
  border-radius: 32px;
  border: 1px solid rgba(84, 142, 255, 0.25);
  background: linear-gradient(140deg, rgba(13, 26, 63, 0.9), rgba(7, 16, 38, 0.92));
  box-shadow: 0 18px 60px rgba(3, 9, 30, 0.55);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

details.faq-card[open] {
  border-color: rgba(94, 159, 255, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 26px 70px rgba(4, 12, 36, 0.65);
}

details.faq-card summary::-webkit-details-marker,
details.faq-card summary::marker {
  display: none;
}

.faq-card__summary {
  list-style: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 36px;
  cursor: pointer;
  text-align: left;
}

.faq-card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.54);
}

.faq-card__question {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.faq-card__icon::before {
  content: "+";
}

details.faq-card[open] .faq-card__icon {
  background: rgba(79, 148, 255, 0.1);
  border-color: rgba(108, 172, 255, 0.4);
}

details.faq-card[open] .faq-card__icon::before {
  content: "\2212";
}

.faq-card__answer {
  padding: 0 36px 28px;
  color: rgba(244, 248, 255, 0.9);
  font-size: var(--text-base);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.65;
}

.faq-card__answer > * {
  opacity: 0;
  transform: translateX(-12px);
  clip-path: inset(0 100% 0 0);
}

details.faq-card[open] .faq-card__answer > * {
  animation: faq-answer-write 1.55s cubic-bezier(0.16, 0.8, 0.2, 1) forwards;
}

details.faq-card[open] .faq-card__answer > *:nth-child(2) {
  animation-delay: 0.16s;
}

details.faq-card[open] .faq-card__answer > *:nth-child(3) {
  animation-delay: 0.32s;
}

details.faq-card[open] .faq-card__answer > *:nth-child(n + 4) {
  animation-delay: 0.46s;
}

@keyframes faq-answer-write {
  from {
    opacity: 0;
    transform: translateX(-12px);
    clip-path: inset(0 100% 0 0);
  }

  45% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
  }
}

.faq-card__answer p {
  margin: 16px 0;
}

.faq-card__answer ul {
  margin: 0 0 12px 22px;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  .hero__title {
    animation: none;
  }

  .spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__desc,
  .spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__header,
  .spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__row,
  .spotlight-leaderboard__panel.is-animating .spotlight-leaderboard__empty,
  .spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__desc,
  .spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__header,
  .spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__row,
  .spotlight-leaderboard__subpanel.is-animating .spotlight-leaderboard__empty {
    animation: none;
  }

  .faq-card__answer > * {
    opacity: 1;
    transform: none;
    clip-path: none;
    animation: none !important;
  }
}

.footer-faq-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--color-primary);
}

.footer-faq-link::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(78, 199, 255, 0.6);
}

/* FAQ redesign */
.section--faq {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--frostline-fixed-stack-height, 88px) + 30px);
  background:
    linear-gradient(180deg, rgba(4, 12, 26, 0.78) 0%, rgba(4, 12, 26, 0.94) 70%, rgba(2, 4, 9, 1) 100%),
    linear-gradient(90deg, rgba(4, 14, 31, 0.36), rgba(4, 14, 31, 0.12), rgba(4, 14, 31, 0.5)),
    var(--frostline-page-bg-image) center 20% / cover no-repeat;
}

.section--faq > .site-container {
  position: relative;
  z-index: 1;
}

.faq-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.faq-header__eyebrow {
  color: var(--color-primary-strong);
}

.faq-header__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}

.faq-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 0 18px;
  min-height: 54px;
  border-radius: 8px;
  border: 1px solid rgba(126, 162, 197, 0.22);
  background: rgba(7, 16, 31, 0.78);
  color: rgba(214, 230, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.faq-search svg {
  width: 22px;
  height: 22px;
}

.faq-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
}

.faq-search input::placeholder {
  color: rgba(214, 230, 255, 0.54);
}

.faq-quick-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.faq-quick-chips button {
  min-height: 36px;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid rgba(126, 162, 197, 0.22);
  background: rgba(7, 16, 31, 0.68);
  color: rgba(244, 248, 255, 0.88);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.faq-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--frostline-header-bottom, 76px) + 18px);
}

.faq-side-card {
  border-radius: 8px;
  border: 1px solid rgba(126, 162, 197, 0.16);
  background: linear-gradient(145deg, rgba(8, 20, 40, 0.74), rgba(4, 11, 24, 0.86));
  padding: 14px;
  box-shadow: 0 18px 48px rgba(0, 6, 18, 0.24);
}

.faq-side-card__eyebrow {
  margin: 0 0 12px;
  color: rgba(214, 230, 255, 0.58);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.faq-game-filter {
  display: grid;
  gap: 8px;
}

.faq-game-filter__button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 7px;
  border: 1px solid rgba(126, 162, 197, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(214, 230, 255, 0.74);
  font-weight: 700;
}

.faq-game-filter__button.is-active {
  color: #fff;
  border-color: rgba(105, 210, 255, 0.28);
  background: linear-gradient(135deg, rgba(89, 209, 255, 0.26), rgba(99, 56, 255, 0.34));
}

.faq-game-filter__icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: var(--color-primary-strong);
  background: rgba(78, 199, 255, 0.1);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.faq-game-filter__icon svg {
  width: 16px;
  height: 16px;
}

.faq-support-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.faq-support-card__icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-primary-strong);
  background: radial-gradient(circle at 32% 26%, rgba(105, 210, 255, 0.24), rgba(45, 31, 124, 0.6));
}

.faq-support-card__icon svg {
  width: 24px;
  height: 24px;
}

.faq-support-card strong {
  display: block;
  margin-bottom: 3px;
  line-height: 1.25;
}

.faq-support-card p {
  margin: 0;
  color: rgba(214, 230, 255, 0.64);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.faq-support-card__button {
  grid-column: 1 / -1;
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(105, 210, 255, 0.26);
  background: rgba(99, 56, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.faq-status-card {
  display: grid;
  gap: 6px;
}

.faq-status-card strong {
  color: #34f28a;
}

.faq-status-card span,
.faq-status-card small {
  color: rgba(214, 230, 255, 0.66);
  line-height: 1.4;
}

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

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

.faq-toolbar p {
  margin: 0;
  color: rgba(214, 230, 255, 0.78);
  font-weight: 700;
}

.faq-toolbar select {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(126, 162, 197, 0.2);
  background: rgba(7, 16, 31, 0.74);
  color: rgba(244, 248, 255, 0.88);
  padding: 0 38px 0 14px;
  font: inherit;
  color-scheme: dark;
}

.faq-stack {
  gap: 8px;
}

details.faq-card {
  border-radius: 8px;
  border-color: rgba(126, 162, 197, 0.14);
  background: linear-gradient(145deg, rgba(8, 20, 40, 0.76), rgba(4, 11, 24, 0.88));
  box-shadow: 0 14px 40px rgba(0, 6, 18, 0.22);
}

details.faq-card[open] {
  border-color: rgba(78, 199, 255, 0.36);
  box-shadow: 0 18px 52px rgba(0, 6, 18, 0.34);
}

.faq-card__summary {
  padding: 18px 22px;
}

.faq-card__eyebrow {
  color: var(--color-primary-strong);
  font-weight: 700;
  font-size: var(--text-2xs);
}

.faq-card__question {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 700;
}

.faq-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.faq-card__answer {
  margin: 0 22px 18px;
  padding: 0 0 0 18px;
  border-top: 0;
  border-left: 3px solid rgba(78, 199, 255, 0.72);
  color: rgba(214, 230, 255, 0.82);
}

.faq-card__answer p {
  margin: 0;
}

.faq-empty {
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(126, 162, 197, 0.14);
  color: rgba(214, 230, 255, 0.72);
  background: rgba(7, 16, 31, 0.68);
}

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

  .faq-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .faq-game-filter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .section--faq {
    padding-top: calc(var(--frostline-fixed-stack-height, 72px) + 22px);
  }

  .faq-sidebar {
    grid-template-columns: 1fr;
  }

  .faq-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .faq-toolbar select {
    width: 100%;
  }

  .faq-card__summary {
    padding: 16px;
  }

  .faq-card__answer {
    margin: 0 16px 16px;
  }
}

/* Mountain background pass for core pages */
.page-template-page-servers .section:first-of-type,
.section--servers,
.section--rules,
.section--banlist {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 12, 26, 0.8) 0%, rgba(4, 12, 26, 0.95) 54%, rgba(2, 4, 9, 1) 100%),
    linear-gradient(90deg, rgba(4, 14, 31, 0.38), rgba(4, 14, 31, 0.12), rgba(4, 14, 31, 0.5)),
    var(--frostline-page-bg-image) center 24% / cover no-repeat;
}

.page-template-page-servers .section:first-of-type {
  padding-top: calc(var(--frostline-fixed-stack-height, 88px) + 32px);
  padding-bottom: 118px;
}

.section--servers,
.section--rules,
.section--banlist {
  padding-top: calc(var(--frostline-fixed-stack-height, 88px) + 32px);
  padding-bottom: 118px;
}

.section--rules {
  background:
    linear-gradient(180deg, rgba(4, 12, 26, 0.84) 0%, rgba(4, 12, 26, 0.96) 58%, rgba(2, 4, 9, 1) 100%),
    linear-gradient(90deg, rgba(4, 14, 31, 0.44), rgba(4, 14, 31, 0.16), rgba(4, 14, 31, 0.54)),
    var(--frostline-page-bg-image) center 28% / cover no-repeat;
}

.section--banlist {
  background:
    linear-gradient(180deg, rgba(4, 12, 26, 0.88) 0%, rgba(4, 12, 26, 0.97) 50%, rgba(2, 4, 9, 1) 100%),
    linear-gradient(90deg, rgba(3, 10, 22, 0.52), rgba(4, 14, 31, 0.18), rgba(3, 10, 22, 0.62)),
    var(--frostline-page-bg-image) center 34% / cover no-repeat;
}

.page-template-page-servers .section:first-of-type::before,
.section--servers::before,
.section--rules::before,
.section--banlist::before,
.page-template-page-servers .section:first-of-type::after,
.section--servers::after,
.section--rules::after,
.section--banlist::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-template-page-servers .section:first-of-type::before,
.section--servers::before,
.section--rules::before,
.section--banlist::before {
  background:
    radial-gradient(ellipse at 18% 30%, rgba(78, 199, 255, 0.12), transparent 34%),
    linear-gradient(180deg, transparent 0%, rgba(4, 12, 26, 0.7) 48%, rgba(2, 4, 9, 1) 100%);
}

.page-template-page-servers .section:first-of-type::after,
.section--servers::after,
.section--rules::after,
.section--banlist::after {
  top: auto;
  height: 260px;
  background: linear-gradient(180deg, rgba(2, 4, 9, 0) 0%, #020409 38%, #020409 100%);
}

.page-template-page-servers .section:first-of-type > .site-container,
.section--servers > .site-container,
.section--rules > .site-container,
.section--banlist > .site-container {
  position: relative;
  z-index: 1;
}

.page-template-page-servers .site-footer,
.page-template-page-servers-php .site-footer,
.page-template-page-regler .site-footer,
.page-template-page-regler-php .site-footer,
.page-template-page-banlista .site-footer,
.page-template-page-banlista-php .site-footer {
  margin-top: 0;
}

.page-template-page-servers #main-content {
  margin-top: 0;
}

@media (max-width: 720px) {
  .page-template-page-servers .section:first-of-type,
  .section--servers,
  .section--rules,
  .section--banlist {
    padding-top: calc(var(--frostline-fixed-stack-height, 72px) + 24px);
    padding-bottom: 88px;
    background-position: 58% center;
  }
}

#frostline-trustpilot-slot {
  display: none;
}

[id^="trustpilot-widget-trustbox"][id$="-wrapper"] {
  position: relative;
  z-index: 0 !important;
  isolation: isolate;
  flex: 0 0 auto;
  width: 100%;
  padding: 18px max(20px, calc((100vw - 1320px) / 2));
  border-top: 1px solid rgba(78, 199, 255, 0.12);
  background: #06101b;
}

[id^="trustpilot-widget-trustbox"][id$="-wrapper"] .trustpilot-widget {
  width: 100%;
}

.site-footer {
  flex: 0 0 auto;
  padding: 28px 0 22px;
  background: #020409;
  border-top: 0;
  margin-top: 0;
}

#main-content:has(.contact-page) + .site-footer,
#main-content:has(.section--faq) + .site-footer,
#main-content:has(.section--servers) + .site-footer,
#main-content:has(.section--rules) + .site-footer,
#main-content:has(.section--banlist) + .site-footer,
#main-content:has(.account-settings-page) + .site-footer {
  margin-top: 0;
}

/* Account and panel pages calculate their own offset from the full fixed header stack. */
#main-content:has(> .account-settings-page) {
  padding-top: 0;
}

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

.footer-grid h4 {
  margin-bottom: 10px;
  font-size: var(--text-base);
  letter-spacing: 0.08em;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--color-muted);
}

.footer-grid ul li {
  margin-bottom: 7px;
}

.footer-links {
  column-count: 2;
  column-gap: 30px;
}

.footer-links li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.footer-links a {
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-primary);
  text-shadow: 0 0 12px rgba(78, 199, 255, 0.72);
}

.footer-links a:focus-visible {
  outline: 2px solid rgba(78, 199, 255, 0.75);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-grid .footer-socials li {
  margin-bottom: 0;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  border-color: rgba(78, 199, 255, 0.42);
  background: rgba(78, 199, 255, 0.1);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.footer-socials a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .footer-links {
    column-count: 1;
  }
}

.footer-meta {
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-align: center;
}

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

  .hero-copy {
    padding-top: 18px;
  }

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

  .faq-card__summary {
    padding: 24px 28px;
  }
}

/* The full nav, auth buttons and flags need about 1180px; below that the menu collapses. */
@media (max-width: 1180px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .brand {
    order: 1;
    min-width: 0;
    max-width: calc(100% - 60px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    display: none;
    padding: 8px 0 0;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .primary-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: #d7e3fb;
    font-size: var(--text-base);
  }

  .primary-nav a::after {
    left: 12px;
    right: 12px;
    bottom: 5px;
  }

  .header-actions {
    order: 4;
    width: 100%;
    display: none;
    justify-content: stretch;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
  }

  .site-header.is-nav-open {
    max-height: calc(100dvh - 10px);
    overflow-y: auto;
    box-shadow: 0 22px 60px rgba(3, 7, 18, 0.45);
  }

  .site-header.is-nav-open .header-actions {
    display: flex;
  }

  .header-actions > * {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  html {
    font-size: 16px;
  }

  .site-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 54px 0;
  }

  #main-content {
    padding-top: 72px;
  }

  .page-template-page-servers #main-content {
    margin-top: 0;
  }

  .section__heading {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    line-height: 1.08;
  }

  .section__description {
    margin-bottom: 28px;
  }

  .glass-surface {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .server-board {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: var(--text-base);
    letter-spacing: 0.05em;
  }

  .brand__icon {
    height: 36px;
  }

  .hero {
    padding: 22px 0 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-grid > *,
  .hero-copy,
  .faq-header,
  .faq-layout > * {
    min-width: 0;
    max-width: 100%;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(2.35rem, 14vw, 3.2rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .hero__subtitle {
    max-width: 100%;
    font-size: var(--text-base);
    margin-bottom: 24px;
    overflow-wrap: anywhere;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 50px;
    padding: 13px 18px;
  }

  .hero-status-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-top: 16px;
  }

  .hero__eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-featured-server {
    max-width: 100%;
    padding: 16px;
  }

  .hero-featured-server__header,
  .hero-featured-server__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .home-why {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .spotlight-leaderboard__top {
    flex-direction: column;
    gap: 8px;
  }

  .hero-card {
    padding: 16px;
    border-radius: 16px;
  }

  .spotlight-leaderboard__game-tabs {
    border-radius: 16px;
  }

  .spotlight-leaderboard__tab {
    flex-basis: calc(50% - 4px);
  }

  .spotlight-leaderboard__server-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .spotlight-leaderboard__server-tab {
    flex: 0 0 auto;
  }

  .spotlight-leaderboard__header,
  .spotlight-leaderboard__secondary {
    display: none;
  }

  .spotlight-leaderboard__row,
  .spotlight-leaderboard__row--single {
    grid-template-columns: 22px minmax(0, 1fr) minmax(62px, auto);
  }

  .feature-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card,
  .highlight-card {
    padding: 18px;
    border-radius: 16px;
  }

  .server-toolbar {
    align-items: stretch;
  }

  .server-toolbar > * {
    width: 100%;
  }

  .server-switcher .server-switcher__count {
    margin-left: auto;
  }

  .server-card {
    border-radius: 18px;
  }

  .server-card__media {
    min-height: 178px;
    padding: 12px;
  }

  .server-card__body {
    padding: 10px 16px 16px;
  }

  .server-copy {
    flex-wrap: wrap;
  }

  .server-address,
  .server-copy__button {
    flex: 1 1 100%;
  }

  .faq-header__title {
    font-size: 2.2rem;
  }

  .faq-card__summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
  }

  .faq-card__icon {
    width: 36px;
    height: 36px;
  }

  .minecraft-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 22px 16px;
    border-radius: 22px;
  }

  .minecraft-modal__title {
    font-size: var(--text-xl);
    padding-right: 44px;
  }

  .minecraft-modal__close {
    top: 12px;
    right: 12px;
  }

  .jb-modal__grid {
    grid-template-columns: 1fr;
  }

  .jb-modal__table {
    min-width: 420px;
  }

  .jb-modal__table--arena {
    min-width: 100%;
  }

  .jb-modal__table--minigames {
    min-width: 100%;
  }

  .jb-modal__table--retake {
    min-width: 100%;
  }

  .minecraft-modal__panel {
    padding: 14px;
    border-radius: 16px;
    overflow-x: auto;
  }

  .minecraft-modal__commands {
    grid-template-columns: 1fr;
  }

  .mc-toplist {
    min-width: 420px;
  }

  .mc-toplist__header,
  .mc-toplist__row {
    padding: 11px 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-socials a {
    min-height: 42px;
  }
}
.tab-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-switcher__button {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-switcher__button.is-active {
  background: var(--button-ice);
  color: #020308;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.tab-panel__content {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(3, 6, 12, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  word-wrap: break-word;
  line-height: 1.5;
}

.tab-panel__content h3,
.tab-panel__content h4 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.tab-panel__content p {
  margin-bottom: 16px;
}

.tab-panel__content ol,
.tab-panel__content ul {
  margin-left: 20px;
  margin-bottom: 18px;
}

.tab-panel__content li {
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .tab-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }

  .tab-switcher__button {
    width: 100%;
    min-height: 44px;
  }
}

.section--rules {
  padding-top: 80px;
}

.rules-switcher {
  display: inline-flex;
  gap: 10px;
  margin: 12px 0 22px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rules-switcher__button {
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.rules-switcher__button.is-active {
  background: var(--button-ice);
  color: #020308;
}

.rules-switcher__fresh {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border: 1px solid rgba(109, 228, 255, 0.34);
  border-radius: 999px;
  background: rgba(78, 199, 255, 0.14);
  color: var(--color-primary-strong);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.rules-switcher__button.is-active .rules-switcher__fresh {
  border-color: rgba(2, 3, 8, 0.18);
  background: rgba(2, 3, 8, 0.14);
  color: #020308;
}

.rules-switcher__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: center;
}

.rules-switcher__icon--cs2 {
  background: linear-gradient(135deg, #6de4ff, #b266ff);
}

.rules-switcher__icon--fivem {
  background: linear-gradient(135deg, #82ff6b, #39b7ff);
}

.rules-switcher__icon--minecraft {
  background: linear-gradient(135deg, #5bd35b, #3c6b2f);
}

.rules-switcher__icon.has-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.rules-panel {
  display: none;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(78, 199, 255, 0.16);
  background: linear-gradient(145deg, rgba(13, 31, 54, 0.72), rgba(9, 19, 35, 0.78));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  margin-bottom: 18px;
}

.rules-panel.is-active {
  display: block;
}

.rules-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.rules-title {
  margin: 0;
}

.rules-panel__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rules-panel__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(78, 199, 255, 0.14);
  background: rgba(78, 199, 255, 0.06);
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.rules-changelog {
  margin: -2px 0 20px;
  overflow: hidden;
  border: 1px solid rgba(89, 207, 255, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(88, 205, 255, 0.13), transparent 38%),
    rgba(5, 18, 34, 0.76);
  box-shadow: 0 14px 34px rgba(0, 5, 16, 0.18);
}

.rules-changelog__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(89, 207, 255, 0.12);
}

.rules-changelog__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(109, 228, 255, 0.28);
  border-radius: 10px;
  background: rgba(78, 199, 255, 0.12);
  color: var(--color-primary-strong);
  box-shadow: 0 0 22px rgba(78, 199, 255, 0.12);
}

.rules-changelog__icon svg {
  width: 16px;
  height: 16px;
}

.rules-changelog__head strong,
.rules-changelog__head small {
  display: block;
}

.rules-changelog__head strong {
  color: var(--color-text);
  font-size: var(--text-sm);
}

.rules-changelog__head small {
  margin-top: 1px;
  color: var(--color-muted);
  font-size: var(--text-2xs);
}

.rules-changelog__window {
  color: var(--color-primary);
  font-size: var(--text-2xs);
  font-weight: 700;
  white-space: nowrap;
}

.rules-changelog__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-changelog__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rules-changelog__list li:last-child {
  border-bottom: 0;
}

.rules-changelog__type {
  display: inline-flex;
  justify-content: center;
  min-width: 82px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rules-changelog__type--new {
  border: 1px solid rgba(75, 226, 153, 0.3);
  background: rgba(75, 226, 153, 0.12);
  color: #71f0b4;
}

.rules-changelog__type--updated {
  border: 1px solid rgba(109, 228, 255, 0.3);
  background: rgba(78, 199, 255, 0.12);
  color: var(--color-primary-strong);
}

.rules-changelog__copy {
  min-width: 0;
}

.rules-changelog__copy small,
.rules-changelog__copy strong {
  display: block;
}

.rules-changelog__copy small {
  margin-bottom: 2px;
  color: var(--color-muted);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rules-changelog__copy strong {
  color: var(--color-text);
  font-size: var(--text-xs);
  line-height: 1.35;
}

.rules-changelog__list time {
  color: var(--color-muted);
  font-size: var(--text-2xs);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .rules-changelog__head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rules-changelog__window {
    grid-column: 2;
    white-space: normal;
  }

  .rules-changelog__list li {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .rules-changelog__type {
    justify-self: start;
  }
}

.rules-list {
  list-style: disc;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.rules-list li {
  padding-left: 0;
}

.rules-list li::before {
  content: none;
}

.rules-list li::marker {
  color: var(--color-primary);
}

.rules-subpanel > .rules-list {
  display: block;
  padding-left: 0;
  list-style: none;
}

.rules-subpanel > .rules-list li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.55;
}

.rules-subpanel > .rules-list li:last-child {
  border-bottom: 0;
}

.rules-subpanel > .rules-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary-strong);
  box-shadow: 0 0 14px rgba(78, 199, 255, 0.4);
}

#rules-minecraft .rules-list li:last-child {
  list-style: none;
  display: block;
  margin-top: 14px;
}

#rules-minecraft .rules-list li:last-child::marker {
  content: none;
}

.rules-list--nested {
  list-style: disc;
  padding-left: 22px;
  margin-left: 0;
}

.rules-list--nested li {
  padding-left: 0;
}

.rules-list--nested li::before {
  content: none;
}

.rules-list--nested li::marker {
  color: var(--color-text);
}

.rules-switcher-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 22px;
}

.rules-switcher-row .rules-switcher {
  margin: 0;
}

.rules-switcher--sub {
  margin-bottom: 18px;
  border-radius: 12px;
  padding: 4px;
}

.rules-switcher--sub .rules-switcher__button {
  border-radius: 9px;
  min-height: 34px;
  padding: 7px 13px;
}

.rules-subpanel {
  display: none;
}

.rules-subpanel.is-active {
  display: block;
}

.rules-rich h3,
.rules-rich h4 {
  margin: 12px 0 8px;
}

.rules-rich ol,
.rules-rich ul {
  margin: 0 0 12px 20px;
  padding: 0;
  list-style: disc;
  list-style-position: outside;
}

.rules-rich .rules-list {
  list-style: disc;
  padding-left: 20px;
  margin-left: 0;
}

.rules-reveal-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.rules-reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rules-rich .rules-list li::marker {
  color: var(--color-primary);
}

.rules-rich .rules-list--nested li::marker {
  color: var(--color-text);
}

.rules-rich li {
  margin-bottom: 6px;
  position: relative;
}

.rules-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

@media (max-width: 640px) {
  .rules-switcher,
  .rules-switcher-row .rules-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }

  .rules-switcher__button {
    justify-content: flex-start;
    min-height: 46px;
  }

  .rules-panel {
    padding: 18px 16px;
    border-radius: 8px;
  }

  .rules-panel__header,
  .rules-panel__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .rules-panel__meta {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 9px 0;
  }

  .site-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-inner {
    gap: 10px;
  }

  .brand {
    font-size: var(--text-base);
    letter-spacing: 0.04em;
  }

  .brand__icon {
    height: 34px;
  }

  .mobile-nav-toggle {
    width: 42px;
    height: 42px;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-card,
  .glass-surface,
  .feature-card,
  .highlight-card,
  .auth-card {
    margin-left: -2px;
    margin-right: -2px;
  }

  .section__eyebrow,
  .minecraft-modal__eyebrow {
    letter-spacing: 0.18em;
  }

  .status-pill {
    max-width: 100%;
  }

  .support-widget__panel {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
}

#rules-fivem .rules-rich h3 {
  margin-top: 0;
  margin-bottom: 20px;
}

#rules-fivem .rules-rich h4 {
  margin-top: 30px;
  margin-bottom: 14px;
}

#rules-fivem .rules-rich p {
  margin-bottom: 18px;
  line-height: 1.75;
}

#rules-fivem .rules-rich .rules-list {
  margin-top: 8px;
  margin-bottom: 24px;
  gap: 14px;
}

.rules-subtext {
  color: var(--color-muted);
  margin: 0 0 6px;
  font-size: var(--text-base);
}

.rules-rich ul:not(.rules-list--nested) li::marker,
.rules-rich ol li::marker {
  color: var(--color-primary);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.auth-card {
  background: rgba(11, 18, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.auth-card h1,
.auth-card h2 {
  margin: 0 0 10px;
}

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.auth-form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--color-muted);
  font-size: var(--text-base);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--color-muted);
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.auth-notice {
  margin-top: 16px;
  color: var(--color-muted);
}

.support-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.support-widget__card {
  width: min(330px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px 8px 14px;
  border: 0;
  border-radius: 20px;
  background: rgba(250, 247, 244, 0.98);
  color: #162341;
  box-shadow: 0 18px 40px rgba(5, 10, 24, 0.32);
  transition: opacity 180ms ease, transform 180ms ease;
}

.support-widget.is-open .support-widget__card {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.support-widget.is-card-dismissed .support-widget__card {
  display: none;
}

.support-widget__card-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.support-widget__card-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.support-widget__card-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3ddc6c;
  border: 2px solid #fff;
}

.support-widget__card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.support-widget__card-copy strong {
  font-size: var(--text-sm);
  font-weight: 600;
}

.support-widget__card-copy span {
  font-size: var(--text-xs);
  line-height: 1.3;
}

.support-widget__card-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: var(--text-xl);
  line-height: 1;
  color: rgba(22, 35, 65, 0.5);
  cursor: pointer;
}

.support-widget__card-close:hover {
  background: rgba(22, 35, 65, 0.08);
}

.support-widget__fab {
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #2f78ff 0%, #0f54ea 100%);
  color: #fff;
  box-shadow: 0 22px 44px rgba(15, 84, 234, 0.36);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.support-widget__fab svg {
  width: 29px;
  height: 29px;
}

.support-widget__panel {
  width: min(420px, calc(100vw - 24px));
  padding: 22px;
  border-radius: 28px;
  background: rgba(9, 16, 30, 0.96);
  border: 1px solid rgba(105, 210, 255, 0.16);
  box-shadow: 0 24px 60px rgba(5, 10, 24, 0.42);
  backdrop-filter: blur(16px);
}

.support-widget__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.support-widget__eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--text-2xs);
  color: rgba(117, 187, 255, 0.78);
}

.support-widget__panel-head h3 {
  margin: 0;
  font-size: var(--text-xl);
}

.support-widget__panel-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-2xl);
  line-height: 1;
  cursor: pointer;
}

.support-widget__text {
  margin: 0 0 16px;
  color: var(--color-muted);
  line-height: 1.6;
  font-size: var(--text-base);
}

.support-widget__notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

.support-widget__notice.is-success {
  background: rgba(63, 214, 133, 0.16);
  border: 1px solid rgba(63, 214, 133, 0.28);
}

.support-widget__notice.is-error {
  background: rgba(255, 99, 132, 0.12);
  border: 1px solid rgba(255, 99, 132, 0.2);
}

.support-widget__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.support-widget__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-widget__field span {
  color: rgba(214, 230, 255, 0.88);
  font-size: var(--text-sm);
}

.support-widget__field input,
.support-widget__field select,
.support-widget__field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  padding: 13px 14px;
  font: inherit;
}

.support-widget__field textarea {
  min-height: 132px;
  resize: vertical;
}

.support-widget__field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 46px;
  border-color: rgba(126, 162, 197, 0.24);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%23a9bddb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 16px center;
  background-size: 100% 100%, 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color-scheme: dark;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.support-widget__field select:invalid {
  color: rgba(214, 230, 255, 0.58);
}

.support-widget__field select option {
  background: #0b1220;
  color: var(--color-text);
}

.support-widget__field select option[disabled] {
  color: rgba(214, 230, 255, 0.58);
}

.support-widget__field input::placeholder,
.support-widget__field textarea::placeholder {
  color: rgba(214, 230, 255, 0.58);
}

.support-widget__field input:focus,
.support-widget__field select:focus,
.support-widget__field textarea:focus {
  outline: none;
  border-color: rgba(105, 210, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(105, 210, 255, 0.16);
}

.support-widget__field.is-locked input[readonly] {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(214, 230, 255, 0.78);
  cursor: default;
}

.support-widget__field-note {
  color: rgba(214, 230, 255, 0.58);
  font-size: var(--text-2xs);
  line-height: 1.45;
}

.support-widget__submit {
  border: 0;
  border-radius: 999px;
  background: var(--button-ice);
  color: #06101d;
  font: inherit;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
}

.support-widget__submit.is-loading {
  opacity: 0.7;
  cursor: progress;
}

.support-widget__submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.support-widget__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .support-widget {
    right: 12px;
    bottom: 12px;
    left: 12px;
    align-items: stretch;
  }

  .support-widget__card,
  .support-widget__panel {
    width: 100%;
  }

  .support-widget:not(.is-open) .support-widget__card {
    display: none;
  }

  .support-widget__fab {
    align-self: flex-end;
    width: 64px;
    height: 64px;
  }

  .support-widget__row {
    grid-template-columns: 1fr;
  }
}

/* Support widget redesign */
.support-widget {
  right: 22px;
  bottom: 22px;
  gap: 12px;
}

.support-widget__card {
  width: min(340px, calc(100vw - 28px));
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(105, 210, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 16, 31, 0.94);
  color: var(--color-text);
  box-shadow: 0 22px 54px rgba(0, 6, 18, 0.38);
  backdrop-filter: blur(16px);
}

.support-widget__card-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #59d1ff, #6338ff);
}

.support-widget__card-dot {
  border-color: #09101e;
}

.support-widget__card-copy strong {
  font-weight: 700;
}

.support-widget__card-copy span {
  color: rgba(214, 230, 255, 0.68);
}

.support-widget__card-close {
  color: rgba(214, 230, 255, 0.58);
}

.support-widget__card-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.support-widget__fab {
  min-width: 148px;
  height: 58px;
  width: auto;
  gap: 10px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--button-ice);
  color: #06101d;
  box-shadow: 0 22px 44px rgba(78, 199, 255, 0.28);
  font-weight: 700;
}

.support-widget__fab svg {
  width: 24px;
  height: 24px;
}

.support-widget__fab span {
  line-height: 1;
}

.support-widget__panel {
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 26px 28px 24px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8, 17, 34, 0.98), rgba(5, 12, 26, 0.98));
  border: 1px solid rgba(105, 210, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 6, 18, 0.52);
  backdrop-filter: blur(18px);
  scrollbar-width: thin;
  scrollbar-color: rgba(105, 210, 255, 0.36) rgba(255, 255, 255, 0.05);
}

.support-widget__panel-head {
  margin-bottom: 12px;
}

.support-widget__eyebrow {
  letter-spacing: 0.22em;
  font-size: var(--text-2xs);
  color: var(--color-primary-strong);
}

.support-widget__panel-head h3 {
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.1;
}

.support-widget__panel-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(164, 199, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 248, 255, 0.8);
}

.support-widget__text {
  margin-bottom: 12px;
  font-size: var(--text-base);
  line-height: 1.55;
}

.support-widget__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.support-widget__status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(126, 162, 197, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(214, 230, 255, 0.82);
  font-size: var(--text-xs);
  font-weight: 700;
}

.support-widget__status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(109, 228, 255, 0.88);
  box-shadow: 0 0 12px rgba(109, 228, 255, 0.45);
}

.support-widget__status-pill--online::before {
  background: #34f28a;
  box-shadow: 0 0 12px rgba(52, 242, 138, 0.68);
}

.support-widget__notice {
  border-radius: 8px;
}

.support-widget__form {
  gap: 13px;
}

.support-widget__field {
  position: relative;
}

.support-widget__field span {
  font-weight: 700;
}

.support-widget__field input,
.support-widget__field select,
.support-widget__field textarea {
  border-radius: 8px;
  border-color: rgba(126, 162, 197, 0.2);
  background: rgba(255, 255, 255, 0.045);
  padding: 14px 15px;
}

.support-widget__field textarea {
  min-height: 150px;
}

.support-widget__field--user input,
.support-widget__field--mail input,
.support-widget__field--discord input,
.support-widget__field--steam input {
  padding-left: 42px;
}

.support-widget__field--user::after,
.support-widget__field--mail::after,
.support-widget__field--discord::after,
.support-widget__field--steam::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 48px;
  width: 17px;
  height: 17px;
  background: currentColor;
  color: rgba(214, 230, 255, 0.44);
  pointer-events: none;
  -webkit-mask: var(--support-icon) center / contain no-repeat;
  mask: var(--support-icon) center / contain no-repeat;
}

.support-widget__field--user {
  --support-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4 0-7 2-7 4.5V20h14v-1.5C19 16 16 14 12 14Z'/%3E%3C/svg%3E");
}

.support-widget__field--mail {
  --support-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 6h15A2.5 2.5 0 0 1 22 8.5v7a2.5 2.5 0 0 1-2.5 2.5h-15A2.5 2.5 0 0 1 2 15.5v-7A2.5 2.5 0 0 1 4.5 6Zm.2 2 7.3 5.1L19.3 8H4.7Z'/%3E%3C/svg%3E");
}

.support-widget__field--discord,
.support-widget__field--steam {
  --support-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm-3 7.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm6 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z'/%3E%3C/svg%3E");
}

.support-widget__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  color: #06101d;
  font-weight: 700;
  padding: 15px 54px 15px 22px;
  box-shadow: 0 18px 42px rgba(99, 56, 255, 0.3);
}

.support-widget__submit svg {
  position: absolute;
  right: 22px;
  width: 22px;
  height: 22px;
}

.support-widget__privacy {
  margin: -2px 0 0;
  color: rgba(214, 230, 255, 0.52);
  font-size: var(--text-2xs);
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 720px) {
  .support-widget {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .support-widget__panel {
    padding: 22px 18px 20px;
  }

  .support-widget__fab {
    min-width: 58px;
    width: 58px;
    height: 58px;
    padding: 0;
  }

  .support-widget__fab span {
    display: none;
  }
}

/* Livechatten i supportrutan (live-chat.js) */
.support-widget.is-open .support-widget__fab {
  display: none;
}

.support-widget__fab {
  position: relative;
}

.support-widget__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff5d73;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  box-shadow: 0 0 0 3px #08101f;
}

.support-widget__switch {
  display: block;
  margin: 14px auto 0;
  padding: 4px 6px;
  border: 0;
  background: none;
  color: var(--color-primary-strong);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.support-widget__switch:hover {
  color: #fff;
}

.support-widget__switch[hidden] {
  display: none;
}

.live-chat__checking {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 4px;
  color: rgba(214, 230, 255, 0.72);
}

.live-chat__checking[hidden] {
  display: none;
}

.live-chat__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(109, 228, 255, 0.25);
  border-top-color: var(--color-primary-strong);
  border-radius: 50%;
  animation: live-chat-spin 0.8s linear infinite;
}

@keyframes live-chat-spin {
  to { transform: rotate(360deg); }
}

/* Panelen i chattläge: smalare, ingen egen utfyllnad (chattens delar har sin egen). */
.support-widget__panel.is-live {
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 28px));
  max-height: calc(100dvh - 44px);
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.support-widget__panel.is-live[hidden] {
  display: none;
}

.support-widget__panel.is-live .support-widget__panel-head {
  display: none;
}

.support-widget__panel.is-chatting {
  height: min(560px, calc(100dvh - 44px));
}

.live-chat {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.live-chat[hidden],
.live-chat__start[hidden],
.live-chat__conversation[hidden] {
  display: none;
}

/* Rubrikraden: vem du chattar med */
.live-chat__head {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid rgba(105, 210, 255, 0.14);
  background: linear-gradient(135deg, rgba(78, 199, 255, 0.16), rgba(78, 199, 255, 0.03));
}

.live-chat__avatar {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #59d1ff, #6338ff);
}

.live-chat__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.live-chat__avatar-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border: 2px solid #0a1528;
  border-radius: 50%;
  background: #ffc861;
}

.live-chat__avatar-dot.is-active {
  background: #34f28a;
}

.live-chat__avatar-dot.is-ended {
  background: #6c7a92;
}

.live-chat__head-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1 1 auto;
  min-width: 0;
}

.live-chat__head-copy strong {
  overflow: hidden;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat__head-copy small {
  overflow: hidden;
  color: rgba(214, 230, 255, 0.66);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat__head-button {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(109, 228, 255, 0.38);
  border-radius: 999px;
  background: rgba(78, 199, 255, 0.1);
  color: #d9f6ff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.live-chat__head-button:hover {
  background: rgba(78, 199, 255, 0.2);
}

.live-chat__head-button[hidden] {
  display: none;
}

.live-chat__head-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(214, 230, 255, 0.72);
  cursor: pointer;
}

.live-chat__head-close:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.live-chat__head-close svg {
  width: 18px;
  height: 18px;
}

/* Starta chatten */
.live-chat__start {
  overflow-y: auto;
  scrollbar-width: thin;
}

.live-chat__form {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px 16px 14px;
}

.live-chat__intro {
  margin: 0;
  color: rgba(214, 230, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.live-chat__identity {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(109, 228, 255, 0.2);
  border-radius: 10px;
  background: rgba(78, 199, 255, 0.07);
  color: rgba(214, 230, 255, 0.88);
  font-size: 13px;
  line-height: 1.45;
}

.live-chat__identity[hidden],
.live-chat__row[hidden] {
  display: none;
}

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

.live-chat__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.live-chat__field > span {
  color: rgba(214, 230, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.live-chat__field input,
.live-chat__field select,
.live-chat__field textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(126, 162, 197, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
}

.live-chat__field textarea {
  min-height: 78px;
  resize: none;
  line-height: 1.45;
}

.live-chat__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%23a9bddb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 13px 13px;
  color-scheme: dark;
  cursor: pointer;
}

.live-chat__field select option {
  background: #0b1220;
  color: var(--color-text);
}

.live-chat__field input:focus,
.live-chat__field select:focus,
.live-chat__field textarea:focus {
  border-color: rgba(109, 228, 255, 0.6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 228, 255, 0.12);
}

.live-chat__field ::placeholder {
  color: rgba(214, 230, 255, 0.4);
}

.live-chat__start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--button-ice);
  color: #06101d;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(78, 199, 255, 0.22);
}

.live-chat__start-button:hover {
  filter: brightness(1.05);
}

.live-chat__start-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.live-chat__start-button svg {
  width: 18px;
  height: 18px;
}

.live-chat__fine {
  margin: 0;
  color: rgba(214, 230, 255, 0.5);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.live-chat__fine a {
  color: inherit;
}

.live-chat__fine button {
  display: block;
  margin: 6px auto 0;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--color-primary-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.live-chat__fine button:hover {
  color: #fff;
}

.live-chat__error {
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(255, 99, 132, 0.28);
  border-radius: 10px;
  background: rgba(255, 99, 132, 0.12);
  color: #ffd6de;
  font-size: 13px;
}

.live-chat__error[hidden] {
  display: none;
}

.live-chat__conversation > .live-chat__error {
  margin: 0 12px 8px;
}

/* Samtalet */
.live-chat__conversation {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.live-chat__window {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 14px 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(105, 210, 255, 0.3) transparent;
}

.live-chat__log {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-chat__msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 80%;
  margin-top: 10px;
}

.live-chat__msg:first-child {
  margin-top: 0;
}

.live-chat__msg.is-cont {
  margin-top: 3px;
}

.live-chat__msg.is-agent {
  align-self: flex-start;
}

.live-chat__msg.is-me {
  align-self: flex-end;
  align-items: flex-end;
}

.live-chat__msg small {
  padding: 0 6px;
  color: rgba(214, 230, 255, 0.48);
  font-size: 11px;
}

.live-chat__msg p {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(126, 162, 197, 0.16);
  border-radius: 16px 16px 16px 5px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.live-chat__msg.is-me p {
  border-color: transparent;
  border-radius: 16px 16px 5px 16px;
  background: var(--button-ice);
  color: #06101d;
}

.live-chat__msg.is-cont.is-agent p {
  border-top-left-radius: 5px;
}

.live-chat__msg.is-cont.is-me p {
  border-top-right-radius: 5px;
}

.live-chat__image {
  display: block;
  max-width: 220px;
  overflow: hidden;
  border: 1px solid rgba(126, 162, 197, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.live-chat__image img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.live-chat__system {
  align-self: center;
  max-width: 92%;
  margin: 12px 0 2px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(214, 230, 255, 0.55);
  font-size: 11px;
  text-align: center;
}

.live-chat__typing {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 0;
  padding: 11px 14px;
  border: 1px solid rgba(126, 162, 197, 0.16);
  border-radius: 16px 16px 16px 5px;
  background: rgba(255, 255, 255, 0.07);
}

.live-chat__typing[hidden] {
  display: none;
}

.live-chat__dots {
  display: inline-flex;
  gap: 4px;
}

.live-chat__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(214, 230, 255, 0.75);
  animation: live-chat-dot 1.2s ease-in-out infinite;
}

.live-chat__dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.live-chat__dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes live-chat-dot {
  0%, 60%, 100% { opacity: 0.35; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

.live-chat__wait {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 14px 8px;
  color: rgba(214, 230, 255, 0.72);
  font-size: 12px;
}

.live-chat__wait[hidden] {
  display: none;
}

.live-chat__wait button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary-strong);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Bilden som ska skickas */
.live-chat__attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 8px;
  padding: 6px 6px 6px 6px;
  border: 1px solid rgba(126, 162, 197, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.live-chat__attachment[hidden] {
  display: none;
}

.live-chat__attachment img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.live-chat__attachment span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: rgba(214, 230, 255, 0.8);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat__attachment button {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(214, 230, 255, 0.8);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* Skriv och skicka */
.live-chat__compose {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  margin: 0 12px 12px;
  padding: 5px;
  border: 1px solid rgba(126, 162, 197, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.live-chat__compose:focus-within {
  border-color: rgba(109, 228, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(109, 228, 255, 0.1);
}

.live-chat__compose[hidden] {
  display: none;
}

.live-chat__compose textarea {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 110px;
  padding: 8px 4px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  resize: none;
}

.live-chat__compose textarea::placeholder {
  color: rgba(214, 230, 255, 0.42);
}

.live-chat__attach {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  color: rgba(214, 230, 255, 0.7);
  cursor: pointer;
}

.live-chat__attach:hover,
.live-chat__attach:focus-within {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.live-chat__attach input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.live-chat__attach svg {
  width: 20px;
  height: 20px;
}

.live-chat__send {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  background: var(--button-ice);
  color: #06101d;
  cursor: pointer;
}

.live-chat__send svg {
  width: 18px;
  height: 18px;
}

.live-chat__send:disabled {
  opacity: 0.6;
  cursor: progress;
}

.live-chat__ended {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(105, 210, 255, 0.12);
  text-align: center;
}

.live-chat__ended[hidden] {
  display: none;
}

.live-chat__ended p {
  margin: 0;
  color: rgba(214, 230, 255, 0.8);
  font-size: 13px;
}

/* Betyg efter chatten */
.live-chat__rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 12px 12px 10px;
  border: 1px solid rgba(105, 210, 255, 0.14);
  border-radius: 14px;
  background: rgba(78, 199, 255, 0.05);
}

.live-chat__rate[hidden],
.live-chat__rate-more[hidden],
.live-chat__rate-thanks[hidden] {
  display: none;
}

.live-chat__ended .live-chat__rate-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.live-chat__stars {
  display: flex;
  gap: 2px;
}

.live-chat__stars button {
  display: inline-flex;
  padding: 3px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: rgba(214, 230, 255, 0.35);
  cursor: pointer;
  transition: color 0.12s ease, transform 0.12s ease;
}

.live-chat__stars svg {
  width: 30px;
  height: 30px;
  fill: transparent;
  transition: fill 0.12s ease;
}

.live-chat__stars button.is-on,
.live-chat__stars button.is-hover {
  color: #ffc861;
}

.live-chat__stars button.is-on svg,
.live-chat__stars button.is-hover svg {
  fill: #ffc861;
}

.live-chat__stars button:hover {
  transform: scale(1.08);
}

.live-chat__stars button:focus-visible {
  outline: 2px solid rgba(109, 228, 255, 0.7);
  outline-offset: 1px;
}

.live-chat__ended .live-chat__rate-label {
  min-height: 18px;
  color: rgba(214, 230, 255, 0.7);
  font-size: 12px;
}

.live-chat__rate-more {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.live-chat__rate-more textarea {
  width: 100%;
  min-height: 54px;
  padding: 8px 11px;
  border: 1px solid rgba(105, 210, 255, 0.18);
  border-radius: 10px;
  background: rgba(6, 16, 29, 0.55);
  color: #fff;
  font: inherit;
  font-size: 13px;
  resize: vertical;
}

.live-chat__rate-more textarea:focus {
  border-color: rgba(109, 228, 255, 0.6);
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 228, 255, 0.12);
}

.live-chat__rate-more textarea::placeholder {
  color: rgba(214, 230, 255, 0.4);
}

.live-chat__rate-send {
  align-self: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(109, 228, 255, 0.35);
  border-radius: 999px;
  background: rgba(78, 199, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.live-chat__rate-send:hover {
  background: rgba(78, 199, 255, 0.2);
}

.live-chat__rate-send:disabled {
  opacity: 0.6;
  cursor: progress;
}

.live-chat__ended .live-chat__rate-thanks {
  color: #ffc861;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .live-chat__stars button,
  .live-chat__stars svg {
    transition: none;
  }
}

@media (max-width: 720px) {
  .support-widget__panel.is-live {
    width: 100%;
    max-height: calc(100dvh - 24px);
  }

  .support-widget__panel.is-chatting {
    height: calc(100dvh - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-chat__dots i,
  .live-chat__spinner {
    animation: none;
  }
}

/* Frostline home redesign */
.home .hero,
.front-page .hero,
body:not(.page-template-page-servers) .hero:first-of-type {
  min-height: 620px;
  padding: calc(var(--frostline-fixed-stack-height, 72px) + 54px) 0 42px;
  border-top: 1px solid rgba(91, 190, 255, 0.12);
  border-bottom: 1px solid rgba(91, 190, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(5, 14, 30, 0.3) 0%, rgba(5, 14, 30, 0.18) 48%, rgba(5, 14, 30, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 14, 30, 0.04) 0%, rgba(5, 14, 30, 0.82) 100%),
    var(--frostline-page-bg-image) center 36% / cover no-repeat;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(500px, 0.9fr);
  gap: clamp(64px, 5vw, 110px);
  align-items: center;
}

.hero-copy {
  padding-top: 6px;
}

.hero__title {
  font-size: clamp(3.2rem, 5.15vw, 5.15rem);
  line-height: 0.86;
  margin-bottom: 24px;
  letter-spacing: 0;
  background: linear-gradient(180deg, #ffffff 0%, #dff7ff 34%, #7cd8ff 70%, #e8fbff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(188, 243, 255, 0.42);
  filter:
    drop-shadow(0 0 12px rgba(78, 199, 255, 0.5))
    drop-shadow(0 0 34px rgba(78, 199, 255, 0.26));
  text-shadow: 0 0 22px rgba(153, 232, 255, 0.34);
}

.hero__subtitle {
  max-width: 520px;
  color: rgba(218, 235, 255, 0.82);
  font-size: clamp(0.98rem, 1.15vw, 1.18rem);
  line-height: 1.35;
  margin-bottom: 26px;
}

.hero__actions {
  gap: 16px;
  margin-bottom: 30px;
}

.btn {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 8px;
  gap: 10px;
  font-weight: 700;
}

.btn__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  line-height: 1;
}

.btn__icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

.btn--primary {
  background: var(--button-ice);
  color: #06101d;
  box-shadow: 0 16px 40px rgba(78, 199, 255, 0.3);
}

.btn--ghost {
  border: 1px solid rgba(109, 228, 255, 0.45);
  background: rgba(78, 199, 255, 0.12);
  color: #d9f6ff;
  box-shadow: none;
}

.hero-status {
  max-width: 650px;
}

.hero-status__label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  color: #57ddff;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-status__label span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34f28a;
  box-shadow: 0 0 14px rgba(52, 242, 138, 0.8);
}

.hero-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: none;
  margin-top: 0;
}

.hero-status-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "media top top"
    "media map bottom"
    "media meter meter";
  gap: 4px 14px;
  min-height: 86px;
  padding: 10px 13px;
  border-color: rgba(78, 199, 255, 0.38);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(11, 28, 54, 0.84), rgba(5, 15, 33, 0.84));
  box-shadow: 0 12px 34px rgba(3, 10, 24, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hero-status-card__media {
  grid-area: media;
  align-self: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: rgba(12, 28, 54, 0.78);
  border: 1px solid rgba(123, 215, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.hero-status-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.hero-status-card__top {
  grid-area: top;
  align-self: end;
}

.hero-status-card__top strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-base);
}

.hero-status-card__top span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #43ef8d;
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-status-card__top span.is-offline {
  color: #ff7a88;
}

.hero-status-card__top i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.hero-status-card__map {
  grid-area: map;
  min-width: 0;
  overflow: hidden;
  color: rgba(199, 216, 244, 0.74);
  font-size: var(--text-xs);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-status-card__bottom {
  grid-area: bottom;
  justify-content: flex-end;
  gap: 5px;
  color: rgba(209, 226, 255, 0.8);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.hero-status-card__bottom b {
  color: #ffffff;
  font-size: var(--text-sm);
}

.hero-status-card__meter {
  grid-area: meter;
  align-self: end;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(133, 166, 210, 0.16);
}

.hero-status-card__meter span {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #55c6ff, #694cff);
  box-shadow: none;
}

.hero-card {
  min-height: 390px;
  padding: 20px;
  border-radius: 14px;
  border-color: rgba(111, 188, 255, 0.26);
  background: linear-gradient(145deg, rgba(8, 22, 45, 0.88), rgba(5, 14, 31, 0.9));
  box-shadow: 0 34px 95px rgba(0, 0, 0, 0.33), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-card::after {
  opacity: 0.22;
}

.spotlight-leaderboard__top {
  margin-bottom: 14px;
}

.spotlight-leaderboard__top .section__eyebrow {
  margin: 0 0 2px;
}

.spotlight-leaderboard__top h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 2px;
  font-size: var(--text-md);
}

.spotlight-leaderboard__top h3 span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(226, 237, 255, 0.72);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.spotlight-leaderboard__top h3 span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-accent);
}

.spotlight-leaderboard__game-tabs {
  gap: 8px;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.spotlight-leaderboard__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  border: 1px solid rgba(164, 199, 255, 0.16);
  border-radius: 7px;
  background: rgba(15, 31, 58, 0.62);
}

.spotlight-leaderboard__tab img {
  width: 21px;
  height: 21px;
  object-fit: cover;
  border-radius: 5px;
}

.spotlight-leaderboard__server-tabs {
  gap: 10px;
  margin-bottom: 12px;
}

.spotlight-leaderboard__server-tab {
  min-height: 30px;
  border-radius: 7px;
}

.spotlight-leaderboard__desc {
  margin-bottom: 12px;
}

.spotlight-leaderboard__header {
  grid-template-columns: 28px minmax(0, 1fr) minmax(72px, auto) minmax(60px, auto);
}

.spotlight-leaderboard__header span:first-child,
.spotlight-leaderboard__header span:nth-child(2) {
  text-align: left;
}

.spotlight-leaderboard__row {
  min-height: 36px;
  grid-template-columns: 32px minmax(0, 1fr) minmax(78px, auto) minmax(66px, auto);
  padding: 4px 8px;
  border-radius: 6px;
}

.spotlight-leaderboard__header--single {
  grid-template-columns: 28px minmax(0, 1fr) minmax(72px, auto);
}

.spotlight-leaderboard__row--single {
  grid-template-columns: 28px minmax(0, 1fr) minmax(72px, auto);
}

.spotlight-leaderboard__avatar {
  width: 25px;
  height: 25px;
  border-radius: 6px;
}

.spotlight-leaderboard__empty {
  border-radius: 7px;
}

.section--home-why {
  padding: 34px 0 46px;
  border-bottom: 1px solid rgba(91, 190, 255, 0.14);
  background: rgba(4, 14, 31, 0.62);
}

.home-why {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 2.75fr);
  gap: clamp(42px, 4.5vw, 76px);
  align-items: stretch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-why__intro h2 {
  margin: 0 0 18px;
  font-size: clamp(1.38rem, 1.75vw, 1.72rem);
  line-height: 1.1;
}

.home-why .section__description {
  margin: 0;
  color: rgba(190, 210, 240, 0.82);
  font-size: var(--text-sm);
  line-height: 1.75;
}

.home-why .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.home-why .feature-card {
  min-height: 145px;
  padding: 20px 20px 22px;
  border-radius: 8px;
  border-color: rgba(111, 188, 255, 0.2);
  background: rgba(15, 32, 59, 0.66);
}

.home-why .feature-card h3 {
  margin: -34px 0 12px 56px;
  font-size: var(--text-base);
}

.home-why .feature-card p {
  margin: 0;
  color: rgba(198, 216, 244, 0.82);
  font-size: var(--text-xs);
  line-height: 1.55;
}

.home-why .feature-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.home .support-widget:not(.is-open) .support-widget__card,
.front-page .support-widget:not(.is-open) .support-widget__card {
  display: none;
}

.home .site-footer,
.front-page .site-footer {
  margin-top: 0;
}

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

  .hero-card {
    min-height: 0;
  }

  .home-why {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .home #main-content,
  .front-page #main-content {
    padding-top: 0;
  }

  .home .hero,
  .front-page .hero,
  body:not(.page-template-page-servers) .hero:first-of-type {
    min-height: 0;
    padding: calc(var(--frostline-fixed-stack-height, 61px) + 28px) 0 36px;
    background-position: 58% center;
  }

  .hero__title {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero-status-grid {
    grid-template-columns: 1fr;
  }

  .hero-status-card {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .hero-status-card__media {
    width: 50px;
    height: 50px;
  }

  .spotlight-leaderboard__tab {
    flex-basis: calc(50% - 4px);
  }

  .spotlight-leaderboard__header {
    display: none;
  }

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

/* Frostline home live polish */
.home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
  margin: 0 0 26px;
}

.home-metric-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 12px;
  min-height: 86px;
  padding: 17px 18px;
  border: 1px solid rgba(92, 202, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(10, 27, 52, 0.72), rgba(5, 14, 31, 0.82)),
    rgba(5, 14, 31, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 42px rgba(0, 8, 24, 0.24);
}

.home-metric-card__icon {
  grid-row: 1 / span 2;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #28c9ff;
  filter: drop-shadow(0 0 18px rgba(40, 201, 255, 0.52));
}

.home-metric-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-metric-card strong {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #f4f8ff;
  font-size: clamp(1.34rem, 2vw, 1.74rem);
  line-height: 1;
}

.home-metric-card strong small {
  color: rgba(230, 242, 255, 0.88);
  font-size: 0.7em;
  font-weight: 700;
}

.home-metric-card > span:last-child {
  color: rgba(215, 230, 255, 0.82);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
}

.hero-card--live {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(7, 20, 42, 0.9), rgba(4, 13, 30, 0.92)),
    rgba(6, 15, 32, 0.86);
  overflow: hidden;
}

.hero-card--live .hero-card__content {
  height: 100%;
}

.home-live {
  padding: 22px;
}

.home-live__head,
.home-live__body,
.home-live__game-tabs,
.home-live__mode-tabs,
.home-live__leaderboard-head h3,
.home-live__all {
  display: flex;
}

.home-live__head {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.home-live__head h2,
.home-live__head p {
  margin: 0;
}

.home-live__head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f6fbff;
  font-size: var(--text-md);
  line-height: 1.1;
}

.home-live__head h2 > span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #43ef8d;
  box-shadow: 0 0 0 5px rgba(67, 239, 141, 0.12), 0 0 20px rgba(67, 239, 141, 0.62);
}

.home-live__head p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(214, 230, 255, 0.76);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

.home-live__head p svg {
  width: 17px;
  height: 17px;
  color: rgba(155, 214, 255, 0.86);
}

.home-live__game-tabs {
  gap: 8px;
  margin-bottom: 16px;
}

.home-live__game-tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  border-radius: 7px;
  border-color: rgba(120, 190, 255, 0.22);
  background: rgba(4, 14, 31, 0.72);
  color: rgba(230, 240, 255, 0.94);
  font-size: var(--text-base);
  font-weight: 700;
}

.home-live__game-tab.is-active {
  border-color: transparent;
  background: var(--button-ice);
  color: #041020;
  box-shadow: 0 16px 34px rgba(78, 199, 255, 0.24);
}

.home-live__game-tab img {
  width: 28px;
  height: 28px;
}

.home-live__body {
  min-width: 0;
  align-items: stretch;
  gap: 16px;
}

.home-live__leaderboard {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(92, 202, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 16, 34, 0.72);
}

.home-live__mode-tabs {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-live__mode-tabs::-webkit-scrollbar {
  display: none;
}

.home-live__mode-tabs[hidden] {
  display: none;
}

.home-live__mode-tab {
  flex: 1 0 auto;
  min-width: max-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid rgba(120, 190, 255, 0.18);
  background: rgba(9, 23, 45, 0.76);
  color: rgba(214, 230, 255, 0.78);
  font-size: var(--text-sm);
  font-weight: 700;
}

.home-live__mode-tab.is-active {
  background: var(--button-ice);
  color: #041020;
}

.home-live__all {
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid rgba(120, 190, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 22, 43, 0.72);
  color: rgba(236, 245, 255, 0.92);
  font-weight: 700;
}

.home-live__all span {
  color: rgba(180, 220, 255, 0.9);
  font-size: var(--text-lg);
}

.home-live__leaderboard-head h3 {
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #f6fbff;
  font-size: var(--text-base);
}

.home-live__leaderboard-head span {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #ffd166;
}

.home-live__leaderboard-head svg {
  width: 100%;
  height: 100%;
}

.home-live__leaderboard .spotlight-leaderboard__header {
  grid-template-columns: 28px minmax(96px, 1fr) minmax(52px, auto) minmax(68px, auto);
  gap: 8px;
  margin-bottom: 4px;
  color: rgba(174, 194, 226, 0.78);
  font-size: var(--text-2xs);
}

.home-live__leaderboard .spotlight-leaderboard__row {
  grid-template-columns: 28px minmax(96px, 1fr) minmax(52px, auto) minmax(68px, auto);
  gap: 8px;
  min-height: 35px;
  background: rgba(18, 35, 63, 0.55);
}

.home-live__leaderboard .spotlight-leaderboard__player {
  min-width: 0;
  width: 100%;
}

.home-live__leaderboard .spotlight-leaderboard__player > span:last-child {
  display: block;
  min-width: 0;
}

.home-live__leaderboard .spotlight-leaderboard__avatar {
  width: 24px;
  height: 24px;
}

.home-live__all--leaderboard {
  margin-top: 10px;
}

.home-live__empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(120, 190, 255, 0.24);
  border-radius: 8px;
  color: rgba(214, 230, 255, 0.74);
}

.section--home-why {
  padding: 26px 0 42px;
  background:
    linear-gradient(180deg, rgba(4, 14, 31, 0.74), rgba(4, 14, 31, 0.9)),
    rgba(4, 14, 31, 0.78);
}

.home-why {
  display: block;
}

.home-why__intro {
  max-width: 720px;
  margin: 0 auto 18px;
  text-align: center;
}

.home-why__intro h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: clamp(1.8rem, 2.35vw, 2.35rem);
}

.home-why__intro h2::after {
  content: "";
  display: block;
  width: 94px;
  height: 2px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #55c6ff, #694cff, transparent);
  box-shadow: 0 0 18px rgba(85, 198, 255, 0.28);
}

.home-why .section__description {
  display: none;
}

.home-why .feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-why .feature-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 6px 16px;
  align-items: center;
  min-height: 140px;
  padding: 22px;
  border: 1px solid rgba(92, 202, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(10, 27, 52, 0.78), rgba(5, 16, 34, 0.86));
}

.home-why .feature-card__icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  margin: 0;
  background: transparent;
  color: #28c9ff;
  filter: drop-shadow(0 0 18px rgba(40, 201, 255, 0.48));
}

.home-why .feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.home-why .feature-card h3 {
  margin: 0;
  font-size: var(--text-md);
}

.home-why .feature-card p {
  margin: 0;
  color: rgba(214, 230, 255, 0.8);
  font-size: var(--text-xs);
  line-height: 1.5;
}

@media (max-width: 1500px) {
  .home-live__body {
    flex-direction: column;
  }

  .home-live__leaderboard {
    flex-basis: auto;
  }
}

@media (max-width: 1180px) {
  .home-why .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 720px) {
  .home-metrics {
    max-width: none;
  }

  .home-live {
    padding: 16px;
  }

  .home-live__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-live__game-tabs {
    flex-direction: column;
  }

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

body .site-header .primary-nav a::after {
  content: "";
  display: none;
}

body .site-header .primary-nav .current-menu-item > a,
body .site-header .primary-nav .current_page_item > a,
body .site-header .primary-nav .current_page_parent > a,
body .site-header .primary-nav .current-menu-ancestor > a,
body .site-header .primary-nav a:hover {
  color: #04131c;
  background: linear-gradient(135deg, #58c9ff 0%, #3f7cff 100%);
  box-shadow: 0 10px 26px rgba(84, 215, 255, 0.2);
}

/* Private support image attachments. */
.support-upload__heading {
  display: block;
  margin-bottom: 10px;
  color: var(--text, #edf6ff);
  font-weight: 700;
}

.support-upload__heading small,
.support-widget__field > span small {
  color: var(--muted, #8ea5c5);
  font-size: var(--text-2xs);
  font-weight: 600;
}

.support-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px dashed rgba(91, 204, 255, 0.42);
  border-radius: 14px;
  color: var(--text, #edf6ff);
  background: rgba(6, 21, 40, 0.58);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.support-upload:hover {
  border-color: #5bd7ff;
  background: rgba(17, 49, 78, 0.7);
  transform: translateY(-1px);
}

.support-upload__icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(91, 215, 255, 0.32);
  border-radius: 12px;
  color: #5bd7ff;
  background: rgba(91, 215, 255, 0.1);
}

.support-upload__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.support-upload > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.support-upload strong {
  font-size: var(--text-base);
}

.support-upload small {
  color: var(--muted, #8ea5c5);
  font-size: var(--text-2xs);
  line-height: 1.45;
}

.support-upload--compact {
  min-height: 66px;
  padding: 11px 13px;
}

.support-upload--compact .support-upload__icon {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
}

.support-upload__input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.support-upload__input:focus-visible + .support-upload {
  outline: 2px solid #5bd7ff;
  outline-offset: 3px;
}

.support-upload__preview {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.support-upload__preview:empty {
  display: none;
}

.support-upload__preview-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid rgba(133, 175, 223, 0.18);
  border-radius: 10px;
  background: rgba(5, 18, 35, 0.66);
}

.support-upload__preview-item img {
  width: 46px;
  height: 38px;
  border-radius: 7px;
  object-fit: cover;
}

.support-upload__preview-item > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.support-upload__preview-item strong,
.support-upload__preview-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-upload__preview-item strong {
  color: var(--text, #edf6ff);
  font-size: var(--text-2xs);
}

.support-upload__preview-item small {
  color: var(--muted, #8ea5c5);
  font-size: var(--text-2xs);
}

.support-widget__order-fields[hidden],
.support-widget__row[hidden] {
  display: none !important;
}


/* Ärenderutan i hörnet: lika smal som chatten och inte högre än innehållet kräver (tog upp hela högersidan). */
@media (min-width: 721px) {
  .support-widget__panel:not(.is-live) {
    width: min(380px, calc(100vw - 28px));
    max-height: min(640px, calc(100dvh - 44px));
    padding: 18px 18px 16px;
    border-radius: 14px;
  }

  .support-widget__panel:not(.is-live) .support-widget__panel-head {
    margin-bottom: 8px;
  }

  .support-widget__panel:not(.is-live) .support-widget__panel-head h3 {
    font-size: 1.3rem;
  }

  .support-widget__panel:not(.is-live) .support-widget__panel-close {
    width: 34px;
    height: 34px;
  }

  .support-widget__panel:not(.is-live) .support-widget__text {
    margin-bottom: 8px;
    font-size: var(--text-sm);
    line-height: 1.45;
  }

  .support-widget__panel:not(.is-live) .support-widget__form {
    gap: 10px;
  }

  .support-widget__panel:not(.is-live) .support-widget__field {
    gap: 5px;
  }

  .support-widget__panel:not(.is-live) .support-widget__field span {
    font-size: var(--text-xs);
  }

  .support-widget__panel:not(.is-live) .support-widget__field input,
  .support-widget__panel:not(.is-live) .support-widget__field select,
  .support-widget__panel:not(.is-live) .support-widget__field textarea {
    padding: 10px 12px;
    font-size: var(--text-sm);
  }

  .support-widget__panel:not(.is-live) .support-widget__field--user input,
  .support-widget__panel:not(.is-live) .support-widget__field--mail input,
  .support-widget__panel:not(.is-live) .support-widget__field--discord input,
  .support-widget__panel:not(.is-live) .support-widget__field--steam input {
    padding-left: 38px;
  }

  .support-widget__panel:not(.is-live) .support-widget__field textarea {
    min-height: 96px;
  }

  .support-widget__panel:not(.is-live) .support-widget__field-note {
    font-size: 0.72rem;
  }

  .support-widget__panel:not(.is-live) .support-upload--compact {
    min-height: 52px;
    padding: 8px 11px;
  }

  .support-widget__panel:not(.is-live) .support-widget__submit {
    min-height: 46px;
    padding: 11px 48px 11px 18px;
  }
}
