@font-face {
  font-family: "Cal Sans";
  src: url("assets/fonts/CalSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --font-main: "Cal Sans", system-ui, sans-serif;
  --font-secondary: "Cal Sans", system-ui, sans-serif;
  --header-background: #0f0f0f;
  --page-background: #0b0b0b;
  --text-primary: #ffffff;
  --accent: #48b6ff;
  --accent-soft: rgba(72, 182, 255, 0.35);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1400px;
  --gutter: clamp(16px, 3vw, 40px);
  --radius-lg: clamp(22px, 2.4vw, 32px);
}

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

html {
  min-width: 320px;
  background: var(--page-background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-background);
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

button,
a,
input,
textarea,
select {
  font: inherit;
}

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

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 84px;
  background: color-mix(in srgb, var(--header-background) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: height 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  height: 66px;
  background: color-mix(in srgb, var(--header-background) 95%, transparent);
  border-bottom-color: rgba(72, 182, 255, 0.18);
}

.site-header__inner {
  width: 100%;
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-header__brand {
  width: 134px;
  height: 52px;
  flex: 0 0 134px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out);
}

.site-header__brand:hover {
  transform: translateY(-1px);
}

.site-header__logo {
  width: 124px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(72, 182, 255, 0.25));
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-button {
  width: 196px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  appearance: none;
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), filter 0.28s var(--ease-out);
}

.play-button:hover {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 6px 16px var(--accent-soft));
}

.play-button:active {
  transform: translateY(0) scale(0.99);
}

.play-button img {
  width: 100%;
  height: 100%;
}

.player-count {
  position: relative;
  width: 98px;
  height: 34px;
  flex: 0 0 98px;
  border-radius: 9px;
  overflow: hidden;
}

.player-count__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-count__content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.player-count__value {
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--ease-out);
}

.player-count.is-updating .player-count__value {
  color: var(--accent);
}

.player-count__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.page-content {
  width: 100%;
}

/* ---------- Hero (abgerundete Card, schwebt) ---------- */
.hero {
  position: relative;
  width: min(100% - (2 * var(--gutter)), var(--wrap));
  margin: clamp(18px, 2vw, 28px) auto 0;
  aspect-ratio: 1920 / 540;
  max-height: min(56vh, 460px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--header-background);
  opacity: 0;
  animation: fadeIn 0.9s var(--ease-out) 0.1s forwards;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 62% 30%, rgba(72, 182, 255, 0.16) 0%, transparent 55%),
    radial-gradient(90% 80% at 12% 90%, rgba(72, 182, 255, 0.08) 0%, transparent 60%);
  mix-blend-mode: screen;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__image {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease-out), visibility 0s linear 1s;
  will-change: transform, opacity;
}

.hero__image.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ---------- Server selection (durchgehend, Figur ganz außen) ---------- */
.server-selection {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(48px, 5vw, 76px) 0 clamp(56px, 5vw, 84px);
  overflow: hidden;
}

.server-selection__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(300px, 440px) minmax(280px, 400px);
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 3.4vw, 52px);
}


.server-selection__title {
  --liquid-x: 50%;
  --liquid-y: 50%;
  position: relative;
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 1.9vw, 36px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-align: center;
  white-space: nowrap;
  cursor: default;
  isolation: isolate;
}

.server-selection__title span {
  display: block;
}

