:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-2: #080d14;
  --panel: rgba(10, 16, 26, 0.92);
  --panel-strong: rgba(15, 23, 38, 0.98);
  --line: rgba(139, 169, 204, 0.22);
  --line-strong: rgba(124, 224, 255, 0.44);
  --text: #edf7ff;
  --muted: #9cafc4;
  --soft: #d5e3ee;
  --cyan: #35d5ff;
  --cyan-2: #0982b1;
  --violet: #9a3bff;
  --magenta: #fa3ecf;
  --lime: #8bff68;
  --amber: #ffb23f;
  --orange: #ff7038;
  --red: #ff455c;
  --green: #3ce083;
  --navy: #10192a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-font: "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 70% 18%, rgba(104, 30, 190, 0.18), transparent 28%),
    radial-gradient(circle at 21% 16%, rgba(36, 155, 205, 0.12), transparent 24%),
    linear-gradient(180deg, #020409 0%, #060a12 52%, #030508 100%);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
  -ms-overflow-style: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.game-root {
  min-height: 100vh;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: #05070b;
}

.boot-logo {
  font-family: var(--display);
  font-size: clamp(44px, 8vw, 92px);
  color: #fff;
  text-shadow: 0 0 26px rgba(154, 59, 255, 0.5);
}

.screen {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.screen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 78%, transparent);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(16px, 3vw, 36px);
  background: rgba(3, 6, 11, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.brand-logo {
  width: auto;
  height: 48px;
  display: block;
  object-fit: contain;
}

.brand-logo.dashboard {
  height: 38px;
}

.brand-main {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 16px rgba(53, 213, 255, 0.5);
}

.brand-sub {
  font-size: 11px;
  font-weight: 900;
  color: var(--magenta);
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.nav button,
.ghost-btn,
.solid-btn,
.tiny-btn,
.tab-btn,
.locale-btn {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(12, 20, 33, 0.78);
  padding: 0 14px;
  color: var(--soft);
  font-weight: 850;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.nav button,
.side-menu button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-icon,
.resource-icon,
.feature-icon,
.op-icon,
.role-icon,
.mission-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav button:hover,
.ghost-btn:hover,
.solid-btn:hover,
.tiny-btn:hover,
.tab-btn:hover,
.locale-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.nav button.active,
.solid-btn,
.tab-btn.active {
  color: #fff;
  border-color: rgba(154, 59, 255, 0.72);
  background: linear-gradient(180deg, rgba(126, 57, 255, 0.95), rgba(72, 19, 156, 0.95));
  box-shadow: 0 0 22px rgba(154, 59, 255, 0.24);
}

.solid-btn.cyan {
  border-color: rgba(53, 213, 255, 0.62);
  background: linear-gradient(180deg, rgba(25, 173, 213, 0.95), rgba(9, 90, 130, 0.95));
}

.solid-btn.green {
  border-color: rgba(60, 224, 131, 0.62);
  background: linear-gradient(180deg, rgba(41, 179, 99, 0.95), rgba(15, 96, 61, 0.95));
}

.solid-btn.amber {
  border-color: rgba(255, 178, 63, 0.64);
  background: linear-gradient(180deg, rgba(191, 105, 33, 0.95), rgba(91, 54, 18, 0.95));
}

.locale-btn {
  min-width: 48px;
  padding: 0 10px;
  color: var(--cyan);
  border-color: rgba(53, 213, 255, 0.42);
  background: rgba(7, 13, 24, 0.82);
}

.resource-bar .locale-btn.compact {
  min-height: 42px;
  align-self: stretch;
}

.solid-btn.red {
  border-color: rgba(255, 69, 92, 0.68);
  background: linear-gradient(180deg, rgba(204, 52, 75, 0.95), rgba(104, 24, 41, 0.95));
}

.ghost-btn,
.tiny-btn {
  background: rgba(8, 14, 23, 0.72);
}

.top-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.landing {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr;
}

.landing .topbar {
  min-height: 78px;
  padding: 12px clamp(22px, 3vw, 46px);
  background: rgba(3, 6, 11, 0.7);
}

.landing .brand-logo {
  height: 56px;
}

.landing .nav button,
.landing .top-actions .ghost-btn,
.landing .top-actions .solid-btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: clamp(36px, 5vh, 72px) clamp(30px, 5vw, 86px);
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 4, 9, 0.96) 0%, rgba(2, 4, 9, 0.82) 36%, rgba(2, 4, 9, 0.26) 72%, rgba(2, 4, 9, 0.68) 100%),
    linear-gradient(180deg, rgba(2, 4, 9, 0.08), rgba(2, 4, 9, 0.86)),
    url("./gangcity/10_new_assets/landing_city_background.jpg"),
    radial-gradient(circle at 69% 42%, rgba(154, 59, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #071323 0%, #030508 100%);
  background-size: auto, auto, cover, auto, auto;
  background-repeat: no-repeat;
  background-position: center, center, center right, center, center;
  filter: saturate(1.08) contrast(1.04);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  background:
    linear-gradient(90deg, transparent 0 4%, rgba(53, 213, 255, 0.1) 4.08% 4.16%, transparent 4.24% 14%, rgba(53, 213, 255, 0.08) 14.08% 14.16%, transparent 14.24% 100%),
    radial-gradient(circle at 72% 48%, rgba(250, 62, 207, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, #030508 100%);
  clip-path: none;
  filter: none;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 4, 9, 0.92) 0%, rgba(2, 4, 9, 0.38) 46%, rgba(2, 4, 9, 0.12) 70%, rgba(2, 4, 9, 0.68) 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.04) 0%, rgba(5, 7, 11, 0.1) 45%, rgba(5, 7, 11, 0.86) 100%);
}

.figures {
  display: none;
}

.hero-trio {
  position: absolute;
  z-index: 1;
  right: clamp(-52px, -2vw, 12px);
  top: clamp(-98px, -7vw, -58px);
  height: calc(100% + 96px);
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: top right;
  opacity: 0.92;
  mask-image: linear-gradient(to right, transparent 0%, black 14%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14%, black 100%);
  filter: drop-shadow(0 32px 60px rgba(0, 0, 0, 0.74)) drop-shadow(0 0 24px rgba(154, 59, 255, 0.34));
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(720px, 100%);
}

.hero-shell {
  position: relative;
  z-index: 3;
  width: min(1480px, 100%);
  min-height: min(740px, calc(100vh - 142px));
  display: grid;
  grid-template-columns: minmax(540px, 720px) minmax(420px, 480px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(42px, 5vw, 92px);
}

.hero-logo-mark {
  width: min(300px, 46vw);
  height: auto;
  display: block;
  margin: 0 0 22px;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.5));
}

.hero-kicker,
.section-kicker {
  display: block;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 950;
}

.hero h1 {
  max-width: 680px;
  margin: 12px 0 16px;
  font-family: var(--font);
  font-size: clamp(64px, 6vw, 96px);
  font-weight: 950;
  line-height: 0.94;
  color: #fff;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.64), 0 0 28px rgba(154, 59, 255, 0.22);
}

.hero h1 span {
  display: block;
  color: var(--magenta);
  font-size: 0.46em;
  text-shadow: 0 0 22px rgba(250, 62, 207, 0.45);
}

.hero-copy p {
  width: min(640px, 100%);
  color: var(--soft);
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 650;
  line-height: 1.48;
  text-transform: none;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
}

.hero-highlights span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(139, 169, 204, 0.28);
  border-radius: 999px;
  background: rgba(6, 12, 21, 0.58);
  padding: 0 14px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 0;
}

.landing .hero-actions .ghost-btn,
.landing .hero-actions .solid-btn {
  min-height: 52px;
  padding: 0 24px;
  font-size: 14px;
}

.feature-strip {
  width: 100%;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
  align-self: end;
}

.feature {
  min-height: 144px;
  padding: 18px;
  border: 1px solid rgba(139, 169, 204, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(8, 15, 25, 0.86), rgba(5, 9, 16, 0.95));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}

.feature strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 16px;
}

.feature span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.login-panel {
  position: relative;
  z-index: 3;
  width: min(420px, calc(100vw - 32px));
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(53, 213, 255, 0.56);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(9, 17, 28, 0.96), rgba(5, 9, 16, 0.96));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.52), 0 0 28px rgba(53, 213, 255, 0.1);
}

.landing-auth {
  position: relative;
  z-index: 3;
  width: min(480px, 100%);
  justify-self: end;
  padding: 22px;
  border: 1px solid rgba(53, 213, 255, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(11, 18, 29, 0.92), rgba(4, 8, 14, 0.95)),
    radial-gradient(circle at 84% 10%, rgba(154, 59, 255, 0.16), transparent 28%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.64), 0 0 34px rgba(53, 213, 255, 0.08);
  backdrop-filter: blur(18px);
}

.auth-card-head {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.auth-card-head h2 {
  margin: 4px 0 4px;
  font-size: 28px;
  line-height: 1.05;
}

.auth-card-head p {
  margin: 0;
}

.auth-crest {
  width: 78px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(154, 59, 255, 0.28));
}

.landing-auth .login-panel {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-auth .field {
  gap: 8px;
  margin-bottom: 12px;
}

.landing-auth .field span {
  font-size: 12px;
}

.landing-auth .field input {
  min-height: 48px;
  font-size: 15px;
}

.landing-auth .auth-actions {
  gap: 10px;
}

.landing-auth .auth-actions .solid-btn {
  min-height: 48px;
  font-size: 14px;
}

.landing-auth .auth-message {
  font-size: 13px;
}

.landing-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.quick-stat {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(2, 7, 13, 0.58);
}

.quick-stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-stat strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.15;
}

.landing-reference {
  min-height: 100svh;
  overflow: hidden;
  background: #05070d;
}

.landing-reference::before {
  display: none;
}

.reference-stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #05070d;
}

.ref-hotspot {
  position: absolute;
  z-index: 4;
  display: block;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ref-hotspot-play {
  left: 4.1%;
  top: 60.4%;
  width: 15.2%;
  height: 7%;
}

.ref-hotspot-login {
  left: 74.7%;
  top: 3.4%;
  width: 8.7%;
  height: 6%;
}

.ref-hotspot-register {
  left: 84.6%;
  top: 3.4%;
  width: 10.8%;
  height: 6.2%;
}

.ref-auth-panel {
  position: absolute;
  z-index: 5;
  left: 73.2%;
  top: 23.2%;
  width: 21.9%;
  min-width: 360px;
  max-width: 430px;
  padding: 28px 28px 26px;
  border: 1px solid rgba(177, 87, 255, 0.78);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(17, 19, 33, 0.94), rgba(10, 12, 24, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(205, 42, 184, 0.22), transparent 36%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 28px rgba(179, 59, 255, 0.28),
    0 22px 70px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(14px);
}

.ref-auth-panel::before,
.ref-auth-panel::after {
  display: none;
}

.ref-auth-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.ref-auth-head img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 42, 58, 0.46));
}

