* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #12150f;
}

body {
  margin: 0;
  min-width: 320px;
  background: #12150f;
  color: #f3edcf;
  font-family: "Segoe UI", Arial, sans-serif;
}

img {
  max-width: 100%;
}

.site-shell {
  min-height: 100dvh;
  background: #12150f;
}

.hero {
  position: relative;
  min-height: 74dvh;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 12, 8, 0.9), rgba(10, 12, 8, 0.38) 58%, rgba(10, 12, 8, 0.74)),
    linear-gradient(180deg, rgba(9, 11, 8, 0.28), rgba(9, 11, 8, 0.86)),
    url("/images/hexanox-desert-crisis-bg.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 28%, rgba(181, 75, 55, 0.24), transparent 28%);
  pointer-events: none;
}

.hero--compact {
  min-height: clamp(470px, 60dvh, 620px);
  align-content: center;
  background:
    linear-gradient(90deg, rgba(7, 9, 7, 0.9), rgba(7, 9, 7, 0.42) 48%, rgba(7, 9, 7, 0.5)),
    linear-gradient(180deg, rgba(8, 10, 7, 0.2), rgba(8, 10, 7, 0.78)),
    url("/images/hexanox-home-hero-map.jpeg") center / cover no-repeat;
}

.hero--compact .hero__content {
  width: min(660px, calc(100% - 48px));
  padding-block: 58px;
}

.hero--compact h1 {
  font-size: clamp(42px, 6vw, 76px);
}

.hero--compact .hero__copy {
  max-width: 580px;
}

.hero--game {
  min-height: clamp(430px, 52dvh, 560px);
  align-content: center;
}

.hero--game .hero__content {
  padding-block: 48px;
}

.hero--game h1 {
  max-width: none;
  font-size: clamp(42px, 5.4vw, 68px);
  white-space: nowrap;
}

.hero--game .hero__copy {
  max-width: 600px;
  margin-top: 18px;
}

.hero--game .hero__actions {
  margin-top: 28px;
  width: min(820px, calc(100vw - 48px));
  flex-wrap: nowrap;
}

.topbar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(24px, 5vw, 72px);
  border-bottom: 1px solid rgba(232, 221, 165, 0.16);
  background: rgba(18, 21, 15, 0.9);
  backdrop-filter: blur(10px);
}

.brand,
.topbar__links a,
.button,
.session-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  font: 700 23px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

.brand__wordmark {
  display: inline-flex;
  align-items: baseline;
}

.brand__hexa {
  color: #b9d95c;
}

.brand__nox {
  color: #ffffff;
}