/* Flüssige blaue Ebene: ausschließlich innerhalb der Buchstaben sichtbar. */
.server-selection__title-liquid {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: transparent;
  background:
    radial-gradient(circle at 18% 28%, #d8f5ff 0 8%, transparent 30%),
    radial-gradient(circle at 78% 30%, #63cfff 0 13%, transparent 39%),
    radial-gradient(circle at 46% 82%, #0c72c5 0 15%, transparent 44%),
    linear-gradient(120deg, #c8efff 0%, #48b6ff 34%, #147ac6 66%, #8fdcff 100%);
  background-size: 170% 170%, 190% 190%, 180% 180%, 220% 220%;
  background-position: 0% 30%, 100% 20%, 50% 100%, 0% 50%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    circle 48px at var(--liquid-x) var(--liquid-y),
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.78) 76%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 48px at var(--liquid-x) var(--liquid-y),
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.78) 76%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  filter: drop-shadow(0 0 5px rgba(72, 182, 255, 0.24));
  transition: opacity 90ms linear;
  animation: liquidTextFlow 2.7s ease-in-out infinite alternate;
}

.server-selection__title.is-liquid-active .server-selection__title-liquid {
  opacity: 1;
}

@keyframes liquidTextFlow {
  0% {
    background-position: 0% 28%, 100% 18%, 48% 100%, 0% 50%;
  }
  50% {
    background-position: 38% 62%, 62% 58%, 70% 28%, 52% 50%;
  }
  100% {
    background-position: 76% 18%, 18% 72%, 22% 44%, 100% 50%;
  }
}

.server-card {
  --card-tilt-x: 0deg;
  --card-tilt-y: 0deg;
  --card-lift: 0px;
  --card-scale: 1;
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 440 / 148;
  isolation: isolate;
  perspective: 820px;
  perspective-origin: 50% 50%;
  cursor: pointer;
}

/* Die äußere Card bleibt als stabile Hover-Fläche stehen. Nur diese innere
   Ebene dreht sich – dadurch kein Flackern und kein verlorener Hover-State. */
.server-card__surface {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-style: preserve-3d;
  will-change: transform, filter;
  transform:
    translate3d(0, var(--card-lift), 0)
    rotateX(var(--card-tilt-x))
    rotateY(var(--card-tilt-y))
    scale(var(--card-scale));
  transition:
    transform 300ms var(--ease-out),
    filter 220ms ease-out;
}

/* Während die Maus bewegt wird, folgt die Card ohne künstliche Verzögerung. */
.server-card.is-tilting .server-card__surface {
  transition: none;
}

.server-card:hover .server-card__surface {
  filter:
    drop-shadow(0 24px 30px rgba(0, 0, 0, 0.36))
    drop-shadow(0 13px 24px rgba(72, 182, 255, 0.24));
}

.server-card__surface::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 5;
  border-radius: 999px;
  background: linear-gradient(115deg, rgba(255,255,255,0.18), transparent 28%, transparent 72%, rgba(72,182,255,0.1));
  opacity: 0;
  pointer-events: none;
  transform: translateZ(18px);
  transition: opacity 160ms ease-out;
}

.server-card:hover .server-card__surface::after {
  opacity: 1;
}

.server-card__panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
}

.server-card__fire {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: auto;
  height: clamp(190px, 22vw, 250px);
  max-width: none;
  pointer-events: none;
}

/* Flamme auf der Außenseite, Glut sitzt direkt an der Panel-Kante */
.server-card__fire--left {
  left: 0;
  transform: translate(-94%, -50%);
}

.server-card__fire--right {
  right: 0;
  transform: translate(94%, -50%);
}

/* Zentriertes Panel: Name mittig, Status drunter */
.server-card__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #050505;
  text-align: center;
  transform: translateZ(38px);
}

.server-card__name,
.server-card__status {
  margin: 0;
}

.server-card__name {
  font-size: clamp(24px, 1.7vw, 33px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.server-card__status {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.1em;
  color: #6b6b6b;
  white-space: nowrap;
}

/* Flagge unten mittig, sitzt auf der Unterkante */
.server-card__flag {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  width: clamp(46px, 4vw, 54px);
  height: auto;
  transform: translate(-50%, 50%) translateZ(48px);
  border-radius: 4px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

@media (max-width: 1200px) {
  .server-selection__inner {
    grid-template-columns: minmax(260px, 360px) minmax(280px, 380px) minmax(260px, 360px);
    gap: 28px;
  }

  .server-card__name {
    font-size: clamp(23px, 2.1vw, 31px);
  }
}

@media (max-width: 1020px) {
  .server-selection {
    padding-block: 44px 60px;
  }

  .server-selection__inner {
    grid-template-columns: repeat(2, minmax(260px, 410px));
    gap: 42px 32px;
  }

  .server-selection__title {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .server-card:first-of-type {
    grid-column: 1;
    grid-row: 2;
  }

  .server-card:last-of-type {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 74px;
  }

  .site-header.is-scrolled {
    height: 62px;
  }

  .site-header__inner {
    gap: 14px;
  }

  .site-header__brand {
    width: 116px;
    height: 48px;
    flex-basis: 116px;
  }

  .site-header__logo {
    width: 112px;
  }

  .play-button {
    width: 34px;
    height: 34px;
  }

  .play-button img {
    width: 196px;
    max-width: none;
    transform: translateX(-158px);
  }

  .player-count {
    width: 84px;
    flex-basis: 84px;
  }

  .hero {
    aspect-ratio: 16 / 12;
    max-height: 62vh;
    margin-top: 16px;
  }

  .server-selection {
    padding: 40px 0 52px;
  }

  .server-selection__inner {
    grid-template-columns: minmax(0, 420px);
    gap: 38px;
  }

  .server-selection__title,
  .server-card:first-of-type,
  .server-card:last-of-type {
    grid-column: 1;
  }

  .server-selection__title {
    grid-row: 1;
    font-size: clamp(25px, 6.4vw, 34px);
    white-space: normal;
  }

  .server-card:first-of-type {
    grid-row: 2;
  }

  .server-card:last-of-type {
    grid-row: 3;
  }
}

@media (max-width: 500px) {
  .site-header__brand {
    width: 102px;
    flex-basis: 102px;
  }

  .site-header__logo {
    width: 98px;
  }

  .site-header__actions {
    gap: 7px;
  }

  .player-count {
    width: 80px;
    flex-basis: 80px;
  }

  .server-card__name {
    font-size: clamp(21px, 7.2vw, 29px);
  }

  .server-card__status {
    font-size: 11px;
  }
}

@media (hover: none), (pointer: coarse) {
  .server-card {
    cursor: default;
  }

  .server-card__surface::after {
    display: none;
  }
}

/* ---------- About us / Feature panels ---------- */
.about-features {
  position: relative;
  width: 100%;
  padding: clamp(62px, 7vw, 110px) 0 clamp(56px, 6vw, 96px);
  overflow: hidden;
}

.about-features::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -260px;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 182, 255, 0.13), transparent 68%);
  pointer-events: none;
}

.about-features__inner {
  position: relative;
  z-index: 1;
  width: min(100% - (2 * var(--gutter)), 1180px);
  margin: 0 auto;
}

.about-features__header {
  margin-bottom: clamp(26px, 3vw, 42px);
}

.about-features__title {
  max-width: 720px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.about-features__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.12fr);
  gap: clamp(20px, 2.5vw, 32px);
  align-items: stretch;
}