.ref-auth-head span {
  display: block;
  color: #f6f7fb;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.ref-auth-head h2 {
  margin: 0;
  color: #f6f7fb;
  font-size: 0;
}

.ref-auth-head p {
  margin: 8px 0 0;
  color: #aeb8cc;
  font-size: 14px;
  line-height: 1.35;
}

.ref-login-panel {
  display: grid;
  gap: 13px;
}

.ref-field {
  display: grid;
  gap: 7px;
}

.ref-field span {
  color: rgba(244, 247, 251, 0.78);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ref-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(9, 10, 20, 0.74);
  color: #f4f7fb;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.ref-field input:focus {
  border-color: rgba(255, 57, 80, 0.84);
  box-shadow: 0 0 0 1px rgba(255, 57, 80, 0.18), 0 0 22px rgba(179, 59, 255, 0.18);
}

.ref-field input:disabled {
  opacity: 0.72;
}

.ref-auth-row,
.ref-auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #cbd3e2;
  font-size: 13px;
}

.ref-auth-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ref-auth-row input {
  width: 15px;
  height: 15px;
  accent-color: #e62c3a;
}

.ref-auth-row button,
.ref-auth-footer button {
  border: 0;
  background: transparent;
  color: #df55ff;
  font-weight: 850;
  cursor: pointer;
}

.ref-primary-btn {
  min-height: 64px;
  border: 1px solid rgba(255, 87, 99, 0.82);
  border-radius: 8px;
  background: linear-gradient(100deg, #e21f31 0%, #f03555 45%, #b52cff 100%);
  color: white;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(230, 44, 58, 0.38), 0 0 42px rgba(179, 59, 255, 0.28);
}

.ref-auth-panel .auth-message {
  min-height: 18px;
  margin: 0;
  color: #47cfff;
  font-size: 12px;
  font-weight: 850;
}

.ref-auth-footer {
  justify-content: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-built {
  min-height: 100svh;
  overflow: hidden;
  background: #05070d;
}

.landing-built::before {
  display: none;
}

.built-stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 30%, rgba(132, 54, 255, 0.18), transparent 25%),
    linear-gradient(90deg, rgba(4, 6, 11, 0.9) 0%, rgba(4, 6, 11, 0.34) 48%, rgba(4, 6, 11, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 6, 11, 0) 0%, rgba(4, 6, 11, 0.14) 58%, #05070d 100%),
    url("./gangcity/10_new_assets/landing_city_background.jpg");
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
}

.built-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.06) 0%, rgba(5, 7, 13, 0) 36%, rgba(5, 7, 13, 0.92) 100%),
    radial-gradient(circle at 46% 42%, rgba(72, 118, 255, 0.12), transparent 30%);
}

.built-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  opacity: 0.16;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.035) 0,
    rgba(255,255,255,0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: screen;
}

.built-city-layer {
  display: none;
}

.built-nav {
  position: absolute;
  z-index: 20;
  top: 10px;
  left: 22px;
  right: 22px;
  min-height: 108px;
  display: grid;
  grid-template-columns: 300px 1fr 372px;
  align-items: center;
  gap: 28px;
  padding: 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 12, 20, 0.96), rgba(5, 7, 13, 0.9)),
    radial-gradient(circle at 92% 38%, rgba(230, 44, 58, 0.18), transparent 18%);
  clip-path: polygon(0 32px, 28px 0, calc(100% - 28px) 0, 100% 32px, 100% calc(100% - 12px), calc(100% - 52px) 100%, 52px 100%, 0 calc(100% - 12px));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.built-brand img {
  width: 286px;
  max-width: 100%;
  display: block;
}

.built-nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 62px);
}

.built-nav-links button,
.built-nav-actions button {
  min-height: 54px;
  border: 0;
  background: transparent;
  color: #c8cfdd;
  font-size: 17px;
  font-weight: 900;
  font-family: var(--ui-font);
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.built-nav-links button.active {
  position: relative;
  color: #ff3345;
}

.built-nav-links button.active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -18px;
  height: 4px;
  border-radius: 999px;
  background: #ff3345;
  box-shadow: 0 0 18px rgba(255, 51, 69, 0.8);
}

.built-nav-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.built-nav-actions button {
  min-width: 142px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(14, 16, 27, 0.72);
  color: #f3f6fb;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.built-nav-actions button:hover,
.built-play-btn:hover,
.built-trailer-btn:hover,
.built-primary-btn:hover {
  transform: translateY(-2px);
}

.built-nav-actions .built-register-btn {
  min-width: 180px;
  border-color: rgba(255, 60, 75, 0.72);
  background: linear-gradient(90deg, #e4283a, #c92645);
  box-shadow: 0 0 26px rgba(230, 44, 58, 0.48);
}

.built-nav-actions .locale-btn {
  min-width: 64px;
  color: #35d5ff;
  border-color: rgba(53, 213, 255, 0.42);
  background: rgba(10, 20, 32, 0.72);
}

.built-characters {
  position: absolute;
  z-index: 4;
  left: 42%;
  right: 6%;
  top: 13.5%;
  bottom: 13.5%;
  pointer-events: none;
  filter: drop-shadow(0 36px 44px rgba(0, 0, 0, 0.66));
}

.hero-leader {
  position: absolute;
  bottom: 0;
  width: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.hero-leader-shadow {
  z-index: 3;
  left: 33%;
  height: min(68vh, 720px);
  transform: translateX(-50%);
}

.hero-leader-neon {
  z-index: 2;
  left: 0;
  height: min(62vh, 660px);
}

.hero-leader-iron {
  z-index: 1;
  right: 1%;
  height: min(63vh, 670px);
}

.built-copy {
  position: absolute;
  z-index: 6;
  left: 4.2%;
  top: 26.8%;
  width: min(42vw, 760px);
}

.built-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 8px 13px 8px 11px;
  border: 1px solid rgba(255, 51, 69, 0.28);
  border-left: 3px solid #ff3345;
  background: linear-gradient(90deg, rgba(255, 51, 69, 0.12), rgba(7, 10, 18, 0.18));
  color: rgba(244, 247, 251, 0.84);
  font-size: clamp(11px, .82vw, 14px);
  font-weight: 900;
  font-family: var(--ui-font);
  letter-spacing: 3.2px;
  line-height: 1.1;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 51, 69, 0.18);
}

.built-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff3345;
  box-shadow: 0 0 18px rgba(255, 51, 69, 0.8);
}

.built-kicker strong {
  color: #ff3548;
  font-weight: 900;
}

.built-title {
  position: relative;
  margin: 0;
  font-family: var(--display);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.7));
}

.built-title::before {
  content: "";
  position: absolute;
  left: -58px;
  top: 48%;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 38, 48, 0.74);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 38, 48, 0.74) 49% 51%, transparent 52%),
    linear-gradient(transparent 48%, rgba(255, 38, 48, 0.74) 49% 51%, transparent 52%);
  box-shadow: 0 0 18px rgba(255, 38, 48, 0.32);
}

.built-title span,
.built-title strong {
  position: relative;
  display: block;
  line-height: 0.86;
  white-space: nowrap;
}

.built-title span::after,
.built-title strong::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  transform: translate(3px, 2px);
  color: #07080d;
  text-shadow: 2px 0 rgba(255, 51, 69, 0.7), -2px 0 rgba(71, 207, 255, 0.34);
  clip-path: polygon(0 0, 100% 0, 100% 18%, 0 22%, 0 39%, 100% 35%, 100% 52%, 0 56%, 0 100%, 100% 100%, 100% 0);
}

.built-title span {
  color: #f6f1e8;
  font-size: clamp(76px, 6.4vw, 122px);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.65), 0 0 20px rgba(255,255,255,0.12);
}

.built-title strong {
  color: #d11f29;
  font-size: clamp(62px, 5.1vw, 98px);
  margin-top: 10px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72), 0 0 22px rgba(230, 44, 58, 0.22);
}

.built-subtitle {
  margin: 28px 0 0;
  padding-left: 16px;
  border-left: 5px solid #ef2638;
  color: #e7edf6;
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.45;
}

.built-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.built-play-btn,
.built-trailer-btn {
  min-height: 68px;
  border-radius: 4px;
  color: white;
  font-size: 18px;
  font-weight: 950;
  font-family: var(--ui-font);
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.built-play-btn {
  min-width: 286px;
  border: 1px solid rgba(255, 91, 102, 0.88);
  background: linear-gradient(90deg, #e61f31, #dc253d);
  box-shadow: 0 0 32px rgba(230, 44, 58, 0.48), 0 16px 34px rgba(0, 0, 0, 0.35);
}

.built-play-btn span {
  margin-left: 22px;
}

.built-trailer-btn {
  min-width: 232px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(25, 25, 34, 0.66);
}

.built-trailer-btn span {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: 10px;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 50%;
  font-size: 13px;
}

.built-auth-panel {
  position: absolute;
  z-index: 14;
  right: 4.8%;
  top: 24%;
  width: min(22vw, 390px);
  min-width: 350px;
  padding: 28px 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 19, 33, 0.94), rgba(9, 10, 21, 0.96)),
    radial-gradient(circle at 100% 8%, rgba(211, 35, 190, 0.22), transparent 36%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset, 0 0 28px rgba(179, 59, 255, 0.28), 0 22px 70px rgba(0,0,0,0.58);
  backdrop-filter: blur(14px);
}

.built-auth-panel::before,
.built-auth-panel::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
}

.built-auth-panel::before {
  top: -1px;
  right: -1px;
  border-top: 2px solid rgba(179, 59, 255, 0.95);
  border-right: 2px solid rgba(179, 59, 255, 0.95);
  border-top-right-radius: 18px;
}

.built-auth-panel::after {
  left: -1px;
  bottom: -1px;
  border-left: 2px solid rgba(179, 59, 255, 0.76);
  border-bottom: 2px solid rgba(179, 59, 255, 0.76);
  border-bottom-left-radius: 18px;
}

.built-auth-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.built-auth-head img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 42, 58, 0.46));
}

.built-auth-head span {
  display: block;
  color: #f6f7fb;
  font-size: 22px;
  font-weight: 950;
  font-family: var(--ui-font);
  line-height: 1;
  text-transform: uppercase;
}

.built-auth-head p {
  margin: 8px 0 0;
  color: #aeb8cc;
  font-size: 14px;
  line-height: 1.35;
}

.built-login-panel {
  display: grid;
  gap: 13px;
}

