:root {
  color-scheme: dark;
  --bg: #0b1112;
  --bg-2: #121b1d;
  --panel: rgba(24, 29, 28, 0.62);
  --panel-strong: rgba(34, 36, 32, 0.74);
  --line: rgba(214, 173, 101, 0.28);
  --line-strong: rgba(234, 193, 111, 0.58);
  --text: #f5ead8;
  --muted: #b9a994;
  --gold: #f4c35f;
  --gold-deep: #b77823;
  --ember: #c9361f;
  --cyan: #62d6e9;
  --green: #7fe0a1;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(5, 7, 7, 0.08) 0%, rgba(5, 8, 8, 0.46) 50%, rgba(5, 8, 8, 0.88) 100%),
    radial-gradient(circle at 27% 38%, rgba(5, 8, 8, 0.04), rgba(5, 8, 8, 0.54) 48%, rgba(5, 8, 8, 0.84) 100%),
    url("./assets/epic-ring-bg.png") center 18% / cover no-repeat fixed,
    radial-gradient(circle at 72% 15%, rgba(129, 54, 26, 0.2), transparent 34rem),
    radial-gradient(circle at 20% 5%, rgba(28, 126, 141, 0.24), transparent 30rem),
    linear-gradient(180deg, #080c0d 0%, var(--bg) 52%, #060707 100%);
  color: var(--text);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

#gateway-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0.84;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 7, 0.68) 0%, rgba(5, 7, 7, 0.18) 42%, rgba(5, 7, 7, 0.58) 100%),
    linear-gradient(180deg, rgba(7, 10, 10, 0.01) 0%, rgba(7, 10, 10, 0.34) 54%, rgba(7, 10, 10, 0.88) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px);
}

body::after {
  content: "";
  position: fixed;
  inset: -24px;
  z-index: -1;
  pointer-events: none;
  background:
    url("./assets/epic-ring-bg.png") center 18% / cover no-repeat fixed,
    linear-gradient(180deg, #080c0d 0%, var(--bg) 52%, #060707 100%);
  filter: blur(18px) brightness(1.12) saturate(1.08);
  opacity: 0.74;
  transform: scale(1.04);
  -webkit-mask-image: linear-gradient(90deg, #000 0 18%, transparent 35% 65%, #000 82% 100%);
  mask-image: linear-gradient(90deg, #000 0 18%, transparent 35% 65%, #000 82% 100%);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 32px), 1280px);
  height: 72px;
  margin: 16px auto 0;
  padding: 0 10px 0 16px;
  border: 1px solid rgba(226, 181, 103, 0.22);
  background: rgba(22, 18, 16, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 174px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  background:
    radial-gradient(circle, rgba(244, 195, 95, 0.2), transparent 58%),
    #19100c;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(244, 195, 95, 0.78);
}

.brand-mark::before {
  top: 4px;
  left: 4px;
  border-right: 0;
  border-bottom: 0;
}

.brand-mark::after {
  right: 4px;
  bottom: 4px;
  border-top: 0;
  border-left: 0;
}

.brand-text {
  display: grid;
  line-height: 1.05;
  font-weight: 900;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.main-nav a {
  padding: 12px 14px;
  color: #efe1c8;
  font-size: 15px;
  font-weight: 800;
}

.main-nav a:hover {
  color: var(--gold);
}

.header-actions,
.hero-actions,
.console-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.ghost-button,
.outline-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary-button {
  position: relative;
  padding: 0 18px;
  background: linear-gradient(180deg, #d74425 0%, #a92316 100%);
  color: #fff6e6;
  box-shadow: 0 10px 22px rgba(174, 34, 20, 0.34);
}

.primary-button::before,
.primary-button::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-inline: 2px;
  border: 1px solid rgba(255, 230, 177, 0.72);
  transform: rotate(45deg);
}

.ghost-button {
  padding: 0 16px;
  background: rgba(9, 8, 5, 0.48);
  color: #fff4dc;
}

.outline-button {
  padding: 0 18px;
  border-color: var(--line-strong);
  background: rgba(21, 14, 10, 0.55);
  color: #f8e9cb;
}

.large {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 15px;
}

.icon-button {
  width: 44px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary-button:hover,
.ghost-button:hover,
.outline-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

main {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
  min-height: calc(100vh - 96px);
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 132px 0 86px;
}

.hero-copy {
  max-width: 820px;
}

.system-line {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  max-width: min(100%, 920px);
  color: #fff8e8;
  font-family: Georgia, "STSong", "SimSun", serif;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow:
    0 4px 0 rgba(65, 30, 14, 0.72),
    0 20px 60px rgba(0, 0, 0, 0.7);
}

.hero-lead {
  max-width: 660px;
  margin: 24px 0 34px;
  color: #efe1c7;
  font-size: clamp(17px, 2vw, 22px);
}

.command-panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(40, 33, 26, 0.68), rgba(9, 14, 14, 0.7)),
    radial-gradient(circle at 50% 0%, rgba(244, 195, 95, 0.16), transparent 65%);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
}

.command-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(244, 195, 95, 0.16);
}

.rune-plate {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  grid-template-columns: repeat(4, 8px);
  gap: 6px;
  opacity: 0.58;
}

.rune-plate span {
  display: block;
  width: 8px;
  height: 18px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: skewX(-16deg);
}

.panel-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.signal-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.command-panel dl {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}

.command-panel dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(244, 195, 95, 0.18);
}

.command-panel dt {
  color: var(--muted);
  font-size: 13px;
}

.command-panel dd {
  min-width: 0;
  margin: 0;
  color: #fff0c7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 900;
  text-align: left;
  overflow-wrap: anywhere;
}

.command-panel .url-value,
.status-tile .url-value {
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.25;
  letter-spacing: 0;
}

.command-panel dd[data-bind="protocol"] {
  font-size: clamp(18px, 2vw, 24px);
}

.command-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-band,
.dispatch-section,
.updates-section,
.connect-section {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 72px 0;
  border-top: 1px solid rgba(244, 195, 95, 0.28);
}

.status-band,
.dispatch-section,
.updates-section,
.connect-section,
.site-footer {
  background: linear-gradient(180deg, rgba(5, 9, 9, 0.4), rgba(5, 9, 9, 0.58));
  box-shadow: 0 0 0 100vmax rgba(5, 9, 9, 0.24);
  clip-path: inset(0 -100vmax);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading.narrow {
  display: block;
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  color: #fff2d5;
  font-family: Georgia, "STSong", "SimSun", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(10, 15, 15, 0.46);
}

.status-tile {
  min-height: 156px;
  padding: 24px;
  border-right: 1px solid rgba(244, 195, 95, 0.2);
}

.status-tile:last-child {
  border-right: 0;
}

.tile-label {
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.status-tile strong {
  display: block;
  margin: 18px 0 6px;
  color: #fff6df;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.status-tile small {
  color: var(--muted);
}

.raid-frame {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.raid-frame article {
  position: relative;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(244, 195, 95, 0.22);
  background:
    linear-gradient(180deg, rgba(12, 24, 24, 0.52), rgba(9, 11, 10, 0.62)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(98, 214, 233, 0.035) 18px 19px);
}

.raid-frame article::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(244, 195, 95, 0.46);
  transform: rotate(45deg);
}

.raid-frame span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.raid-frame strong {
  display: block;
  margin: 6px 0 14px;
  color: #fff3d8;
  font-size: 18px;
}

.raid-frame small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.resource-bar {
  height: 9px;
  border: 1px solid rgba(127, 224, 161, 0.28);
  background: rgba(127, 224, 161, 0.08);
}

.resource-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(127, 224, 161, 0.64), rgba(127, 224, 161, 0.95));
  box-shadow: 0 0 18px rgba(127, 224, 161, 0.35);
}

.resource-bar.mana {
  border-color: rgba(98, 214, 233, 0.3);
  background: rgba(98, 214, 233, 0.08);
}

.resource-bar.mana i {
  background: linear-gradient(90deg, rgba(98, 214, 233, 0.58), rgba(98, 214, 233, 0.95));
  box-shadow: 0 0 18px rgba(98, 214, 233, 0.34);
}

.resource-bar.ember {
  border-color: rgba(244, 195, 95, 0.3);
  background: rgba(244, 195, 95, 0.08);
}

.resource-bar.ember i {
  background: linear-gradient(90deg, rgba(244, 195, 95, 0.58), rgba(244, 195, 95, 0.94));
  box-shadow: 0 0 18px rgba(244, 195, 95, 0.3);
}

.dispatch-layout {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.dispatch-visual {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(98, 214, 233, 0.2), transparent 17%),
    radial-gradient(circle at 50% 50%, rgba(244, 195, 95, 0.16), transparent 44%),
    linear-gradient(135deg, rgba(30, 21, 16, 0.64), rgba(8, 9, 11, 0.68));
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
}

.portal-ring {
  position: absolute;
  inset: 21%;
  border: 2px solid rgba(244, 195, 95, 0.2);
  transform: rotate(45deg);
}

.ring-b {
  inset: 27%;
  border-color: rgba(98, 214, 233, 0.22);
  transform: rotate(16deg);
}

.orbit,
.core-node,
.node {
  position: absolute;
  display: block;
}

.orbit {
  inset: 18%;
  border: 1px solid rgba(98, 214, 233, 0.42);
  transform: rotate(18deg);
}

.orbit-b {
  inset: 30%;
  border-color: rgba(244, 195, 95, 0.46);
  transform: rotate(-28deg);
}

.core-node {
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--gold);
  background: rgba(11, 10, 8, 0.62);
  box-shadow:
    0 0 42px rgba(244, 195, 95, 0.46),
    inset 0 0 26px rgba(98, 214, 233, 0.25);
}

.core-node::before,
.core-node::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(244, 195, 95, 0.55);
}

.core-node::after {
  inset: 24px;
  border-color: rgba(98, 214, 233, 0.5);
  transform: rotate(45deg);
}

.node {
  width: 26px;
  height: 26px;
  border: 1px solid var(--cyan);
  background: #081113;
  box-shadow: 0 0 18px rgba(98, 214, 233, 0.42);
}

.node-a {
  top: 17%;
  left: 50%;
}

.node-b {
  top: 58%;
  right: 16%;
}

.node-c {
  bottom: 18%;
  left: 28%;
}

.node-d {
  top: 35%;
  left: 15%;
}

.rule-list {
  display: grid;
  gap: 18px;
}

.rule-list article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(244, 195, 95, 0.22);
}