.about-features__tabs {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-left: 56px;
}

.about-feature-tab {
  position: relative;
  min-height: 112px;
  padding: 24px 28px 24px 26px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 26px;
  background: #ffffff;
  color: #0b0b0b;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: visible;
  text-align: left;
  cursor: pointer;
  appearance: none;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  transition:
    background 0.26s var(--ease-out),
    border-color 0.26s var(--ease-out),
    transform 0.26s var(--ease-out),
    box-shadow 0.26s var(--ease-out);
}

.about-feature-tab:hover:not(.is-active) {
  transform: translateY(-2px);
  background: #f2f2f2;
  border-color: rgba(72, 182, 255, 0.34);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.about-feature-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.about-feature-tab.is-active {
  color: #07111a;
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0) 52%),
    var(--accent);
  box-shadow: 0 18px 45px rgba(72, 182, 255, 0.19);
}

.about-feature-tab__number {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  min-width: 28px;
  color: rgba(11, 11, 11, 0.42);
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: color 0.26s var(--ease-out);
}

.about-feature-tab.is-active .about-feature-tab__number {
  color: rgba(7, 17, 26, 0.55);
}

.about-feature-tab__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: grid;
  gap: 7px;
}

.about-feature-tab__copy strong,
.about-feature-tab__copy small {
  display: block;
  font-family: var(--font-secondary);
  line-height: 1;
  text-transform: uppercase;
}

.about-feature-tab__copy strong {
  font-size: clamp(20px, 1.55vw, 25px);
  font-weight: 600;
  letter-spacing: 0.015em;
}

.about-feature-tab__copy small {
  max-width: 280px;
  color: rgba(11, 11, 11, 0.56);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.045em;
  transition: color 0.26s var(--ease-out);
}

.about-feature-tab.is-active .about-feature-tab__copy small {
  color: rgba(7, 17, 26, 0.66);
}

.about-feature-tab__active-icon {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: auto;
  right: calc(100% - 1px);
  width: 112px;
  max-width: none;
  height: 126%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(8px);
  transform-origin: center;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.45s var(--ease-out),
    visibility 0s linear 0.3s;
}

.about-feature-tab.is-active .about-feature-tab__active-icon {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  transition-delay: 0s;
}

.about-features__panels {
  position: relative;
  min-height: 504px;
  border-radius: 38px;
  overflow: hidden;
  background: #141414;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.about-feature-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition:
    opacity 0.42s var(--ease-out),
    transform 0.65s var(--ease-out),
    visibility 0s linear 0.42s;
}

.about-feature-panel[hidden] {
  display: block;
}

.about-feature-panel.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

.about-feature-panel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-feature-panel__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 10, 0.04) 12%, rgba(5, 8, 12, 0.82) 100%),
    linear-gradient(90deg, rgba(3, 8, 12, 0.22), transparent 62%);
}

.about-feature-panel__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(72, 182, 255, 0.10), transparent 44%);
  mix-blend-mode: screen;
}

.about-feature-panel__text {
  position: absolute;
  z-index: 2;
  left: clamp(26px, 3.5vw, 46px);
  right: clamp(26px, 3.5vw, 46px);
  bottom: clamp(28px, 3.5vw, 46px);
  display: grid;
  gap: 9px;
}