.built-field {
  position: relative;
  display: grid;
  gap: 7px;
}

.built-field span {
  color: rgba(244, 247, 251, 0.78);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.built-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(9, 10, 20, 0.74);
  color: #f4f7fb;
  padding: 0 16px 0 44px;
  font-size: 15px;
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.built-field::before {
  position: absolute;
  left: 16px;
  bottom: 15px;
  z-index: 1;
  color: rgba(244, 247, 251, 0.58);
  font-size: 17px;
}

.built-field-email::before {
  content: "@";
}

.built-field-code::before {
  content: "#";
}

.built-field input:focus {
  border-color: rgba(255, 57, 80, 0.84);
  box-shadow: 0 0 0 1px rgba(255, 57, 80, 0.18), 0 0 22px rgba(179, 59, 255, 0.18);
}

.built-field input:disabled {
  opacity: 0.72;
}

.built-auth-row,
.built-auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #cbd3e2;
  font-size: 13px;
}

.built-auth-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.built-auth-row input {
  width: 15px;
  height: 15px;
  accent-color: #e62c3a;
}

.built-auth-row button,
.built-auth-footer button {
  border: 0;
  background: transparent;
  color: #df55ff;
  font-weight: 850;
  cursor: pointer;
}

.built-primary-btn {
  min-height: 64px;
  border: 1px solid rgba(255, 87, 99, 0.82);
  border-radius: 8px;
  background: linear-gradient(100deg, #e21f31 0%, #f03555 45%, #b52cff 100%);
  color: white;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(230, 44, 58, 0.38), 0 0 42px rgba(179, 59, 255, 0.28);
  font-family: var(--ui-font);
  transition: transform .18s ease, box-shadow .18s ease;
}

.built-auth-panel .auth-message {
  min-height: 18px;
  margin: 0;
  color: #47cfff;
  font-size: 12px;
  font-weight: 850;
}

.built-auth-footer {
  justify-content: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.built-auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: rgba(244, 247, 251, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.built-auth-divider::before,
.built-auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.built-feature-row {
  position: absolute;
  z-index: 8;
  left: 4.2%;
  right: 4.2%;
  bottom: clamp(30px, 5.2vh, 58px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 0.95vw, 16px);
  align-items: end;
}

.built-feature-row img {
  width: 100%;
  height: clamp(162px, 12vw, 229px);
  min-height: 0;
  object-fit: fill;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.42));
}

.built-feature-card {
  position: relative;
  --card-accent: #ff3345;
  --card-glow: rgba(230, 44, 58, 0.24);
  --card-border: rgba(230, 44, 58, 0.36);
  --card-text: #f6f1f1;
  height: clamp(162px, 12vw, 229px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 1.35vw, 26px) 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 22%, var(--card-glow), transparent 28%),
    linear-gradient(180deg, rgba(21, 24, 37, 0.78), rgba(7, 9, 15, 0.86)),
    linear-gradient(135deg, rgba(18, 19, 28, 0.94), rgba(8, 10, 15, 0.96) 62%, rgba(16, 17, 26, 0.98));
  color: var(--card-text);
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.035) inset, 0 16px 32px rgba(0, 0, 0, 0.42);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.built-feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-border);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset, 0 20px 42px rgba(0, 0, 0, 0.52), 0 0 32px var(--card-glow);
}

.built-feature-card::before,
.built-feature-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid var(--card-border);
  clip-path: polygon(0 16px, 16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px));
  opacity: 0.5;
}

.built-feature-card::after {
  inset: auto 0 0 0;
  height: 46%;
  border: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.36));
}

.built-card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(58px, 4.9vw, 88px);
  height: clamp(52px, 4.8vw, 86px);
  margin-bottom: clamp(12px, 1vw, 18px);
  filter: drop-shadow(0 0 16px var(--card-glow));
}

.built-card-icon svg {
  max-width: 100%;
  max-height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--card-accent);
}

.built-feature-card h2,
.built-feature-card p,
.built-feature-card span {
  position: relative;
  z-index: 1;
}

.built-feature-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(17px, 1.3vw, 25px);
  font-weight: 950;
  font-family: var(--ui-font);
  line-height: 1;
  text-transform: uppercase;
}

.built-feature-card p {
  max-width: 205px;
  margin: 10px 0 0;
  color: rgba(230, 235, 246, 0.82);
  font-size: clamp(12px, 0.78vw, 15px);
  line-height: 1.35;
}

.built-feature-card span {
  margin-top: clamp(10px, 1vw, 16px);
  color: var(--card-accent);
  font-size: 18px;
  font-weight: 950;
}

.feature-crew {
  --card-accent: #c746ff;
  --card-glow: rgba(179, 59, 255, 0.28);
  --card-border: rgba(179, 59, 255, 0.38);
}

.feature-income {
  --card-accent: #4bf28a;
  --card-glow: rgba(76, 242, 138, 0.24);
  --card-border: rgba(76, 242, 138, 0.34);
}

.feature-battle {
  --card-accent: #ff3345;
  --card-glow: rgba(255, 51, 69, 0.28);
  --card-border: rgba(255, 51, 69, 0.38);
}

.feature-season {
  --card-accent: #3ba7ff;
  --card-glow: rgba(59, 167, 255, 0.26);
  --card-border: rgba(59, 167, 255, 0.36);
}

.feature-boss {
  --card-accent: #f4bc43;
  --card-glow: rgba(210, 154, 46, 0.28);
  --card-border: rgba(210, 154, 46, 0.38);
  --card-text: #f6f1df;
}

@media (max-width: 1500px) {
  .built-nav {
    left: 16px;
    right: 16px;
    min-height: 92px;
    grid-template-columns: 240px 1fr 300px;
    padding: 0 34px;
    gap: 20px;
  }

  .built-brand img {
    width: 230px;
  }

  .built-nav-links {
    gap: clamp(18px, 2.6vw, 38px);
  }

  .built-nav-links button,
  .built-nav-actions button {
    font-size: 14px;
  }

  .built-nav-actions button {
    min-width: 118px;
  }

  .built-nav-actions .built-register-btn {
    min-width: 148px;
  }

  .built-copy {
    left: 3.8%;
    top: 27%;
    width: 42vw;
  }

  .built-characters {
    left: 38.5%;
    top: 13.4%;
    width: min(43vw, 650px);
  }

  .built-title span {
    font-size: clamp(68px, 6.2vw, 94px);
  }

  .built-title strong {
    font-size: clamp(52px, 4.9vw, 76px);
  }

  .built-kicker {
    letter-spacing: 2.4px;
  }

  .built-play-btn,
  .built-trailer-btn {
    min-height: 58px;
    font-size: 15px;
  }

  .built-play-btn {
    min-width: 220px;
  }

  .built-trailer-btn {
    min-width: 190px;
  }

  .built-auth-panel {
    right: 2.4%;
    top: 22.8%;
    width: 344px;
    min-width: 0;
    padding: 18px 20px;
  }

  .built-auth-head {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    margin-bottom: 14px;
  }

  .built-auth-head img {
    width: 38px;
    height: 38px;
  }

  .built-auth-head span {
    font-size: 20px;
  }

  .built-auth-head p {
    font-size: 12px;
  }

  .built-login-panel {
    gap: 9px;
  }

  .built-field {
    gap: 5px;
  }

  .built-field input {
    min-height: 44px;
    font-size: 14px;
  }

  .built-auth-row,
  .built-auth-footer {
    font-size: 12px;
  }

  .built-primary-btn {
    min-height: 52px;
    font-size: 16px;
  }

  .built-auth-panel .auth-message {
    min-height: 14px;
  }

  .built-feature-row {
    left: 4%;
    right: 4%;
    bottom: clamp(26px, 4.8vh, 44px);
    gap: 10px;
  }
}

@media (max-width: 1180px) {
  .landing-built {
    overflow-y: auto;
  }

  .built-stage {
    min-height: 1320px;
  }

  .built-nav {
    grid-template-columns: 220px 1fr 230px;
    padding: 0 24px;
  }

  .built-nav-links button:nth-child(n + 4) {
    display: none;
  }

  .built-nav-actions .built-register-btn {
    display: none;
  }

  .built-copy {
    top: 19%;
    width: 54vw;
  }

  .built-title::before {
    display: none;
  }

  .built-characters {
    left: 42%;
    top: 15%;
    width: 58vw;
  }

  .built-auth-panel {
    top: 450px;
    right: 4%;
    width: 340px;
  }

  .built-feature-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    top: 940px;
    bottom: auto;
    left: 5%;
    right: 5%;
  }
}

@media (max-width: 900px) {
  .landing-built {
    overflow-y: auto;
  }

  .built-stage {
    min-height: 1810px;
    background-position: center top;
  }

  .built-nav {
    top: 8px;
    left: 8px;
    right: 8px;
    min-height: 74px;
    grid-template-columns: auto 1fr;
    padding: 0 14px;
    clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  }

  .built-brand img {
    width: 190px;
  }

  .built-nav-links {
    display: none;
  }

  .built-nav-actions {
    justify-content: flex-end;
  }

  .built-nav-actions button {
    min-width: 92px;
    min-height: 42px;
    font-size: 12px;
  }

  .built-characters {
    left: 0;
    top: 94px;
    width: 132vw;
    max-width: none;
    opacity: 0.95;
  }

  .built-copy {
    left: 18px;
    right: 18px;
    top: 410px;
    width: auto;
  }

  .built-kicker {
    padding: 7px 10px 7px 9px;
    font-size: 10px;
    letter-spacing: 1.7px;
  }

  .built-title span {
    font-size: clamp(58px, 16vw, 82px);
  }

  .built-title strong {
    font-size: clamp(48px, 13vw, 66px);
  }

  .built-subtitle {
    width: min(460px, 100%);
    font-size: 16px;
  }

  .built-cta-row {
    gap: 12px;
  }

  .built-play-btn,
  .built-trailer-btn {
    min-width: 0;
    flex: 1 1 150px;
  }

  .built-auth-panel {
    left: 12px;
    right: 12px;
    top: 760px;
    width: auto;
  }

  .built-feature-row {
    top: 1250px;
    bottom: auto;
    left: 12px;
    right: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .built-stage {
    min-height: 1730px;
  }

  .built-brand img {
    width: 152px;
  }

  .built-nav-actions button {
    min-width: 80px;
    font-size: 11px;
  }

  .built-characters {
    left: -36%;
    width: 174vw;
  }

  .built-copy {
    top: 360px;
  }

  .built-title span {
    font-size: 54px;
  }

  .built-title strong {
    font-size: 44px;
  }

  .built-subtitle {
    margin-top: 18px;
    font-size: 15px;
  }

  .built-auth-panel {
    top: 675px;
    padding: 20px;
  }

  .built-auth-head {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .built-auth-head img {
    width: 38px;
    height: 38px;
  }

  .built-auth-head span {
    font-size: 18px;
  }

  .built-feature-row {
    top: 1160px;
    gap: 8px;
  }
}

.built-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(2, 4, 8, 0.58);
  backdrop-filter: blur(7px);
}

.built-auth-panel {
  position: fixed;
  z-index: 50;
  top: 50%;
  right: clamp(28px, 5vw, 92px);
  width: min(420px, calc(100vw - 32px));
  min-width: 0;
  max-height: calc(100svh - 136px);
  overflow: auto;
  transform: translateY(-43%);
}

.built-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(8, 10, 18, 0.76);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1500px) {
  .built-characters {
    left: 42%;
    right: 4%;
    top: 13.5%;
    bottom: 15%;
    width: auto;
  }

  .hero-leader-shadow {
    height: min(64vh, 650px);
  }

  .hero-leader-neon {
    height: min(59vh, 600px);
  }

  .hero-leader-iron {
    height: min(60vh, 610px);
  }

  .built-auth-panel {
    top: 50%;
    right: 24px;
    width: min(390px, calc(100vw - 32px));
    transform: translateY(-43%);
  }
}