.rule-list span {
  grid-row: 1 / span 2;
  color: rgba(244, 195, 95, 0.55);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.rule-list h3 {
  grid-column: 2;
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 22px;
}

.rule-list p {
  grid-column: 2;
  margin: 0;
  color: #d8c8af;
}

.news-list {
  border-top: 1px solid rgba(244, 195, 95, 0.26);
}

.news-row {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(244, 195, 95, 0.26);
}

.news-row:hover strong {
  color: #ffe49f;
}

.news-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(244, 195, 95, 0.34);
  background-color: #17100c;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.2), transparent 12%),
    repeating-linear-gradient(45deg, transparent 0 13px, rgba(255, 255, 255, 0.045) 13px 14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.news-art::before,
.news-art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.news-art::before {
  inset: 12px;
  border: 1px solid rgba(255, 230, 177, 0.16);
}

.news-art::after {
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(244, 195, 95, 0.28);
  transform: translate(-50%, -50%) rotate(45deg);
}

.art-gold {
  background-color: #2b1b0d;
  background-image:
    radial-gradient(circle at 70% 22%, rgba(244, 195, 95, 0.7), transparent 10%),
    radial-gradient(circle at 48% 55%, rgba(244, 195, 95, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(244, 195, 95, 0.18), transparent 45%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(244, 195, 95, 0.08) 14px 15px);
}

.art-blue {
  background-color: #07151a;
  background-image:
    radial-gradient(circle at 42% 40%, rgba(98, 214, 233, 0.58), transparent 14%),
    radial-gradient(circle at 68% 64%, rgba(98, 214, 233, 0.18), transparent 32%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(98, 214, 233, 0.08) 18px 19px);
}

.art-red {
  background-color: #26100c;
  background-image:
    radial-gradient(circle at 62% 36%, rgba(201, 54, 31, 0.62), transparent 13%),
    radial-gradient(circle at 38% 66%, rgba(244, 195, 95, 0.16), transparent 28%),
    repeating-linear-gradient(-45deg, transparent 0 16px, rgba(244, 195, 95, 0.07) 16px 17px);
}

.news-copy {
  display: grid;
  gap: 10px;
}

.news-copy strong {
  color: var(--gold);
  font-size: 22px;
  line-height: 1.35;
}

.news-copy span {
  color: #eadcc8;
}

.news-copy time {
  color: var(--muted);
  font-size: 14px;
}

.connect-console {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(24, 17, 13, 0.64), rgba(9, 9, 8, 0.72)),
    radial-gradient(circle at 80% 0%, rgba(98, 214, 233, 0.12), transparent 40%);
  box-shadow: var(--shadow);
}

.connect-console::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border: 1px solid rgba(98, 214, 233, 0.16);
  clip-path: polygon(0 0, 22% 0, 22% 2px, 78% 2px, 78% 0, 100% 0, 100% 100%, 0 100%);
}

.console-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(244, 195, 95, 0.22);
}

