* {
  box-sizing: border-box;
}

:root {
  --brand-bg: #080506;
  --brand-panel: rgba(20, 8, 11, 0.78);
  --brand-panel-strong: rgba(8, 5, 6, 0.9);
  --brand-primary: #ff2a3d;
  --brand-secondary: #8f1424;
  --brand-accent: #d6a75f;
  --brand-text: #f5f2f3;
  --brand-muted: #b48d96;
  --brand-border: rgba(255, 42, 61, 0.28);
  --brand-glow: rgba(255, 42, 61, 0.34);
  --bg: var(--brand-bg);
  --panel: var(--brand-panel);
  --panel-strong: var(--brand-panel-strong);
  --text: var(--brand-text);
  --muted: var(--brand-muted);
  --primary: var(--brand-primary);
  --accent: var(--brand-secondary);
  --border: var(--brand-border);
  --glow: var(--brand-glow);
  --desktop-bg: none;
  --mobile-bg: none;
}

.theme-shadow-hack,
.theme-shadow-red,
[data-brand-theme="shadow-hack"] {
  --brand-bg: #080506;
  --brand-panel: rgba(20, 8, 11, 0.78);
  --brand-panel-strong: rgba(8, 5, 6, 0.9);
  --brand-primary: #ff2a3d;
  --brand-secondary: #8f1424;
  --brand-accent: #d6a75f;
  --brand-text: #f5f2f3;
  --brand-muted: #b48d96;
  --brand-border: rgba(255, 42, 61, 0.28);
  --brand-glow: rgba(255, 42, 61, 0.34);
}

.theme-cyber-blue,
.theme-ghost-blue,
[data-brand-theme="cyber-blue"] {
  --brand-bg: #05080d;
  --brand-panel: rgba(7, 17, 28, 0.8);
  --brand-panel-strong: rgba(5, 8, 13, 0.92);
  --brand-primary: #35a7ff;
  --brand-secondary: #155b92;
  --brand-accent: #d7e8f7;
  --brand-text: #edf6ff;
  --brand-muted: #8aa9c4;
  --brand-border: rgba(53, 167, 255, 0.28);
  --brand-glow: rgba(53, 167, 255, 0.32);
}

.theme-neon-console,
.theme-terminal-green,
[data-brand-theme="neon-console"] {
  --brand-bg: #050407;
  --brand-panel: rgba(14, 7, 24, 0.8);
  --brand-panel-strong: rgba(6, 3, 10, 0.93);
  --brand-primary: #39ff88;
  --brand-secondary: #8a4dff;
  --brand-accent: #b971ff;
  --brand-text: #eaffef;
  --brand-muted: #a59bc8;
  --brand-border: rgba(137, 77, 255, 0.3);
  --brand-glow: rgba(57, 255, 136, 0.26);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.88)),
    var(--desktop-bg);
  background-position: center;
  background-size: 44px 44px, 44px 44px, cover, cover;
  background-attachment: fixed;
  font-family: Arial, Helvetica, sans-serif;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 50%, rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 50% 20%, var(--glow), transparent 34%);
  mix-blend-mode: screen;
}

body::after {
  z-index: 1;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0, rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 5px);
  opacity: 0.22;
}

.gateway-active .home-shell {
  opacity: 0;
  pointer-events: none;
}

html.gateway-seen .gateway-intro {
  display: none;
}

html.gateway-seen .gateway-active .home-shell {
  opacity: 1;
  pointer-events: auto;
}

.gateway-intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.9)),
    var(--desktop-bg),
    var(--bg);
  background-position: center;
  background-size: cover;
}

.gateway-intro.is-hidden {
  display: none;
}

.gateway-panel,
.system-panel,
.home-layout,
.portal-card,
.language-switcher a,
.language-select {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.28), inset 0 0 24px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
}

.gateway-panel {
  width: min(680px, 100%);
  padding: 24px;
}

.gateway-panel::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.45;
}

.gateway-label,
.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-lines,
.terminal-lines {
  display: grid;
  gap: 10px;
  font-family: Consolas, "Courier New", monospace;
  color: var(--muted);
}

.gateway-lines {
  position: relative;
  height: clamp(280px, 42vh, 430px);
  margin-bottom: 24px;
  padding: 18px;
  overflow: hidden auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.5), 0 0 28px var(--glow);
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(255, 255, 255, 0.08);
}

.gateway-lines p,
.terminal-lines p {
  margin: 0;
  line-height: 1.5;
}

.gateway-lines p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

.gateway-lines b {
  font-weight: 500;
}

.gateway-lines span,
.terminal-lines span {
  color: var(--primary);
}

.gateway-cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  margin-top: 5px;
  background: var(--primary);
  box-shadow: 0 0 12px var(--glow);
  animation: gatewayCursorBlink 0.85s steps(2, start) infinite;
}

@keyframes gatewayCursorBlink {
  50% {
    opacity: 0;
  }
}

.gateway-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gateway-actions {
  justify-content: flex-end;
}

.gateway-button,
.action-button {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(0, 0, 0, 0.28);
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.gateway-button::before,
.action-button::before {
  position: absolute;
  inset: 0;
  border-left: 2px solid var(--primary);
  opacity: 0.5;
  pointer-events: none;
  content: "";
}

.gateway-button:hover,
.gateway-button:focus,
.action-button:hover,
.action-button:focus {
  border-color: var(--primary);
  color: var(--primary);
  outline: none;
  box-shadow: 0 0 20px var(--glow), inset 0 0 20px rgba(255, 255, 255, 0.035);
  transform: translateY(-1px);
}

.gateway-button.primary,
.action-button.primary {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 18px var(--glow);
}

.gateway-skip-button[hidden],
.gateway-skip-button.hidden {
  display: none !important;
}

.access-mission-button {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--muted);
}

.back-button {
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(255, 42, 61, 0.08), transparent),
    rgba(0, 0, 0, 0.34);
}

.back-button::before {
  border-left-color: var(--muted);
  opacity: 0.38;
}

.back-button:hover,
.back-button:focus {
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08), inset 0 0 18px rgba(255, 255, 255, 0.025);
}

.home-shell {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  flex-direction: column;
  gap: 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
}

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

.home-hero-slogan {
  position: relative;
  display: none;
  align-items: center;
  padding: 4px 0;
  overflow: hidden;
  color: rgba(255, 225, 178, 0.78);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 42, 61, 0.34), 0 0 20px rgba(255, 177, 74, 0.16);
  white-space: nowrap;
}

.home-hero-slogan::after {
  content: "";
  position: absolute;
  inset: 2px auto 2px -34%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 135, 0.78), transparent);
  opacity: 0;
  transform: skewX(-18deg);
  animation: home-slogan-shimmer 7.5s ease-in-out infinite;
}

@keyframes home-slogan-shimmer {
  0%, 62%, 100% {
    left: -34%;
    opacity: 0;
  }
  68% {
    opacity: 0.72;
  }
  76% {
    left: 108%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-slogan::after {
    animation: none;
    opacity: 0;
  }
}

.brand-logo-horizontal {
  display: block;
  width: min(220px, 44vw);
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

.home-shell .brand-logo-horizontal {
  width: min(290px, 48vw);
  max-height: 60px;
}

.brand-logo-square {
  display: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.language-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.language-label {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-select {
  min-height: 38px;
  min-width: 92px;
  max-width: 128px;
  padding: 0 32px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 42, 61, 0.58);
  color: #f7d89a;
  background-color: #090002;
  background-image:
    linear-gradient(180deg, rgba(255, 42, 61, 0.22), rgba(0, 0, 0, 0.36)),
    linear-gradient(45deg, transparent 50%, var(--primary) 50%),
    linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position:
    0 0,
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 100% 100%, 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.language-select:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--glow), inset 0 0 18px rgba(255, 255, 255, 0.03);
}

.language-select:focus {
  border-color: #d6a75f;
  outline: none;
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(214, 167, 95, 0.88), 0 0 22px var(--glow), inset 0 0 18px rgba(214, 167, 95, 0.06);
}

.language-select option {
  color: #f5f2f3;
  background-color: #090002;
}

.language-select option:checked {
  color: #f7d89a;
  background-color: #3a060d;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted);
  text-decoration: none;
}

.language-switcher a.is-active {
  border-color: var(--primary);
  color: var(--primary);
}

.home-layout {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.home-layout::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  pointer-events: none;
  content: "";
}

h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.94;
}

.home-layout h1 {
  max-width: min(100%, 900px);
  font-size: clamp(36px, 6.2vw, 78px);
  line-height: 0.98;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.subtitle {
  max-width: 720px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.35;
}

.description {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.action-row {
  margin-top: 30px;
  align-items: center;
}

.action-button {
  min-width: 148px;
}

.hero-cta-group {
  display: grid;
  width: min(100%, 620px);
  gap: 12px;
  align-items: stretch;
}

.hero-primary-cta {
  width: min(100%, 500px);
  min-height: 60px;
  padding-inline: 28px;
  border-color: rgba(255, 48, 78, 0.82);
  background:
    linear-gradient(180deg, rgba(92, 0, 14, 0.5), rgba(9, 0, 4, 0.82)),
    radial-gradient(circle at 50% 0%, rgba(255, 58, 88, 0.18), transparent 58%);
  color: #fff1f1;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  justify-self: start;
  text-shadow: 0 0 12px rgba(255, 74, 98, 0.54);
  box-shadow:
    0 0 24px rgba(255, 30, 60, 0.35),
    inset 0 0 28px rgba(255, 48, 78, 0.1);
}

.hero-primary-cta::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0%, rgba(255, 60, 86, 0) 36%, rgba(255, 60, 86, 0.26) 49%, transparent 64%),
    linear-gradient(90deg, transparent, rgba(255, 26, 58, 0.08), transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-120%);
  content: "";
}

.hero-primary-cta:hover,
.hero-primary-cta:focus {
  border-color: rgba(255, 95, 116, 0.96);
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 95, 116, 0.86);
  box-shadow:
    0 0 34px rgba(255, 30, 60, 0.52),
    0 0 52px rgba(120, 0, 20, 0.24),
    inset 0 0 30px rgba(255, 48, 78, 0.16);
}