@media (max-width: 1180px) {
  .built-stage {
    min-height: 1120px;
  }

  .built-characters {
    left: 42%;
    right: -2%;
    top: 12%;
    bottom: 36%;
    width: auto;
  }

  .built-feature-row {
    top: 760px;
  }

  .built-auth-panel {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 900px) {
  .built-stage {
    min-height: 1280px;
  }

  .built-characters {
    left: 0;
    right: 0;
    top: 92px;
    bottom: auto;
    height: 340px;
    width: 100%;
    overflow: hidden;
  }

  .hero-leader-shadow {
    height: 360px;
    left: 50%;
  }

  .hero-leader-neon {
    height: 322px;
    left: 6%;
  }

  .hero-leader-iron {
    height: 326px;
    right: 2%;
  }

  .built-copy {
    top: 382px;
  }

  .built-feature-row {
    top: 780px;
  }

  .built-auth-panel {
    left: 12px;
    right: 12px;
    top: 50%;
    width: auto;
    transform: translateY(-50%);
  }
}

@media (max-width: 480px) {
  .built-stage {
    min-height: 1240px;
  }

  .built-characters {
    left: 0;
    right: 0;
    top: 86px;
    width: 100%;
    height: 302px;
  }

  .hero-leader-shadow {
    height: 315px;
    left: 50%;
  }

  .hero-leader-neon {
    height: 280px;
    left: 5%;
  }

  .hero-leader-iron {
    height: 284px;
    right: 1%;
  }

  .built-copy {
    top: 346px;
  }

  .built-feature-row {
    top: 742px;
  }

  .built-auth-panel {
    padding: 20px;
    max-height: calc(100svh - 40px);
  }
}

@media (max-width: 1500px) {
  .ref-auth-panel {
    left: 75%;
    right: auto;
    top: 23.2%;
    width: min(360px, 25vw);
    min-width: 0;
    padding: 24px;
  }

  .ref-auth-head span {
    font-size: 20px;
  }

  .ref-auth-head p {
    font-size: 13px;
  }

  .ref-primary-btn {
    min-height: 58px;
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .landing-reference {
    overflow-y: auto;
  }

  .reference-stage {
    min-height: 980px;
    background-image:
      linear-gradient(180deg, rgba(5, 7, 13, 0.06) 0%, rgba(5, 7, 13, 0.2) 46%, rgba(5, 7, 13, 0.86) 64%, #05070d 100%),
      url("./gangcity/11_landing_asset_pack/03_hero/hero_full_section.png");
    background-size: auto 620px;
    background-position: center top;
  }

  .ref-hotspot-login,
  .ref-hotspot-register {
    display: none;
  }

  .ref-hotspot-play {
    left: 6%;
    top: 50%;
    width: 44%;
    height: 70px;
  }

  .ref-auth-panel {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 26px;
    width: min(430px, calc(100vw - 24px));
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .reference-stage {
    min-height: 940px;
    background-size: auto 540px;
    background-position: center top;
  }

  .ref-auth-panel {
    padding: 20px;
  }

  .ref-auth-head {
    grid-template-columns: 44px 1fr;
    gap: 12px;
  }

  .ref-auth-head img {
    width: 40px;
    height: 40px;
  }

  .ref-auth-head span {
    font-size: 18px;
  }

  .ref-field input {
    min-height: 48px;
  }

  .ref-auth-row,
  .ref-auth-footer {
    font-size: 12px;
  }
}

.login-panel h2,
.panel h2,
.panel h3 {
  margin: 0;
  line-height: 1.1;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.field input,
.select-like {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(2, 7, 13, 0.8);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.field input:focus {
  border-color: var(--cyan);
}

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

.auth-message {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.app {
  min-height: 100vh;
  --view-bg: url("./gangcity/10_new_assets/city_map_background.jpg");
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 43, 68, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(3, 4, 9, 0.7), rgba(3, 4, 9, 0.96));
}

.app.view-map {
  --view-bg: url("./gangcity/10_new_assets/city_map_background.jpg");
}

.app.view-crew {
  --view-bg: url("./gangcity/04_district_images/login_cyberpunk_city_background.png");
}

.app.view-battle {
  --view-bg: url("./gangcity/04_district_images/neon_street_target_large.png");
}

.app.view-missions {
  --view-bg: url("./gangcity/04_district_images/login_cyberpunk_city_background.png");
}

.app.view-market {
  --view-bg: url("./gangcity/06_crates_rewards/market_boss_pass_panel_art.png");
}

.app.view-vault {
  --view-bg: url("./gangcity/04_district_images/login_cyberpunk_city_background.png");
}

.app::after {
  content: "";
  position: fixed;
  inset: 64px 0 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 3, 8, 0.24), rgba(2, 3, 8, 0.9)),
    linear-gradient(90deg, rgba(2, 3, 8, 0.66), rgba(2, 3, 8, 0.26) 48%, rgba(2, 3, 8, 0.7)),
    var(--view-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: saturate(1.14) contrast(1.08);
}

.app > * {
  position: relative;
  z-index: 1;
}

.resource-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.resource-pill {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 13, 22, 0.78);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px currentColor;
}

.dot.cash {
  background: var(--lime);
  color: var(--lime);
}

.dot.rep {
  background: var(--orange);
  color: var(--orange);
}

.dot.energy {
  background: var(--amber);
  color: var(--amber);
}

.dot.gems {
  background: var(--violet);
  color: var(--violet);
}

.resource-icon {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
}

.game-layout {
  width: min(1760px, calc(100vw - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  position: relative;
  z-index: 1;
}

.sidebar,
.panel,
.modal-card,
.toast {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 9, 15, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.sidebar {
  position: sticky;
  top: 80px;
  height: calc(100vh - 92px);
  padding: 12px;
  border-color: rgba(255, 69, 92, 0.22);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
}

.profile {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 69, 92, 0.12), transparent);
  padding: 10px;
  border-radius: 6px;
}

.avatar,
.portrait {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 214, 169, 0.95) 0 16%, transparent 17%),
    linear-gradient(145deg, rgba(53, 213, 255, 0.32), rgba(154, 59, 255, 0.18)),
    #111927;
}

.avatar {
  width: 54px;
  aspect-ratio: 1;
}

.avatar-img {
  width: 54px;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(53, 213, 255, 0.4);
  border-radius: 8px;
  background: rgba(8, 14, 23, 0.8);
}

.avatar::before,
.portrait::before {
  content: "";
  position: absolute;
  inset: 46% 18% 0;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg, rgba(16, 24, 36, 0.95), rgba(62, 32, 97, 0.75));
}

.avatar::after,
.portrait::after {
  content: "";
  position: absolute;
  left: 33%;
  right: 33%;
  top: 18%;
  height: 16%;
  border-radius: 50%;
  border-top: 6px solid rgba(12, 16, 24, 0.95);
}

.avatar.neon,
.portrait.neon {
  background:
    radial-gradient(circle at 50% 22%, rgba(238, 175, 170, 0.95) 0 16%, transparent 17%),
    linear-gradient(145deg, rgba(250, 62, 207, 0.42), rgba(53, 213, 255, 0.2)),
    #171222;
}

.avatar.iron,
.portrait.iron {
  background:
    radial-gradient(circle at 50% 22%, rgba(111, 74, 50, 0.95) 0 17%, transparent 18%),
    linear-gradient(145deg, rgba(255, 178, 63, 0.35), rgba(255, 69, 92, 0.14)),
    #18140e;
}

.avatar.byte,
.portrait.byte {
  background:
    radial-gradient(circle at 50% 22%, rgba(171, 203, 229, 0.95) 0 15%, transparent 16%),
    linear-gradient(145deg, rgba(53, 213, 255, 0.42), rgba(60, 224, 131, 0.16)),
    #071923;
}

.avatar.ghost,
.portrait.ghost {
  background:
    radial-gradient(circle at 50% 22%, rgba(194, 179, 160, 0.92) 0 15%, transparent 16%),
    linear-gradient(145deg, rgba(210, 222, 235, 0.18), rgba(76, 92, 119, 0.22)),
    #11141c;
}

.profile strong {
  display: block;
  font-size: 13px;
}

.profile span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.side-menu {
  display: grid;
  gap: 8px;
}

.side-menu button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(7, 13, 22, 0.52);
  color: var(--soft);
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.side-menu button.active {
  border-color: rgba(255, 69, 92, 0.76);
  background: linear-gradient(90deg, rgba(155, 26, 39, 0.94), rgba(19, 24, 46, 0.86));
  box-shadow: inset 3px 0 0 rgba(255, 69, 92, 0.95), 0 0 24px rgba(255, 69, 92, 0.15);
}

.starter-pack {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(53, 213, 255, 0.25);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(53, 213, 255, 0.15), rgba(154, 59, 255, 0.08));
  overflow: hidden;
  min-height: 118px;
}

.starter-art {
  position: absolute;
  right: -8px;
  bottom: -10px;
  width: 104px;
  height: 88px;
  object-fit: contain;
  opacity: 0.88;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.48));
}

.starter-pack strong {
  position: relative;
  z-index: 1;
  display: block;
}

.starter-pack span {
  position: relative;
  z-index: 1;
  display: block;
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 12px;
  max-width: 126px;
}

.starter-pack button {
  position: relative;
  z-index: 1;
}

.account-box {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 13, 22, 0.52);
  min-width: 0;
}

.account-box span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-box strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.panel {
  padding: 14px;
  min-width: 0;
}

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