.topbar__links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar__links a,
.button,
.session-link {
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.topbar__links a:hover,
.session-link:hover {
  color: #f4d365;
}

.session-link {
  justify-self: end;
  padding: 10px 12px;
  border: 1px solid rgba(232, 221, 165, 0.2);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-menu {
  position: relative;
  justify-self: end;
}

.session-link--button {
  min-height: 40px;
}

.account-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  display: grid;
  gap: 8px;
  width: 240px;
  border: 1px solid rgba(232, 221, 165, 0.2);
  background: rgba(18, 21, 15, 0.98);
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.account-menu__email {
  margin: 0;
  overflow: hidden;
  color: #c9c09a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__item {
  display: flex;
  align-items: center;
  min-height: 38px;
  width: 100%;
  border: 1px solid rgba(232, 221, 165, 0.14);
  background: #151910;
  color: #f3edcf;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.account-menu__item:hover {
  border-color: #f4d365;
  background: rgba(244, 211, 101, 0.12);
}

.account-menu__item--danger {
  border-color: rgba(191, 97, 72, 0.42);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  padding: 88px clamp(24px, 5vw, 72px) 76px;
}

.eyebrow,
.metric-label {
  margin: 0;
  color: #b6aa73;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-top: 12px;
  max-width: 720px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
}

h3 {
  font-size: 20px;
}

.hero__copy {
  max-width: 620px;
  margin-top: 22px;
  color: #ddd5b2;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(232, 221, 165, 0.38);
  background: rgba(23, 27, 19, 0.72);
  color: #f3edcf;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.button:disabled,
.button[disabled] {
  cursor: not-allowed;
  opacity: 0.52;
}

.button:hover {
  border-color: #f4d365;
  background: rgba(244, 211, 101, 0.14);
}

.button--primary {
  border-color: #bf6148;
  background: #8f3f31;
}

.button--primary:hover {
  border-color: #ffd27a;
  background: #aa4d3b;
}

.command-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid rgba(232, 221, 165, 0.14);
  background: #1a1f15;
}

.command-band article {
  padding: 24px clamp(20px, 4vw, 52px);
  border-right: 1px solid rgba(232, 221, 165, 0.14);
}

.command-band strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(18px, 2vw, 26px);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(28px, 5vw, 72px);
  background: #12150f;
}

.page-section {
  padding: clamp(34px, 5vw, 76px);
  background: #12150f;
}

.page-section--narrow {
  max-width: 980px;
  margin: 0 auto;
}

.admin-page {
  width: min(1560px, 100%);
  margin: 0 auto;
  padding-inline: clamp(18px, 3vw, 44px);
}

.admin-page .section-heading {
  max-width: none;
  margin-bottom: 18px;
}

.admin-page .section-heading h1 {
  margin-top: 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.admin-page .section-heading p {
  max-width: 920px;
}

.play-shell {
  min-height: calc(100vh - 86px);
  display: flex;
  flex-direction: column;
  background: #070906;
}

.play-shell__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(14px, 2vw, 28px);
  border-bottom: 1px solid rgba(216, 211, 145, 0.18);
  background: #12160f;
}

.play-shell__bar h1 {
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
}

.game-frame {
  display: block;
  width: 100%;
  flex: 1;
  min-height: calc(100vh - 170px);
  border: 0;
  background: #050604;
}

.play-only-shell {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #050604;
}

.game-frame--full {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
}

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

.section-heading p {
  margin-top: 12px;
  color: #c9c09a;
  line-height: 1.58;
}

.legal-page .section-heading h1 {
  max-width: 680px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
}

.legal-card {
  border: 1px solid rgba(232, 221, 165, 0.18);
  background: #1a1f15;
  padding: clamp(24px, 4vw, 42px);
}

.legal-updated {
  margin-bottom: 26px;
  color: #b6aa73;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-section {
  padding-block: 22px;
  border-top: 1px solid rgba(232, 221, 165, 0.12);
}

.legal-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal-section:last-child {
  padding-bottom: 0;
}

.legal-section h2 {
  color: #f3edcf;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.12;
}

.legal-section p {
  margin-top: 12px;
  color: #c9c09a;
  line-height: 1.68;
}

.legal-contact-button {
  margin-top: 18px;
}

.game-grid,
.manual-grid,
.admin-grid,
.systems-grid,
.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card,
.manual-card,
.system-card,
.roster-panel,
.pricing-card,
.auth-panel,
.table-shell {
  border: 1px solid rgba(232, 221, 165, 0.16);
  background: #1a1f15;
}

.game-card {
  display: grid;
  min-height: 420px;
  overflow: hidden;
}

.game-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.game-card > div,
.manual-card,
.system-card,
.pricing-card,
.auth-panel {
  padding: 24px;
}

.game-card p,
.manual-card p,
.system-card p,
.pricing-card p,
.auth-panel p {
  margin-top: 12px;
  color: #c9c09a;
  line-height: 1.58;
}

.game-card .button {
  margin-top: 20px;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-toolbar,
.admin-panel__header,
.admin-controls,
.admin-message__header,
.admin-message__meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-toolbar,
.admin-panel__header {
  justify-content: space-between;
}

.admin-toolbar p,
.admin-panel__header p,
.admin-message__meta,
.admin-subtext {
  color: #c9c09a;
  line-height: 1.5;
}

.admin-alert,
.admin-panel,
.admin-stat {
  border: 1px solid rgba(232, 221, 165, 0.16);
  background: #1a1f15;
}

.admin-alert {
  border-color: rgba(191, 97, 72, 0.5);
  color: #ffd0c0;
  padding: 18px;
}

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

.admin-stat {
  display: grid;
  gap: 10px;
  min-height: 104px;
  padding: 18px;
}

.admin-stat strong {
  color: #f3edcf;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
}

.admin-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.admin-panel__header h2 {
  font-size: clamp(22px, 2.6vw, 30px);
}

.admin-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-search {
  width: min(280px, 100%);
}

.admin-select {
  width: auto;
  min-width: 150px;
}

.admin-table-wrap {
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: rgba(196, 224, 115, 0.5) rgba(14, 16, 12, 0.8);
  scrollbar-width: thin;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  border-top: 1px solid rgba(232, 221, 165, 0.12);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #1a1f15;
  color: #b6aa73;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-table code {
  color: #c9c09a;
  font-size: 12px;
}

.admin-subtext {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.admin-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(232, 221, 165, 0.24);
  background: rgba(232, 221, 165, 0.08);
  color: #f3edcf;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-pill--admin,
.admin-pill--bug {
  border-color: rgba(191, 97, 72, 0.5);
  background: rgba(143, 63, 49, 0.24);
}

.admin-pill--player,
.admin-pill--suggestion {
  border-color: rgba(196, 224, 115, 0.38);
  background: rgba(196, 224, 115, 0.08);
}

.admin-message-list {
  display: grid;
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-color: rgba(196, 224, 115, 0.5) rgba(14, 16, 12, 0.8);
  scrollbar-width: thin;
}

.admin-table-wrap::-webkit-scrollbar,
.admin-message-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.admin-table-wrap::-webkit-scrollbar-track,
.admin-message-list::-webkit-scrollbar-track {
  background: rgba(14, 16, 12, 0.8);
}

.admin-table-wrap::-webkit-scrollbar-thumb,
.admin-message-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(14, 16, 12, 0.8);
  background: rgba(196, 224, 115, 0.5);
}

.admin-message {
  border: 1px solid rgba(232, 221, 165, 0.14);
  background: rgba(14, 16, 12, 0.72);
  padding: 18px;
}

.admin-message__header {
  justify-content: space-between;
  align-items: flex-start;
}

.admin-message__header h3 {
  margin-top: 9px;
  font-size: 18px;
}

.admin-date {
  color: #b6aa73;
  font-size: 12px;
  white-space: nowrap;
}

.admin-message__body {
  margin-top: 14px;
  color: #f3edcf;
  line-height: 1.62;
  white-space: pre-wrap;
}

.admin-message__meta {
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12px;
}

.admin-message__meta a {
  color: #f4d365;
}

.manual-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.manual-section {
  border: 1px solid rgba(232, 221, 165, 0.16);
  background: linear-gradient(145deg, rgba(26, 31, 21, 0.98), rgba(35, 39, 28, 0.86));
  padding: 24px;
}

.manual-section--wide {
  grid-column: 1 / -1;
}

.manual-section--controls .control-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.manual-section h3 {
  color: #f3edcf;
}

.manual-section p {
  margin-top: 10px;
  color: #c9c09a;
  line-height: 1.58;
}

.rules-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.rules-list li {
  position: relative;
  padding-left: 20px;
  color: #d8cfaa;
  line-height: 1.5;
}

.rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(185, 217, 92, 0.84);
  background: rgba(185, 217, 92, 0.24);
}

.control-grid,
.difficulty-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

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

.control-row,
.difficulty-card {
  border: 1px solid rgba(232, 221, 165, 0.12);
  background: rgba(14, 16, 12, 0.58);
}

.control-row {
  min-height: 112px;
  padding: 16px;
}

.control-row strong,
.difficulty-card strong {
  display: block;
  color: #f3edcf;
}

.control-row span,
.difficulty-card span {
  display: block;
  margin-top: 8px;
  color: #c9c09a;
  line-height: 1.44;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 9, 6, 0.72);
}

