:root,
[data-bs-theme="dark"] {
  --cw-black: #050505;
  --cw-ink: #050505;
  --cw-graphite: #070a0c;
  --cw-asphalt: #171a1d;
  --cw-concrete: #263442;
  --cw-bone: #e6e6e6;
  --cw-dust: #8ea19a;
  --cw-muted-alt: #9aa4aa;
  --cw-rust: #ff1515;
  --cw-rust-dark: #9b3d3d;
  --cw-ember: #ffa300;
  --cw-mold: #46ff4f;
  --cw-accent-dark: #243b22;
  --cw-steel: #52616e;
  --cw-info: #6cffe8;
  --cw-danger: #ff6a5a;
  --cw-line: rgba(38, 52, 66, 0.8);
  --cw-line-soft: rgba(38, 52, 66, 0.48);
  --cw-panel: rgba(7, 10, 12, 0.94);
  --cw-panel-soft: rgba(11, 17, 20, 0.8);
  --cw-row: rgba(0, 0, 0, 0.2);
  --cw-grid: rgba(91, 114, 128, 0.12);
  --bs-body-bg: var(--cw-black);
  --bs-body-color: var(--cw-bone);
  --bs-border-color: var(--cw-line);
  --bs-border-radius: 0;
  --bs-font-sans-serif: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(70, 255, 79, 0.08), transparent 26rem),
    radial-gradient(circle at 90% 14%, rgba(108, 255, 232, 0.06), transparent 24rem),
    linear-gradient(180deg, #050505 0%, #070a0c 46%, #050505 100%);
  color: var(--cw-bone);
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(var(--cw-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--cw-grid) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(70, 255, 79, 0.025) 0 1px, transparent 1px 12px);
  background-size: 42px 42px, 42px 42px, auto;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92), transparent 22%, transparent 78%, rgba(5, 5, 5, 0.92)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
}

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

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

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  border-right: 1px solid rgba(38, 52, 66, 0.36);
  border-left: 1px solid rgba(38, 52, 66, 0.36);
  background: rgba(5, 5, 5, 0.28);
}

.site-header {
  border-bottom: 1px solid var(--cw-line);
  background: rgba(5, 5, 5, 0.94);
}

.masthead-logo {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 28px 24px 22px;
  border-bottom: 1px solid var(--cw-line-soft);
  background:
    radial-gradient(circle at 50% 0%, rgba(70, 255, 79, 0.11), transparent 28rem),
    linear-gradient(180deg, rgba(7, 10, 12, 0.84), rgba(5, 5, 5, 0.96));
}

.masthead-logo img {
  width: min(760px, calc(100vw - 48px));
  filter: invert(1) grayscale(1) contrast(1.12);
  mix-blend-mode: screen;
}

.menu-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 12px 26px;
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(18px);
}

.panel-title strong,
.world-card h3,
.news-feed h3,
.server-card strong {
  color: var(--cw-bone);
  font-weight: 900;
  text-transform: uppercase;
}

.panel-title span,
.operator-list span,
.header-servers__title span,
.server-card span,
.server-card dt,
.network-panel em,
.quick-strip span,
.section-heading span,
.world-card__top,
.status-row em,
.telemetry-row span,
.launcher-copy span,
.account-card span,
.wallet-card span {
  color: var(--cw-dust);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.menu-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.topbar-nav a {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid transparent;
  color: var(--cw-dust);
  font-size: 14px;
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  border-color: var(--cw-line);
  color: var(--cw-mold);
  background: rgba(70, 255, 79, 0.08);
  outline: none;
}

.menu-actions > .cw-button {
  min-width: 186px;
}

.menu-actions > .cw-button:disabled {
  cursor: default;
  opacity: 1;
}

.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--cw-dust);
  font-weight: 900;
  text-transform: uppercase;
}

.header-login:hover,
.header-login:focus-visible {
  border-color: var(--cw-line);
  background: rgba(70, 255, 79, 0.08);
  color: var(--cw-mold);
  outline: none;
}

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

.account-balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(58px, auto));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--cw-line-soft);
  background: var(--cw-line-soft);
}

.account-balances div {
  display: grid;
  gap: 1px;
  min-height: 42px;
  padding: 5px 9px;
  background: rgba(5, 5, 5, 0.84);
}