.panel-title {
  display: grid;
  gap: 4px;
}

.panel-title h2,
.panel-title h3 {
  text-transform: uppercase;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
  align-items: start;
}

.map-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.map-wrap {
  height: clamp(500px, 62vh, 700px);
  min-height: 500px;
  position: relative;
  border: 1px solid rgba(53, 213, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 5, 10, 0.22), rgba(2, 5, 10, 0.54)),
    url("./gangcity/10_new_assets/city_map_background.jpg"),
    radial-gradient(circle at 56% 28%, rgba(53, 213, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(5, 11, 18, 0.84), rgba(4, 7, 11, 0.96));
  background-size: cover, cover, auto, auto;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
}

.district-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}

.district-zone {
  cursor: pointer;
  opacity: 0.32;
  stroke: currentColor;
  stroke-width: 3;
  transition: opacity 0.18s ease, filter 0.18s ease, transform 0.18s ease;
  transform-origin: center;
}

.district-zone:hover,
.district-zone.active {
  opacity: 0.64;
  filter: drop-shadow(0 0 14px currentColor);
}

.district-label {
  pointer-events: none;
  fill: #fff;
  font-size: 19px;
  font-weight: 950;
  text-anchor: middle;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.8);
  stroke-width: 5px;
}

.district-label.small {
  font-size: 14px;
  fill: rgba(238, 247, 255, 0.86);
}

.map-gridline {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.district-side {
  display: grid;
  gap: 12px;
}

.district-hero {
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.1), rgba(5, 7, 11, 0.9)),
    linear-gradient(110deg, rgba(53, 213, 255, 0.14), rgba(154, 59, 255, 0.14)),
    var(--district-image),
    #101927;
  background-size: cover;
  background-position: center;
  display: grid;
  align-content: end;
  padding: 14px;
  position: relative;
}

.district-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 5, 8, 0.48), transparent 52%),
    linear-gradient(to top, rgba(2, 5, 8, 0.92), transparent 62%);
  opacity: 0.92;
}

.district-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 0 16px rgba(53, 213, 255, 0.38));
}

.district-hero > * {
  position: relative;
  z-index: 1;
}

.district-hero h2 {
  margin: 0;
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stat,
.mission-row,
.inventory-row,
.op-row,
.result-line {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(6, 11, 18, 0.74);
}

.stat {
  padding: 12px;
  min-height: 76px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.op-list {
  display: grid;
  gap: 8px;
}

.op-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.op-icon {
  width: 34px;
  height: 34px;
}

.op-row strong {
  display: block;
  font-size: 13px;
}

.op-row span {
  color: var(--muted);
  font-size: 12px;
}

.leader-screen {
  min-height: 100vh;
  padding: clamp(16px, 2.2vw, 30px);
  display: grid;
  place-items: center;
  overflow-y: auto;
  background:
    linear-gradient(90deg, rgba(2, 4, 8, 0.94) 0%, rgba(5, 7, 15, 0.72) 48%, rgba(3, 4, 9, 0.94) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.22), rgba(5, 7, 13, 0.92)),
    radial-gradient(circle at 24% 18%, rgba(71, 207, 255, 0.16), transparent 30%),
    radial-gradient(circle at 76% 12%, rgba(179, 59, 255, 0.2), transparent 32%),
    url("./gangcity/10_new_assets/district_neon_street.jpg"),
    #05070d;
  background-size: auto, auto, auto, auto, cover, auto;
  background-position: center, center, center, center, center, center;
}

.leader-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(transparent 0 60%, rgba(5, 7, 13, 0.92) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.035) 0 1px, transparent 1px 4px);
  opacity: 0.55;
}

.leader-wrap {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  padding: clamp(16px, 1.8vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(179, 59, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(9, 12, 23, 0.82), rgba(5, 7, 13, 0.88));
  box-shadow: 0 28px 90px rgba(0,0,0,0.62), 0 0 0 1px rgba(255,255,255,0.035) inset;
  backdrop-filter: blur(16px);
}

.leader-heading {
  display: grid;
  grid-template-columns: 210px 1fr 136px;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.leader-heading img {
  width: min(210px, 100%);
  background: transparent;
  filter: drop-shadow(0 0 18px rgba(230, 44, 58, 0.24));
}

.leader-heading > div {
  min-width: 0;
  justify-self: start;
}

.leader-heading .section-kicker {
  margin-bottom: 10px;
  line-height: 1;
}

.leader-heading h1 {
  margin: 0;
  color: #f6f3ec;
  font-family: var(--display);
  font-size: clamp(48px, 5.2vw, 78px);
  line-height: .92;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0,0,0,.65), 0 0 22px rgba(230, 44, 58, 0.18);
}

.leader-heading p {
  max-width: 560px;
  margin: 6px 0 0;
  color: rgba(226, 235, 247, 0.82);
}

.leader-heading aside {
  justify-self: end;
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(7, 10, 18, 0.72);
  text-align: right;
}

.leader-heading aside strong {
  display: block;
  color: #ff3347;
  font-family: var(--display);
  font-size: 36px;
  line-height: .9;
}

.leader-heading aside span {
  color: rgba(226, 235, 247, 0.7);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.leader-cards,
.crew-grid,
.market-grid,
.vault-grid,
.mission-grid {
  display: grid;
  gap: 12px;
}

.leader-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.crew-card,
.market-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 14px;
  box-shadow: var(--shadow);
}

.leader-card {
  --leader-accent: #47cfff;
  --leader-glow: rgba(71, 207, 255, 0.26);
  position: relative;
  display: grid;
  grid-template-rows: 310px auto auto auto;
  gap: 12px;
  min-height: 590px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--leader-accent) 62%, rgba(255,255,255,0.16));
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 18%, var(--leader-glow), transparent 32%),
    linear-gradient(180deg, rgba(14, 18, 31, 0.92), rgba(5, 7, 13, 0.96));
  box-shadow: 0 18px 60px rgba(0,0,0,0.46), 0 0 0 1px rgba(255,255,255,0.045) inset;
  transition: transform .2s ease, box-shadow .2s ease;
}

.leader-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 76px rgba(0,0,0,0.56), 0 0 34px var(--leader-glow), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

.leader-neon {
  --leader-accent: #b33bff;
  --leader-glow: rgba(179, 59, 255, 0.32);
}

.leader-iron {
  --leader-accent: #d29a2e;
  --leader-glow: rgba(210, 154, 46, 0.3);
}

.leader-card-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--leader-accent) 18%, transparent), transparent),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.035) 0 1px, transparent 1px 5px);
}

.leader-art {
  position: relative;
  min-height: 310px;
  display: grid;
  place-items: end center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 9, 16, 0.04), rgba(4, 8, 14, 0.74)),
    radial-gradient(circle at 50% 24%, var(--leader-glow), transparent 36%),
    linear-gradient(90deg, rgba(71, 207, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(71, 207, 255, 0.08) 1px, transparent 1px),
    url("./gangcity/10_new_assets/district_neon_street.jpg");
  background-size: auto, auto, 52px 52px, 52px 52px, cover;
  background-position: center, center, center;
}

.leader-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(4, 8, 14, 0.68) 72%, rgba(4, 8, 14, 0.92));
  z-index: 1;
}

.leader-art img {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 92%;
  height: 126%;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  align-self: end;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 18px var(--leader-glow));
  transform: translateY(38px);
}

.leader-shadow .leader-art img {
  height: 128%;
  transform: translateY(42px);
}

.leader-neon .leader-art img {
  height: 124%;
  transform: translateY(38px);
}

.leader-iron .leader-art img {
  height: 126%;
  max-width: 98%;
  transform: translateY(42px);
}

.leader-card h2,
.crew-card h3,
.market-card h3 {
  margin: 0;
  text-transform: uppercase;
}

.leader-card-copy {
  position: relative;
  z-index: 1;
}

.leader-role {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--leader-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.leader-card-copy h2 {
  color: #fff;
  font-family: var(--ui-font);
  font-size: clamp(25px, 2vw, 34px);
  line-height: .95;
}

.leader-card-copy p {
  min-height: 42px;
  margin: 8px 0 0;
  color: rgba(226, 235, 247, 0.76);
  font-size: 13px;
  line-height: 1.35;
}

.leader-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.leader-stat-row span {
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--leader-accent) 48%, rgba(255,255,255,0.08));
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.perk-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  color: var(--soft);
  font-size: 13px;
}

.perk-list span {
  display: block;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.leader-card-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 132px;
  align-items: center;
  gap: 12px;
}

.leader-card-footer > span {
  color: rgba(226, 235, 247, 0.74);
  font-size: 13px;
  font-weight: 800;
}

.leader-card-footer strong {
  color: var(--leader-accent);
}

.leader-select-btn {
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--leader-accent) 72%, #fff);
  border-radius: 10px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--leader-accent) 72%, #111827), color-mix(in srgb, var(--leader-accent) 48%, #05070d));
  color: #fff;
  font-family: var(--ui-font);
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 24px var(--leader-glow);
}

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

.crew-card {
  min-height: 248px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  overflow: hidden;
}

.crew-art {
  width: 100%;
  aspect-ratio: 1.55;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(53, 213, 255, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(13, 21, 34, 0.96), rgba(4, 8, 15, 0.98));
}

.crew-art-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.crew-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-icon {
  width: 24px;
  height: 24px;
}

.crew-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  font-size: 12px;
}

.mini-stat {
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.battle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 12px;
  align-items: start;
}

.versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.squad {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(6, 11, 18, 0.52), rgba(6, 11, 18, 0.9)),
    rgba(6, 11, 18, 0.72);
  padding: 14px;
  overflow: hidden;
  position: relative;
}

.squad::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.42;
  pointer-events: none;
}

.squad-player::before {
  background-image: url("./gangcity/03_character_portraits/battle_your_crew_splash.png");
}

.squad-enemy::before {
  background-image: url("./gangcity/03_character_portraits/battle_enemy_crew_splash_neon_vipers.png");
}

.squad > * {
  position: relative;
  z-index: 1;
}

.squad h3 {
  margin: 0 0 8px;
}

.fighter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(54px, 1fr));
  gap: 8px;
}

.fighter {
  min-height: 88px;
  display: grid;
  place-items: center;
  align-content: end;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
}

.fighter-img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.4));
}

.fighter span {
  width: 100%;
  padding: 4px 3px 7px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 13, 0.9));
}

.vs-mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 16, 26, 0.86);
  font-family: var(--display);
  font-size: 34px;
}

.battle-actions {
  display: grid;
  gap: 8px;
}

.battle-result-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(6, 11, 18, 0.9), rgba(18, 24, 38, 0.62));
  font-weight: 900;
}