.about-feature-panel__text span {
  color: var(--accent);
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-feature-panel__text h3,
.about-feature-panel__text p {
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
}

.about-feature-panel__text h3 {
  max-width: 560px;
  font-size: clamp(27px, 3vw, 44px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.5);
}

.about-feature-panel__text p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-secondary);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.025em;
}

@media (max-width: 1080px) {
  .about-features__tabs {
    padding-left: 50px;
  }

  .about-feature-tab__active-icon {
    left: -64px;
    width: 102px;
  }
}

@media (max-width: 880px) {
  .about-features__layout {
    grid-template-columns: 1fr;
  }

  .about-features__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .about-feature-tab {
    min-height: 104px;
    padding: 22px;
  }

  .about-features__panels {
    min-height: 470px;
  }
}

@media (max-width: 620px) {
  .about-features {
    padding-top: 54px;
  }

  .about-features__title {
    font-size: clamp(34px, 11vw, 48px);
  }

  .about-features__tabs {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 42px;
  }

  .about-feature-tab__active-icon {
    left: -52px;
    width: 82px;
    height: 118%;
  }

  .about-feature-tab {
    min-height: 86px;
    padding: 18px 20px;
    border-radius: 20px;
  }


  .about-feature-tab__copy {
    gap: 5px;
  }

  .about-feature-tab__copy strong {
    font-size: 20px;
  }

  .about-feature-tab__copy small {
    font-size: 12px;
  }

  .about-features__panels {
    min-height: 410px;
    border-radius: 26px;
  }

  .about-feature-panel__text {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .about-feature-panel__text h3 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .about-feature-panel__text p {
    font-size: 14px;
    line-height: 1.25;
  }
}


/* ---------- Launcher guide ---------- */
.launcher-guide {
  position: relative;
  width: 100%;
  padding: clamp(16px, 2vw, 30px) 0 clamp(78px, 9vw, 128px);
  overflow: hidden;
}

.launcher-guide::before {
  content: "";
  position: absolute;
  width: 820px;
  height: 820px;
  left: -360px;
  bottom: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 182, 255, 0.14), transparent 67%);
  pointer-events: none;
}

.launcher-guide::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -260px;
  top: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 182, 255, 0.08), transparent 68%);
  pointer-events: none;
}

.launcher-guide__inner {
  position: relative;
  z-index: 1;
  width: min(100% - (2 * var(--gutter)), 1280px);
  margin: 0 auto;
}

.launcher-guide__header {
  display: grid;
  gap: 13px;
  max-width: 900px;
  margin-bottom: clamp(26px, 3.5vw, 48px);
}

.launcher-guide__title {
  position: relative;
  max-width: 900px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 4.45vw, 68px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.047em;
}

.launcher-guide__lead {
  max-width: 790px;
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: clamp(14px, 1.18vw, 17px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

.launcher-guide__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
  gap: clamp(28px, 3.2vw, 48px);
  align-items: center;
  min-height: 540px;
}

.launcher-guide__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 540px;
  margin: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.launcher-guide__visual::before {
  content: "";
  position: absolute;
  left: 3%;
  top: 15%;
  width: 78%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 182, 255, 0.17), rgba(72, 182, 255, 0.035) 44%, transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}

.launcher-guide__visual::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 8%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.58), transparent 70%);
  filter: blur(13px);
  pointer-events: none;
}

.launcher-guide__visual img {
  position: relative;
  z-index: 2;
  display: block;
  width: 116%;
  max-width: none;
  height: auto;
  margin-left: -11%;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.42));
  transform: translateY(4px);
}

.launcher-guide__visual-glow {
  display: none;
}

.launcher-guide__content {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 24px;
  margin-left: 0;
}

.launcher-guide__steps {
  position: relative;
  display: grid;
  gap: 20px;
}

.launcher-guide__steps::before {
  display: none;
}

.launcher-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 106px;
  padding: 18px 24px;
  border-radius: 26px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  color: #08121b;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.20);
  transition:
    transform 0.34s var(--ease-out),
    box-shadow 0.34s var(--ease-out),
    border-color 0.34s var(--ease-out);
}

.launcher-step::before {
  display: none;
}

.launcher-step::after {
  content: "";
  position: absolute;
  right: -72px;
  top: -92px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 182, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.launcher-step:hover {
  transform: translateY(-4px);
  border-color: rgba(72, 182, 255, 0.34);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.3);
}

.launcher-step__index {
  position: relative;
  z-index: 3;
  display: block;
  min-width: 28px;
  color: rgba(8, 18, 27, 0.40);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: left;
}