.hero-primary-cta:hover::after,
.hero-primary-cta:focus::after {
  opacity: 1;
  animation: heroPrimaryCtaScan 1.55s ease-out infinite;
}

.hero-secondary-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-secondary-cta .action-button {
  min-width: 138px;
}

@keyframes heroPrimaryCtaScan {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-primary-cta::after {
    animation: none;
    opacity: 0;
    transform: none;
  }
}

.layout-split-console .hero-cta-group,
.layout-center-gateway .hero-cta-group {
  flex-wrap: nowrap;
}

.access-entry-link {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  margin-top: 16px;
  padding: 0 12px;
  border: 1px solid var(--border);
  color: var(--primary);
  background: rgba(0, 0, 0, 0.28);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.access-entry-link:hover,
.access-entry-link:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 18px var(--glow);
}

.layout-center-gateway .center-gateway {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 34px;
  align-items: center;
  padding: 54px;
}

.home-layout .home-hero-slogan {
  position: absolute;
  z-index: 2;
  bottom: clamp(20px, 7vh, 62px);
  left: clamp(54px, 8vw, 120px);
  display: inline-flex;
  width: max-content;
  max-width: calc(100% - 96px);
  justify-content: flex-start;
  overflow: visible;
  color: rgba(211, 143, 75, 0.94);
  font-size: clamp(42px, 4.35vw, 56px);
  line-height: 1.04;
  letter-spacing: 0.035em;
  text-shadow:
    0 0 18px rgba(155, 14, 32, 0.74),
    0 0 34px rgba(255, 113, 54, 0.2),
    0 0 54px rgba(94, 0, 18, 0.34);
  pointer-events: none;
}

.home-layout .home-hero-slogan::after {
  width: 16%;
  background: linear-gradient(90deg, transparent, rgba(255, 208, 128, 0.82), transparent);
  animation-duration: 9.5s;
}

.center-content {
  min-width: 0;
}

.hero-logo {
  display: block;
  width: min(96px, 24vw);
  height: auto;
  max-height: 96px;
  margin-bottom: 20px;
  object-fit: contain;
}

.hero-logo-square {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 244px;
  max-height: 244px;
  margin: 0;
  opacity: 0.72;
  aspect-ratio: 1;
  mix-blend-mode: lighten;
  filter:
    contrast(1.08)
    saturate(1.08)
    drop-shadow(0 0 20px var(--glow))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.16));
  pointer-events: none;
}

.theme-cyber-blue .center-gateway {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 340px);
  gap: 28px;
  padding: 48px;
}

.theme-cyber-blue .center-content {
  max-width: 680px;
}

.theme-cyber-blue .hero-logo-square {
  top: 30px;
  left: 30px;
  width: clamp(170px, 15vw, 222px);
  max-height: 222px;
  opacity: 0.86;
  mix-blend-mode: normal;
  filter:
    saturate(1.04)
    drop-shadow(0 0 18px var(--glow))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.18));
}

.theme-cyber-blue .system-panel {
  opacity: 0.9;
}

.theme-cyber-blue .social-share,
.theme-neon-console .social-share {
  margin-top: 12px;
}

.theme-neon-console .center-gateway {
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 350px);
  gap: 30px;
  padding: 48px;
}

.theme-neon-console .home-layout .home-hero-slogan {
  top: clamp(88px, 13vh, 148px);
  bottom: auto;
  left: clamp(74px, 9vw, 150px);
  max-width: min(38vw, 520px);
  color: color-mix(in srgb, var(--primary) 70%, #ffffff);
  font-size: clamp(26px, 2.25vw, 42px);
  white-space: nowrap;
}

.theme-neon-console .hero-logo-square {
  width: clamp(170px, 16vw, 232px);
  max-height: 232px;
  opacity: 0.82;
}

.theme-neon-console .system-panel {
  opacity: 0.9;
}

.layout-split-console .split-console {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 34px;
  align-items: stretch;
  padding: 42px;
}

.copy-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.system-panel {
  display: flex;
  min-width: 0;
  padding: 22px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--panel-strong);
}

.panel-header,
.status-placeholder {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  color: var(--muted);
  text-transform: uppercase;
}

.panel-header strong {
  color: var(--primary);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.signal-grid i {
  display: grid;
  place-items: center;
  height: 58px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--glow), transparent);
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 10px var(--glow);
  box-shadow: inset 0 0 18px rgba(255, 43, 74, 0.12);
  overflow: hidden;
}

.signal-grid i span {
  display: inline-block;
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
  transition: transform 120ms ease, opacity 120ms ease;
}

.signal-grid i span.is-rolling {
  opacity: 0.68;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .signal-grid i span {
    transition: none;
  }
}

.layout-mission-portal .mission-portal {
  display: flex;
  position: relative;
  min-height: 620px;
  padding: 34px;
  flex-direction: column;
  gap: 30px;
}

.portal-intro {
  text-align: center;
}

.social-share {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin-top: 14px;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 62%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--glow) 24%, transparent);
}

.social-share-label {
  display: inline-flex;
  margin: 0;
  align-items: center;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.social-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.social-share-button {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.social-share-button svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
}

.social-share-button:hover,
.social-share-button:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 16px var(--glow);
  outline: none;
}

.social-share-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .social-share {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .social-share-label,
  .social-share-status {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .social-share-actions {
    gap: 8px;
  }

  .social-share-button {
    width: 45px;
    height: 45px;
  }

  .social-share-button svg {
    width: 20px;
    height: 20px;
  }
}

.portal-intro .description {
  margin: 0 auto;
}

.portal-emblem {
  width: 86px;
  height: 86px;
  margin-bottom: 18px;
  object-fit: contain;
}

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

.portal-card {
  display: flex;
  min-height: 170px;
  padding: 20px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text);
  text-decoration: none;
}

.portal-card span {
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
}

.portal-card strong {
  font-size: 20px;
}

.portal-card small {
  color: var(--muted);
  text-transform: uppercase;
}

.portal-access-button {
  align-self: center;
}

.status-placeholder {
  margin-top: auto;
  border-top: 1px solid var(--border);
  border-bottom: 0;
  padding: 14px 0 0;
}

.page-shell {
  min-height: 100vh;
}

.content-page {
  display: grid;
  gap: 28px;
  padding: 42px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.28), inset 0 0 24px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
}

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

.step-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
}

.step-list span {
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
}

.step-list p,
.notice-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.process-page {
  gap: 34px;
}

.process-timeline {
  display: grid;
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step-item {
  position: relative;
  display: grid;
  gap: 0;
  padding-bottom: 64px;
}

.process-step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 26px;
  height: 26px;
  border-right: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  filter:
    drop-shadow(0 0 8px color-mix(in srgb, var(--primary), transparent 20%))
    drop-shadow(0 0 18px color-mix(in srgb, var(--accent), transparent 64%));
  opacity: 0.9;
  transform: translateX(-50%) rotate(45deg);
}

.process-step-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--primary), transparent 45%);
}

.process-step-item:last-child {
  padding-bottom: 0;
}

.process-step-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px 132px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 190px;
  padding: 22px 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--panel-strong);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.025),
    0 18px 42px rgba(0, 0, 0, 0.24),
    0 0 26px color-mix(in srgb, var(--primary), transparent 86%);
}

.process-step-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.55;
}