.feedback-card {
  width: min(660px, 100%);
  border: 1px solid rgba(232, 221, 165, 0.24);
  background: #181d14;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  padding: 24px;
}

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

.feedback-card label {
  display: block;
  margin: 14px 0 7px;
  color: #cbd18c;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.textarea {
  min-height: 240px;
  resize: vertical;
}

.feedback-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.feedback-close {
  width: 44px;
  padding-inline: 0;
}

.table-shell--compact {
  margin-top: 16px;
}

.unit-stat-table th,
.unit-stat-table td {
  padding: 13px 12px;
  vertical-align: top;
}

.unit-stat-table td:last-child {
  min-width: 230px;
  color: #c9c09a;
  line-height: 1.42;
}

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

.difficulty-card {
  padding: 16px;
}

.game-card--locked {
  align-content: center;
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(26, 31, 21, 0.9), rgba(40, 35, 23, 0.86)),
    repeating-linear-gradient(45deg, rgba(232, 221, 165, 0.06) 0 1px, transparent 1px 10px);
}

.coming-soon-card {
  display: grid;
  place-items: center;
  max-width: 340px;
  min-height: 220px;
}

.coming-soon-card__label {
  margin-top: 0;
  color: #e7f195;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.game-intro {
  background:
    linear-gradient(180deg, rgba(18, 21, 15, 0.96), rgba(18, 21, 15, 1)),
    radial-gradient(circle at 80% 20%, rgba(191, 97, 72, 0.22), transparent 30%);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: stretch;
}