.console-tabs button {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid rgba(244, 195, 95, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.console-tabs button.active {
  background: rgba(244, 195, 95, 0.1);
  color: var(--gold);
}

pre {
  margin: 0;
  padding: 26px;
  overflow-x: auto;
}

code {
  color: #e9f8f8;
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.7;
}

.console-actions {
  justify-content: space-between;
  padding: 0 26px 24px;
}

[data-bind="copy-result"] {
  min-height: 22px;
  color: var(--green);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 36px 0 48px;
  border-top: 1px solid rgba(244, 195, 95, 0.22);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--gold);
}

.login-page {
  min-height: 100vh;
  background-position: center 18%;
}

.login-header {
  justify-content: space-between;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: center;
  width: min(calc(100% - 48px), var(--max));
  min-height: calc(100vh - 176px);
  margin: 0 auto;
  padding: 84px 0;
}

.login-copy {
  max-width: 720px;
}

.login-copy h1 {
  margin: 0;
  color: #fff8e8;
  font-family: Georgia, "STSong", "SimSun", serif;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  text-shadow:
    0 4px 0 rgba(65, 30, 14, 0.72),
    0 20px 60px rgba(0, 0, 0, 0.7);
}

.login-copy p:not(.system-line) {
  max-width: 620px;
  margin: 24px 0 0;
  color: #efe1c7;
  font-size: clamp(17px, 2vw, 22px);
}

.login-runes {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  gap: 16px;
  margin-top: 36px;
}

.login-runes span {
  aspect-ratio: 1;
  border: 1px solid rgba(244, 195, 95, 0.42);
  background:
    radial-gradient(circle, rgba(98, 214, 233, 0.12), transparent 58%),
    rgba(8, 14, 14, 0.5);
  transform: rotate(45deg);
}

.login-card {
  align-self: center;
}

.login-card form {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(244, 195, 95, 0.28);
  background:
    linear-gradient(180deg, rgba(7, 10, 10, 0.58), rgba(12, 18, 18, 0.62)),
    rgba(0, 0, 0, 0.2);
  color: var(--text);
  outline: none;
  padding: 0 14px;
  font: inherit;
}

.login-card input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 195, 95, 0.12);
}