.battle-result-chip.win {
  border-color: rgba(60, 224, 131, 0.36);
  box-shadow: inset 3px 0 0 var(--lime);
}

.battle-result-chip.loss {
  border-color: rgba(255, 69, 92, 0.38);
  box-shadow: inset 3px 0 0 var(--red);
}

.battle-result-chip span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.battle-intel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.intel-card,
.effect-pill,
.battle-log-row {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(6, 11, 18, 0.72);
}

.intel-card {
  min-height: 76px;
  padding: 10px;
}

.intel-card span,
.effect-pill span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.intel-card strong {
  display: block;
  margin-top: 6px;
  text-transform: uppercase;
}

.battle-log {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.battle-log h3,
.vault-effects h3 {
  margin: 0;
  text-transform: uppercase;
}

.battle-log-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.battle-log-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.battle-log-row.win em {
  color: var(--lime);
}

.battle-log-row.loss em {
  color: var(--red);
}

.mission-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mission-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.mission-summary div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(6, 11, 18, 0.72);
}

.mission-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

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

.mission-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.mission-row.is-ready {
  border-color: rgba(60, 224, 131, 0.38);
  box-shadow: inset 3px 0 0 var(--lime), 0 0 24px rgba(60, 224, 131, 0.08);
}

.district-side .mission-grid {
  grid-template-columns: 1fr;
}

.district-side .mission-row {
  min-height: 58px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
}

.district-side .mission-icon {
  width: 28px;
  height: 28px;
}

.district-side .mission-row strong {
  font-size: 13px;
}

.district-side .mission-row .tiny {
  font-size: 11px;
}

.district-side .mission-row button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 8px;
}

.mission-icon {
  width: 32px;
  height: 32px;
}

.progress {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress > span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}

.market-grid {
  grid-template-columns: 1.1fr repeat(2, minmax(0, 0.75fr));
  align-items: start;
}

.market-card {
  min-height: 260px;
  display: grid;
  gap: 12px;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
}

.market-card.is-locked {
  opacity: 0.72;
}

.market-art {
  width: 100%;
  height: 112px;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 50%, rgba(154, 59, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(14, 22, 36, 0.82), rgba(5, 8, 14, 0.92));
}

.pass-banner {
  min-height: 170px;
  display: grid;
  align-content: end;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 178, 63, 0.38);
  background:
    linear-gradient(180deg, transparent, rgba(5, 7, 11, 0.85)),
    url("./gangcity/06_crates_rewards/market_boss_pass_panel_art.png"),
    linear-gradient(135deg, rgba(255, 178, 63, 0.24), rgba(154, 59, 255, 0.22)),
    #111621;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.pass-art {
  position: absolute;
  right: -24px;
  bottom: -14px;
  width: min(58%, 310px);
  height: auto;
  object-fit: contain;
  opacity: 0.68;
  pointer-events: none;
}

.pass-banner > :not(.pass-art) {
  position: relative;
  z-index: 1;
}

.reward-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(56px, 1fr));
  gap: 8px;
}

.reward {
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 12px;
  text-align: center;
}

.reward img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

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

.vault-effects {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.effect-pill {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 12px;
}

.effect-pill strong {
  color: var(--lime);
}

.effect-pill em {
  color: var(--muted);
  font-style: normal;
}

.inventory-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 46px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.inventory-art {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(53, 213, 255, 0.16));
}

.inventory-row strong {
  display: block;
}

.inventory-row span {
  color: var(--muted);
  font-size: 12px;
}

.reward-log {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.reward-log h3 {
  margin: 0;
  text-transform: uppercase;
}

.reward-log-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(6, 11, 18, 0.7);
}

.reward-log-row span {
  color: var(--muted);
  font-size: 12px;
}

.reward-log-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(560px, 100%);
  padding: 18px;
  background: var(--panel-strong);
  overflow: hidden;
  position: relative;
}

.result-art {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 132px;
  max-height: 126px;
  object-fit: contain;
  opacity: 0.86;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.44));
}

.modal-card h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 54px;
  line-height: 0.9;
  padding-right: 118px;
}

.modal-card.victory h2 {
  color: var(--lime);
}

.modal-card.defeat h2 {
  color: var(--red);
}

.result-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  margin-top: 8px;
}