.intro-copy {
  min-height: 100%;
  border: 1px solid rgba(232, 221, 165, 0.16);
  background:
    linear-gradient(145deg, rgba(26, 31, 21, 0.96), rgba(46, 39, 25, 0.78)),
    url("/images/hexanox-desert-crisis-bg.png") center / cover no-repeat;
  padding: 28px;
}

.intro-copy h2 {
  margin-top: 10px;
}

.intro-copy p {
  margin-top: 14px;
  color: #ddd5b2;
  line-height: 1.62;
}

.intro-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.intro-list li {
  padding-left: 18px;
  color: #f3edcf;
  position: relative;
}

.intro-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: #bf6148;
}

.systems-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.system-stack {
  display: grid;
  gap: 18px;
  align-content: space-between;
}

.system-card h3 {
  color: #f3edcf;
}

.gameplay-overview {
  margin: 0;
  border: 1px solid rgba(232, 221, 165, 0.2);
  background: #10130e;
  overflow: hidden;
}

.gameplay-overview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.gameplay-overview figcaption {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid rgba(232, 221, 165, 0.16);
  background: rgba(26, 31, 21, 0.98);
  color: #c9c09a;
  line-height: 1.45;
}

.gameplay-overview figcaption strong {
  color: #f3edcf;
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
}

.gameplay-overview figcaption span {
  font-size: 14px;
}

.roster-panel {
  margin-top: 18px;
  padding: 26px;
}

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

.roster-item {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(232, 221, 165, 0.14);
  background: rgba(14, 16, 12, 0.62);
}

.unit-code {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  padding: 5px 7px;
  border: 1px solid rgba(232, 221, 165, 0.2);
  background: #314f5a;
  color: #f3edcf;
  font-size: 12px;
  font-weight: 900;
}

.roster-item strong {
  display: block;
  margin-top: 12px;
}

.roster-item p {
  margin-top: 8px;
  color: #c9c09a;
  line-height: 1.45;
}

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid rgba(232, 221, 165, 0.12);
  text-align: left;
}