.launcher-step__copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.launcher-step__copy h3,
.launcher-step__copy p {
  margin: 0;
  text-transform: uppercase;
}

.launcher-step__copy h3 {
  color: #08121b;
  font-size: clamp(20px, 1.55vw, 26px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.034em;
}

.launcher-step__copy p {
  max-width: 360px;
  color: rgba(8, 18, 27, 0.62);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.012em;
}

/* Disabled launcher download */
.launcher-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-left: 2px;
}

.launcher-download__button {
  position: relative;
  min-width: 246px;
  min-height: 58px;
  padding: 8px 22px 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 19px;
  background: linear-gradient(135deg, #34383d, #25282c);
  color: rgba(255, 255, 255, 0.50);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  cursor: not-allowed;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
  opacity: 0.78;
}

.launcher-download__button::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -34%;
  width: 42%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  transform: rotate(20deg);
}

.launcher-download__icon {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.launcher-download__icon img {
  width: 17px;
  height: 18px;
  opacity: 0.50;
}

.launcher-download__tray {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 4px;
  border: solid rgba(255, 255, 255, 0.34);
  border-width: 0 1.5px 1.5px;
  border-radius: 0 0 3px 3px;
}

.launcher-download__label {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.launcher-download__status {
  padding-left: 11px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .launcher-guide__layout {
    grid-template-columns: minmax(0, 1.06fr) minmax(370px, 0.94fr);
  }

  .launcher-guide__visual img {
    width: 122%;
    margin-left: -13%;
  }

  .launcher-guide__content {
    margin-left: 0;
  }
}

@media (max-width: 920px) {
  .launcher-guide__layout {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
  }

  .launcher-guide__visual {
    min-height: 0;
    order: 1;
    margin: -20px 0 -54px;
  }

  .launcher-guide__visual img {
    width: 118%;
    margin-left: -8%;
  }

  .launcher-guide__content {
    order: 2;
    margin-left: 0;
  }

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

  .launcher-step,
  .launcher-step:nth-child(2),
  .launcher-step:nth-child(3),
  .launcher-step:hover,
  .launcher-step:nth-child(2):hover,
  .launcher-step:nth-child(3):hover {
    transform: none;
  }

  .launcher-step {
    grid-template-columns: 28px 1fr;
    align-items: center;
    min-height: 130px;
    padding: 18px 20px;
  }
}

@media (max-width: 720px) {
  .launcher-guide {
    padding-bottom: 82px;
  }

  .launcher-guide__title {
    font-size: clamp(36px, 11vw, 50px);
  }

  .launcher-guide__steps {
    grid-template-columns: 1fr;
  }

  .launcher-step {
    grid-template-columns: 28px 1fr;
    min-height: 0;
    padding: 17px 18px;
    border-radius: 22px;
  }

  .launcher-guide__visual {
    margin: -8px 0 -26px;
  }

  .launcher-guide__visual img {
    width: 120%;
    margin-left: -10%;
  }
}

@media (max-width: 480px) {
  .launcher-download__button {
    width: 100%;
    min-width: 0;
  }
  .launcher-guide__visual img {
    width: 128%;
    margin-left: -14%;
  }

  .launcher-step {
    grid-template-columns: 26px 1fr;
    gap: 13px;
    padding: 16px;
    border-radius: 21px;
  }

  .launcher-step__index {
    min-width: 26px;
    font-size: 13px;
  }

  .launcher-step__copy h3 {
    font-size: 18px;
  }

  .launcher-step__copy p {
    font-size: 11px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.site-footer__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.24s var(--ease-out), opacity 0.24s var(--ease-out);
}

.site-footer__logo-link:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.site-footer__logo {
  display: block;
  width: 104px;
  height: auto;
  opacity: 0.88;
}

.site-footer__copy {
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

.site-footer__forum {
  min-width: 112px;
}

.site-footer__online {
  min-width: 164px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  transition: transform 0.24s var(--ease-out), background 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out);
}

.site-footer__online:hover {
  transform: translateY(-2px);
  background: #65c3ff;
  box-shadow: 0 8px 22px rgba(72, 182, 255, 0.24);
}

.site-footer__online-label {
  font-size: 12px;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.site-footer__online-value {
  min-width: 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.site-footer__online.is-updating .site-footer__online-value {
  color: #07111a;
}

.site-footer__online-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

@media (max-width: 720px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .site-footer__forum {
    width: auto;
    min-width: 112px;
    padding: 0 14px;
  }

  .site-footer__forum span {
    display: inline;
  }
}

@media (max-width: 500px) {
  .site-footer__brand {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  .site-footer__logo {
    width: 90px;
  }

  .site-footer__copy {
    font-size: 11px;
  }

  .site-footer__actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
  }

  .site-footer__forum,
  .site-footer__online {
    width: 100%;
    min-width: 0;
  }

  .site-footer__online {
    padding: 0 10px;
  }

  .site-footer__online-label {
    font-size: 10px;
  }
}


/* ---------- Start-playing onboarding ---------- */
body.is-start-flow-open {
  overflow: hidden;
}

.start-flow {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 70px);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  background: rgba(3, 7, 12, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity 0.28s var(--ease-out), visibility 0s linear 0.28s;
}

.start-flow[hidden] {
  display: none;
}

.start-flow.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.start-flow::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: -2;
  background: url("assets/images/hero1.png") center/cover no-repeat;
  filter: blur(8px) saturate(0.7);
  opacity: 0.2;
  transform: scale(1.06);
}

.start-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 48%, rgba(72, 182, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(3, 8, 14, 0.58), rgba(3, 8, 14, 0.94));
}

.start-flow__dialog {
  position: relative;
  width: min(720px, 100%);
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 70px 24px 44px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  transform: translateY(12px);
  transition: transform 0.34s var(--ease-out);
}

.start-flow.is-open .start-flow__dialog {
  transform: translateY(0);
}

.start-flow__close {
  position: fixed;
  z-index: 5;
  top: clamp(22px, 3vw, 38px);
  right: clamp(22px, 3vw, 38px);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.start-flow__close:hover {
  background: transparent;
  opacity: 1;
  transform: rotate(90deg);
}

.start-flow__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #ffffff;
}

.start-flow__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.start-flow__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.start-flow__step {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
}

.start-flow__step[hidden] {
  display: none;
}

.start-flow__step.is-active {
  animation: start-flow-step-in 0.36s var(--ease-out) forwards;
}

@keyframes start-flow-step-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.start-flow__icon {
  width: clamp(82px, 9vw, 108px);
  height: clamp(82px, 9vw, 108px);
  display: block;
  object-fit: contain;
  border-radius: 22px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.38));
}

.start-flow__step h2 {
  max-width: 660px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
}

.start-flow__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.start-flow__answer {
  min-width: 150px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: transform 0.22s var(--ease-out), background 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}

.start-flow__answer:hover {
  transform: translateY(-3px);
}

.start-flow__answer--yes {
  color: #06111a;
  background: var(--accent);
  box-shadow: 0 14px 32px rgba(72, 182, 255, 0.22);
}

.start-flow__answer--yes:hover {
  background: #72c9ff;
  box-shadow: 0 18px 38px rgba(72, 182, 255, 0.32);
}

.start-flow__answer--no {
  color: #0a1118;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.start-flow__answer--no:hover {
  background: #edf7ff;
}

@media (max-width: 620px) {
  .start-flow {
    padding: 18px;
  }

  .start-flow__dialog {
    min-height: 360px;
    padding: 52px 10px 26px;
  }

  .start-flow__close {
    width: 34px;
    height: 34px;
    top: 18px;
    right: 18px;
  }

  .start-flow__step {
    gap: 20px;
  }

  .start-flow__step h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .start-flow__actions {
    width: min(100%, 380px);
  }

  .start-flow__answer {
    flex: 1;
    min-width: 0;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero { opacity: 1; }
  .hero__image { transform: none; }

  .server-card__surface {
    transform: none;
  }

  .server-selection__title-liquid {
    transition: none;
  }
}

@media (max-width: 430px) {
  .about-feature-tab {
    padding-right: 20px;
  }

  .about-features__tabs {
    padding-left: 38px;
  }

  .about-feature-tab__active-icon {
    left: -48px;
    width: 76px;
  }
}

/* ========================================================================== 
   V17 refinements: calm server hover, reusable liquid headings, forum link
   ========================================================================== */

/* Header forum link */
.forum-button {
  min-width: 112px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.025em;
  box-shadow: 0 0 0 rgba(72, 182, 255, 0);
  transition:
    transform 0.24s var(--ease-out),
    background 0.24s var(--ease-out),
    box-shadow 0.24s var(--ease-out);
}

.forum-button:hover {
  transform: translateY(-2px);
  background: #65c3ff;
  box-shadow: 0 8px 22px rgba(72, 182, 255, 0.24);
}

.forum-button:active {
  transform: translateY(0);
}

.forum-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.forum-button__icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

/* Reusable liquid effect on standalone white headings. */
.about-features__title {
  --liquid-x: 50%;
  --liquid-y: 50%;
  position: relative;
  isolation: isolate;
  cursor: default;
}

.about-features__title-base {
  display: block;
}

.about-features__title .server-selection__title-liquid {
  display: block;
}

.server-selection__title.is-liquid-active .server-selection__title-liquid,
.about-features__title.is-liquid-active .server-selection__title-liquid {
  opacity: 1;
}

/* Keep the reveal compact around the pointer. */
.server-selection__title-liquid {
  -webkit-mask-image: radial-gradient(
    circle 42px at var(--liquid-x) var(--liquid-y),
    #000 0%,
    #000 56%,
    rgba(0, 0, 0, 0.72) 74%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 42px at var(--liquid-x) var(--liquid-y),
    #000 0%,
    #000 56%,
    rgba(0, 0, 0, 0.72) 74%,
    transparent 100%
  );
}

/* Simple fixed slanted lift: no mouse tracking and no separate text depth. */
.server-card {
  --card-hover-rotate: -0.7deg;
  perspective: none;
}

.server-card:last-of-type {
  --card-hover-rotate: 0.7deg;
}

.server-card__surface {
  transform: translate3d(0, 0, 0) rotate(0deg);
  transform-style: flat;
  will-change: transform, filter;
  transition:
    transform 230ms var(--ease-out),
    filter 230ms var(--ease-out);
}

.server-card:hover .server-card__surface {
  transform: translate3d(0, -9px, 0) rotate(var(--card-hover-rotate));
  filter:
    drop-shadow(0 20px 26px rgba(0, 0, 0, 0.32))
    drop-shadow(0 9px 18px rgba(72, 182, 255, 0.18));
}

.server-card__surface::after,
.server-card__panel,
.server-card__content {
  transform: none;
}

.server-card__flag {
  transform: translate(-50%, 50%);
}

@media (max-width: 720px) {
  .forum-button {
    width: 34px;
    min-width: 34px;
    padding: 0;
  }

  .forum-button span {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .server-card:hover .server-card__surface {
    transform: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .server-card:hover .server-card__surface {
    transform: none;
  }
}

/* ========================================================================== 
   V18 header order and pulsing play outlines
   ========================================================================== */

.site-header__actions {
  gap: 14px;
  overflow: visible;
}

.play-button {
  position: relative;
  isolation: isolate;
  overflow: visible;
  margin: 0 8px;
}

.play-button img {
  position: relative;
  z-index: 2;
  display: block;
  border-radius: inherit;
}

.play-button::before,
.play-button::after {
  position: absolute;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(96, 198, 255, 0.82);
  opacity: 0.34;
  z-index: 0;
  transform: translateZ(0) scale(1);
  box-shadow:
    0 0 10px rgba(72, 182, 255, 0.22),
    inset 0 0 8px rgba(72, 182, 255, 0.08);
}

.play-button::before {
  inset: -5px;
  border-radius: 13px;
  animation: play-outline-pulse-inner 2.35s ease-in-out infinite;
}

.play-button::after {
  inset: -11px;
  border-radius: 17px;
  border-color: rgba(72, 182, 255, 0.58);
  animation: play-outline-pulse-outer 2.35s ease-in-out 0.42s infinite;
}

.play-button:hover::before,
.play-button:hover::after {
  border-color: rgba(150, 224, 255, 0.95);
  box-shadow:
    0 0 17px rgba(72, 182, 255, 0.38),
    inset 0 0 10px rgba(72, 182, 255, 0.12);
}

@keyframes play-outline-pulse-inner {
  0%, 100% {
    opacity: 0.24;
    transform: scale(0.995);
  }
  48% {
    opacity: 0.78;
    transform: scale(1.018);
  }
}

@keyframes play-outline-pulse-outer {
  0%, 100% {
    opacity: 0.12;
    transform: scale(0.99);
  }
  52% {
    opacity: 0.54;
    transform: scale(1.028);
  }
}

.forum-button {
  gap: 9px;
}

.forum-button__icon {
  order: 2;
}

@media (max-width: 720px) {
  .site-header__actions {
    gap: 9px;
  }

  .play-button {
    margin: 0 5px;
  }

  .play-button::before {
    inset: -4px;
  }

  .play-button::after {
    inset: -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .play-button::before,
  .play-button::after {
    animation: none;
    opacity: 0.34;
  }
}

/* ========================================================================== 
   V20 minimal Mirage language selector
   ========================================================================== */

.site-header__left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-selector {
  position: relative;
  z-index: 70;
  flex: 0 0 auto;
}

.language-selector__trigger {
  min-width: 52px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: none;
  transition: opacity 170ms var(--ease-out), transform 170ms var(--ease-out);
}

.language-selector__trigger:hover,
.language-selector.is-open .language-selector__trigger {
  opacity: 1;
  transform: translateY(-1px);
}

.language-selector__trigger:focus-visible,
.language-selector__option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.language-selector__active-flag {
  width: 23px;
  height: 16px;
  display: block;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(72, 182, 255, 0.08);
}

.language-selector__chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 2px solid rgba(255, 255, 255, 0.86);
  border-bottom: 2px solid rgba(255, 255, 255, 0.86);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.language-selector__trigger:hover .language-selector__chevron,
.language-selector.is-open .language-selector__chevron {
  border-color: var(--accent);
}

.language-selector.is-open .language-selector__chevron {
  transform: translateY(2px) rotate(225deg);
}

.language-selector__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -8px;
  width: 44px;
  padding: 9px 7px;
  border: 1px solid rgba(72, 182, 255, 0.14);
  border-radius: 15px;
  background: rgba(12, 15, 18, 0.97);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.44),
    0 0 24px rgba(72, 182, 255, 0.06);
  transform-origin: top left;
  transform: translateY(-5px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 150ms var(--ease-out),
    transform 180ms var(--ease-out),
    visibility 150ms;
}

.language-selector__menu:not([hidden]) {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.language-selector.is-open .language-selector__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.language-selector__option {
  width: 30px;
  height: 23px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.54;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), filter 160ms var(--ease-out);
}

.language-selector__option:hover,
.language-selector__option.is-active {
  background: transparent;
  opacity: 1;
  transform: scale(1.08);
}

.language-selector__option.is-active {
  filter: drop-shadow(0 0 6px rgba(72, 182, 255, 0.42));
}

.language-selector__option img {
  width: 25px;
  height: 17px;
  display: block;
  object-fit: cover;
  border-radius: 1px;
}

@media (max-width: 720px) {
  .site-header__left {
    gap: 11px;
  }

  .language-selector__trigger {
    min-width: 47px;
    height: 32px;
    gap: 10px;
  }

  .language-selector__active-flag {
    width: 21px;
    height: 14px;
  }

  .language-selector__menu {
    left: -7px;
    top: calc(100% + 10px);
  }
}

@media (max-width: 500px) {
  .site-header__inner {
    gap: 8px;
  }

  .site-header__left {
    gap: 7px;
  }

  .site-header__brand {
    width: 90px;
    flex-basis: 90px;
  }

  .site-header__logo {
    width: 88px;
  }

  .language-selector__trigger {
    min-width: 43px;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-selector__trigger,
  .language-selector__chevron,
  .language-selector__menu,
  .language-selector__option {
    transition: none;
  }
}

/* ========================================================================== 
   V21 transparent language dropdown + translatable play button
   ========================================================================== */

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.play-button:hover {
  background: #65c3ff;
}

.play-button__label,
.play-button__icon {
  position: relative;
  z-index: 2;
}

.play-button .play-button__icon {
  width: 17px;
  height: 17px;
  max-width: 17px;
  flex: 0 0 17px;
  border-radius: 0;
  transform: none;
}

.language-selector__menu {
  top: calc(100% + 12px);
  left: 0;
  width: 25px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-5px);
}

.language-selector__menu:not([hidden]) {
  display: grid;
  justify-items: start;
  gap: 11px;
}

.language-selector.is-open .language-selector__menu {
  transform: translateY(0);
}

.language-selector__option {
  width: 25px;
  height: 17px;
  border-radius: 1px;
}

.language-selector__option img {
  width: 23px;
  height: 16px;
}

@media (max-width: 720px) {
  .play-button {
    width: 34px;
    min-width: 34px;
    padding: 0;
  }

  .play-button__label {
    display: none;
  }

  .play-button .play-button__icon {
    width: 17px;
    height: 17px;
    transform: none;
  }

  .language-selector__menu {
    left: 0;
    top: calc(100% + 10px);
  }
}


/* ========================================================================== 
   V22 clean unified header actions
   ========================================================================== */

/* Remove the animated double outline from the start button completely. */
.play-button {
  margin: 0;
  overflow: hidden;
  background: var(--accent);
  box-shadow: none;
}

.play-button::before,
.play-button::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* Keep all three header action blocks on exactly the same blue. */
.forum-button,
.play-button,
.player-count {
  background: var(--accent);
}

.forum-button:hover,
.play-button:hover {
  background: #65c3ff;
}

/* The SVG used to paint a slightly different blue behind the player count. */
.player-count__background {
  display: none;
}

.play-button .play-button__icon {
  width: 18px;
  height: 18px;
  max-width: 18px;
  flex-basis: 18px;
}

@media (max-width: 720px) {
  .play-button {
    margin: 0;
  }
}