.toast-host {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 12px;
  background: rgba(6, 12, 20, 0.96);
  border-color: var(--line-strong);
  color: var(--soft);
  animation: toast-in 0.2s ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-state.compact {
  min-height: 52px;
  padding: 12px;
}

/* Gameplay UI polish */
.brand-logo.dashboard {
  width: 178px;
  height: auto;
  max-height: 44px;
  filter: drop-shadow(0 0 18px rgba(255, 69, 92, 0.2));
}

.nav-icon,
.resource-icon,
.op-icon,
.mission-icon,
.district-badge {
  display: grid;
  place-items: center;
  color: var(--cyan);
}

.nav-icon svg,
.resource-icon svg,
.op-icon svg,
.mission-icon svg,
.district-badge svg,
.zone-icon svg,
.monster-glyph svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav button {
  min-height: 42px;
  padding: 0 18px;
  border-color: rgba(139, 169, 204, 0.25);
  background: linear-gradient(180deg, rgba(14, 22, 36, 0.92), rgba(6, 10, 18, 0.92));
}

.nav button.active {
  border-color: rgba(255, 69, 92, 0.72);
  background: linear-gradient(180deg, rgba(178, 28, 48, 0.96), rgba(86, 18, 35, 0.92));
  box-shadow: 0 0 26px rgba(255, 69, 92, 0.22), inset 0 -2px 0 rgba(255,255,255,0.1);
}

.nav button.active .nav-icon {
  color: #fff;
}

.resource-bar {
  align-items: center;
}

.resource-pill,
.online-pill {
  min-height: 42px;
  border-color: rgba(139, 169, 204, 0.24);
  background:
    linear-gradient(180deg, rgba(13, 20, 32, 0.96), rgba(6, 10, 17, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}

.resource-icon {
  width: 28px;
  height: 28px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  background: rgba(255,255,255,0.035);
}

.icon-cash { color: var(--lime); }
.icon-rep { color: #c05bff; }
.icon-energy { color: var(--amber); }
.icon-gems { color: #8f7cff; }
.icon-battle { color: var(--red); }
.icon-crew { color: #b66cff; }
.icon-market { color: #d7d8df; }
.icon-vault { color: #d7d8df; }
.icon-warehouse,
.icon-garage,
.icon-route { color: #55d7e7; }
.icon-security,
.icon-shield { color: #8ab6ff; }
.icon-nightclub { color: #d34cff; }

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.online-pill span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.nickname-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(2, 4, 8, 0.95), rgba(5, 7, 15, 0.72), rgba(2, 4, 8, 0.96)),
    url("./gangcity/10_new_assets/district_neon_street.jpg"),
    #05070d;
  background-size: cover;
  background-position: center;
}

.nickname-card {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 69, 92, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 80% 0%, rgba(154, 59, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(12, 17, 29, 0.94), rgba(5, 8, 14, 0.96));
  box-shadow: 0 28px 90px rgba(0,0,0,0.62);
}

.nickname-logo {
  width: 220px;
  height: auto;
  display: block;
  margin-bottom: 28px;
}

.nickname-card h1 {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-size: clamp(46px, 7vw, 72px);
  line-height: .9;
  text-transform: uppercase;
}

.nickname-card p {
  color: rgba(226,235,247,.78);
}

.nickname-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.profile {
  border-bottom: 0;
  border: 1px solid rgba(255, 69, 92, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 69, 92, 0.16), transparent 40%),
    linear-gradient(90deg, rgba(12, 18, 30, 0.96), rgba(7, 11, 19, 0.86));
}

.side-menu {
  align-content: start;
}

.side-menu button {
  min-height: 66px;
  border-color: rgba(139, 169, 204, 0.1);
  background: linear-gradient(90deg, rgba(9, 14, 23, 0.9), rgba(6, 10, 18, 0.76));
}

.side-menu button.active {
  border-color: rgba(255, 69, 92, 0.76);
  background: linear-gradient(90deg, rgba(165, 25, 43, 0.9), rgba(22, 24, 43, 0.9));
}

.side-menu .nav-icon {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
}

.starter-pack {
  min-height: 196px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  grid-template-areas:
    "copy art"
    "meta meta"
    "button button";
  gap: 10px;
  padding: 14px;
  border-color: rgba(53, 213, 255, 0.36);
  background:
    radial-gradient(circle at 92% 24%, rgba(53, 213, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(14, 28, 48, 0.98), rgba(11, 14, 26, 0.92));
}

.starter-art {
  grid-area: art;
  position: static;
  width: 92px;
  height: 78px;
  align-self: start;
  opacity: 1;
}

.starter-copy {
  grid-area: copy;
  min-width: 0;
}

.starter-pack strong {
  font-size: 18px;
  line-height: 1.05;
}

.starter-pack p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.starter-pack span {
  max-width: none;
  margin: 0;
}

.starter-meta {
  grid-area: meta;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.starter-meta span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
}

.starter-meta em {
  color: var(--green);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.starter-pack button {
  grid-area: button;
  width: 100%;
}

.op-row {
  grid-template-columns: 44px minmax(0, 1fr) 86px;
  min-height: 64px;
  background:
    linear-gradient(90deg, rgba(9, 15, 24, 0.92), rgba(6, 10, 18, 0.74));
}

.op-icon,
.mission-icon {
  width: 34px;
  height: 34px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}

.district-badge {
  width: 52px;
  height: 52px;
  padding: 9px;
  border: 1px solid rgba(53, 213, 255, 0.28);
  border-radius: 12px;
  background: rgba(4, 8, 14, 0.58);
  backdrop-filter: blur(8px);
}

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

.mission-row {
  min-height: 92px;
  grid-template-columns: 42px minmax(0, 1fr) 58px;
  background:
    radial-gradient(circle at 0% 0%, rgba(53, 213, 255, 0.08), transparent 38%),
    rgba(6, 11, 18, 0.78);
}

.battle-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
}

.squad {
  min-height: 278px;
  display: grid;
  align-content: end;
  background:
    radial-gradient(circle at 50% 18%, rgba(53, 213, 255, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(9, 14, 24, 0.92), rgba(5, 8, 14, 0.96));
}

.squad-enemy {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 69, 92, 0.15), transparent 32%),
    linear-gradient(180deg, rgba(18, 10, 18, 0.92), rgba(5, 8, 14, 0.96));
}

.squad::before {
  display: none;
}

.fighter-row {
  grid-template-columns: repeat(4, minmax(76px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.fighter {
  min-height: 128px;
  grid-template-rows: 82px auto auto;
  padding-top: 8px;
  border-color: rgba(139, 169, 204, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
}

.fighter-img {
  height: 82px;
}

.fighter span {
  padding: 4px 4px 0;
  background: none;
}

.fighter em {
  width: 100%;
  padding: 2px 4px 7px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.vs-mark {
  width: 72px;
  height: 72px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle, rgba(255, 69, 92, 0.18), rgba(6, 10, 18, 0.94));
}

.battle-intel {
  margin-top: 14px;
}

.main-view {
  display: grid;
  align-content: start;
  gap: 12px;
}

.sidebar {
  grid-template-rows: auto 1fr auto auto;
}

.daily-reward-strip {
  min-height: 92px;
  display: grid;
  grid-template-columns: 108px minmax(220px, 1fr) minmax(240px, auto) 150px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(53, 213, 255, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 20%, rgba(53, 213, 255, 0.2), transparent 32%),
    linear-gradient(90deg, rgba(9, 18, 31, 0.96), rgba(15, 13, 28, 0.93), rgba(7, 10, 18, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.daily-reward-art {
  width: 108px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.52));
}

.daily-reward-copy {
  min-width: 0;
}

.daily-reward-copy strong {
  display: block;
  margin-top: 2px;
  font-family: var(--ui-font);
  font-size: 22px;
  line-height: 1;
}

.daily-reward-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.daily-reward-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}

.daily-reward-meta span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 950;
}

.daily-reward-meta em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.expedition-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 12px;
  align-items: start;
}

.expedition-board {
  min-height: 620px;
}

.expedition-layout {
  display: grid;
  grid-template-columns: minmax(340px, .95fr) minmax(420px, 1.05fr);
  gap: 12px;
}

.expedition-section-title {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.expedition-section-title span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.expedition-section-title strong {
  color: var(--soft);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.expedition-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.expedition-zone,
.encounter-card {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(139, 169, 204, .17);
  border-radius: 8px;
  color: var(--soft);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.expedition-zone {
  min-height: 156px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 4px 10px;
  padding: 13px;
  background:
    linear-gradient(90deg, rgba(6, 10, 17, .94), rgba(6, 10, 17, .66)),
    var(--zone-image);
  background-size: cover;
  background-position: center;
}

.expedition-zone::before,
.selected-bounty::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 28%, transparent), transparent 58%),
    rgba(0,0,0,.32);
}

.expedition-zone.active,
.encounter-card.active {
  border-color: color-mix(in srgb, var(--accent) 70%, #fff);
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 24%, transparent), inset 3px 0 0 var(--accent);
}

.zone-icon {
  grid-row: 1 / span 4;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, rgba(255,255,255,.12));
  border-radius: 10px;
  background: rgba(4, 8, 14, .58);
  color: var(--accent);
}

.expedition-zone span,
.expedition-zone em,
.encounter-card span,
.encounter-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.expedition-zone strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
}

.expedition-zone p {
  margin: 4px 0 0;
  color: rgba(226,235,247,.76);
  font-size: 12px;
  line-height: 1.35;
}

.encounter-list {
  display: grid;
  gap: 10px;
}

.encounter-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 56px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
    linear-gradient(90deg, rgba(8, 13, 22, .94), rgba(5, 8, 14, .9));
}

.monster-glyph {
  width: 50px;
  height: 50px;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--red)) 48%, rgba(255,255,255,.12));
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent, var(--red)) 24%, transparent), transparent 70%),
    rgba(255,255,255,.04);
  color: var(--accent, var(--red));
}

.monster-glyph.large {
  width: 74px;
  height: 74px;
  padding: 14px;
}

.monster-glyph.result {
  width: 86px;
  height: 86px;
}

.encounter-card strong {
  display: block;
  margin: 3px 0;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.encounter-card b {
  justify-self: end;
  font-size: 18px;
  font-weight: 950;
}

.selected-bounty {
  position: relative;
  min-height: 196px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, rgba(255,255,255,.12));
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(3, 5, 9, .16), rgba(4, 7, 13, .92)),
    var(--zone-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.selected-bounty h2 {
  font-size: 28px;
  line-height: .95;
  text-transform: uppercase;
}

.selected-bounty p {
  margin: 0;
  color: rgba(226,235,247,.78);
  font-size: 13px;
  line-height: 1.35;
}

.expedition-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.loot-panel {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(60, 224, 131, .22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(60,224,131,.14), transparent 42%),
    rgba(255,255,255,.035);
}

.loot-panel strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.expedition-squad {
  margin-top: 12px;
}

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

.squad-mini {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 5px;
  border: 1px solid rgba(139,169,204,.17);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.squad-mini img {
  width: 46px;
  height: 52px;
  object-fit: contain;
}

.squad-mini span {
  max-width: 100%;
  overflow: hidden;
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expedition-result {
  width: min(720px, calc(100vw - 32px));
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(5, 8, 14, .96), rgba(13, 18, 30, .92)),
    var(--zone-image);
  background-size: cover;
  background-position: center;
}

.result-summary {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, rgba(255,255,255,.1));
  border-radius: 10px;
  background: rgba(4, 8, 14, .72);
}

.result-summary h2 {
  margin: 4px 0;
}

.result-summary p {
  margin: 0;
  color: var(--muted);
}

.result-line-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.hide {
  display: none !important;
}

@media (max-width: 1500px) {
  .landing .topbar {
    min-height: 74px;
  }

  .landing .brand-logo {
    height: 52px;
  }

  .landing .nav button,
  .landing .top-actions .ghost-btn,
  .landing .top-actions .solid-btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 12px;
  }

  .hero-shell {
    min-height: min(700px, calc(100vh - 120px));
    grid-template-columns: minmax(500px, 660px) minmax(400px, 460px);
  }

  .hero h1 {
    font-size: clamp(56px, 5.4vw, 88px);
  }

  .hero-copy p {
    width: min(600px, 100%);
    font-size: 18px;
  }

  .landing-auth {
    width: min(460px, 100%);
    padding: 22px;
  }

  .auth-card-head h2 {
    font-size: 26px;
  }
}

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

  .top-actions,
  .resource-bar {
    justify-content: flex-start;
  }

  .hero {
    place-items: start center;
    padding-top: 32px;
  }

  .hero-shell {
    width: 100%;
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-items: start;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(54px, 9vw, 78px);
  }

  .hero-copy p {
    font-size: 17px;
  }

  .landing-auth {
    width: min(520px, 100%);
    justify-self: start;
  }

  .leader-wrap {
    width: min(1060px, 100%);
  }

  .leader-heading {
    grid-template-columns: 170px 1fr 112px;
    gap: 16px;
  }

  .leader-card {
    min-height: 540px;
    grid-template-rows: 270px auto auto auto;
  }

  .leader-art {
    min-height: 270px;
  }

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

  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    grid-template-columns: 1fr;
  }

  .side-menu {
    grid-template-columns: repeat(6, minmax(96px, 1fr));
    overflow-x: auto;
  }

  .dashboard-grid,
  .battle-grid,
  .expedition-screen,
  .expedition-layout,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .daily-reward-strip {
    grid-template-columns: 92px minmax(0, 1fr) 150px;
  }

  .daily-reward-meta {
    grid-column: 2 / span 2;
  }

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