.account-balances dt {
  color: var(--cw-dust);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.account-balances dd {
  max-width: 88px;
  margin: 0;
  overflow: hidden;
  color: var(--cw-bone);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  min-width: 0;
}

.account-menu__toggle {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: min(184px, 24vw);
  min-width: 132px;
  min-height: 44px;
  padding: 2px 9px 2px 3px;
  border: 1px solid var(--cw-line);
  background: rgba(7, 10, 12, 0.92);
  color: var(--cw-bone);
  text-align: left;
}

.account-menu__toggle:hover,
.account-menu__toggle:focus-visible,
.account-menu__toggle[aria-expanded="true"] {
  border-color: rgba(70, 255, 79, 0.68);
  color: var(--cw-mold);
  outline: none;
}

.account-menu__toggle::after {
  margin-left: 0;
}

.account-menu__head {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(70, 255, 79, 0.48);
  background: var(--cw-asphalt);
  image-rendering: pixelated;
}

.account-menu__toggle span {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu .dropdown-menu {
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--cw-line);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(70, 255, 79, 0.08), transparent 42%),
    rgba(7, 10, 12, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46);
}

.account-menu .dropdown-item {
  min-height: 38px;
  border-radius: 0;
  color: var(--cw-bone);
  font-size: 13px;
  font-weight: 800;
}

.header-servers {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--cw-line-soft);
  background:
    linear-gradient(180deg, rgba(70, 255, 79, 0.055), transparent 72%),
    rgba(5, 5, 5, 0.9);
}

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

.header-servers__title h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.server-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--cw-line);
  background: var(--cw-line);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.server-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  min-height: 118px;
  padding: 16px;
  border-left: 3px solid var(--cw-steel);
  background:
    linear-gradient(180deg, rgba(82, 97, 110, 0.1), transparent 36%),
    var(--cw-panel);
}

.server-card.is-online {
  border-left-color: var(--cw-mold);
}

.server-card.is-warning {
  border-left-color: var(--cw-ember);
}

.server-card.is-closed {
  border-left-color: var(--cw-rust);
}

.server-card strong {
  overflow-wrap: anywhere;
}

.server-card dl {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--cw-line-soft);
}

.server-card dl div {
  display: grid;
  gap: 4px;
  min-height: 54px;
  padding: 10px 12px;
  background: rgba(5, 5, 5, 0.42);
}

.server-card dd {
  margin: 0;
  color: var(--cw-bone);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.cw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--cw-line);
  background:
    linear-gradient(180deg, rgba(95, 120, 136, 0.12), transparent 36%),
    rgba(7, 10, 12, 0.88);
  color: var(--cw-bone);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.cw-button:hover,
.cw-button:focus-visible {
  border-color: rgba(70, 255, 79, 0.76);
  color: var(--cw-mold);
  outline: none;
}

.cw-button--accent {
  border-color: rgba(70, 255, 79, 0.64);
  background:
    linear-gradient(180deg, rgba(70, 255, 79, 0.2), transparent 42%),
    rgba(36, 59, 34, 0.92);
  color: var(--cw-bone);
}

.cw-button--accent:hover,
.cw-button--accent:focus-visible {
  border-color: var(--cw-mold);
  background: rgba(70, 255, 79, 0.18);
  box-shadow: inset 0 -2px 0 rgba(70, 255, 79, 0.66);
}

.command-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding: 24px;
}

.hero-panel,
.operator-panel,
.network-panel,
.world-card,
.telemetry-board,
.launcher-copy,
.launcher-window,
.account-card,
.wallet-card,
.quick-strip,
.news-feed {
  border: 1px solid var(--cw-line);
  background:
    linear-gradient(180deg, rgba(82, 97, 110, 0.1), transparent 36%),
    var(--cw-panel);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.hero-panel {
  position: relative;
  min-height: 620px;
  padding: 34px;
  overflow: hidden;
}

.hero-panel::after {
  position: absolute;
  right: -12%;
  bottom: -18%;
  width: 60%;
  height: 60%;
  content: "";
  background: radial-gradient(circle, rgba(70, 255, 79, 0.14), transparent 68%);
  opacity: 0.66;
}

.panel-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--cw-mold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.pulse-dot,
.telemetry-state {
  width: 9px;
  height: 9px;
  background: var(--cw-mold);
  box-shadow: 0 0 0 4px rgba(70, 255, 79, 0.12);
}

.hero-logo {
  width: min(620px, 100%);
  margin-bottom: 34px;
  filter: invert(1) grayscale(1) contrast(1.14);
  mix-blend-mode: screen;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-bottom: 18px;
  color: var(--cw-bone);
  font-size: 62px;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 12px;
  color: var(--cw-bone);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
}

.hero-panel p,
.section-heading p,
.world-card p,
.launcher-copy p,
.account-card p,
.news-feed p,
.quick-strip p {
  color: var(--cw-dust);
}

.hero-panel > p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 28px;
  font-size: 19px;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.operator-panel,
.network-panel {
  display: grid;
  gap: 1px;
  align-content: start;
  background: var(--cw-line);
}

.side-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.operator-panel,
.network-panel {
  min-height: 0;
}

.panel-title,
.balance-meter,
.operator-list div,
.status-row {
  background: var(--cw-panel);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 16px;
}

.balance-meter {
  display: grid;
  gap: 8px;
  padding: 22px 16px;
}

.balance-meter span {
  color: var(--cw-dust);
  font-size: 12px;
  text-transform: uppercase;
}

.balance-meter strong {
  color: var(--cw-mold);
  font-size: 42px;
  line-height: 1;
}

.operator-list {
  display: grid;
  gap: 1px;
}

.operator-list div {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 14px 16px;
}

.operator-list strong {
  overflow-wrap: anywhere;
}

.status-stack {
  display: grid;
  gap: 1px;
}

.status-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  border-left: 3px solid var(--cw-steel);
}