th {
  color: #b6aa73;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faction-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.faction-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 8px;
  border: 1px solid rgba(232, 221, 165, 0.24);
  color: #f7f4cf;
  background: rgba(232, 221, 165, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.platform-badge--steam {
  border-color: rgba(124, 174, 220, 0.42);
  background: rgba(74, 112, 152, 0.22);
}

.auth-panel {
  display: grid;
  gap: 14px;
}

.auth-divider {
  color: #8f8768;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.auth-panel label {
  color: #b6aa73;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(232, 221, 165, 0.24);
  background: #0e100c;
  color: #f3edcf;
  padding: 0 14px;
  font: inherit;
}

.input:focus {
  outline: 1px solid #f4d365;
}

.form-message {
  min-height: 24px;
}

.account-login-section {
  display: grid;
  max-width: 1240px;
  min-height: calc(100vh - 86px);
  align-content: center;
  margin: 0 auto;
}

.login-card .section-heading {
  margin-bottom: 14px;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(420px, 1.15fr);
  gap: 16px;
}

.login-card,
.login-info-card {
  border: 1px solid rgba(232, 221, 165, 0.16);
  background: #1a1f15;
  padding: clamp(24px, 4vw, 34px);
}

.login-title {
  max-width: 460px;
  font-size: clamp(46px, 5.5vw, 70px);
  line-height: 0.95;
}

.login-title strong {
  color: #b9d95c;
  font-weight: 900;
}

.auth-panel--compact {
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 0;
}

.login-info-card {
  align-self: start;
}

.login-info-card h2 {
  max-width: 640px;
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.login-info-card p:not(.eyebrow) {
  margin-top: 14px;
  color: #c9c09a;
  line-height: 1.58;
}

.login-benefits {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.login-benefits div,
.login-note {
  border: 1px solid rgba(232, 221, 165, 0.14);
  background: #151910;
  padding: 14px;
}

.login-note {
  font-size: 13px;
}

.account-page {
  min-height: calc(100vh - 86px);
}

.account-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto 24px;
}

.account-header p:not(.eyebrow) {
  margin-top: 10px;
  color: #c9c09a;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.account-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(232, 221, 165, 0.16);
  background: #1a1f15;
}

.account-card--wide {
  grid-column: span 3;
  min-height: 0;
}

.account-card p {
  color: #c9c09a;
  line-height: 1.5;
}

.account-card .button {
  margin-top: auto;
}

.account-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.account-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(196, 224, 115, 0.38);
  background: rgba(196, 224, 115, 0.08);
  color: #e9f4b6;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature,
.service-panel {
  border: 1px solid rgba(232, 221, 165, 0.16);
  background: #1a1f15;
}

.feature {
  min-height: 190px;
  padding: 24px;
}

.feature--wide {
  grid-column: span 3;
  display: grid;
  align-items: end;
  min-height: 260px;
  background:
    linear-gradient(90deg, rgba(26, 31, 21, 0.94), rgba(26, 31, 21, 0.5)),
    url("/images/hexanox-desert-crisis-bg.png") center 58% / cover no-repeat;
}

.feature p,
.service-panel p {
  margin-top: 12px;
  color: #c9c09a;
  line-height: 1.58;
}

.unit-card {
  display: flex;
  gap: 18px;
  align-items: center;
}

.unit-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35));
}

.service-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 0 clamp(28px, 5vw, 72px) clamp(28px, 5vw, 72px);
  padding: 28px;
}

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

  .service-panel {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .command-band,
  .content-grid,
  .game-grid,
  .manual-grid,
  .manual-stack,
  .control-grid,
  .difficulty-grid,
  .admin-grid,
  .admin-stat-grid,
  .systems-grid,
  .systems-columns,
  .roster-grid,
  .account-grid,
  .intro-layout {
    grid-template-columns: 1fr;
  }

  .account-card--wide {
    grid-column: span 1;
  }

  .account-menu {
    justify-self: start;
  }

  .account-menu__panel {
    left: 0;
    right: auto;
  }

  .intro-copy {
    min-height: 0;
  }

  .systems-columns,
  .system-stack {
    align-items: stretch;
    align-content: start;
  }

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

  .topbar__links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .session-link {
    justify-self: start;
  }

  .admin-toolbar,
  .admin-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-controls {
    justify-content: flex-start;
  }

  .feature--wide {
    grid-column: span 1;
  }

  .hero {
    min-height: 84dvh;
  }

  .hero--compact {
    min-height: auto;
  }

  .hero--compact .hero__content {
    padding-block: 42px;
  }

  .hero--game {
    min-height: auto;
  }

  .hero--game .hero__content {
    padding-block: 38px;
  }

  .hero--game h1 {
    white-space: normal;
  }

  .hero--game .hero__actions {
    width: auto;
    flex-wrap: wrap;
  }

}