@media (max-width: 820px) {
  .hero {
    align-items: start;
    padding-top: 28px;
  }

  .hero-shell {
    gap: 24px;
  }

  .hero-trio {
    opacity: 0.42;
    width: min(88vw, 560px);
    right: -24vw;
  }

  .landing-auth {
    width: 100%;
  }

  .auth-card-head {
    grid-template-columns: 72px 1fr;
  }

  .auth-crest {
    width: 72px;
    height: 62px;
  }

  .leader-wrap {
    padding: 14px;
  }

  .leader-heading {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .leader-heading img {
    justify-self: center;
    width: 164px;
  }

  .leader-heading h1 {
    font-size: clamp(40px, 11vw, 56px);
  }

  .leader-heading p {
    margin-left: auto;
    margin-right: auto;
    max-width: 360px;
  }

  .leader-heading aside {
    display: none;
  }

  .leader-cards,
  .crew-grid,
  .expedition-zone-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .daily-reward-strip {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .daily-reward-strip .solid-btn,
  .daily-reward-meta {
    grid-column: 1 / -1;
  }

  .encounter-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .encounter-card b {
    justify-self: start;
    grid-column: 2;
  }

  .result-line-grid,
  .expedition-stats {
    grid-template-columns: 1fr;
  }

  .leader-card {
    min-height: auto;
    grid-template-rows: auto;
    gap: 10px;
    padding: 10px;
  }

  .leader-art {
    min-height: 0;
    height: 260px;
  }

  .leader-art img {
    height: 122%;
    max-width: 86%;
    transform: translateY(34px);
  }

  .leader-iron .leader-art img {
    max-width: 92%;
  }

  .leader-card-copy p {
    min-height: 0;
    font-size: 12px;
  }

  .leader-stat-row {
    margin-top: 8px;
    gap: 6px;
  }

  .leader-stat-row span,
  .perk-list span {
    padding: 7px 8px;
  }

  .perk-list {
    gap: 5px;
    font-size: 12px;
  }

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

  .vs-mark {
    justify-self: center;
  }

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

  .battle-intel,
  .mission-summary,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .mission-row,
  .inventory-row,
  .op-row {
    grid-template-columns: 1fr;
  }

  .mission-icon,
  .inventory-art,
  .op-icon {
    justify-self: start;
  }

  .side-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .side-menu button {
    justify-content: center;
    text-align: center;
    min-height: 42px;
    padding: 0 8px;
    gap: 6px;
  }

  .side-menu .nav-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 560px) {
  .topbar,
  .hero,
  .leader-screen,
  .game-layout {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand-main {
    font-size: 24px;
  }

  .nav,
  .top-actions,
  .resource-bar {
    justify-content: flex-start;
  }

  .nav button,
  .ghost-btn,
  .solid-btn,
  .tiny-btn,
  .tab-btn {
    min-height: 40px;
    padding: 0 10px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .brand-logo {
    height: 34px;
  }

  .leader-screen {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .leader-heading h1 {
    font-size: 42px;
  }

  .leader-card {
    padding: 10px;
  }

  .leader-art {
    min-height: 0;
    height: 220px;
  }

  .leader-stat-row,
  .leader-card-footer {
    grid-template-columns: 1fr;
  }

  .leader-select-btn {
    width: 100%;
  }

  .landing .topbar {
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
  }

  .landing .brand-logo {
    height: 42px;
  }

  .landing .top-actions {
    display: none;
  }

  .landing .nav {
    justify-content: flex-end;
    gap: 6px;
  }

  .landing .nav button {
    min-height: 36px;
    padding: 0 9px;
    font-size: 10px;
  }

  .fighter-row,
  .reward-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .district-map,
  .map-wrap {
    min-height: 380px;
    height: 430px;
  }
}

.landing-built.is-auth-open {
  overflow: hidden;
}

.landing-built.is-auth-open .built-auth-backdrop {
  background:
    radial-gradient(circle at 50% 45%, rgba(179, 59, 255, 0.18), transparent 34%),
    rgba(2, 4, 8, 0.72);
  backdrop-filter: blur(9px);
}

.landing-built.is-auth-open .built-auth-panel {
  position: fixed;
  left: 50%;
  right: auto;
  top: 50%;
  width: min(430px, calc(100vw - 32px));
  max-height: min(620px, calc(100svh - 44px));
  overflow-y: auto;
  overflow-x: hidden;
  transform: translate(-50%, -50%);
  scrollbar-width: none;
}

.landing-built.is-auth-open .built-auth-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

@media (max-width: 480px) {
  .landing-built.is-auth-open .built-auth-panel {
    width: calc(100vw - 24px);
    max-height: calc(100svh - 28px);
    padding: 18px;
  }
}

/* Game shell v25: command-center layout, staff economy, clan, and global chat. */
.app.view-clan {
  --view-bg: url("./gangcity/04_district_images/district_old_town_area.png");
}

.app.view-chat {
  --view-bg: url("./gangcity/04_district_images/district_neon_street_area.png");
}

.app .topbar {
  min-height: 74px;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 10px clamp(18px, 2.4vw, 34px);
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.96), rgba(3, 5, 10, 0.92)),
    radial-gradient(circle at 22% 0%, rgba(255, 69, 92, 0.16), transparent 24%);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
}

.app .brand {
  min-width: 0;
}

.app .brand-logo.dashboard {
  height: 44px;
  max-width: 178px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 69, 92, 0.24));
}

.app .nav {
  justify-content: center;
  gap: 9px;
}

.app .nav button {
  min-width: 92px;
  min-height: 44px;
  justify-content: center;
  border-color: rgba(139, 169, 204, 0.24);
  background:
    linear-gradient(180deg, rgba(17, 27, 43, 0.82), rgba(5, 9, 16, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.app .nav button.active {
  border-color: rgba(255, 69, 92, 0.78);
  background:
    linear-gradient(90deg, rgba(204, 38, 58, 0.95), rgba(101, 29, 126, 0.92));
  box-shadow: 0 0 24px rgba(255, 69, 92, 0.26), inset 0 -2px 0 rgba(255, 255, 255, 0.18);
}

.app .resource-bar {
  align-items: center;
  flex-wrap: nowrap;
}

.resource-pill,
.online-pill,
.app .resource-bar .locale-btn.compact {
  min-height: 42px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(13, 21, 34, 0.92), rgba(5, 9, 16, 0.94));
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.online-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.game-layout {
  width: min(1820px, calc(100vw - 28px));
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0 18px;
}

.sidebar {
  top: 88px;
  min-height: calc(100vh - 104px);
  height: auto;
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border-color: rgba(255, 69, 92, 0.32);
  background:
    linear-gradient(180deg, rgba(9, 13, 22, 0.94), rgba(4, 7, 12, 0.96)),
    radial-gradient(circle at 0% 12%, rgba(255, 69, 92, 0.14), transparent 34%);
}

.empire-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(53, 213, 255, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, rgba(53, 213, 255, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(9, 22, 35, 0.9), rgba(8, 10, 18, 0.92));
}

.empire-card strong {
  color: #fff;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.empire-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.empire-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.empire-stats div {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.empire-stats span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.empire-stats b {
  color: var(--soft);
  font-size: 13px;
}

.side-menu {
  gap: 8px;
}

.side-menu button {
  min-height: 52px;
  padding: 0 14px;
  border-color: rgba(139, 169, 204, 0.12);
  background:
    linear-gradient(90deg, rgba(11, 19, 30, 0.82), rgba(5, 9, 16, 0.7));
}

.side-menu button.active {
  background:
    linear-gradient(90deg, rgba(216, 37, 59, 0.96), rgba(83, 25, 84, 0.72), rgba(7, 11, 19, 0.88));
}

.daily-reward-strip {
  min-height: 86px;
  grid-template-columns: minmax(360px, 1fr) auto 156px;
  gap: 16px;
  border-color: rgba(53, 213, 255, 0.34);
  background:
    linear-gradient(90deg, rgba(12, 39, 56, 0.96), rgba(12, 13, 26, 0.94) 46%, rgba(28, 10, 32, 0.94)),
    radial-gradient(circle at 86% 50%, rgba(154, 59, 255, 0.2), transparent 34%);
}

.daily-reward-left {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.daily-reward-meta {
  grid-template-columns: repeat(3, auto) auto;
  gap: 8px;
  white-space: nowrap;
}

.mini-inline-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: -4px;
  color: var(--cyan);
}

.mini-inline-icon svg,
.nav-icon svg,
.resource-icon svg,
.op-icon svg,
.mission-icon svg,
.gate-icon svg,
.zone-icon svg,
.monster-glyph svg,
.district-badge svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.crew-hub {
  display: grid;
  gap: 14px;
}

.crew-economy-panel {
  background:
    linear-gradient(180deg, rgba(8, 12, 21, 0.9), rgba(5, 8, 14, 0.94)),
    radial-gradient(circle at 70% 0%, rgba(154, 59, 255, 0.15), transparent 35%);
}

.crew-income-card {
  min-width: 248px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 14px;
  padding: 12px;
  border: 1px solid rgba(60, 224, 131, 0.28);
  border-radius: 8px;
  background: rgba(4, 12, 10, 0.58);
}

.crew-income-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.crew-income-card strong {
  color: var(--green);
  font-size: 22px;
}

.crew-income-card button {
  grid-column: 1 / -1;
}

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

.staff-card {
  position: relative;
  min-height: 276px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(139, 169, 204, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(6, 10, 18, 0.94), rgba(8, 12, 20, 0.8)),
    var(--staff-image);
  background-size: cover;
  background-position: center;
}

.staff-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 9, 0.8), rgba(3, 5, 9, 0.52)),
    linear-gradient(180deg, transparent, rgba(2, 4, 8, 0.9));
  pointer-events: none;
}

.staff-card > * {
  position: relative;
  z-index: 1;
}

.staff-card.owned {
  border-color: rgba(60, 224, 131, 0.34);
  box-shadow: inset 3px 0 0 rgba(60, 224, 131, 0.7);
}

.staff-art {
  position: relative;
  min-height: 182px;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.82), rgba(4, 7, 12, 0.92));
}

.staff-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.45));
}

.staff-art b {
  position: absolute;
  top: 7px;
  left: 7px;
  min-width: 30px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 178, 63, 0.55);
  border-radius: 5px;
  background: rgba(14, 10, 5, 0.76);
  color: var(--amber);
}

.staff-copy span,
.staff-copy p,
.staff-footer strong {
  color: var(--muted);
}

.staff-copy h3 {
  margin: 6px 0 4px;
  color: #fff;
  font-size: 27px;
  line-height: 0.95;
  text-transform: uppercase;
}

.staff-copy p {
  margin: 0 0 10px;
  font-size: 12px;
}

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

.staff-stats em {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.staff-footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.staff-footer strong {
  font-size: 13px;
}

.crew-fighter-panel .crew-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.crew-card {
  border: 1px solid rgba(139, 169, 204, 0.2);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(10, 16, 26, 0.82), rgba(5, 9, 16, 0.93));
}

.online-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.clan-current {
  min-height: 150px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 69, 92, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 69, 92, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(17, 18, 29, 0.88), rgba(6, 10, 18, 0.9));
}

.clan-current h3 {
  margin: 4px 0;
  font-size: 28px;
  text-transform: uppercase;
}

.clan-current p {
  margin: 0;
  color: var(--muted);
}

.clan-emblem {
  width: 76px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 69, 92, 0.5);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 69, 92, 0.24), rgba(154, 59, 255, 0.16));
  color: #fff;
  font-family: var(--display);
  font-size: 24px;
}

.clan-emblem.small {
  width: 46px;
  border-radius: 8px;
  font-size: 15px;
}

.clan-create {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 160px auto;
  gap: 10px;
  align-items: end;
}

.clan-create h3 {
  grid-column: 1 / -1;
}

.clan-list,
.chat-log,
.online-list {
  display: grid;
  gap: 9px;
}

.clan-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(139, 169, 204, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.clan-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.chat-panel {
  min-height: 640px;
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
}

.chat-log {
  min-height: 0;
  max-height: 560px;
  overflow: auto;
  padding-right: 2px;
  align-content: start;
}

.chat-message {
  min-height: 68px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(139, 169, 204, 0.16);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(9, 16, 26, 0.82), rgba(5, 8, 14, 0.86));
}

.clan-current .empty-state {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
}

.chat-avatar {
  width: 40px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53, 213, 255, 0.32);
  border-radius: 8px;
  background: rgba(53, 213, 255, 0.08);
  color: var(--cyan);
  font-weight: 950;
}

.chat-message strong {
  color: #fff;
}

.chat-message p {
  margin: 4px 0 0;
  color: var(--soft);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.chat-message time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 10px;
  margin-top: 12px;
}

.chat-compose input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(2, 7, 13, 0.86);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.chat-compose input:focus {
  border-color: var(--cyan);
}

.online-list div {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(139, 169, 204, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.online-list span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.online-gate {
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.gate-icon {
  width: 82px;
  height: 82px;
  padding: 16px;
  border: 1px solid rgba(53, 213, 255, 0.32);
  border-radius: 18px;
  background: rgba(53, 213, 255, 0.08);
  color: var(--cyan);
}

@media (max-width: 1500px) {
  .app .topbar {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .app .resource-bar {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .game-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .staff-grid,
  .crew-fighter-panel .crew-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 1180px) {
  .app .topbar {
    grid-template-columns: 1fr;
  }

  .app .resource-bar,
  .app .nav {
    justify-content: flex-start;
  }

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

  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    grid-template-rows: auto;
  }

  .side-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .daily-reward-strip {
    grid-template-columns: 1fr auto;
  }

  .daily-reward-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .app .resource-bar {
    flex-wrap: wrap;
  }

  .game-layout {
    width: calc(100vw - 20px);
  }

  .daily-reward-strip,
  .daily-reward-left,
  .staff-card,
  .staff-footer,
  .clan-current,
  .clan-create,
  .chat-message,
  .chat-compose {
    grid-template-columns: 1fr;
  }

  .daily-reward-art,
  .staff-art {
    justify-self: start;
  }

  .staff-grid,
  .crew-fighter-panel .crew-grid {
    grid-template-columns: 1fr;
  }

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