.status-row span,
.status-row strong {
  font-weight: 900;
}

.status-row.is-online {
  border-left-color: var(--cw-mold);
}

.status-row.is-warning {
  border-left-color: var(--cw-ember);
}

.status-row.is-closed {
  border-left-color: var(--cw-rust);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 24px;
  background: var(--cw-line);
}

.quick-strip div {
  min-height: 122px;
  padding: 18px;
  background: var(--cw-panel-soft);
}

.quick-strip strong {
  display: block;
  margin: 10px 0 6px;
  color: var(--cw-bone);
  text-transform: uppercase;
}

.quick-strip p {
  margin: 0;
}

.section {
  padding: 92px 24px 0;
}

.news-section {
  padding-top: 44px;
  padding-bottom: 76px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading span,
.launcher-copy span,
.account-card > div > span {
  color: var(--cw-mold);
}

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

.world-card {
  min-height: 370px;
  padding: 22px;
}

.world-card.is-primary {
  border-color: rgba(70, 255, 79, 0.62);
  background:
    linear-gradient(180deg, rgba(70, 255, 79, 0.1), transparent 42%),
    var(--cw-panel);
}

.world-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 58px;
}

.world-card__top em {
  color: var(--cw-ember);
  font-style: normal;
}

.world-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.world-card li {
  position: relative;
  padding-left: 18px;
  color: var(--cw-bone);
}

.world-card li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--cw-mold);
}

.telemetry-board {
  display: grid;
  gap: 1px;
  background: var(--cw-line);
}

.telemetry-row {
  display: grid;
  grid-template-columns: 10px minmax(140px, 0.8fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 14px 18px;
  background: var(--cw-panel);
}

.telemetry-row strong,
.telemetry-row em {
  color: var(--cw-bone);
  font-style: normal;
  font-weight: 900;
}

.telemetry-row em {
  white-space: nowrap;
}

.telemetry-state--warn {
  background: var(--cw-ember);
  box-shadow: 0 0 0 4px rgba(255, 163, 0, 0.12);
}

.telemetry-state--danger {
  background: var(--cw-rust);
  box-shadow: 0 0 0 4px rgba(255, 21, 21, 0.12);
}

.launcher-section,
.account-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
  align-items: stretch;
}

.launcher-copy,
.account-card,
.wallet-card {
  padding: 26px;
}

.launcher-copy {
  min-height: 430px;
}

.launcher-copy p {
  max-width: 620px;
  margin-bottom: 28px;
}

.launcher-window {
  min-height: 430px;
  overflow: hidden;
}

.launcher-window__bar {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--cw-line);
  background: rgba(5, 5, 5, 0.76);
}

.launcher-window__bar span {
  width: 9px;
  height: 9px;
  background: var(--cw-steel);
}

.launcher-window__bar span:first-child {
  background: var(--cw-rust);
}

.launcher-window__bar strong {
  margin-left: auto;
  color: var(--cw-dust);
  font-size: 12px;
}

.launcher-window__body {
  display: grid;
  gap: 1px;
  padding: 16px;
  background: var(--cw-line);
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  border: 0;
  border-left: 3px solid transparent;
  background: var(--cw-panel);
  color: var(--cw-bone);
  text-align: left;
}

.profile-row:hover,
.profile-row:focus-visible,
.profile-row.is-selected {
  border-left-color: var(--cw-mold);
  background: rgba(36, 59, 34, 0.5);
  outline: none;
}