.process-step-index {
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.process-step-icon {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  border: 1px solid color-mix(in srgb, var(--primary), transparent 44%);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--primary), transparent 80%), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%),
    rgba(0, 0, 0, 0.34);
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, 0.035),
    0 0 24px color-mix(in srgb, var(--primary), transparent 62%),
    0 0 48px rgba(0, 0, 0, 0.48);
}

.process-step-icon::before,
.process-step-icon::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.process-step-icon::before {
  inset: 8px;
  clip-path: inherit;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 58%);
  opacity: 0.75;
}

.process-step-icon::after {
  inset: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary), transparent 76%), transparent 68%);
  filter: blur(1px);
}

.process-step-icon svg {
  width: 76px;
  height: 76px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--primary), transparent 44%));
}

.process-step-icon .icon-soft {
  stroke: color-mix(in srgb, var(--accent), var(--primary) 36%);
  opacity: 0.72;
}

.process-step-icon .icon-mark {
  stroke: var(--text);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--primary), transparent 28%));
}

.icon-key-shield svg,
.icon-key-report svg {
  stroke: color-mix(in srgb, var(--primary), #f2c76e 24%);
}

.icon-key-server,
.icon-key-terminal {
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--primary), transparent 76%), transparent 58%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 8px),
    rgba(0, 0, 0, 0.38);
}

.process-step-copy {
  min-width: 0;
}

.process-step-copy h2 {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.process-step-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.notice-panel {
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
}

.notice-panel span {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-page {
  gap: 34px;
}

.about-hero {
  max-width: 980px;
}

.about-hero h1 {
  margin: 0;
  max-width: 980px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: 0;
}

.about-section {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.about-section h2,
.about-cta h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0;
}

.about-section p,
.about-cta p,
.about-info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

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

.about-info-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 48%),
    var(--panel-strong);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.025);
}

.about-card-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--primary), transparent 74%), transparent 62%),
    rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 24px color-mix(in srgb, var(--primary), transparent 68%);
}

.about-card-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-card-icon .icon-mark {
  stroke: var(--text);
}

.about-info-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  letter-spacing: 0;
}

.about-compliance {
  border-color: color-mix(in srgb, var(--primary), transparent 52%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary), transparent 92%), transparent 58%),
    rgba(0, 0, 0, 0.22);
}

.about-cta {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  text-align: center;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.order-form {
  display: grid;
  gap: 18px;
}

.order-option-step {
  display: grid;
  gap: 12px;
}

.order-step-heading span,
.price-preview span {
  color: color-mix(in srgb, var(--primary), #fff 18%);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.order-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.order-option-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0.42);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.order-option-card:hover,
.order-option-card:focus,
.order-option-card[aria-pressed="true"] {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 18px var(--glow);
}

.order-option-card strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.order-option-card span {
  align-self: end;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(255, 42, 61, 0.36);
  color: var(--primary);
  background: rgba(0, 0, 0, 0.32);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.order-change-button {
  min-height: 42px;
  width: fit-content;
  padding: 0 16px;
  border: 1px solid rgba(255, 42, 61, 0.42);
  color: var(--primary);
  background: rgba(0, 0, 0, 0.28);
  font: inherit;
  cursor: pointer;
}

.order-change-button:hover,
.order-change-button:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 16px var(--glow);
}

.price-preview {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
}

.price-preview strong {
  color: var(--text);
  font-size: 30px;
}

.price-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.order-selected-path {
  color: var(--text) !important;
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.order-summary-page {
  gap: 18px;
  max-width: 980px;
}

.order-summary-id {
  max-width: 520px;
}

.order-confirm-hero {
  gap: 10px;
}

.order-confirm-hero .subtitle {
  max-width: 680px;
}

.order-confirm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 14px;
  align-items: stretch;
}

.confirm-summary {
  display: grid;
  gap: 10px;
}

.confirm-summary article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.36);
}

.confirm-summary span {
  color: color-mix(in srgb, var(--primary), #fff 18%);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.confirm-summary h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.confirm-summary-level-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.confirm-summary-level-price strong {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(255, 42, 61, 0.38);
  color: var(--primary);
  background: rgba(0, 0, 0, 0.36);
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
}

.order-confirm-total {
  align-content: center;
  min-height: 100%;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 42, 61, 0.12), transparent 60%),
    var(--panel-strong);
}

.order-confirm-total strong {
  color: var(--primary);
  text-shadow: 0 0 18px var(--glow);
}

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

.summary-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.summary-card > span,
.summary-field small {
  color: color-mix(in srgb, var(--primary), #fff 18%);
  font-family: Consolas, "Courier New", monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

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

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.payment-method-card:hover,
.payment-method-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 18px var(--glow);
  transform: translateY(-1px);
}

.payment-method-card input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.payment-method-card strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.payment-method-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.crypto-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 12px var(--glow));
}

.payment-method-card small {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.summary-field {
  display: grid;
  gap: 8px;
}

.summary-field input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(0, 0, 0, 0.58);
  font: inherit;
}

.summary-field input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 18px var(--glow);
}

.verification-stack {
  display: grid;
  gap: 12px;
}

.verification-row {
  display: grid;
  gap: 12px;
  align-items: end;
}

.verification-email-row {
  grid-template-columns: minmax(260px, 1fr) max-content;
}

.verification-code-row {
  grid-template-columns: minmax(160px, 220px) max-content;
  justify-content: start;
}

.verification-code-field input {
  width: 100%;
  max-width: 220px;
  letter-spacing: 0.08em;
}

.verification-status {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.email-verification-card .verification-status[data-state="success"],
.email-verification-card .verification-status:not([data-state]) {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(44, 255, 146, 0.26);
  background: rgba(44, 255, 146, 0.08);
}

.order-summary-form .action-row {
  justify-content: flex-end;
  margin-top: 4px;
}

.verification-status[data-state="success"] {
  color: var(--accent);
}

.verification-status[data-state="error"] {
  color: var(--primary);
}

.verification-fallback-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 58, 91, 0.48);
  background: rgba(62, 0, 12, 0.38);
  box-shadow: 0 0 18px rgba(255, 32, 64, 0.14);
}

.verification-fallback-panel[hidden] {
  display: none;
}

.verification-fallback-panel p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

.verification-fallback-button {
  justify-self: start;
}

.order-confirm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(5, 0, 2, 0.78);
  backdrop-filter: blur(8px);
}

.order-confirm-modal-backdrop[hidden] {
  display: none;
}

.order-confirm-modal {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(255, 58, 91, 0.58);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(52, 3, 12, 0.96), rgba(10, 5, 8, 0.98)),
    var(--panel-strong);
  box-shadow:
    0 0 38px rgba(255, 26, 64, 0.24),
    inset 0 0 24px rgba(255, 204, 112, 0.05);
}

.order-confirm-modal-kicker {
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-confirm-modal h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 4vw, 34px);
  text-shadow: 0 0 16px rgba(255, 32, 64, 0.45);
}

.order-confirm-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.order-confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.order-confirm-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 58, 91, 0.4);
  border-radius: 999px;
  background: rgba(10, 0, 4, 0.72);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 32, 64, 0.14);
}

.order-confirm-modal-close:hover,
.order-confirm-modal-close:focus-visible {
  border-color: rgba(255, 202, 92, 0.7);
  color: var(--accent);
}

body.modal-open {
  overflow: hidden;
}

.checkout-page {
  gap: 18px;
  max-width: 920px;
}

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

.checkout-card,
.checkout-payment-card {
  border: 1px solid var(--border);
  background: var(--panel-strong);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.02);
}

.checkout-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.checkout-card span,
.checkout-payment-card span,
.checkout-address-panel span {
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-card strong {
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  overflow-wrap: anywhere;
}

.checkout-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.checkout-payment-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 20px;
}

.checkout-method-header,
.checkout-method-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.checkout-method-header {
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.checkout-method-compact {
  padding-bottom: 4px;
}

.checkout-method-header h2,
.checkout-method-compact h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
}

.checkout-crypto-icon {
  width: 54px;
  height: 54px;
}

.checkout-countdown-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 420px);
  padding: 14px;
  border: 1px solid var(--primary);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 18px var(--glow);
}