.check-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.login-submit {
  width: 100%;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-message.error {
  color: #ffb09f;
}

.form-message.success {
  color: var(--green);
}

@media (max-width: 980px) {
  .site-header {
    gap: 12px;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero,
  .dispatch-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
  }

  .command-panel {
    max-width: 520px;
  }

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

  .status-tile:nth-child(2) {
    border-right: 0;
  }

  .status-tile:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(244, 195, 95, 0.2);
  }

  .dispatch-visual {
    max-width: 440px;
  }

  .raid-frame {
    grid-template-columns: 1fr;
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
  }

  .login-card {
    max-width: 520px;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 0;
    width: 100%;
    height: auto;
    margin-top: 0;
    padding: 10px 12px;
    border-left: 0;
    border-right: 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-text small {
    display: none;
  }

  .ghost-button,
  .header-actions .primary-button {
    display: none;
  }

  .hero,
  .status-band,
  .dispatch-section,
  .updates-section,
  .connect-section,
  .login-shell,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    padding: 70px 0 56px;
  }

  .hero h1 {
    max-width: 7ch;
  }

  .hero-actions,
  .section-heading,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .outline-button {
    width: 100%;
  }

  .status-grid,
  .news-row {
    grid-template-columns: 1fr;
  }

  .status-tile {
    min-height: 132px;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 195, 95, 0.2);
  }

  .status-tile:last-child {
    border-bottom: 0;
  }

  .news-row {
    gap: 18px;
  }

  .rule-list article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .console-tabs {
    overflow-x: auto;
  }

  .console-tabs button {
    white-space: nowrap;
  }

  pre {
    padding: 18px;
  }

  .console-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 0 18px 20px;
  }

  .login-shell {
    padding: 58px 0;
  }

  .login-runes {
    grid-template-columns: repeat(3, 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