.profile-row span,
.profile-row em {
  color: var(--cw-dust);
  font-style: normal;
  text-transform: uppercase;
}

.profile-row strong {
  font-weight: 900;
}

.news-feed {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1px;
  background: var(--cw-line);
}

.news-feed article {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  min-height: 154px;
  padding: 18px;
  background: var(--cw-panel);
}

.news-feed article:first-child {
  grid-row: span 2;
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 322px;
  padding: 28px;
  border-left: 3px solid var(--cw-mold);
  background:
    linear-gradient(180deg, rgba(70, 255, 79, 0.11), transparent 48%),
    var(--cw-panel);
}

.news-feed time {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(70, 255, 79, 0.46);
  color: var(--cw-mold);
  font-weight: 900;
}

.news-feed article:first-child time {
  width: 64px;
  height: 64px;
}

.news-feed article:first-child h3 {
  max-width: 780px;
  font-size: 32px;
}

.news-feed p {
  margin-bottom: 0;
}

.account-section {
  padding-bottom: 42px;
}

.account-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 22px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 7px;
}

.login-form label span,
.wallet-card dt {
  color: var(--cw-dust);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.form-control {
  min-height: 46px;
  border-color: var(--cw-line);
  border-radius: 0;
  background: rgba(5, 5, 5, 0.76);
  color: var(--cw-bone);
}

.form-control:focus {
  border-color: var(--cw-mold);
  background: var(--cw-graphite);
  color: var(--cw-bone);
  box-shadow: 0 0 0 3px rgba(70, 255, 79, 0.14);
}

.form-control::placeholder {
  color: var(--cw-steel);
}

.login-form p {
  min-height: 24px;
  margin: 0;
  color: var(--cw-dust);
}

.login-form.is-loading {
  opacity: 0.82;
}

.login-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-modal .modal-dialog {
  width: min(440px, calc(100vw - 28px));
  margin-right: auto;
  margin-left: auto;
}

.auth-modal .modal-content {
  border: 1px solid var(--cw-line);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(70, 255, 79, 0.09), transparent 34%),
    rgba(7, 10, 12, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
}

.auth-modal .modal-header {
  align-items: flex-start;
  padding: 20px 22px 16px;
  border-bottom-color: var(--cw-line);
}

.auth-modal .modal-header span {
  color: var(--cw-dust);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-modal .modal-title {
  margin-top: 2px;
  color: var(--cw-bone);
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-modal .btn-close {
  margin: 0 0 0 auto;
  filter: invert(1) grayscale(1);
  opacity: 0.66;
}

.auth-modal .btn-close:hover,
.auth-modal .btn-close:focus-visible {
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(70, 255, 79, 0.16);
}

.auth-modal .modal-body {
  padding: 22px;
}

.auth-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
  border: 1px solid var(--cw-line);
}

.auth-mode .nav-link {
  min-height: 42px;
  border: 0;
  border-radius: 0;
  color: var(--cw-dust);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-mode .nav-link:hover,
.auth-mode .nav-link:focus-visible {
  color: var(--cw-bone);
}

.auth-mode .nav-link.active {
  background: var(--cw-mold);
  color: var(--cw-ink);
}

.auth-panes {
  min-height: 250px;
}

.auth-modal .auth-form > .cw-button {
  width: 100%;
}

.login-message.is-error {
  color: var(--cw-danger);
}

.login-message.is-success {
  color: var(--cw-mold);
}

.modal-backdrop.show {
  opacity: 0.82;
}

.wallet-card {
  display: grid;
  align-content: start;
  gap: 20px;
}

.wallet-card > strong {
  color: var(--cw-mold);
  font-size: 52px;
  line-height: 1;
}

.wallet-card dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--cw-line);
}

.wallet-card dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  min-height: 56px;
  align-items: center;
  padding: 12px 14px;
  background: var(--cw-panel);
}

.wallet-card dd {
  margin: 0;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: 24px;
  align-items: start;
  padding: 24px 24px 32px;
  border-top: 1px solid var(--cw-line);
  background: rgba(5, 5, 5, 0.94);
}

.site-footer p {
  margin: 0;
  color: var(--cw-dust);
}