.checkout-countdown-panel span {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-method-header > strong,
.checkout-countdown-panel > strong {
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1;
  text-align: center;
  color: var(--primary);
}

.checkout-method-header > strong[data-expired="true"],
.checkout-countdown-panel > strong[data-expired="true"] {
  color: #ffc107;
}

.checkout-address-panel {
  display: grid;
  gap: 10px;
  width: 100%;
}

.checkout-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.checkout-address-panel code {
  display: block;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(0, 0, 0, 0.46);
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.checkout-address-panel p {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-copy-button {
  width: fit-content;
  min-width: 148px;
}

.checkout-qr-placeholder {
  display: grid;
  width: min(100%, 280px);
  aspect-ratio: 1;
  min-height: 0;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: #ffffff;
  text-align: center;
}

.checkout-qr-placeholder span {
  color: #111111;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.checkout-qr-placeholder small {
  color: var(--muted);
  text-transform: uppercase;
}

.checkout-qr-image {
  display: block;
  width: min(100%, 260px);
  aspect-ratio: 1;
  border: 0;
  background: #ffffff;
  box-shadow: none;
  filter: none;
}

.checkout-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
  width: min(100%, 520px);
}

.checkout-verification-notice p + p {
  color: #ffc107;
}

.checkout-verification-notice [data-checkout-status-message] {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
}

.checkout-verification-notice [data-checkout-status-message][data-state="checking"] {
  color: var(--primary);
}

.checkout-verification-notice [data-checkout-status-message][data-state="success"] {
  color: var(--accent);
}

.checkout-verification-notice [data-checkout-status-message][data-state="error"] {
  color: #ffc107;
}

.checkout-verification-notice [data-mission-node-status-message] {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
}

.checkout-verification-notice [data-mission-node-status-message][data-state="error"] {
  color: #ffc107;
}

.mission-node-payment-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 20px;
}

.mission-node-payment-panel {
  display: grid;
  justify-items: center;
  max-width: 620px;
  width: 100%;
}

.mission-node-payment-card {
  display: grid;
  gap: 16px;
  justify-items: center;
  width: min(100%, 520px);
  margin: 0 auto;
  border: 1px solid rgba(255, 44, 74, 0.28);
  background: rgba(8, 2, 5, 0.74);
  box-shadow: 0 0 30px rgba(255, 35, 67, 0.12);
  padding: 22px;
  text-align: center;
}

.mission-node-payment-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(255, 35, 67, 0.35);
}

.mission-node-payment-method {
  justify-content: center;
  width: 100%;
}

.mission-node-payment-amount {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  padding: 14px 16px;
}

.mission-node-payment-amount span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.mission-node-payment-amount strong {
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
  font-size: 24px;
}

.mission-node-payment-countdown {
  width: 100%;
  margin: 0;
}

.mission-node-payment-qr {
  margin-inline: auto;
  width: min(260px, 100%);
}

.mission-node-payment-address code {
  overflow-wrap: anywhere;
  text-align: left;
}

.mission-node-payment-address,
.mission-node-payment-actions,
.mission-node-payment-card .checkout-verification-notice {
  width: 100%;
}

.mission-node-payment-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2px;
}

.mission-node-payment-back {
  margin-top: 4px;
}

.mission-node-payment-unlocked {
  min-height: 240px;
  align-content: center;
}

.disabled-link {
  opacity: 0.6;
  pointer-events: none;
}

.help-links-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
}

.help-links-panel span {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-links-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.help-links-list a {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  text-decoration: none;
}

.help-links-list a:hover,
.help-links-list a:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 18px var(--glow);
}

.help-links-list small {
  color: var(--muted);
  line-height: 1.5;
}

.waiting-terminal {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  font-family: Consolas, "Courier New", monospace;
}

.waiting-terminal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.waiting-terminal span {
  color: var(--primary);
}

.intake-form {
  display: grid;
  gap: 18px;
}

.intake-field {
  position: relative;
  display: grid;
  gap: 10px;
}

.intake-field > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intake-field input,
.intake-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(0, 0, 0, 0.58);
  font: inherit;
}

.intake-field input {
  min-height: 46px;
  padding: 0 14px;
}

.intake-field textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

.intake-field input:focus,
.intake-field textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 18px var(--glow);
}

.intake-field em {
  color: var(--primary);
  font-style: normal;
  font-size: 13px;
}

.service-application-page {
  max-width: 1040px;
}

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

.application-meta-grid div,
.application-section {
  border: 1px solid var(--border);
  background: var(--panel-strong);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.025);
}

.application-meta-grid div {
  padding: 16px;
}

.application-meta-grid span,
.signature-field-label span {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-meta-grid strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
}

.service-application-form {
  display: grid;
  gap: 18px;
}

.application-section {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.application-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
}

.application-section-copy {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.72;
  white-space: pre-wrap;
}

.agreement-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.agreement-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.signature-field {
  position: relative;
  display: grid;
  gap: 10px;
}

.signature-field-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
}

.signature-canvas {
  width: 100%;
  height: 220px;
  border: 1px solid var(--border);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    rgba(0, 0, 0, 0.48);
  background-size: 18px 18px;
  cursor: crosshair;
  touch-action: none;
}

.signature-canvas:focus {
  outline: none;
  box-shadow: 0 0 18px var(--glow);
}

.signature-clear-button {
  justify-self: start;
}

.signature-field em,
.field-error,
.signature-existing-note {
  color: var(--primary);
  font-style: normal;
  font-size: 13px;
}

.signature-existing-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.application-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.application-checkbox input {
  margin-top: 4px;
  accent-color: var(--primary);
}

.application-received-page {
  max-width: 860px;
}

.mission-access-card-page {
  gap: 18px;
}

.mission-access-hash-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.025);
}

.mission-access-hash-panel > span,
.tutorial-link-panel > span,
.support-panel > span {
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-access-hash-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.mission-access-hash-row code {
  display: block;
  min-height: 48px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(0, 0, 0, 0.5);
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mission-access-hash-panel p {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-panel,
.tutorial-link-panel {
  min-height: 148px;
  border-color: rgba(255, 58, 74, 0.32);
  background:
    linear-gradient(180deg, rgba(39, 8, 12, 0.72), rgba(7, 3, 5, 0.76)),
    var(--panel);
  box-shadow: 0 0 28px rgba(255, 24, 44, 0.12), inset 0 0 20px rgba(255, 255, 255, 0.025);
}

.received-card-button,
.telegram-support-button {
  justify-self: center;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  min-width: min(240px, 100%);
  margin: 8px auto 0;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: 0 0 18px rgba(255, 24, 44, 0.22);
}

.application-received-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.application-received-support-grid .notice-panel {
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  align-items: center;
}

.platform-tutorial-page {
  max-width: 980px;
}

.platform-tutorial-intro {
  white-space: pre-wrap;
}

.platform-tutorial-grid {
  display: grid;
  gap: 16px;
}

.platform-tutorial-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.26), inset 0 0 22px rgba(255, 255, 255, 0.025);
}

.platform-tutorial-card > span {
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.platform-tutorial-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  text-shadow: 0 0 16px var(--glow);
}

.platform-tutorial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  white-space: pre-wrap;
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.38);
  font: inherit;
  font-size: 12px;
  cursor: help;
}

.help-tooltip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 5;
  width: min(420px, 78vw);
  padding: 16px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--panel-strong);
  box-shadow: 0 0 18px var(--glow);
  font-size: 15px;
  line-height: 1.72;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translateY(-50%);
  transition: opacity 140ms ease;
}

.help-tooltip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-weight: 700;
}

.help-icon:hover + .help-tooltip,
.help-icon:focus + .help-tooltip {
  opacity: 1;
}

.success-panel {
  border-color: var(--primary);
  box-shadow: 0 0 18px var(--glow);
}

.dev-test-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 193, 7, 0.55);
  background: rgba(255, 193, 7, 0.08);
}

.dev-test-panel span {
  color: #ffc107;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dev-test-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.dev-test-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 193, 7, 0.7);
  color: #ffc107;
  background: rgba(0, 0, 0, 0.36);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.dev-test-button:hover,
.dev-test-button:focus {
  outline: none;
  box-shadow: 0 0 18px rgba(255, 193, 7, 0.28);
}

.access-form {
  display: grid;
  gap: 18px;
}

.access-form label {
  display: grid;
  gap: 10px;
}

.access-form span,
.access-summary span {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(0, 0, 0, 0.58);
  font: inherit;
  font-family: Consolas, "Courier New", monospace;
}

.access-form input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 18px var(--glow);
}

.access-form em {
  color: var(--primary);
  font-style: normal;
  line-height: 1.5;
}

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

.access-summary article {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
}

.access-summary strong {
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 16px;
}

.mission-console-shell {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  min-height: 0;
  height: 100dvh;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 14px;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.mission-console-page {
  height: 100dvh;
  overflow: hidden;
}

.mission-console-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 142px;
  padding: 16px 28px;
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.mission-console-logo {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px var(--glow));
}

.mission-console-title-block {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 0;
  text-align: center;
  pointer-events: none;
}

.mission-console-title-block h1 {
  margin: 0;
  color: var(--text);
  text-shadow: 0 0 16px var(--glow), 0 0 32px rgba(255, 42, 61, 0.18);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  white-space: nowrap;
}

