:root {
  color-scheme: dark;
  --bg: #050517;
  --panel: rgba(14, 14, 37, .92);
  --panel-2: #10102a;
  --line: rgba(149, 151, 215, .18);
  --muted: #9292aa;
  --text: #f5f5ff;
  --blue: #6467f2;
  --blue-bright: #7779ff;
  --cyan: #8c8eff;
  --success: #38e890;
  --display: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  background:
    radial-gradient(circle at 20% 12%, rgba(87, 91, 236, .16), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(55, 32, 150, .15), transparent 30%),
    linear-gradient(180deg, #09091d 0, #050517 48%, #060617 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background:
    linear-gradient(90deg, rgba(5,5,23,.2), rgba(5,5,23,.82)),
    repeating-linear-gradient(120deg, transparent 0 18px, rgba(110,112,255,.018) 19px, transparent 20px 38px);
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  top: -18vw;
  left: 50%;
  width: min(1100px, 90vw);
  height: 700px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(94, 97, 238, .14), transparent 67%);
  filter: blur(12px);
}

.ambient { position: fixed; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(115,117,255,.06); pointer-events: none; }
.ambient::before, .ambient::after { content: ""; position: absolute; inset: 55px; border-radius: 50%; border: 1px solid rgba(115,117,255,.045); }
.ambient::after { inset: 100px; }
.ambient--one { top: 18%; left: -285px; }
.ambient--two { right: -330px; bottom: -120px; border-color: rgba(103,105,242,.07); }

.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: auto;
  padding: 0 54px;
  border-bottom: 1px solid rgba(145,147,217,.12);
}

.brand { display: inline-flex; align-items: center; gap: 15px; color: var(--text); text-decoration: none; }
.brand__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 15px rgba(100,103,242,.9); }
.brand strong { display: block; font: 900 23px/1 var(--display); letter-spacing: .2px; }
.brand strong em { color: var(--blue-bright); font-style: normal; }
.brand small { display: block; margin-top: 7px; color: var(--blue-bright); font-size: 8px; letter-spacing: 2.3px; }

.discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: rgba(100, 103, 242, .12);
  border: 1px solid rgba(126, 128, 255, .42);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(42, 44, 157, .14);
  font: 800 10px/1 var(--body);
  letter-spacing: 1.2px;
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.discord-button__icon { display: grid; place-items: center; width: 20px; height: 20px; color: var(--blue-bright); font-size: 14px; }
.discord-button:hover { background: linear-gradient(100deg, #575af1, #7779f4); border-color: transparent; transform: translateY(-1px); box-shadow: 0 14px 32px rgba(91,94,239,.25); }
.discord-button:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }

.shell { width: min(1180px, calc(100% - 72px)); margin: 72px auto 62px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .82fr); gap: 7vw; align-items: center; }
.briefing { padding: 34px 0; }
.hero-copy {
  position: relative;
  max-width: 610px;
  padding: 34px 36px 32px;
  margin-bottom: 22px;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(25,25,65,.82), rgba(11,11,32,.56)),
    radial-gradient(circle at 92% 0, rgba(103,106,242,.2), transparent 43%);
  border: 1px solid rgba(143,145,224,.17);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
}
.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 3px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(var(--blue-bright), rgba(119,121,255,.1));
}
.eyebrow { margin: 0 0 24px; color: var(--cyan); font: 700 10px/1 var(--body); letter-spacing: 2.6px; text-transform: uppercase; }
.eyebrow span { display: inline-grid; place-items: center; width: 29px; height: 22px; margin-right: 10px; color: #fff; background: var(--blue); border-radius: 4px; }
h1 { margin: 0; max-width: 690px; font: 900 clamp(48px, 5.8vw, 78px)/.96 var(--display); letter-spacing: -2.2px; text-transform: uppercase; text-wrap: balance; }
h1 em { color: var(--blue-bright); font-style: inherit; text-shadow: 0 7px 34px rgba(100,103,242,.24); }
.lede { max-width: 570px; margin: 28px 0 32px; color: #b8b8ce; font-size: 15px; line-height: 1.75; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-highlights span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; color: #c4c4d9; background: rgba(7,7,25,.46); border: 1px solid rgba(130,132,205,.16); border-radius: 999px; font-size: 9px; letter-spacing: .4px; }
.hero-highlights i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 9px rgba(119,121,255,.9); }

.loadout-card { max-width: 570px; overflow: hidden; background: linear-gradient(135deg, rgba(18,18,48,.96), rgba(10,10,29,.94)); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.025); }
.loadout-card__top { display: flex; justify-content: space-between; padding: 13px 18px; color: #c4cecd; border-bottom: 1px solid var(--line); font: 700 9px/1 var(--body); letter-spacing: 1.8px; }
.loadout-card__code { color: var(--cyan); }
.loadout-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.loadout-grid div { padding: 17px 18px 15px; border-right: 1px solid var(--line); }
.loadout-grid div:last-child { border: 0; }
.loadout-grid strong { display: block; font: italic 800 24px/1 var(--display); letter-spacing: .5px; }
.loadout-grid span { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.loadout-card > p { margin: 0; padding: 12px 18px; color: #748183; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.5; }

.steps { display: flex; gap: 30px; margin: 30px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 9px; color: #536062; }
.steps span { font: 700 9px/1 var(--body); }
.steps b { font: 600 9px/1 var(--body); letter-spacing: 1.3px; text-transform: uppercase; }
.steps__active { color: var(--cyan) !important; }

.registration-panel { position: relative; padding: 40px 38px 32px; background: linear-gradient(155deg, rgba(18,18,48,.97), rgba(9,9,29,.96)); border: 1px solid rgba(153,155,220,.22); border-radius: 14px; box-shadow: 0 36px 90px rgba(0,0,0,.42), 0 0 70px rgba(82,84,218,.09), inset 0 1px rgba(255,255,255,.025); backdrop-filter: blur(16px); }
.registration-panel::before { content: ""; position: absolute; left: 38px; right: 38px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.registration-panel::after { display: none; }
.panel-heading { margin-bottom: 27px; }
.panel-heading > p { margin: 0 0 9px; color: var(--blue-bright); font: 700 8px/1 var(--body); letter-spacing: 2.1px; }
.panel-heading h2 { margin: 0; font: 900 clamp(25px, 2.1vw, 34px)/1.1 var(--display); letter-spacing: -.4px; text-transform: uppercase; white-space: nowrap; }
.panel-heading > span { display: block; margin-top: 8px; color: #748082; font-size: 11px; }

.notice { display: flex; gap: 12px; margin: 0 0 21px; padding: 13px 14px; border: 1px solid; }
.notice > span { flex: 0 0 23px; height: 23px; display: grid; place-items: center; font-weight: 800; }
.notice strong { display: block; margin: 1px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.notice p { margin: 0; color: #a7b1b0; font-size: 11px; line-height: 1.45; }
.notice--success { border-color: rgba(123,214,167,.28); background: rgba(75,160,115,.08); }
.notice--success > span { color: #07120d; background: var(--success); }
.notice--error { border-color: rgba(255,91,112,.3); background: rgba(222,61,86,.08); }
.notice--error > span { color: #fff; background: #ee5269; }

.field { margin-bottom: 18px; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.field__label label { color: #c8d2d1; font-size: 10px; font-weight: 700; letter-spacing: 1.25px; text-transform: uppercase; }
.field__label span { color: #5f6a6c; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.input-wrap { height: 54px; display: flex; align-items: center; background: rgba(7,7,25,.86); border: 1px solid #303051; border-radius: 7px; transition: border-color .18s, box-shadow .18s, background .18s; }
.input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(100,103,242,.11); }
.input-icon { width: 46px; color: #5d696b; font: 800 10px/1 var(--display); text-align: center; letter-spacing: .5px; }
.input-icon--key { font-size: 8px; }
input[type="text"], input[type="password"] { min-width: 0; flex: 1; height: 100%; padding: 0 8px 0 0; color: var(--text); background: transparent; border: 0; outline: 0; font: 500 14px/1 var(--body); }
input::placeholder { color: #4a5557; }
.reveal { height: 100%; padding: 0 14px; color: #708082; background: transparent; border: 0; cursor: pointer; font: 700 8px/1 var(--body); letter-spacing: 1px; }
.reveal:hover, .reveal:focus-visible { color: var(--cyan); outline: 0; }
.field__help { margin: 7px 0 0; color: #657174; font-size: 9px; }
.field__error { margin: 7px 0 0; color: #ff7388; font-size: 10px; }
.field--error .input-wrap { border-color: #ee5269; }
.password-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 6px; }
.password-meter i { height: 2px; background: #273034; transition: background .18s; }
.password-meter[data-score="1"] i:nth-child(-n+1), .password-meter[data-score="2"] i:nth-child(-n+2) { background: #ee5269; }
.password-meter[data-score="3"] i:nth-child(-n+3) { background: #d6b756; }
.password-meter[data-score="4"] i { background: var(--success); }

.consent { position: relative; margin: 4px 0 21px; padding-left: 27px; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent label { color: #849092; font-size: 10px; line-height: 1.55; cursor: pointer; }
.consent label span { position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border: 1px solid #3d3d5c; border-radius: 3px; background: #09091e; }
.consent input:focus-visible + label span { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(100,212,207,.12); }
.consent input:checked + label span { border-color: var(--blue); background: var(--blue); }
.consent input:checked + label span::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #071011; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent--error label span { border-color: #ee5269; }

.submit { width: 100%; height: 57px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px 0 22px; color: #fff; background: linear-gradient(100deg, #575af1, #7779f4); border: 0; border-radius: 7px; cursor: pointer; box-shadow: 0 14px 34px rgba(91,94,239,.28); transition: filter .18s, transform .18s, box-shadow .18s; }
.submit span { font: 800 13px/1 var(--display); letter-spacing: 1.4px; }
.submit i { font: 400 22px/1 var(--body); }
.submit:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 18px 38px rgba(91,94,239,.34); }
.submit:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.submit:disabled { cursor: wait; filter: grayscale(.3); opacity: .7; }
.form-footnote { margin: 14px 0 0; color: #566164; font-size: 9px; text-align: center; }
.form-footnote span { margin-right: 6px; color: var(--cyan); font-size: 7px; }

footer { max-width: 1380px; margin: 0 auto; padding: 22px 54px 28px; display: flex; justify-content: space-between; color: #414b4d; border-top: 1px solid rgba(188,211,212,.08); font: 600 8px/1 var(--body); letter-spacing: 1.6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .site-header { padding: 0 30px; }
  .shell { width: min(650px, calc(100% - 44px)); grid-template-columns: 1fr; gap: 38px; margin-top: 38px; }
  .briefing { padding-bottom: 0; }
  .registration-panel { padding: 34px; }
  h1 { font-size: clamp(48px, 11vw, 72px); }
}

@media (max-width: 560px) {
  .site-header { height: 78px; padding: 0 20px; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 7px; letter-spacing: 1.4px; }
  .brand__dot { width: 8px; height: 8px; }
  .discord-button { min-height: 38px; padding: 0 12px; font-size: 8px; letter-spacing: .8px; }
  .discord-button__icon { display: none; }
  .shell { width: calc(100% - 28px); margin: 24px auto 32px; gap: 31px; }
  .briefing { padding-top: 20px; }
  h1 { font-size: clamp(43px, 14vw, 62px); }
  .lede { font-size: 14px; }
  .hero-copy { padding: 28px 22px 26px; border-radius: 14px; }
  .hero-highlights { gap: 7px; }
  .loadout-grid { grid-template-columns: 1fr; }
  .loadout-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .loadout-grid div:last-child { border-bottom: 0; }
  .panel-heading h2 { font-size: clamp(23px, 7.5vw, 31px); }
  .steps { gap: 15px; }
  .steps b { display: none; }
  .registration-panel { padding: 29px 20px 25px; }
  footer { padding: 20px; }
  footer span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
    /* V4 is embedded here intentionally so Docker/browser cache cannot serve the old layout. */
    .site-header .discord-button {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 11px !important;
      min-height: 44px !important;
      padding: 0 19px !important;
      color: #fff !important;
      background: linear-gradient(100deg, #5860ed, #7476f4) !important;
      border: 1px solid rgba(255,255,255,.12) !important;
      border-radius: 8px !important;
      box-shadow: 0 12px 30px rgba(78,82,224,.30) !important;
      font: 800 11px/1 "Segoe UI", Arial, sans-serif !important;
      letter-spacing: .8px !important;
      text-decoration: none !important;
      transition: transform .18s, filter .18s, box-shadow .18s !important;
    }
    .site-header .discord-button:hover {
      filter: brightness(1.1) !important;
      transform: translateY(-2px) !important;
      box-shadow: 0 17px 38px rgba(78,82,224,.40) !important;
    }
    .discord-button svg { width: 21px; height: 16px; flex: 0 0 auto; fill: currentColor; }

    .shell { grid-template-columns: minmax(0, 1.08fr) minmax(420px, .78fr) !important; gap: 72px !important; }
    .briefing { padding: 0 !important; }
    .reborn-overview {
      position: relative;
      overflow: hidden;
      max-width: 650px;
      padding: 0;
      background: linear-gradient(145deg, rgba(18,18,50,.97), rgba(8,8,28,.96));
      border: 1px solid rgba(139,142,226,.22);
      border-radius: 20px;
      box-shadow: 0 30px 80px rgba(0,0,0,.34), 0 0 80px rgba(84,88,220,.08);
    }
    .reborn-overview::before {
      content: "";
      position: absolute;
      width: 330px;
      height: 330px;
      top: -210px;
      right: -100px;
      border-radius: 50%;
      background: rgba(101,104,242,.20);
      filter: blur(3px);
      box-shadow: 0 0 100px rgba(101,104,242,.20);
      pointer-events: none;
    }
    .overview-head {
      position: relative;
      display: grid;
      grid-template-columns: 62px 1fr auto;
      align-items: center;
      gap: 16px;
      padding: 25px 27px;
      border-bottom: 1px solid rgba(139,142,226,.15);
    }
    .overview-mark {
      display: grid;
      place-items: center;
      width: 62px;
      height: 62px;
      color: #fff;
      background: linear-gradient(135deg, #555dec, #7d7ff7);
      border-radius: 15px;
      box-shadow: 0 12px 30px rgba(83,88,232,.25);
      font: 900 19px/1 "Arial Narrow", Impact, sans-serif;
      letter-spacing: -1px;
    }
    .overview-server small { display: block; margin-bottom: 7px; color: #7779f4; font-size: 8px; font-weight: 800; letter-spacing: 2px; }
    .overview-server strong { display: block; color: #f7f7ff; font: 900 23px/1 "Arial Narrow", Impact, sans-serif; letter-spacing: .2px; }
    .overview-version { padding: 7px 10px; color: #9b9cb9; background: rgba(5,5,21,.45); border: 1px solid rgba(140,142,216,.14); border-radius: 6px; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
    .overview-main { position: relative; padding: 35px 30px 29px; }
    .overview-label { margin: 0 0 13px; color: #7779f4; font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
    .overview-title { margin: 0; max-width: 520px; color: #f7f7ff; font: 900 clamp(38px, 4vw, 58px)/.98 "Arial Narrow", Impact, sans-serif; letter-spacing: -1.4px; text-transform: uppercase; }
    .overview-title em { color: #7476f4; font-style: normal; }
    .overview-text { max-width: 540px; margin: 19px 0 27px; color: #a9aac3; font-size: 14px; line-height: 1.7; }
    .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .feature-tile { min-width: 0; padding: 16px 15px; background: rgba(6,6,25,.55); border: 1px solid rgba(135,138,216,.14); border-radius: 10px; }
    .feature-tile b { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 17px; color: #fff; background: rgba(100,103,242,.17); border: 1px solid rgba(119,121,255,.28); border-radius: 7px; font-size: 10px; }
    .feature-tile strong { display: block; color: #eeeefe; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
    .feature-tile span { display: block; margin-top: 6px; color: #6f708a; font-size: 8px; line-height: 1.4; }
    .starter-vault { margin-top: 12px; overflow: hidden; background: rgba(7,7,27,.72); border: 1px solid rgba(122,125,216,.18); border-radius: 11px; }
    .vault-head { display: flex; justify-content: space-between; padding: 12px 15px; color: #8c8da7; border-bottom: 1px solid rgba(122,125,216,.13); font-size: 8px; font-weight: 800; letter-spacing: 1.5px; }
    .vault-head span:last-child { color: #7779f4; }
    .vault-values { display: grid; grid-template-columns: repeat(3, 1fr); }
    .vault-values div { padding: 17px 16px; border-right: 1px solid rgba(122,125,216,.13); }
    .vault-values div:last-child { border-right: 0; }
    .vault-values strong { display: block; color: #f7f7ff; font: 900 24px/1 "Arial Narrow", Impact, sans-serif; font-style: italic; }
    .vault-values span { display: block; margin-top: 7px; color: #7779f4; font-size: 8px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
    .overview-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 28px; color: #74758e; background: rgba(5,5,21,.45); border-top: 1px solid rgba(139,142,226,.13); font-size: 9px; }
    .overview-foot span:first-child { color: #a7a8c0; }
    .overview-foot i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #42dc91; box-shadow: 0 0 11px #42dc91; }

    .registration-panel { border-radius: 16px !important; }
    .panel-heading h2 { white-space: nowrap !important; font-size: clamp(25px, 2vw, 33px) !important; }

    @media (max-width: 980px) {
      .shell { grid-template-columns: 1fr !important; gap: 38px !important; }
      .reborn-overview { max-width: none; }
    }
    @media (max-width: 560px) {
      .site-header .discord-button { min-height: 38px !important; padding: 0 12px !important; font-size: 8px !important; }
      .discord-button svg { width: 17px; }
      .overview-head { grid-template-columns: 50px 1fr; padding: 19px; }
      .overview-mark { width: 50px; height: 50px; }
      .overview-version { display: none; }
      .overview-main { padding: 27px 20px 22px; }
      .feature-grid { grid-template-columns: 1fr; }
      .feature-tile { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: center; }
      .feature-tile b { grid-row: 1 / 3; margin: 0; }
      .feature-tile span { margin-top: 3px; }
      .vault-values { grid-template-columns: 1fr; }
      .vault-values div { border-right: 0; border-bottom: 1px solid rgba(122,125,216,.13); }
      .vault-values div:last-child { border-bottom: 0; }
      .overview-foot { align-items: flex-start; flex-direction: column; padding: 14px 20px; }
      .panel-heading h2 { font-size: clamp(22px, 7.2vw, 29px) !important; }
    }


/* WolfTeam Reborn language selector */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-selector {
  position: relative;
  z-index: 100;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 84px;
  min-height: 44px;
  padding: 0 13px;
  color: #fff;
  background: rgba(100, 103, 242, .12);
  border: 1px solid rgba(126, 128, 255, .42);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(42, 44, 157, .14);
  cursor: pointer;
  font: 800 10px/1 var(--body);
  letter-spacing: 1px;
}

.language-button:hover,
.language-selector.is-open .language-button {
  background: rgba(100, 103, 242, .22);
  border-color: rgba(146, 148, 255, .62);
  transform: translateY(-1px);
}

.language-button:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.language-chevron {
  color: var(--blue-bright);
  transition: transform .18s;
}

.language-selector.is-open .language-chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: 176px;
  padding: 7px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-7px);
  background: linear-gradient(155deg, rgba(18,18,48,.99), rgba(9,9,29,.99));
  border: 1px solid rgba(153,155,220,.28);
  border-radius: 10px;
  box-shadow: 0 22px 54px rgba(0,0,0,.48);
  pointer-events: none;
  transition: opacity .16s, transform .16s, visibility .16s;
}

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

.language-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: #c8c9df;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font: 700 10px/1 var(--body);
  text-align: left;
}

.language-menu button:hover,
.language-menu button.is-active {
  color: #fff;
  background: rgba(100,103,242,.18);
}

@media (max-width: 700px) {
  .header-actions { gap: 7px; }
  .language-button {
    min-width: 66px;
    min-height: 38px;
    padding: 0 9px;
    font-size: 8px;
  }
}

@media (max-width: 470px) {
  .site-header {
    height: auto;
    min-height: 78px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .header-actions { width: 100%; }
  .discord-button { flex: 1; }
  .language-menu { left: 0; right: auto; }
}


/* Multilanguage v3 layout fixes */
.consent label > .consent-box {
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border: 1px solid #3d3d5c;
  border-radius: 3px;
  background: #09091e;
}

.consent label > .consent-text {
  position: static;
  display: inline;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.consent input:focus-visible + label > .consent-box {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(100,212,207,.12);
}

.consent input:checked + label > .consent-box {
  border-color: var(--blue);
  background: var(--blue);
}

.consent input:checked + label > .consent-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #071011;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent--error label > .consent-box {
  border-color: #ee5269;
}

.submit {
  position: relative;
  justify-content: center !important;
  padding-left: 52px !important;
  padding-right: 52px !important;
  text-align: center;
}

.submit > span {
  text-align: center;
}

.submit > i {
  position: absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-50%);
}

.flag-icon,
.current-flag svg {
  display: block;
  width: 21px;
  height: 14px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}

.current-flag {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 14px;
}

.language-menu button {
  gap: 11px !important;
}