.site-footer p:first-child {
  color: var(--cw-bone);
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer p:last-child {
  justify-self: end;
  max-width: 720px;
  color: var(--cw-muted-alt);
  font-size: 13px;
  text-align: right;
}

.restore-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.restore-header .masthead-logo {
  min-height: 164px;
}

.restore-main {
  display: grid;
  flex: 1 0 auto;
  place-items: center;
  padding: 56px 24px 72px;
}

.restore-panel {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--cw-line);
  background:
    linear-gradient(180deg, rgba(70, 255, 79, 0.08), transparent 36%),
    rgba(7, 10, 12, 0.96);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.5);
}

.restore-heading {
  margin-bottom: 24px;
}

.restore-heading span {
  color: var(--cw-dust);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.restore-heading h1 {
  margin: 4px 0 0;
  color: var(--cw-bone);
  font-size: 34px;
  font-weight: 900;
  text-transform: uppercase;
}

.restore-form > .cw-button,
.restore-invalid .cw-button {
  width: 100%;
}

.restore-invalid {
  display: grid;
  gap: 20px;
}

.restore-invalid p {
  margin: 0;
  color: var(--cw-danger);
}

.dev-alert {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 163, 0, 0.4);
  background: rgba(23, 26, 29, 0.96);
  color: var(--cw-ember);
  font-size: 13px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

@media (max-width: 1120px) {
  .menu-bar {
    grid-template-columns: 1fr;
  }

  .topbar-nav,
  .menu-actions {
    grid-column: auto;
    justify-self: center;
  }

  .command-grid,
  .launcher-section,
  .account-section {
    grid-template-columns: 1fr;
  }

  .network-panel {
    grid-column: auto;
  }

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

  h1 {
    font-size: 52px;
  }
}

@media (max-width: 760px) {
  .masthead-logo {
    min-height: 136px;
    padding: 18px 14px 14px;
  }

  .masthead-logo img {
    width: min(360px, calc(100vw - 28px));
  }

  .menu-bar {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    padding: 12px 14px;
  }

  .topbar-nav {
    grid-column: auto;
    justify-self: center;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .menu-actions {
    grid-column: auto;
    justify-self: stretch;
    flex-wrap: wrap;
    width: 100%;
  }

  .menu-actions > .cw-button {
    flex: 1 1 170px;
  }

  .header-login {
    flex: 0 0 auto;
  }

  .account-summary {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .topbar-nav a {
    flex: 0 0 auto;
  }

  .header-servers {
    padding: 14px 12px 16px;
  }

  .header-servers__title {
    display: grid;
    gap: 4px;
  }

  .header-servers__title h2 {
    font-size: 20px;
  }

  .server-strip,
  .news-feed,
  .server-card dl,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .command-grid,
  .section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .command-grid {
    padding-top: 12px;
  }

  .news-section {
    padding-top: 32px;
    padding-bottom: 52px;
  }

  .hero-panel {
    min-height: auto;
    padding: 18px;
  }

  .hero-logo {
    width: min(260px, 78vw);
    margin: 0 auto 20px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-panel > p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .quick-strip {
    grid-template-columns: 1fr;
    margin-right: 12px;
    margin-left: 12px;
  }

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

  .world-card {
    min-height: auto;
  }

  .world-card__top {
    margin-bottom: 34px;
  }

  .telemetry-row {
    grid-template-columns: 10px 1fr;
  }

  .telemetry-row span:not(.telemetry-state) {
    grid-column: 2;
  }

  .telemetry-row em {
    grid-column: 2;
    justify-self: start;
  }

  .profile-row,
  .account-card,
  .news-feed article {
    grid-template-columns: 1fr;
  }

  .news-feed article:first-child {
    grid-row: auto;
    min-height: 220px;
    padding: 20px;
  }

  .news-feed article:first-child h3 {
    font-size: 26px;
  }

  .site-footer p:last-child {
    justify-self: start;
    text-align: left;
  }

  .wallet-card > strong {
    font-size: 40px;
  }

  .restore-main {
    padding: 32px 12px 48px;
  }

  .restore-panel {
    padding: 20px;
  }

  .restore-heading h1 {
    font-size: 28px;
  }
}

@media (max-width: 430px) {
  .account-balances {
    flex: 1 1 auto;
  }

  .account-menu__toggle {
    width: min(158px, 42vw);
  }

  .command-grid {
    gap: 10px;
  }

  .operator-panel,
  .network-panel,
  .hero-panel,
  .world-card,
  .telemetry-board,
  .launcher-copy,
  .launcher-window,
  .account-card,
  .wallet-card,
  .server-strip,
  .site-footer,
  .news-feed {
    box-shadow: none;
  }

  .status-row {
    grid-template-columns: 48px 1fr;
  }

  .status-row em {
    grid-column: 2;
  }
}