.mission-mobile-stage-toggle {
  display: none;
  width: 42px;
  height: 36px;
  border: 1px solid var(--border);
  color: var(--primary);
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 0 18px var(--glow);
  font: 700 22px/1 Consolas, "Courier New", monospace;
  cursor: pointer;
}

.mission-mobile-command-toggle,
.mission-command-guide-close {
  display: none;
}

.mission-console-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.mission-mobile-content {
  display: contents;
}

.mission-stage-list,
.mission-terminal-panel,
.mission-status-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.28), inset 0 0 24px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
}

.mission-stage-list {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: 100%;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mission-stage-list::-webkit-scrollbar {
  display: none;
}

.mission-stage-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.mission-bulletin-link {
  display: block;
  padding: 12px;
  border: 1px solid rgba(255, 42, 61, 0.32);
  background: rgba(255, 42, 61, 0.08);
  color: var(--text);
  text-decoration: none;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(255, 42, 61, 0.05);
}

.mission-bulletin-link:hover,
.mission-bulletin-link:focus {
  border-color: var(--primary);
  box-shadow: 0 0 18px var(--glow);
  outline: none;
}

.mission-stage-list article.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 18px var(--glow);
}

.mission-stage-list article.is-complete {
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 0.72;
}

.mission-stage-list span,
.mission-stage-list small,
.mission-status-panel dt,
.mission-command-input span,
.mission-command-input label {
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.mission-stage-list strong {
  color: var(--text);
  line-height: 1.4;
}

.mission-terminal-panel {
  display: flex;
  gap: 18px;
  min-height: 0;
  max-height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.mission-terminal-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.mission-terminal-header h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.mission-terminal-header strong {
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
  font-size: 34px;
}

.mission-status-summary {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 18px rgba(255, 42, 61, 0.05);
}

.mission-status-summary div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.mission-status-summary span {
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
  line-height: 1.4;
}

.mission-status-summary strong {
  display: block;
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 16px;
  line-height: 1.35;
}

.mission-status-summary .mission-status-hash {
  grid-template-columns: 1fr;
  gap: 4px;
  padding-top: 4px;
}

.mission-status-summary .mission-status-hash strong {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.mission-progress {
  height: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.34);
}

.mission-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px var(--glow);
}

.mission-tutorial-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.mission-tutorial-panel h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.mission-tutorial-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.mission-tutorial-panel p + p {
  margin-top: 6px;
}

.mission-tutorial-panel strong {
  color: var(--text);
  font-weight: 700;
}

.mission-tutorial-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-align: right;
}

.mission-tutorial-meta code {
  max-width: 260px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent);
  background: rgba(0, 0, 0, 0.38);
  white-space: normal;
  overflow-wrap: anywhere;
}

.mission-terminal-lines {
  display: block;
  min-height: 0;
  padding: 18px 18px 6px;
  font-family: Consolas, "Courier New", monospace;
}

.mission-terminal-box {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: auto;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.35);
  font-family: Consolas, "Courier New", monospace;
}

.mission-terminal-box::-webkit-scrollbar {
  display: none;
}

.mission-terminal-lines p {
  margin: 0 0 9px;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: normal;
  white-space: pre-wrap;
}

.mission-terminal-lines span {
  color: var(--primary);
}

.mission-terminal-line.is-command {
  color: var(--text);
}

.mission-terminal-line.is-system {
  color: var(--accent);
}

.mission-terminal-line.is-progress {
  color: var(--primary);
}

.mission-terminal-line.is-error {
  color: #ff7a7a;
}

.mission-command-input {
  display: grid;
  gap: 8px;
  padding: 0 18px 14px;
}

.mission-command-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: Consolas, "Courier New", monospace;
  font-size: 16px;
  line-height: 1.55;
}

.mission-command-row span {
  color: var(--primary);
  white-space: nowrap;
  font-family: Consolas, "Courier New", monospace;
  font-size: inherit;
  line-height: inherit;
}

.mission-command-input input {
  display: block;
  min-height: calc(1.55em + 2px);
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  caret-color: var(--primary);
  background: transparent;
  font: inherit;
  font-family: Consolas, "Courier New", monospace;
  font-size: inherit;
  line-height: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.mission-command-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mission-command-input input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.mission-command-input input:focus {
  box-shadow: none;
}

.mission-command-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(214, 167, 95, 0.48);
  border-radius: 4px;
  color: #f7d89a;
  background:
    linear-gradient(180deg, rgba(96, 9, 18, 0.96), rgba(12, 1, 4, 0.98)),
    #090002;
  box-shadow: 0 0 14px rgba(255, 42, 61, 0.2), inset 0 0 16px rgba(214, 167, 95, 0.06);
  font: 800 12px/1 Consolas, "Courier New", monospace;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(255, 42, 61, 0.16);
  transition: transform 120ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.mission-command-submit:focus,
.mission-command-submit:hover {
  border-color: #d6a75f;
  outline: 2px solid rgba(255, 42, 61, 0.34);
  outline-offset: 2px;
  box-shadow: 0 0 18px var(--glow), 0 0 0 1px rgba(214, 167, 95, 0.28), inset 0 0 16px rgba(214, 167, 95, 0.08);
}

.mission-command-submit:active {
  transform: translateY(1px);
  filter: brightness(0.86);
}

.mission-command-submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

.mission-command-run {
  display: none;
}

body.mission-console-page .mission-command-submit.mission-command-run {
  display: none;
}

.mission-save-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.mission-save-status[data-state="success"] {
  color: var(--accent);
}

.mission-save-status[data-state="error"] {
  color: #ff7a7a;
}

.mission-payment-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

.mission-payment-modal[hidden] {
  display: none;
}

.mission-payment-dialog {
  width: min(680px, 100%);
  max-height: min(86dvh, 720px);
  overflow: auto;
  border: 1px solid rgba(255, 44, 74, 0.48);
  background: linear-gradient(145deg, rgba(14, 3, 7, 0.98), rgba(36, 7, 12, 0.96));
  box-shadow: 0 0 34px rgba(255, 35, 67, 0.22), inset 0 0 28px rgba(255, 35, 67, 0.06);
  padding: 24px;
  position: relative;
}

.mission-payment-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  appearance: none;
  border: 1px solid rgba(255, 188, 96, 0.42);
  background: rgba(255, 188, 96, 0.08);
  color: rgba(255, 232, 199, 0.86);
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.mission-payment-close-button:hover {
  border-color: rgba(255, 214, 138, 0.72);
  color: #fff1d2;
}

.mission-payment-dialog h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(255, 35, 67, 0.35);
}

.mission-payment-dialog p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.mission-payment-message {
  display: -webkit-box;
  max-height: calc(1.65em * 3);
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  cursor: help;
}

.mission-payment-message:hover,
.mission-payment-message:focus {
  display: block;
  max-height: min(34dvh, 260px);
  overflow: auto;
  outline: 1px solid rgba(255, 188, 96, 0.34);
  background: rgba(0, 0, 0, 0.24);
  padding: 8px 10px;
  -webkit-line-clamp: unset;
}

.mission-payment-amount {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.mission-payment-amount span {
  color: var(--muted);
}

.mission-payment-amount strong {
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
}

.mission-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mission-payment-link,
.mission-payment-mock {
  appearance: none;
  border: 1px solid rgba(255, 44, 74, 0.52);
  background: rgba(255, 44, 74, 0.12);
  color: var(--text);
  padding: 11px 14px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 44, 74, 0.16);
}

.mission-payment-mock {
  background: rgba(255, 44, 74, 0.22);
}

.mission-payment-link:hover,
.mission-payment-mock:hover {
  border-color: rgba(255, 82, 106, 0.8);
  filter: brightness(1.12);
}

.mission-payment-mock:disabled {
  cursor: wait;
  opacity: 0.66;
}

.mission-payment-note {
  margin-top: 14px !important;
  font-size: 13px;
}

.mission-payment-note[data-state="error"] {
  color: #ff8b8b;
}

.mission-payment-note[data-state="success"] {
  color: var(--accent);
}

@media (max-width: 640px) {
  .mission-payment-modal {
    padding: 14px;
  }

  .mission-payment-dialog {
    padding: 18px;
    max-height: 88dvh;
  }

  .mission-payment-actions {
    display: grid;
  }

  .mission-payment-link,
  .mission-payment-mock {
    width: 100%;
    text-align: center;
  }
}

.mission-status-panel dl {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.mission-status-panel {
  max-height: 100%;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mission-status-panel::-webkit-scrollbar {
  display: none;
}

.mission-status-panel dd {
  margin: 5px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.5;
}

.mission-command-guide {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.24);
}

.mission-command-guide summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.mission-command-guide h3 {
  margin: 14px 0 8px;
  color: var(--primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mission-command-guide ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mission-command-guide code {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.mission-bulletin-page {
  display: grid;
  gap: 18px;
  width: min(980px, 100%);
  margin: 0 auto;
  padding-bottom: 38px;
}

.mission-bulletin-body .mission-console-shell,
.mission-bulletin-shell {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  grid-template-rows: auto auto;
  gap: 22px;
}

.mission-bulletin-body .mission-console-header,
.mission-bulletin-hero {
  min-height: 178px;
  height: 178px;
  flex: 0 0 178px;
  padding: 18px 26px;
  overflow: hidden;
}

.mission-bulletin-body .mission-console-logo,
.mission-bulletin-hero .mission-console-logo {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
}

.mission-bulletin-body .mission-console-title-block,
.mission-bulletin-hero .mission-console-title-block {
  width: min(680px, calc(100% - 240px));
}

.mission-bulletin-hero .mission-console-title-block h1 {
  font-size: clamp(40px, 4.2vw, 58px);
}

.mission-bulletin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: min(920px, 100%);
  margin: 0 auto;
}

.mission-bulletin-card {
  display: grid;
  align-content: start;
  gap: 12px;
  height: 318px;
  padding: 22px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 42, 61, 0.08), rgba(0, 0, 0, 0.16)),
    rgba(9, 3, 5, 0.78);
  box-shadow: 0 0 26px rgba(255, 42, 61, 0.08), inset 0 0 24px rgba(255, 255, 255, 0.025);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mission-bulletin-card:hover,
.mission-bulletin-card:focus {
  border-color: rgba(255, 72, 88, 0.74);
  box-shadow: 0 0 34px rgba(255, 42, 61, 0.16), inset 0 0 24px rgba(255, 255, 255, 0.035);
  outline: none;
  transform: translateY(-2px);
}

.mission-bulletin-card h2 {
  margin: 0;
  color: var(--text);
  text-shadow: 0 0 16px var(--glow);
  font-size: clamp(21px, 2vw, 28px);
}

.mission-bulletin-card p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.7;
}

.mission-bulletin-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.mission-bulletin-card footer {
  margin-top: 0;
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
}

.mission-bulletin-open {
  align-self: end;
  justify-self: start;
}

.mission-bulletin-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.mission-bulletin-modal[hidden] {
  display: none;
}

.mission-bulletin-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.mission-bulletin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.mission-bulletin-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(820px, 100%);
  max-height: min(78dvh, 720px);
  padding: 26px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 42, 61, 0.08), rgba(0, 0, 0, 0.18)),
    var(--panel-strong);
  box-shadow: 0 0 48px rgba(255, 42, 61, 0.16), 0 22px 70px rgba(0, 0, 0, 0.55);
}

.mission-bulletin-modal-card h2 {
  margin: 0;
  padding-right: 44px;
  color: var(--text);
  text-shadow: 0 0 16px var(--glow);
}

.mission-bulletin-modal-content {
  max-height: 48dvh;
  overflow: auto;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-wrap;
  scrollbar-width: thin;
}

.mission-bulletin-modal-signature {
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
}

.mission-bulletin-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 36px;
  border: 1px solid var(--border);
  color: var(--primary);
  background: rgba(0, 0, 0, 0.66);
  box-shadow: 0 0 16px var(--glow);
  cursor: pointer;
}

.mission-bulletin-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.mission-guide-page {
  display: grid;
  gap: 18px;
  width: min(980px, 100%);
  margin: 0 auto;
  padding-bottom: 34px;
}

.mission-guide-body .mission-console-shell {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  grid-template-rows: auto auto;
}

.mission-guide-card {
  padding: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.28), inset 0 0 24px rgba(255, 255, 255, 0.025);
}

.mission-guide-card h2 {
  margin: 0 0 12px;
  color: var(--text);
  text-shadow: 0 0 16px var(--glow);
}

.mission-guide-card p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.7;
}

.mission-guide-section-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.guide-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.guide-card-action-meta {
  color: rgba(255, 190, 190, 0.62);
  font-size: 0.86rem;
  min-height: 1.2em;
}

.guide-card-action-buttons {
  display: inline-flex;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.guide-action-btn {
  appearance: none;
  border: 1px solid rgba(255, 58, 74, 0.58);
  background: linear-gradient(180deg, rgba(42, 8, 12, 0.92), rgba(10, 4, 6, 0.92));
  box-shadow: 0 0 18px rgba(255, 24, 44, 0.12), inset 0 0 18px rgba(255, 58, 74, 0.05);
  color: rgba(255, 235, 235, 0.94);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  min-height: 42px;
  padding: 10px 15px;
  text-transform: uppercase;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.guide-action-btn:hover,
.guide-action-btn:focus-visible {
  border-color: rgba(255, 96, 112, 0.82);
  box-shadow: 0 0 26px rgba(255, 24, 44, 0.24), inset 0 0 22px rgba(255, 58, 74, 0.08);
  filter: brightness(1.08);
  outline: none;
  transform: translateY(-1px);
}

.guide-action-btn-primary {
  color: #fff5f5;
}

.guide-action-btn-secondary {
  background: rgba(10, 4, 6, 0.78);
  color: rgba(255, 210, 210, 0.88);
}

@media (max-width: 640px) {
  .guide-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-card-action-buttons {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
  }

  .guide-action-btn {
    width: 100%;
  }
}

.mission-guide-intro p {
  color: var(--text);
}

.mission-guide-command-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mission-guide-command {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: var(--primary);
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.94rem;
}

.mission-command-guide small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.4;
}

.mission-guide-modal[hidden] {
  display: none;
}

body.guide-modal-open {
  overflow: hidden;
}

.mission-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.mission-guide-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.mission-guide-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(76vh, 760px);
  border: 1px solid rgba(255, 74, 74, 0.36);
  background: rgba(8, 5, 7, 0.96);
  box-shadow: 0 0 46px rgba(255, 24, 44, 0.2), inset 0 0 28px rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
}

.mission-guide-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 74, 74, 0.2);
}

.mission-guide-modal-header h2 {
  margin: 0;
  color: var(--text);
  text-shadow: 0 0 16px var(--glow);
}

.mission-guide-modal-close {
  border: 1px solid rgba(255, 74, 74, 0.36);
  background: rgba(255, 74, 74, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 9px 12px;
}

.mission-guide-modal-content {
  margin: 0;
  padding: 20px;
  color: rgba(255, 235, 235, 0.86);
  font-family: inherit;
  line-height: 1.72;
  overflow: auto;
  white-space: pre-wrap;
}

.mission-tutorial-detail-page {
  box-sizing: border-box;
  width: min(100%, 1120px);
  max-width: 1120px;
  margin-inline: auto;
}

.mission-tutorial-detail-body .mission-console-shell,
.mission-tutorial-detail-body .mission-console-header,
.mission-tutorial-detail-body .mission-console-title-block,
.mission-tutorial-detail-body .mission-console-title-block h1,
.mission-tutorial-detail-body .mission-guide-card,
.mission-tutorial-detail-body .mission-tutorial-command-row,
.mission-tutorial-detail-body .mission-tutorial-command-copy {
  box-sizing: border-box;
  max-width: 100%;
}

.mission-tutorial-detail-body .mission-console-shell {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

.mission-tutorial-detail-body .mission-console-header {
  gap: 18px;
  overflow: hidden;
}

.mission-tutorial-detail-body .mission-console-title-block {
  width: min(100%, 860px);
  padding-inline: 12px;
}

.mission-tutorial-detail-body .mission-console-title-block h1 {
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.08;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.mission-tutorial-hero {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.mission-tutorial-kicker {
  max-width: 100%;
  color: rgba(244, 196, 93, 0.94) !important;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.mission-tutorial-counts,
.mission-tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mission-tutorial-counts span {
  border: 1px solid rgba(244, 196, 93, 0.28);
  background: rgba(244, 196, 93, 0.08);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.mission-tutorial-part {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.mission-tutorial-part-header {
  display: grid;
  gap: 8px;
}

.mission-tutorial-part-header p {
  max-width: 860px;
}

.mission-tutorial-command-table {
  display: grid;
  gap: 10px;
}

.mission-tutorial-command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 58, 74, 0.18);
  border-radius: 8px;
  background: rgba(3, 2, 3, 0.68);
  min-width: 0;
}

.mission-tutorial-command-copy {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
}

.mission-tutorial-command-index {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(244, 196, 93, 0.32);
  border-radius: 6px;
  color: rgba(244, 196, 93, 0.94);
  font-family: var(--font-mono);
  font-size: 12px;
}

.mission-tutorial-command-copy code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 244, 218, 0.96);
  font-family: var(--font-mono);
  white-space: pre-wrap;
}

.mission-tutorial-copy-btn {
  min-width: 78px;
  max-width: 100%;
  justify-content: center;
  padding-inline: 12px;
}

.mission-tutorial-command-description {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.mission-tutorial-completion {
  border-color: rgba(244, 196, 93, 0.42);
  background: linear-gradient(135deg, rgba(244, 196, 93, 0.1), rgba(255, 58, 74, 0.07));
}

.mission-tutorial-completion p + p {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .mission-tutorial-detail-body .mission-console-shell {
    width: min(100% - 20px, 1120px);
  }

  .mission-tutorial-detail-body .mission-console-header {
    padding-inline: 12px;
  }

  .mission-tutorial-detail-body .mission-console-title-block h1 {
    font-size: clamp(22px, 8vw, 32px);
    line-height: 1.12;
    white-space: normal;
  }

  .mission-tutorial-detail-page {
    width: min(100%, calc(100vw - 20px));
  }

  .mission-tutorial-command-row {
    grid-template-columns: 1fr;
  }

  .mission-tutorial-copy-btn {
    width: 100%;
  }
}

.order-continue {
  grid-column: 1 / -1;
  width: fit-content;
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  body {
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
      linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
      linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.88)),
      var(--mobile-bg);
    background-attachment: scroll;
  }

  .gateway-intro {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9)),
      var(--mobile-bg),
      var(--bg);
    background-position: center;
    background-size: cover;
  }

  .home-shell {
    width: min(100% - 24px, 1180px);
    padding: 18px 0;
  }

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

  .brand-logo-horizontal {
    display: none;
  }

  .brand-logo-square {
    display: block;
    width: 54px;
    height: 54px;
  }

  .language-switcher {
    justify-content: flex-start;
    width: 100%;
  }

  .language-select {
    width: min(100%, 220px);
    max-width: 100%;
  }

  .layout-center-gateway .center-gateway,
  .layout-split-console .split-console,
  .layout-mission-portal .mission-portal,
  .content-page {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .layout-center-gateway .center-gateway {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .portal-cards {
    grid-template-columns: 1fr;
  }

  .about-card-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .about-section,
  .about-cta {
    padding: 20px;
  }

  .status-placeholder,
  .panel-header {
    flex-direction: column;
  }

  .gateway-panel {
    padding: 18px;
  }

  .gateway-lines {
    height: min(380px, 46vh);
    padding: 14px;
    font-size: 12px;
  }

  .gateway-actions,
  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .gateway-actions {
    align-items: flex-end;
  }

  .gateway-actions .gateway-skip-button {
    width: fit-content;
    min-width: 112px;
  }

  .hero-cta-group {
    display: grid;
    width: 100%;
    gap: 12px;
  }

  .hero-primary-cta {
    width: 100%;
    min-height: 56px;
    padding-inline: 18px;
    font-size: 14px;
    justify-self: stretch;
  }

  .hero-secondary-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gateway-button,
  .action-button {
    width: 100%;
    min-height: 46px;
  }

  .step-list li {
    grid-template-columns: 1fr;
  }

  .process-timeline,
  .process-step-card {
    grid-template-columns: 1fr;
  }

  .process-step-card {
    justify-items: center;
    min-height: 0;
    padding: 20px;
    text-align: center;
  }

  .process-step-icon {
    width: min(124px, 52vw);
    height: min(124px, 52vw);
  }

  .process-step-icon svg {
    width: min(74px, 32vw);
    height: min(74px, 32vw);
  }

  .process-step-item {
    padding-bottom: 58px;
  }

  .process-step-copy h2 {
    -webkit-line-clamp: 3;
  }

  .process-step-copy p {
    -webkit-line-clamp: 5;
  }

  .order-form {
    grid-template-columns: 1fr;
  }

  .order-option-grid {
    grid-template-columns: 1fr;
  }

  .order-option-card {
    min-height: 0;
    padding: 14px;
  }

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

  .confirm-summary-level-price {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-confirm-total {
    min-height: 0;
  }

  .payment-method-grid,
  .verification-actions,
  .verification-email-row,
  .verification-code-row,
  .checkout-grid,
  .application-meta-grid {
    grid-template-columns: 1fr;
  }

  .verification-code-row {
    justify-content: stretch;
  }

  .verification-code-field input {
    max-width: none;
  }

  .payment-method-card {
    min-height: 60px;
    padding: 12px;
  }

  .payment-method-line {
    gap: 8px;
  }

  .payment-method-card strong {
    font-size: 18px;
  }

  .payment-method-card small {
    font-size: 16px;
  }

  .crypto-icon {
    width: 30px;
    height: 30px;
  }

  .checkout-method-header {
    flex-direction: column;
  }

  .checkout-method-header > strong,
  .checkout-copy-button {
    width: 100%;
  }

  .checkout-payment-card {
    padding: 16px;
  }

  .checkout-method-compact {
    flex-direction: column;
    gap: 8px;
  }

  .checkout-crypto-icon {
    width: 48px;
    height: 48px;
  }

  .checkout-countdown-panel {
    width: 100%;
  }

  .checkout-qr-placeholder {
    width: min(100%, 260px);
  }

  .checkout-action-row,
  .checkout-address-row,
  .mission-access-hash-row {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .application-received-support-grid {
    grid-template-columns: 1fr;
  }

  .checkout-action-row .action-button {
    width: 100%;
  }

  .order-confirm-modal-backdrop {
    align-items: flex-start;
    place-items: start center;
    padding: 24px 16px;
    overflow-y: auto;
  }

  .order-confirm-modal {
    width: 100%;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 22px 18px;
  }

  .order-confirm-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mission-node-payment-page {
    align-items: stretch;
    padding: 24px 14px;
  }

  .mission-node-payment-card {
    width: 100%;
    padding: 18px;
  }

  .help-links-list {
    grid-template-columns: 1fr;
  }

  .order-continue {
    width: 100%;
  }

  .access-entry-link {
    width: 100%;
    justify-content: center;
  }

  .home-layout h1 {
    font-size: clamp(30px, 11vw, 48px);
    line-height: 1;
  }

  .hero-logo {
    width: 82px;
    max-height: 82px;
    margin-bottom: 14px;
  }

  .hero-logo-square {
    position: static;
    width: 82px;
    max-height: 82px;
    margin: 0 auto 14px;
    mix-blend-mode: normal;
  }

  .access-summary {
    grid-template-columns: 1fr;
  }

  .mission-terminal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .mission-console-header {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 88px;
    padding: 12px 14px 14px;
  }

  .mission-console-shell {
    gap: 12px;
    width: min(100% - 20px, 1380px);
    height: auto;
    min-height: 0;
    padding: 10px 0 28px;
    overflow: visible;
  }

  .mission-console-page {
    height: auto;
    min-height: 0;
    overflow: auto;
    background-color: #000;
    background-repeat: repeat, repeat, no-repeat, no-repeat;
    background-size: 44px 44px, 44px 44px, cover, cover;
  }

  .mission-console-logo {
    width: 64px;
    height: 64px;
  }

  .mission-console-title-block {
    position: static;
    transform: none;
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
  }

  .mission-console-title-block h1 {
    font-size: clamp(23px, 7vw, 34px);
    white-space: nowrap;
  }

  .mission-mobile-stage-toggle {
    display: inline-grid;
    place-items: center;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 30;
  }

  .mission-mobile-command-toggle {
    display: inline-grid;
    place-items: center;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 30;
    width: auto;
    min-height: 34px;
    margin-top: 0;
    padding: 0 14px;
    border: 1px solid var(--border);
    color: var(--primary);
    background: rgba(0, 0, 0, 0.62);
    box-shadow: 0 0 18px var(--glow);
    font: 800 12px/1 Consolas, "Courier New", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mission-console-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    align-items: stretch;
    overflow: visible;
  }

  .mission-terminal-panel {
    height: auto;
    margin-bottom: 12px;
    overflow: visible;
  }

  .mission-stage-list {
    position: fixed;
    top: 60px;
    right: 14px;
    z-index: 40;
    width: min(310px, calc(100vw - 28px));
    max-height: calc(100vh - 86px);
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--border);
    background: rgba(4, 4, 8, 0.96);
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.5), 0 0 18px var(--glow);
    transform: translateX(calc(100% + 24px));
    transition: transform 0.22s ease;
    backdrop-filter: blur(12px);
  }

  .mission-stage-list.is-mobile-open {
    transform: translateX(0);
  }

  .mission-stage-list article {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .mission-status-summary {
    gap: 8px;
    padding: 13px;
  }

  .mission-status-summary div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .mission-status-summary span,
  .mission-status-summary strong {
    font-size: 15px;
  }

  .mission-status-summary .mission-status-hash strong {
    font-size: 13px;
  }

  .mission-tutorial-panel {
    flex-direction: column;
  }

  .mission-tutorial-meta {
    justify-items: start;
    text-align: left;
  }

  .mission-terminal-lines {
    min-height: 0;
  }

  .mission-terminal-box {
    height: clamp(560px, 70dvh, 760px);
    min-height: 0;
    max-height: none;
    overflow: auto;
  }

  .mission-status-panel {
    max-height: none;
    overflow: visible;
  }

  .mission-command-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    font-size: 16px;
    line-height: 1.55;
  }

  .help-tooltip {
    display: none;
    position: static;
    flex: 1 0 100%;
    width: 100%;
    max-height: 42dvh;
    margin-top: 6px;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .help-icon:hover + .help-tooltip {
    display: none;
  }

  .help-icon:focus + .help-tooltip,
  .help-tooltip.is-open {
    display: block;
  }

  .intake-field > span {
    width: 100%;
    flex-wrap: wrap;
  }

  .application-section {
    padding: 16px;
  }

  .signature-canvas {
    height: 180px;
  }
}

@media (max-width: 768px) {
  body.mission-console-page {
    width: 100%;
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .site-header {
    position: relative;
    min-height: 44px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    padding-right: 104px;
  }

  .brand-mark {
    max-width: calc(100% - 104px);
    justify-content: flex-start;
  }

  .brand-logo-horizontal {
    display: block;
    width: min(158px, calc(100vw - 140px));
    max-height: 36px;
  }

  .home-hero-slogan,
  .home-layout .home-hero-slogan {
    display: none;
  }

  .brand-logo-square {
    display: none;
  }

  .language-selector {
    position: absolute;
    top: 4px;
    right: 0;
    z-index: 4;
    width: auto;
    justify-content: flex-end;
  }

  .language-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .language-select {
    width: 90px;
    min-width: 82px;
    min-height: 34px;
    max-width: 100px;
    padding: 0 24px 0 11px;
    border-color: rgba(214, 167, 95, 0.52);
    border-radius: 999px;
    color: #f7d89a;
    background-color: #090002;
    background-image:
      linear-gradient(180deg, rgba(255, 42, 61, 0.22), rgba(0, 0, 0, 0.44)),
      linear-gradient(45deg, transparent 50%, var(--primary) 50%),
      linear-gradient(135deg, var(--primary) 50%, transparent 50%);
    background-position:
      0 0,
      calc(100% - 15px) 50%,
      calc(100% - 10px) 50%;
    background-size: 100% 100%, 5px 5px, 5px 5px;
    font-size: 12px;
    box-shadow: 0 0 18px rgba(255, 42, 61, 0.12), inset 0 0 16px rgba(214, 167, 95, 0.04);
  }

  .language-select:focus {
    border-color: #d6a75f;
    box-shadow: 0 0 0 1px rgba(214, 167, 95, 0.88), 0 0 18px var(--glow), inset 0 0 16px rgba(214, 167, 95, 0.06);
  }
}

@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  body.mission-console-page {
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #000;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: scroll;
  }

  body.mission-console-page .mission-console-shell {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
  }

  body.mission-console-page .mission-mobile-content {
    display: grid;
    gap: 12px;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0 0 28px;
    overflow: visible;
  }

  body.mission-console-page .mission-console-grid {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  body.mission-console-page .mission-terminal-panel {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.mission-console-page .mission-terminal-box {
    height: clamp(300px, 52dvh, 430px);
    max-height: 430px;
    overflow: auto;
  }

  body.mission-console-page .mission-status-panel,
  body.mission-console-page .mission-command-guide {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.mission-console-page .mission-status-panel {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  body.mission-console-page .mission-command-guide {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .mission-bulletin-body {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .mission-bulletin-body .mission-console-shell {
    display: grid;
    width: min(100% - 24px, 560px);
    height: auto;
    min-height: 100dvh;
    max-height: none;
    padding: 10px 0 28px;
    overflow: visible;
  }

  .mission-bulletin-body .mission-console-header {
    display: grid;
    justify-items: center;
    min-height: 146px;
    height: 146px;
    flex-basis: 146px;
    padding: 14px 16px;
  }

  .mission-bulletin-body .mission-console-logo {
    width: 66px;
    height: 66px;
  }

  .mission-bulletin-body .mission-console-title-block {
    position: static;
    transform: none;
    width: 100%;
  }

  .mission-bulletin-body .mission-console-title-block h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

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

  .mission-bulletin-card {
    height: 292px;
    padding: 18px;
  }

  .mission-bulletin-preview {
    -webkit-line-clamp: 6;
  }

  .mission-bulletin-modal {
    padding: 14px;
  }

  .mission-bulletin-modal-card {
    max-height: 84dvh;
    padding: 22px 18px;
  }

  .mission-bulletin-modal-content {
    max-height: 58dvh;
  }

  body.mission-console-page {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    background-attachment: scroll;
  }

  body.mission-console-page::before,
  body.mission-console-page::after {
    position: fixed;
    inset: 0;
    height: 100svh;
  }

  body.mission-console-page .mission-console-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 100svh;
    max-height: none;
    margin: 0 auto;
    padding: 8px 10px;
    overflow: visible;
  }

  body.mission-console-page .mission-console-header {
    display: grid;
    flex: 0 0 auto;
    justify-items: center;
    min-height: 132px;
    padding: 12px 54px 14px;
    gap: 7px;
  }

  body.mission-console-page .mission-console-logo {
    width: 62px;
    height: 62px;
  }

  body.mission-console-page .mission-console-title-block {
    position: static;
    width: 100%;
    transform: none;
  }

  body.mission-console-page .mission-console-title-block h1 {
    font-size: clamp(27px, 7.4vw, 36px);
    line-height: 1.12;
    white-space: normal;
  }

  body.mission-console-page .mission-mobile-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-bottom: 0;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    overflow: visible;
  }

  body.mission-console-page .mission-console-grid {
    display: block;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  body.mission-console-page .mission-terminal-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-bottom: 0;
    overflow: visible;
  }

  body.mission-console-page .mission-terminal-box {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: clamp(330px, 58svh, 560px);
    min-height: 330px;
    max-height: none;
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  @supports (height: 100dvh) {
    body.mission-console-page,
    body.mission-console-page .mission-console-shell {
      min-height: 100dvh;
    }

    body.mission-console-page .mission-terminal-box {
      height: clamp(330px, 58dvh, 560px);
    }
  }

  body.mission-console-page .mission-status-summary {
    gap: 4px;
    padding: 9px 10px;
  }

  body.mission-console-page .mission-status-summary div {
    gap: 1px;
  }

  body.mission-console-page .mission-status-summary span,
  body.mission-console-page .mission-status-summary strong {
    font-size: 13px;
    line-height: 1.2;
  }

  body.mission-console-page .mission-status-summary .mission-status-hash {
    gap: 2px;
    padding-top: 2px;
  }

  body.mission-console-page .mission-status-summary .mission-status-hash strong {
    font-size: 11px;
    line-height: 1.25;
  }

  body.mission-console-page .mission-terminal-lines {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.mission-console-page .mission-command-input {
    flex: 0 0 auto;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 42, 61, 0.18);
    background: rgba(8, 5, 6, 0.94);
  }

  body.mission-console-page .mission-command-row {
    grid-template-columns: minmax(0, 1fr) 66px;
    gap: 8px;
  }

  body.mission-console-page .mission-command-row span {
    grid-column: 1 / -1;
    white-space: normal;
  }

  body.mission-console-page .mission-command-submit {
    width: 66px;
    min-width: 66px;
    min-height: 42px;
    padding: 0 10px;
  }

  body.mission-console-page .mission-command-run {
    display: inline-flex;
  }

  body.mission-console-page .mission-command-submit.mission-command-run {
    display: inline-flex;
  }

  body.mission-console-page .mission-status-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    z-index: 60;
    width: 0;
    height: 0;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.94)),
      var(--mobile-bg),
      #000;
    background-position: center;
    background-size: cover;
    box-shadow: none;
    transition: opacity 160ms ease, visibility 160ms ease;
  }

  body.mission-console-page .mission-command-guide {
    height: auto;
    max-height: none;
    margin-bottom: 0;
    overflow: visible;
  }

  body.mission-console-page .mission-status-panel.is-mobile-open {
    inset: 0;
    width: auto;
    height: 100dvh;
    padding: 58px 18px 22px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  body.mission-console-page .mission-command-guide-close {
    display: inline-grid;
    place-items: center;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 61;
    width: 42px;
    height: 38px;
    border: 1px solid var(--border);
    color: var(--primary);
    background: rgba(0, 0, 0, 0.72);
    box-shadow: 0 0 18px var(--glow);
    font: 800 22px/1 Consolas, "Courier New", monospace;
    cursor: pointer;
  }
}
