:root {
  color-scheme: dark;
  --bg: #071017;
  --panel: #101820;
  --panel-2: #18242e;
  --line: #2e4450;
  --text: #eef7f2;
  --muted: #91a8a6;
  --accent: #3ddc97;
  --accent-2: #7cc8ff;
  --danger: #ff6b6b;
  --warning: #ffd166;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at top left, #123246 0, #071017 38%, #040709 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

body.game-active {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  width: 100vw;
}

button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #142631;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 0.45rem 0.65rem;
}

button:hover {
  border-color: var(--accent);
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 100vh;
}

.app-shell.ops-visible {
  grid-template-columns: minmax(300px, 390px) minmax(620px, 1fr);
}

.app-shell.contacts-visible {
  display: block;
  min-height: 100dvh;
}

.app-shell.contacts-visible .game-stage {
  display: none;
}

.app-shell.contacts-visible .ops-panel {
  border-left: 0;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100dvh;
  width: 100%;
}

.game-stage {
  display: flex;
  flex-direction: column;
  justify-self: center;
  min-width: 0;
  max-width: min(100vw, 1120px);
  width: 100%;
  padding: 18px;
}

body.game-active .app-shell:not(.ops-visible) {
  display: flex;
  height: 100dvh;
  inset: 0;
  min-height: 100dvh;
  overflow: hidden;
  position: fixed;
  width: 100vw;
}

body.game-active .app-shell:not(.ops-visible) .game-stage {
  align-items: center;
  background:
    linear-gradient(rgba(3, 8, 20, 0.38), rgba(3, 8, 20, 0.38)),
    url("/assets/backgrounds/parallax-space-stars.png") center / 520px auto repeat,
    #030814;
  height: 100dvh;
  justify-content: center;
  max-width: none;
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  width: 100vw;
}

body.game-active.game-level-2 .app-shell:not(.ops-visible) .game-stage {
  background:
    linear-gradient(rgba(3, 8, 20, 0.34), rgba(3, 8, 20, 0.34)),
    url("/assets/backgrounds/level2/desert-backgorund.png") center / cover no-repeat,
    #171215;
}

body.game-active.game-level-3 .app-shell:not(.ops-visible) .game-stage {
  background:
    linear-gradient(rgba(3, 8, 20, 0.32), rgba(3, 8, 20, 0.32)),
    url("/assets/backgrounds/level3/lava-background.png") center / cover no-repeat,
    #120713;
}

body.game-active.game-level-4 .app-shell:not(.ops-visible) .game-stage {
  background:
    linear-gradient(rgba(3, 8, 20, 0.28), rgba(3, 8, 20, 0.28)),
    url("/assets/backgrounds/final/starfield-back.png") center / cover no-repeat,
    #050b14;
}

body.game-active.game-level-5 .app-shell:not(.ops-visible) .game-stage {
  background:
    linear-gradient(rgba(3, 8, 20, 0.24), rgba(3, 8, 20, 0.24)),
    url("/assets/backgrounds/level5/blue-with-stars.png") center / cover no-repeat,
    #020c19;
}

body.game-active .app-shell:not(.ops-visible) .top-strip,
body.game-active .app-shell:not(.ops-visible) .mobile-register-hero,
body.game-active .app-shell:not(.ops-visible) .pilot-bar {
  display: none;
}

.app-shell.ops-visible .game-stage {
  justify-self: center;
  max-width: 390px;
  padding: 14px;
}

.app-shell.ops-visible .top-strip {
  gap: 10px;
  min-height: 58px;
}

.app-shell.ops-visible h1 {
  font-size: 1.35rem;
}

.app-shell.ops-visible .eyebrow {
  font-size: 0.68rem;
}

.app-shell.ops-visible .status-pill {
  font-size: 0.78rem;
  min-width: 106px;
  padding: 0.45rem 0.6rem;
}

.app-shell.ops-visible .pilot-bar {
  gap: 8px;
  grid-template-columns: 1fr;
  padding: 9px;
}

.app-shell.ops-visible .game-root {
  min-height: 0;
}

.game-qr-panel {
  display: none;
}

.app-shell.ops-visible .game-qr-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(61, 220, 151, 0.12), rgba(124, 200, 255, 0.08)),
    rgba(16, 24, 32, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  padding: 16px;
  text-align: center;
}

.game-qr-heading {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.game-qr-heading span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.game-qr-heading strong {
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.05;
}

.game-qr-link {
  color: var(--accent-2);
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.game-qr-link:hover {
  color: var(--accent);
}

.email-collection-control {
  align-items: center;
  background: rgba(5, 13, 21, 0.72);
  border: 1px solid rgba(124, 200, 255, 0.22);
  border-radius: 8px;
  display: grid;
  column-gap: 10px;
  grid-template-columns: 1fr auto auto auto;
  padding: 10px;
  row-gap: 6px;
  width: 100%;
}

.email-collection-toggle {
  align-items: center;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 8px;
  text-align: left;
}

.email-collection-toggle input {
  appearance: none;
  background: rgba(8, 17, 26, 0.92);
  border: 1px solid rgba(124, 200, 255, 0.36);
  border-radius: 999px;
  height: 22px;
  position: relative;
  transition: border-color 160ms ease, background 160ms ease;
  width: 40px;
}

.email-collection-toggle input::after {
  background: #8fa7ab;
  border-radius: 999px;
  content: "";
  height: 16px;
  left: 3px;
  position: absolute;
  top: 2px;
  transition: background 160ms ease, transform 160ms ease;
  width: 16px;
}

.email-collection-toggle input:checked {
  background: rgba(61, 220, 151, 0.18);
  border-color: rgba(61, 220, 151, 0.72);
}

.email-collection-toggle input:checked::after {
  background: var(--accent);
  transform: translateX(18px);
}

.email-collection-control > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.email-collection-control > span.is-on {
  color: var(--accent);
}

.email-collection-control > a {
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.email-collection-control > a:hover {
  color: var(--accent);
}

.game-qr-image {
  background: #f4fbf7;
  border: 1px solid rgba(124, 200, 255, 0.42);
  border-radius: 10px;
  display: block;
  height: 250px;
  image-rendering: pixelated;
  padding: 10px;
  width: 250px;
}

.top-strip {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.mobile-register-hero {
  display: none;
}

body:not(.game-active) .app-shell:not(.ops-visible) {
  min-height: 100dvh;
}

body:not(.game-active) .app-shell:not(.ops-visible) .game-stage {
  align-items: center;
  background:
    linear-gradient(rgba(3, 8, 20, 0.54), rgba(3, 8, 20, 0.7)),
    url("/assets/backgrounds/parallax-space-stars.png") center / 520px auto repeat,
    #030814;
  justify-content: center;
  max-width: none;
  min-height: 100dvh;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
}

body:not(.game-active) .app-shell:not(.ops-visible) .top-strip,
body:not(.game-active) .app-shell:not(.ops-visible) .game-root {
  display: none;
}

body:not(.game-active) .app-shell:not(.ops-visible) .mobile-register-hero {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.mobile-register-logo {
  display: block;
  height: 54px;
  object-fit: contain;
  width: 88px;
}

.mobile-register-hero span {
  color: #ff3f2f;
  display: block;
  font-family: monospace;
  font-size: clamp(1.15rem, 2.1vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 0 #3a0500;
}

.mobile-register-hero strong {
  color: var(--accent);
  display: block;
  font-family: monospace;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  text-transform: uppercase;
  text-shadow: 0 4px 0 #001f18;
}

.mobile-register-guide {
  display: block;
  height: min(38dvh, 360px);
  margin-top: 10px;
  object-fit: contain;
  object-position: center bottom;
  width: min(48vw, 420px);
}

.eyebrow {
  color: var(--accent-2);
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(1.65rem, 3vw, 3rem);
}

h2 {
  font-size: 1.35rem;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  min-width: 132px;
  padding: 0.55rem 0.8rem;
  text-align: center;
  white-space: nowrap;
}

.status-pill.offline {
  color: var(--warning);
}

.pilot-bar {
  align-items: center;
  background: rgba(16, 24, 32, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(120px, 220px) auto;
  margin-bottom: 12px;
  padding: 10px;
}

.pilot-bar.collects-email {
  grid-template-columns: auto minmax(120px, 220px) auto;
}

.pilot-bar label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pilot-bar input {
  background: #071017;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  text-transform: uppercase;
}

.pilot-bar .pilot-email-input {
  text-transform: none;
}

.pilot-email-label[hidden],
.pilot-email-input[hidden] {
  display: none;
}

.pilot-bar input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(61, 220, 151, 0.18);
}

body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar {
  background: rgba(5, 13, 21, 0.78);
  border-color: rgba(124, 200, 255, 0.45);
  gap: 10px;
  grid-template-columns: 1fr;
  margin: 0;
  max-width: 420px;
  padding: 12px;
  width: 100%;
}

body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar label {
  color: #d9faff;
  font-family: monospace;
  font-size: 0.95rem;
}

body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar input {
  font: 700 16px monospace;
  min-height: 46px;
  text-align: center;
}

body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar button {
  background: #c74634;
  border-color: #ff7a66;
  color: #ffffff;
  font: 900 1.05rem monospace;
  min-height: 48px;
  text-transform: uppercase;
}

body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar.collects-email {
  align-items: center;
  grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
  max-width: 650px;
}

body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar.collects-email label[for="pilotCallsign"] {
  grid-column: 1;
}

body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar.collects-email #pilotCallsign {
  grid-column: 2;
}

body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar.collects-email .pilot-email-label {
  grid-column: 1;
}

body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar.collects-email .pilot-email-input {
  grid-column: 2;
}

body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar.collects-email button {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar.collects-email {
    grid-template-columns: minmax(112px, 0.38fr) minmax(0, 1fr);
  }

  body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar.collects-email label {
    font-size: 0.82rem;
  }
}

.pilot-bar.needs-name input {
  border-color: var(--danger);
}

.pilot-bar.needs-email .pilot-email-input {
  border-color: var(--danger);
}

.game-root {
  border: 1px solid var(--line);
  border-radius: 8px;
  contain: layout size paint;
  flex: 0 0 auto;
  height: 640px;
  margin: 0 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 480px;
}

body.game-active .app-shell:not(.ops-visible) .game-root {
  border: 0;
  border-radius: 0;
  max-height: 100dvh;
  max-width: 100vw;
}

body.game-active .app-shell:not(.ops-visible) .game-root:empty::before {
  align-items: center;
  background:
    radial-gradient(circle at center, rgba(61, 220, 151, 0.12), transparent 42%),
    #030814;
  color: #7cc8ff;
  content: "Loading...";
  display: flex;
  font: 900 1.05rem/1 monospace;
  height: 100%;
  justify-content: center;
  letter-spacing: 0;
  text-shadow: 0 2px 0 #001520;
  text-transform: uppercase;
  width: 100%;
}

.game-root canvas {
  display: block;
  height: 100% !important;
  image-rendering: auto !important;
  touch-action: none;
  user-select: none;
  width: 100% !important;
}

.game-coach-panel {
  background: rgba(5, 13, 21, 0.94);
  border: 1px solid rgba(124, 200, 255, 0.42);
  border-radius: 6px;
  bottom: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 6px;
  left: 31%;
  padding: 8px;
  pointer-events: auto;
  position: absolute;
  touch-action: manipulation;
  right: 4%;
  z-index: 20;
}

.game-coach-title {
  color: var(--accent-2);
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.game-coach-question {
  color: var(--muted);
  font-family: monospace;
  font-size: 11px;
  line-height: 1.3;
  min-height: 15px;
}

.game-coach-row {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.game-coach-row input {
  background: #071017;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  font: 16px monospace;
  line-height: 1.2;
  min-width: 0;
  padding: 7px;
  -webkit-user-select: text;
  user-select: text;
}

.game-coach-row button {
  border-radius: 5px;
  font: 700 13px monospace;
  min-height: 38px;
  padding: 7px 10px;
}

.game-coach-panel.is-correct {
  border-color: rgba(61, 220, 151, 0.6);
}

.ops-panel {
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.96), rgba(10, 17, 22, 0.96)),
    var(--panel);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
  padding: 26px;
}

.app-shell.ops-visible .ops-panel {
  padding: 30px;
}

.ops-dashboard-grid {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.ops-dashboard-grid > section {
  min-width: 0;
}

.ops-dashboard-grid[hidden],
.panel-header[hidden] {
  display: none;
}

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

.ops-panel.is-locked {
  justify-content: stretch;
}

.ops-panel.is-locked > :not(.ops-login) {
  display: none;
}

body.ops-login-active {
  overflow: hidden;
}

body.ops-login-active .app-shell.ops-visible {
  display: block;
  min-height: 100dvh;
}

body.ops-login-active .app-shell.ops-visible .game-stage {
  display: none;
}

body.ops-login-active .app-shell.ops-visible .ops-panel {
  border-left: 0;
  min-height: 100dvh;
  padding: 0;
}

.ops-login {
  align-items: center;
  background:
    radial-gradient(circle at 38% 20%, rgba(61, 220, 151, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(5, 10, 17, 0.62), rgba(5, 12, 18, 0.96)),
    url("/assets/backgrounds/parallax-space-stars.png"),
    url("/assets/backgrounds/parallax-space-backgound.png");
  background-color: #071017;
  background-position: center, center, center;
  background-size: cover, 540px auto, cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100dvh;
  overflow-y: auto;
  padding: clamp(58px, 8vh, 118px) clamp(18px, 5vw, 84px) clamp(20px, 3vh, 42px);
  position: relative;
  width: 100%;
}

.ops-login::before {
  background:
    radial-gradient(circle at 18% 58%, rgba(124, 200, 255, 0.09), transparent 34%),
    linear-gradient(90deg, rgba(3, 8, 14, 0.08), rgba(3, 8, 14, 0.28) 52%, rgba(3, 8, 14, 0.62));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

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

.ops-login[hidden] {
  display: none;
}

.ops-login-brand {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-self: center;
  max-width: min(100%, 1120px);
  min-width: 0;
  text-align: center;
  transform: none;
  width: 100%;
}

.ops-login-oracle-ring {
  border: clamp(5px, 0.55vw, 8px) solid #ff2115;
  border-radius: 999px;
  display: block;
  height: clamp(54px, 4vw, 72px);
  margin-bottom: clamp(10px, 1.2vh, 16px);
  width: clamp(108px, 8vw, 150px);
}

.ops-login-brand strong {
  color: #ff4434;
  font-size: clamp(1.55rem, 2.35vw, 2.7rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 0 rgba(128, 10, 8, 0.82);
}

.ops-login-brand h2 {
  color: #3ddc97;
  font-size: clamp(4.15rem, 6.3vw, 7.35rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  margin: clamp(12px, 1.7vh, 20px) 0 0;
  max-width: none;
  text-transform: uppercase;
  text-shadow: 0 8px 0 rgba(0, 75, 53, 0.74);
  white-space: nowrap;
}

.ops-login-subtitle {
  color: #7cc8ff;
  font-size: clamp(1.18rem, 1.55vw, 1.72rem);
  font-weight: 900;
  letter-spacing: 0.24em;
  margin: clamp(8px, 1vh, 14px) 0 0;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 28, 46, 0.75);
}

.ops-login-brand img {
  display: block;
  height: clamp(270px, 39dvh, 510px);
  margin-bottom: clamp(-14px, -1.2vh, -8px);
  margin-top: clamp(20px, 2.7vh, 34px);
  max-height: min(54dvh, 560px);
  max-width: min(54vw, 660px);
  object-fit: contain;
  pointer-events: none;
  transform: translateY(clamp(6px, 0.9vh, 12px));
  width: auto;
}

.ops-login-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin-top: clamp(8px, 1.2vh, 14px);
  padding: 0;
  position: relative;
  transform: none;
  width: min(100%, 560px);
  z-index: 2;
}

.ops-login-card p {
  color: var(--muted);
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.45;
  margin: 10px auto 0;
  max-width: 34ch;
}

.ops-login-form {
  display: grid;
  gap: 9px;
  margin-top: clamp(10px, 1.3vh, 16px);
}

.ops-login-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ops-login-row input {
  background: rgba(5, 13, 20, 0.76);
  border: 1px solid rgba(124, 200, 255, 0.34);
  border-radius: 7px;
  color: #f4f8f5;
  font: inherit;
  font-size: 1rem;
  min-height: 44px;
  outline: none;
  padding: 0 18px;
}

.ops-login-row input:focus {
  border-color: rgba(61, 220, 151, 0.76);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16);
}

.ops-login-row button {
  background: #f4f8f5;
  border-color: #f4f8f5;
  border-radius: 7px;
  color: #090b0f;
  font-weight: 800;
  min-height: 44px;
  padding: 0 22px;
}

.ops-login-row button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.ops-login-form small {
  color: #a6abb4;
  font-size: 0.9rem;
}

.ops-login-form small:empty {
  display: none;
}

@media (max-width: 1180px) {
  .ops-login {
    padding: clamp(44px, 6vh, 76px) 28px 28px;
  }

  .ops-login-brand img {
    max-height: 390px;
    max-width: min(80vw, 470px);
    margin-top: 22px;
  }

  .ops-login-card {
    width: min(100%, 620px);
  }
}

@media (max-height: 780px) and (min-width: 621px) {
  .ops-login {
    padding-block: clamp(78px, 11vh, 104px) 18px;
  }

  .ops-login-oracle-ring {
    height: 50px;
    margin-bottom: 10px;
    width: 104px;
  }

  .ops-login-brand strong {
    font-size: clamp(1.85rem, 2.45vw, 2.35rem);
  }

  .ops-login-brand h2 {
    font-size: clamp(3.9rem, 5.85vw, 6.35rem);
    line-height: 0.96;
    margin-top: 10px;
  }

  .ops-login-subtitle {
    font-size: 1.08rem;
    margin-top: 7px;
  }

  .ops-login-brand img {
    height: clamp(240px, 37dvh, 380px);
    margin-bottom: -10px;
    margin-top: 12px;
    max-height: min(46dvh, 410px);
    transform: translateY(8px);
  }

  .ops-login-card {
    margin-top: 8px;
    padding: 0;
    width: min(100%, 520px);
  }

  .ops-login-card p {
    margin-top: 12px;
  }

  .ops-login-form {
    margin-top: 10px;
  }

  .ops-login-row input,
  .ops-login-row button {
    min-height: 42px;
  }
}

@media (max-width: 620px) {
  .ops-login {
    padding: 18px;
  }

  .ops-login-oracle-ring {
    height: 42px;
    width: 86px;
  }

  .ops-login-brand h2 {
    font-size: clamp(3.2rem, 18vw, 5rem);
    white-space: normal;
  }

  .ops-login-subtitle {
    font-size: 0.9rem;
  }

  .ops-login-brand img {
    height: auto;
    max-height: 260px;
    max-width: min(82vw, 360px);
  }

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

  .ops-login-row button {
    width: 100%;
  }
}

.panel-header {
  border-bottom: 1px solid var(--line);
  min-height: 96px;
  padding-bottom: 18px;
}

.panel-header h2 {
  font-size: 2.2rem;
  line-height: 1.15;
  margin-top: 4px;
}

.panel-header p {
  color: var(--muted);
  font-size: 1rem;
  margin: 10px 0 0;
}

.live-architecture {
  background:
    radial-gradient(circle at 16% 10%, rgba(124, 200, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(16, 38, 49, 0.9), rgba(10, 27, 37, 0.94)),
    rgba(13, 31, 41, 0.82);
  border: 1px solid rgba(124, 200, 255, 0.3);
  border-radius: 8px;
  margin-top: 0;
  padding: 14px;
}

.architecture-title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.architecture-title span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.architecture-title strong,
.architecture-badges strong {
  color: var(--text);
  display: block;
  font-size: 0.95rem;
  margin-top: 2px;
}

.architecture-badges {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.architecture-badges strong {
  color: var(--accent);
  font-size: 0.78rem;
  text-align: right;
}

.architecture-badges em {
  border: 1px solid rgba(124, 200, 255, 0.24);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  padding: 3px 8px;
}

.architecture-map {
  --arch-flow-speed: 1.55s;
  min-height: 690px;
  position: relative;
}

.arch-node {
  background:
    linear-gradient(180deg, rgba(15, 34, 44, 0.92), rgba(8, 18, 25, 0.96));
  border: 1px solid rgba(145, 168, 166, 0.22);
  border-radius: 7px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
  min-width: 0;
  min-height: 76px;
  padding: 10px;
  position: absolute;
  width: 16.5%;
  z-index: 2;
}

.arch-node::before {
  background: rgba(145, 168, 166, 0.56);
  border-radius: 999px;
  content: "";
  height: 6px;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 6px;
}

.arch-node.is-live {
  border-color: rgba(61, 220, 151, 0.72);
  box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.18);
}

.arch-node-hub {
  border-color: rgba(124, 200, 255, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(124, 200, 255, 0.12),
    0 0 18px rgba(124, 200, 255, 0.08);
}

.arch-node.is-live::before {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(61, 220, 151, 0.72);
}

.arch-node.is-busy {
  border-color: rgba(255, 209, 102, 0.78);
}

.arch-node.is-busy::before {
  animation: arch-node-breathe 0.75s ease-in-out infinite alternate;
  background: var(--warning);
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.78);
}

.arch-node span {
  color: var(--muted);
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.arch-node strong {
  color: var(--text);
  display: block;
  font-size: 0.8rem;
  line-height: 1.2;
  margin-top: 4px;
  overflow-wrap: anywhere;
  padding-right: 8px;
}

.arch-browser-roles {
  align-items: center;
  display: flex !important;
  gap: 6px;
}

.arch-browser-roles b,
.arch-browser-roles i {
  font: inherit;
}

.arch-browser-roles i {
  color: var(--muted);
  font-style: normal;
  opacity: 0.78;
}

.arch-role-player {
  color: var(--accent-2);
}

.arch-role-ops {
  color: var(--warning);
}

.arch-route-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  left: 0;
  position: absolute;
  top: 0;
  z-index: 3;
}

.arch-route-legend span,
.arch-flow-label {
  align-items: center;
  background: rgba(5, 13, 21, 0.82);
  border: 1px solid rgba(124, 200, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 800;
  gap: 6px;
  padding: 4px 8px;
  text-transform: uppercase;
}

.arch-route-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 7px;
  width: 18px;
}

.legend-game {
  background: var(--accent-2);
}

.legend-api {
  background: var(--warning);
}

.legend-ai {
  background: rgb(181, 139, 255);
}

.legend-read {
  background: var(--danger);
}

.legend-events {
  background: var(--accent);
}

.arch-flow-label {
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 3;
}

.arch-label-game {
  color: var(--accent-2);
  left: 34.5%;
  top: 128px;
}

.arch-label-static-game {
  color: var(--accent-2);
  left: 62%;
  top: 128px;
}

.arch-label-api {
  color: var(--warning);
  left: 35.5%;
  top: 355px;
}

.arch-label-ai {
  color: rgb(203, 184, 255);
  left: 86.5%;
  top: 258px;
}

.arch-label-events {
  color: var(--accent);
  left: 59.8%;
  top: 438px;
}

.arch-label-read {
  color: rgb(255, 156, 156);
  left: 72%;
  top: 414px;
}

.arch-label-stream {
  color: var(--accent);
  left: 59.8%;
  top: 668px;
}

.arch-links {
  height: 100%;
  inset: 0;
  overflow: visible;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.arch-link {
  animation: arch-link-flow var(--arch-flow-speed) linear infinite;
  fill: none;
  stroke-dasharray: 12 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.arch-link-game {
  stroke: rgba(124, 200, 255, 0.86);
}

.arch-link-api {
  stroke: rgba(255, 209, 102, 0.88);
}

.arch-link-ai {
  stroke: rgba(181, 139, 255, 0.9);
}

.arch-link-read {
  stroke: rgba(255, 107, 107, 0.92);
}

.arch-link-events {
  stroke: rgba(61, 220, 151, 0.9);
}

.architecture-map.flow-fast .arch-link {
  stroke-width: 5;
}

.architecture-map.flow-idle .arch-link {
  animation: none;
  opacity: 0.74;
  stroke-dasharray: none;
  stroke-width: 3;
}

.architecture-map.flow-idle .arch-link-events {
  opacity: 0.7;
}

.architecture-map.mode-vm .arch-link-events,
.architecture-map.mode-vm .arch-link-read,
.architecture-map.mode-vm #archFunctions {
  opacity: 0.5;
}

.arch-pos-client {
  left: 2%;
  min-height: 58px;
  top: 145px;
  width: 11%;
}

.arch-pos-public-lb {
  left: 26%;
  top: 54px;
  width: 17%;
}

.arch-pos-vm-fleet {
  left: 53%;
  top: 54px;
  width: 18%;
}

.arch-pos-api-gateway {
  left: 26%;
  top: 280px;
  width: 17%;
}

.arch-pos-private-lb {
  left: 53%;
  top: 280px;
  width: 14%;
}

.arch-pos-vm-app {
  left: 70%;
  top: 280px;
  width: 13.5%;
}

.arch-pos-functions {
  left: 53%;
  top: 470px;
  width: 13.5%;
}

.arch-pos-genai {
  left: 84.5%;
  top: 128px;
  width: 14.5%;
}

.arch-pos-cache {
  left: 86.5%;
  top: 335px;
  width: 12.5%;
}

.arch-pos-streaming {
  left: 53%;
  top: 585px;
  width: 13.5%;
}

.arch-pos-adb {
  left: 86.5%;
  top: 455px;
  width: 12.5%;
}

.arch-pos-object {
  left: 86.5%;
  top: 585px;
  width: 12.5%;
}

@keyframes arch-link-flow {
  to {
    stroke-dashoffset: -48;
  }
}

@keyframes arch-node-breathe {
  from {
    opacity: 0.55;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1.25);
  }
}

.section-title span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
}

.section-title-with-badge {
  align-items: center;
  display: inline-flex !important;
  gap: 8px;
}

.section-title-with-badge b {
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.34);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  padding: 4px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cloud-map {
  background:
    radial-gradient(circle at 12% 0, rgba(61, 220, 151, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(21, 36, 47, 0.96), rgba(14, 27, 37, 0.98)),
    var(--panel);
  border: 1px solid rgba(124, 200, 255, 0.34);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(238, 247, 242, 0.025) inset,
    0 12px 34px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  padding: 0 16px 16px;
}

.topology-eyebrow {
  color: #a6abb4;
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 14px 0 14px;
  text-transform: uppercase;
}

.topology-service-row {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(18, 34, 44, 0.94), rgba(13, 25, 34, 0.96));
  border: 1px solid rgba(124, 200, 255, 0.31);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(238, 247, 242, 0.035) inset;
  display: grid;
  gap: 9px;
  grid-template-columns: 22px minmax(140px, auto) minmax(0, 1fr);
  min-height: 46px;
  padding: 0 16px;
}

.topology-icon {
  color: #a6abb4;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  fill: none;
  width: 17px;
}

.topology-service-row strong {
  color: #f4f8f5;
  font-size: 0.82rem;
  font-weight: 750;
}

.topology-service-row code {
  color: #a1abb4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.topology-connector {
  background: rgba(124, 200, 255, 0.36);
  height: 14px;
  margin-left: 27px;
  width: 1px;
}

.topology-vm-panel {
  background:
    linear-gradient(180deg, rgba(18, 34, 44, 0.94), rgba(12, 24, 32, 0.98));
  border: 1px solid rgba(124, 200, 255, 0.34);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(238, 247, 242, 0.035) inset;
  overflow: hidden;
}

.topology-vm-header {
  align-items: center;
  border-bottom: 1px solid rgba(124, 200, 255, 0.24);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 56px;
  padding: 11px 16px;
}

.topology-vm-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topology-vm-title > strong {
  color: #f4f8f5;
  font-size: 0.9rem;
  font-weight: 760;
}

.topology-chip {
  align-items: center;
  background: rgba(61, 220, 151, 0.08);
  border: 1px solid rgba(61, 220, 151, 0.38);
  border-radius: 6px;
  color: var(--accent);
  display: inline-flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
}

.topology-active-vm {
  color: #f4f8f5;
  font-size: 0.82rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-align: right;
}

.topology-active-vm::first-letter {
  color: #a6abb4;
}

.vm-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px 16px;
}

.vm-metrics div {
  background:
    linear-gradient(180deg, rgba(17, 32, 42, 0.86), rgba(11, 23, 31, 0.9));
  border: 1px solid rgba(124, 200, 255, 0.27);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(238, 247, 242, 0.035) inset;
  min-width: 0;
  min-height: 66px;
  padding: 10px 12px;
}

.vm-metrics span {
  color: #a6abb4;
  display: block;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.vm-metrics strong {
  align-items: baseline;
  color: #f4f8f5;
  display: block;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
  padding-top: 8px;
}

.vm-metrics strong b {
  font: inherit;
}

.vm-metrics strong em,
.vm-metrics strong i {
  color: #777a84;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 600;
  margin-left: 4px;
}

.vm-list-title {
  align-items: center;
  background: rgba(18, 36, 46, 0.34);
  border-top: 1px solid rgba(124, 200, 255, 0.25);
  border-bottom: 1px solid rgba(124, 200, 255, 0.25);
  color: #a6abb4;
  display: grid;
  font-size: 0.64rem;
  font-weight: 800;
  gap: 12px;
  grid-template-columns: minmax(190px, 1.25fr) minmax(240px, 1.6fr) minmax(110px, 0.65fr);
  letter-spacing: 0.12em;
  padding: 9px 16px;
  text-transform: uppercase;
}

.vm-list-title span:last-child {
  text-align: right;
}

.vm-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vm-list li {
  align-items: center;
  background: rgba(12, 25, 34, 0.76);
  border-bottom: 1px solid rgba(124, 200, 255, 0.2);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(190px, 1.25fr) minmax(240px, 1.6fr) minmax(110px, 0.65fr);
  min-height: 62px;
  padding: 10px 16px;
}

.vm-list li.is-active {
  background:
    linear-gradient(90deg, rgba(61, 220, 151, 0.14), rgba(61, 220, 151, 0.02) 36%, transparent 64%),
    rgba(13, 31, 38, 0.86);
}

.vm-list li.is-stale {
  opacity: 0.58;
}

.vm-list-header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  min-width: 0;
}

.vm-list-header strong {
  color: #f4f8f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.vm-list-status-dot {
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(61, 220, 151, 0.55);
  flex: 0 0 auto;
  height: 7px;
  width: 7px;
}

.vm-list-age {
  color: #777a84;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  margin: 4px 0 0 21px;
}

.vm-list-resources {
  display: grid;
  gap: 5px;
}

.vm-resource-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 36px minmax(140px, 1fr) 42px;
}

.vm-resource-row span,
.vm-disk-cell em {
  color: #a6abb4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
}

.vm-resource-bar {
  background: rgba(145, 168, 166, 0.28);
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.vm-resource-bar i {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 2px;
}

.vm-resource-row strong {
  color: #a6abb4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
}

.vm-disk-cell {
  color: #a6abb4;
  display: grid;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  gap: 4px;
  justify-items: end;
}

.vm-disk-cell span {
  white-space: nowrap;
}

.stress-control {
  align-items: center;
  background: rgba(12, 25, 34, 0.76);
  border-top: 1px solid rgba(124, 200, 255, 0.22);
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 16px 14px;
}

.stress-control > div:first-child {
  min-width: 0;
}

.stress-control span {
  color: #a6abb4;
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stress-control strong {
  color: #a6abb4;
  display: block;
  font-size: 0.82rem;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.stress-control small {
  color: #777a84;
  display: block;
  font-size: 0.66rem;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.stress-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.stress-control button {
  align-items: center;
  background: transparent;
  border-color: rgba(124, 200, 255, 0.28);
  border-radius: 6px;
  color: #f4f8f5;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 750;
  min-height: 34px;
  padding: 0 13px;
}

.stress-control button:first-child {
  background: #f4f8f5;
  border-color: #f4f8f5;
  color: #090b0f;
}

.stress-control button.danger-action {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.46);
  color: #ff8a8a;
}

.stress-control button.danger-action:hover {
  background: rgba(255, 107, 107, 0.16);
  border-color: rgba(255, 107, 107, 0.7);
  color: #ffd0d0;
}

.stress-control button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.insight-box,
.leaderboard,
.live-players,
.email-collection-panel {
  background:
    radial-gradient(circle at 10% 0, rgba(124, 200, 255, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(18, 32, 43, 0.96), rgba(11, 23, 31, 0.98));
  border: 1px solid rgba(124, 200, 255, 0.24);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 36px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.insight-box.ai-panel {
  background:
    radial-gradient(circle at 8% 0, rgba(255, 140, 26, 0.12), transparent 26%),
    radial-gradient(circle at 78% 2%, rgba(181, 139, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(11, 17, 29, 0.98), rgba(5, 10, 18, 0.98));
  border-color: rgba(124, 200, 255, 0.18);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 42px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.insight-box.ai-panel::before {
  background: linear-gradient(90deg, rgba(255, 140, 26, 0.52), rgba(181, 139, 255, 0.7), transparent);
  content: "";
  height: 1px;
  inset: 0 24px auto;
  opacity: 0.9;
  position: absolute;
}

.ai-panel-hero {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1fr) auto;
  margin-bottom: 12px;
}

.ai-panel-copy {
  min-width: 0;
}

.ai-panel-eyebrow {
  align-items: center;
  color: #ff8c1a;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 950;
  gap: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ai-panel-eyebrow i {
  background: #ff8c1a;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 140, 26, 0.45);
  display: inline-block;
  height: 7px;
  width: 7px;
}

.ai-panel-copy h3 {
  color: var(--text);
  font-size: clamp(1.55rem, 2.25vw, 2.6rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 8px 0 0;
}

.section-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title strong {
  color: var(--accent);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.live-players::before,
.leaderboard::before,
.email-collection-panel::before {
  background: linear-gradient(90deg, rgba(124, 200, 255, 0.42), rgba(61, 220, 151, 0.4), transparent);
  content: "";
  height: 1px;
  inset: 0 20px auto;
  opacity: 0.7;
  position: absolute;
}

.live-players .section-title,
.leaderboard .section-title,
.email-collection-panel .section-title {
  margin-bottom: 14px;
  min-height: 34px;
}

.live-players .section-title span,
.leaderboard .section-title span,
.email-collection-panel .section-title span {
  color: #edf7f4;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.email-collection-panel .section-title-with-badge,
.live-players .section-title-with-badge {
  flex-wrap: wrap;
  gap: 6px 8px;
}

.live-players .section-title span::before,
.leaderboard .section-title span::before,
.email-collection-panel .section-title span::before {
  color: #7cc8ff;
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.live-players .section-title span::before {
  content: "Live player telemetry";
  flex: 0 0 100%;
  margin-bottom: 0;
}

.leaderboard .section-title span::before {
  content: "Leaderboard";
}

.email-collection-panel .section-title span::before {
  content: "Pilot contacts";
  flex: 0 0 100%;
  margin-bottom: 0;
}

.leaderboard .section-title > span {
  font-size: 0;
}

.leaderboard .section-title > span::after {
  color: #edf7f4;
  content: "Top 10 pilots";
  display: block;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.live-players .section-title strong {
  align-items: center;
  background: rgba(61, 220, 151, 0.08);
  border: 1px solid rgba(61, 220, 151, 0.28);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.72rem;
  min-height: 28px;
  padding: 0 10px;
}

.email-collection-panel .section-title-with-badge b {
  align-items: center;
  background: rgba(124, 200, 255, 0.08);
  border: 1px solid rgba(124, 200, 255, 0.28);
  border-radius: 999px;
  color: var(--accent-2);
  display: inline-flex;
  font-size: 0.72rem;
  min-height: 28px;
  padding: 0 10px;
  text-transform: uppercase;
}

.email-collection-panel .section-title a {
  align-items: center;
  background: rgba(24, 34, 51, 0.86);
  border: 1px solid rgba(124, 200, 255, 0.18);
  border-radius: 10px;
  color: #d6e6ef;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  min-height: 34px;
  padding: 0 12px;
  text-decoration: none;
}

.email-collection-panel .section-title a:hover,
.email-collection-panel .section-title a:focus-visible {
  border-color: rgba(124, 200, 255, 0.42);
  color: #ffffff;
}

.contacts-page {
  background:
    linear-gradient(135deg, rgba(61, 220, 151, 0.08), rgba(124, 200, 255, 0.06)),
    rgba(16, 24, 32, 0.88);
  border: 1px solid rgba(124, 200, 255, 0.28);
  border-radius: 12px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
  position: relative;
}

.contacts-page[hidden] {
  display: none;
}

.contacts-page-header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(124, 200, 255, 0.18);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.contacts-page-header h2 {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  margin: 6px 0 8px;
}

.contacts-page-header p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  margin: 0;
}

.contacts-page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.contacts-page-actions a,
.contacts-page-actions button {
  align-items: center;
  background: rgba(24, 34, 51, 0.92);
  border: 1px solid rgba(124, 200, 255, 0.24);
  border-radius: 10px;
  color: #eaf4f0;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 850;
  font-family: inherit;
  min-height: 38px;
  padding: 0 14px;
  text-decoration: none;
}

.contacts-page-actions a:first-child {
  background: #f4f8f5;
  border-color: #f4f8f5;
  color: #081018;
}

.contacts-page-actions a:hover,
.contacts-page-actions a:focus-visible {
  border-color: rgba(61, 220, 151, 0.55);
  color: var(--accent);
}

.contacts-page-actions a:first-child:hover,
.contacts-page-actions a:first-child:focus-visible {
  color: #081018;
}

.contacts-page-actions .contacts-danger-action {
  background: rgba(255, 101, 111, 0.08);
  border-color: rgba(255, 101, 111, 0.42);
  color: #ff9298;
  cursor: pointer;
}

.contacts-page-actions .contacts-danger-action:hover,
.contacts-page-actions .contacts-danger-action:focus-visible {
  background: rgba(255, 101, 111, 0.14);
  border-color: rgba(255, 101, 111, 0.68);
  color: #ffd1d4;
}

.contacts-page-actions .contacts-danger-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.email-collection-table {
  display: grid;
  gap: 8px;
}

.email-collection-row {
  align-items: center;
  background: rgba(7, 16, 23, 0.72);
  border: 1px solid rgba(124, 200, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 0.8fr) minmax(180px, 1.3fr) minmax(140px, 0.8fr);
  min-height: 42px;
  padding: 9px 12px;
}

.email-collection-row.is-header {
  background: rgba(124, 200, 255, 0.06);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  min-height: 34px;
  text-transform: uppercase;
}

.email-collection-row strong,
.email-collection-row a,
.email-collection-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.email-collection-row strong {
  color: var(--text);
  font-weight: 900;
}

.email-collection-row a {
  color: var(--accent-2);
  font-weight: 800;
  text-decoration: none;
}

.email-collection-row span {
  color: var(--muted);
}

.email-collection-empty {
  color: var(--muted);
  margin: 0;
  padding: 10px 2px 2px;
}

.pilot-directory-metrics {
  border-bottom: 1px solid rgba(124, 200, 255, 0.16);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -4px 0 22px;
  padding-bottom: 18px;
}

.pilot-directory-metrics div {
  background: rgba(7, 16, 23, 0.42);
  border: 1px solid rgba(124, 200, 255, 0.12);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.pilot-directory-metrics span {
  color: #9eb4b8;
  display: block;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pilot-directory-metrics strong {
  color: var(--text);
  display: block;
  font-size: 1.08rem;
  font-weight: 950;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

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

.pilot-directory-grid {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
}

.pilot-directory-section {
  min-width: 0;
}

.pilot-directory-section .section-title {
  border-bottom: 1px solid rgba(124, 200, 255, 0.12);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.pilot-directory-section .section-title strong {
  align-items: center;
  background: rgba(61, 220, 151, 0.08);
  border: 1px solid rgba(61, 220, 151, 0.24);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  min-height: 28px;
  padding: 0 10px;
}

.player-directory-section .section-title span::before {
  content: "Completed run history";
}

.player-directory-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
}

.player-directory-list,
.player-run-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.player-directory-row {
  align-items: center;
  background: rgba(7, 16, 23, 0.68);
  border: 1px solid rgba(124, 200, 255, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 58px;
  padding: 10px 11px;
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
  width: 100%;
}

.player-directory-row:hover,
.player-directory-row:focus-visible,
.player-directory-row.is-selected {
  background: rgba(11, 29, 39, 0.9);
  border-color: rgba(61, 220, 151, 0.34);
  transform: translateY(-1px);
}

.player-directory-row.is-selected {
  box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.18);
}

.player-directory-row span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.player-directory-row strong {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.player-directory-row em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.player-directory-row b {
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 950;
  white-space: nowrap;
}

.player-directory-row i {
  background: rgba(124, 200, 255, 0.08);
  border: 1px solid rgba(124, 200, 255, 0.16);
  border-radius: 999px;
  color: #b8d8e9;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  padding: 4px 8px;
  white-space: nowrap;
}

.player-run-panel {
  background: rgba(6, 15, 22, 0.35);
  border: 1px solid rgba(124, 200, 255, 0.12);
  border-radius: 10px;
  min-width: 0;
  padding: 12px;
}

.player-run-panel-header {
  border-bottom: 1px solid rgba(124, 200, 255, 0.12);
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.player-run-panel-header span {
  color: #9eb4b8;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-run-panel-header strong {
  color: var(--text);
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.player-run-panel-header em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.player-run-row {
  align-items: center;
  background: rgba(7, 16, 23, 0.58);
  border: 1px solid rgba(124, 200, 255, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  grid-template-columns: 44px 0.7fr 0.5fr minmax(120px, 0.8fr) minmax(160px, 1.1fr);
  min-height: 42px;
  padding: 9px 10px;
}

.player-run-row.is-header {
  background: rgba(124, 200, 255, 0.06);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  min-height: 32px;
  text-transform: uppercase;
}

.player-run-row strong {
  color: #8ed2ff;
  font-weight: 950;
}

.player-run-row span {
  color: #d6e6ef;
  font-size: 0.8rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.player-directory-empty {
  background: rgba(7, 16, 23, 0.52);
  border-radius: 8px;
  color: var(--muted);
  margin: 0;
  padding: 14px;
}

@media (max-width: 760px) {
  .pilot-directory-metrics,
  .pilot-directory-grid,
  .player-directory-layout {
    grid-template-columns: 1fr;
  }

  .email-collection-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .email-collection-row.is-header {
    display: none;
  }

  .player-run-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .player-run-row.is-header {
    display: none;
  }
}

.leaderboard .section-title button {
  background: rgba(24, 34, 51, 0.86);
  border-color: rgba(124, 200, 255, 0.18);
  border-radius: 10px;
  color: #d6e6ef;
  font-size: 0.72rem;
  font-weight: 850;
  min-height: 32px;
  padding: 7px 11px;
}

.leaderboard .section-title button:hover,
.leaderboard .section-title button:focus-visible {
  background: rgba(124, 200, 255, 0.13);
  border-color: rgba(124, 200, 255, 0.38);
  color: #f4f8f5;
}

.leaderboard-reset {
  align-items: center;
  background:
    radial-gradient(circle at 0 100%, rgba(255, 107, 107, 0.08), transparent 32%),
    rgba(7, 15, 22, 0.58);
  border: 1px solid rgba(124, 200, 255, 0.18);
  border-radius: 10px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 14px;
}

.leaderboard-reset span {
  color: #a6abb4;
  display: block;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.leaderboard-reset strong {
  color: #edf7f4;
  display: block;
  font-size: 0.88rem;
  margin-top: 5px;
}

.leaderboard-reset small {
  color: #8f9ba4;
  display: block;
  font-size: 0.72rem;
  margin-top: 3px;
}

.leaderboard-reset button {
  align-items: center;
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.46);
  border-radius: 8px;
  color: #ff8a8a;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 850;
  min-height: 36px;
  padding: 0 14px;
}

.leaderboard-reset button:hover,
.leaderboard-reset button:focus-visible {
  background: rgba(255, 107, 107, 0.16);
  border-color: rgba(255, 107, 107, 0.7);
  color: #ffd0d0;
}

.leaderboard-reset button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.copilot-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  justify-self: end;
  margin-bottom: 0;
  max-width: 100%;
  min-width: 0;
  padding: 0;
}

.copilot-actions button,
.section-title button {
  min-height: 30px;
}

.copilot-actions button {
  align-items: center;
  background: rgba(24, 34, 51, 0.94);
  border-color: rgba(124, 200, 255, 0.08);
  border-radius: 10px;
  color: #aab7cc;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 900;
  gap: 6px;
  justify-content: center;
  line-height: 1;
  min-height: 36px;
  min-width: 0;
  overflow-wrap: normal;
  padding: 8px 10px;
  white-space: nowrap;
  width: auto !important;
}

.copilot-actions button::before {
  color: currentColor;
  content: attr(data-icon);
  font-size: 0.92rem;
  line-height: 1;
  opacity: 0.95;
}

.copilot-actions button:not([data-icon])::before {
  content: none;
}

.copilot-actions svg {
  fill: none;
  flex: 0 0 auto;
  height: 0.98rem;
  opacity: 0.96;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 0.98rem;
}

.copilot-actions button[data-copilot-mode="demo_summary"] {
  grid-column: auto;
}

.copilot-actions button:hover,
.copilot-actions button:focus-visible {
  background: rgba(181, 139, 255, 0.16);
  border-color: rgba(181, 139, 255, 0.38);
  color: #d9ccff;
}

.copilot-actions button.is-active {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-color: rgba(181, 139, 255, 0.82);
  box-shadow:
    0 8px 18px rgba(124, 58, 237, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.copilot-actions button:disabled {
  opacity: 0.46;
}

.section-title button {
  font-size: 0.74rem;
  padding: 5px 10px;
}

.live-player-table {
  background: rgba(6, 15, 22, 0.42);
  border: 1px solid rgba(124, 200, 255, 0.14);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  overflow: hidden;
  padding: 6px;
}

.live-player-row {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(124, 200, 255, 0.055), transparent 42%),
    rgba(7, 16, 23, 0.64);
  border: 1px solid transparent;
  border-radius: 9px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(92px, 1.05fr) 0.52fr 0.34fr 0.62fr minmax(190px, 1.45fr) minmax(112px, 1fr);
  min-height: 40px;
  padding: 8px 10px;
}

.live-player-head {
  background: rgba(18, 36, 46, 0.58);
  border-color: rgba(124, 200, 255, 0.14);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  min-height: 32px;
  text-transform: uppercase;
}

.live-player-row:not(.live-player-head):hover {
  background:
    linear-gradient(90deg, rgba(61, 220, 151, 0.08), transparent 42%),
    rgba(9, 21, 30, 0.86);
  border-color: rgba(61, 220, 151, 0.18);
}

.live-player-row strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.live-player-row span {
  color: #d6e6ef;
  font-size: 0.82rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.live-player-empty {
  background: rgba(7, 16, 23, 0.56);
  border-radius: 9px;
  color: var(--muted);
  padding: 16px;
}

.event-chip-set {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.event-chip {
  align-items: center;
  background: rgba(7, 16, 23, 0.54);
  border: 1px solid rgba(124, 200, 255, 0.16);
  border-radius: 999px;
  display: inline-flex;
  gap: 5px;
  min-height: 24px;
  padding: 3px 7px;
  white-space: nowrap;
}

.event-chip span {
  color: var(--muted);
  font-size: 0.68rem;
}

.event-chip strong {
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1;
}

.ai-output {
  background:
    linear-gradient(180deg, rgba(7, 16, 23, 0.54), rgba(5, 13, 21, 0.74));
  border: 1px solid rgba(124, 200, 255, 0.15);
  border-radius: 10px;
  min-height: 96px;
  padding: 13px;
}

.insight-box p {
  color: var(--text);
  font-size: clamp(0.98rem, 1.15vw, 1.16rem);
  font-weight: 650;
  line-height: 1.55;
  margin: 0 0 10px;
}

.insight-box small {
  color: var(--muted);
  display: block;
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.leaderboard-board {
  display: grid;
  gap: 14px;
}

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

.leaderboard-card {
  background:
    radial-gradient(circle at 10% 0, rgba(61, 220, 151, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(19, 31, 45, 0.96), rgba(12, 22, 31, 0.98));
  border: 1px solid rgba(124, 200, 255, 0.2);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 34px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.leaderboard-card-1 {
  border-color: rgba(61, 220, 151, 0.28);
}

.leaderboard-card-2 {
  background:
    radial-gradient(circle at 10% 0, rgba(124, 200, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(19, 31, 45, 0.96), rgba(12, 22, 31, 0.98));
}

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

.leaderboard-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), #5d6bff);
  border-radius: 14px;
  color: white;
  display: flex;
  font-size: 1.5rem;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  letter-spacing: 0;
  width: 64px;
}

.leaderboard-card-2 .leaderboard-avatar {
  background: linear-gradient(135deg, #13c8d5, #4f86ff);
}

.leaderboard-card-head strong {
  color: var(--text);
  display: block;
  font-size: clamp(1.35rem, 2.25vw, 2.25rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.leaderboard-card-head span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 8px;
}

.leaderboard-card-head em {
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 999px;
  color: var(--warning);
  font-style: normal;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.leaderboard-card-2 .leaderboard-card-head em {
  border-color: rgba(124, 200, 255, 0.42);
  color: var(--accent-2);
}

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

.leaderboard-card-stats div {
  background: rgba(7, 16, 23, 0.54);
  border: 1px solid rgba(124, 200, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
}

.leaderboard-card-stats span,
.leaderboard-efficiency span,
.leaderboard-card-events span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}

.leaderboard-card-stats strong {
  color: var(--text);
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
  margin-top: 8px;
}

.leaderboard-card-stats div:nth-child(2) strong {
  color: var(--accent);
}

.leaderboard-card-2 .leaderboard-card-stats div:nth-child(2) strong {
  color: var(--accent-2);
}

.leaderboard-efficiency {
  display: grid;
  gap: 8px;
}

.leaderboard-efficiency div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.leaderboard-efficiency strong {
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
}

.leaderboard-efficiency i {
  background: rgba(4, 10, 17, 0.72);
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.leaderboard-efficiency i::before {
  background: linear-gradient(90deg, var(--accent), #5d6bff);
  border-radius: inherit;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: var(--efficiency, 0%);
}

.leaderboard-card-2 .leaderboard-efficiency i::before {
  background: linear-gradient(90deg, #13c8d5, #4f86ff);
}

.leaderboard-card-events {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leaderboard-card-events div {
  background: rgba(7, 16, 23, 0.34);
  border-radius: 10px;
  padding: 10px;
}

.leaderboard-card-events strong {
  color: var(--text);
  display: block;
  font-size: 1rem;
  margin-top: 6px;
}

.leaderboard-reserve {
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.leaderboard-reserve span {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-reserve strong,
.leaderboard-reserve em {
  color: var(--text);
  font-style: normal;
  line-height: 1.35;
}

.leaderboard-reserve em {
  color: var(--muted);
  display: block;
  max-width: 68ch;
}

.leaderboard-reserve small {
  color: rgba(214, 245, 239, 0.54);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.leaderboard-reserve.is-risk {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.32);
}

.leaderboard-reserve.is-risk span {
  color: var(--danger);
}

.leaderboard-reserve.is-clean {
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.3);
}

.leaderboard-reserve.is-clean span {
  color: var(--accent);
}

.leaderboard-list {
  background: rgba(6, 15, 22, 0.42);
  border: 1px solid rgba(124, 200, 255, 0.14);
  border-radius: 12px;
  display: grid;
  gap: 5px;
  overflow: hidden;
  padding: 6px;
}

.leaderboard-row {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(124, 200, 255, 0.055), transparent 42%),
    rgba(7, 16, 23, 0.64);
  border: 1px solid transparent;
  border-radius: 9px;
  display: grid;
  gap: 9px;
  grid-template-columns: 46px minmax(90px, 1fr) auto minmax(180px, auto) auto;
  min-height: 46px;
  padding: 9px 11px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.leaderboard-row:hover {
  background:
    linear-gradient(90deg, rgba(124, 200, 255, 0.1), transparent 44%),
    rgba(9, 21, 30, 0.88);
  border-color: rgba(124, 200, 255, 0.22);
  transform: translateY(-1px);
}

.leaderboard-rank {
  align-items: center;
  background: rgba(124, 200, 255, 0.1);
  border: 1px solid rgba(124, 200, 255, 0.18);
  border-radius: 999px;
  color: #8ed2ff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  min-height: 25px;
  width: 38px;
}

.leaderboard-name {
  color: var(--text);
  font-weight: 850;
  min-width: 0;
  overflow-wrap: anywhere;
}

.leaderboard-level {
  background: rgba(124, 200, 255, 0.08);
  border: 1px solid rgba(124, 200, 255, 0.14);
  border-radius: 999px;
  color: #a8bbc8;
  font-size: 0.68rem;
  font-weight: 850;
  padding: 4px 8px;
  white-space: nowrap;
}

.leaderboard-score {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 950;
  white-space: nowrap;
}

.leaderboard-empty {
  background: rgba(7, 16, 23, 0.56);
  border-radius: 9px;
  color: var(--muted);
  padding: 16px;
}

@media (min-width: 1900px) {
  .app-shell.ops-visible {
    grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  }

  .app-shell.ops-visible .ops-panel {
    gap: 18px;
  }

  .ops-dashboard-grid {
    align-items: start;
    column-gap: 16px;
    grid-template-columns: minmax(820px, 1fr) minmax(520px, 660px);
    row-gap: 18px;
  }

  .ops-layout-architecture {
    grid-column: 1;
    grid-row: 1;
  }

  .ops-layout-topology {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    grid-column: 2;
    grid-row: 1;
  }

  .ops-layout-topology .topology-service-row {
    min-height: 66px;
    padding-block: 8px;
  }

  .ops-layout-topology .topology-connector {
    height: 24px;
  }

  .ops-layout-topology .topology-vm-panel {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
  }

  .ops-layout-topology .topology-vm-header {
    min-height: 82px;
    padding: 15px 18px;
  }

  .ops-layout-topology .vm-metrics {
    gap: 14px;
    padding: 20px 18px;
  }

  .ops-layout-topology .vm-metrics div {
    min-height: 92px;
    padding: 16px;
  }

  .ops-layout-topology .vm-list {
    flex: 1;
    grid-auto-rows: minmax(90px, 1fr);
    min-height: 0;
  }

  .ops-layout-topology .vm-list li {
    min-height: 90px;
    padding: 14px 18px;
  }

  .ops-layout-topology .stress-control {
    margin-top: 0;
    min-height: 96px;
    padding: 20px 18px;
  }

  .ops-layout-live-players {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .ops-layout-ai {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ops-layout-leaderboard {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .ops-layout-ai .ai-panel-hero {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  .ops-layout-ai .copilot-actions {
    justify-content: flex-start;
    justify-self: start;
  }

  .ops-layout-ai .ai-panel-copy h3 {
    font-size: clamp(1.55rem, 1.45vw, 2.1rem);
  }
}

@media (min-width: 2350px) {
  .app-shell.ops-visible .ops-panel {
    margin-inline: 0 auto;
    max-width: 1980px;
    width: 100%;
  }

  .ops-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(560px, 680px);
  }
}

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

  .leaderboard-row {
    grid-template-columns: 42px minmax(96px, 1fr) auto auto;
  }

  .leaderboard-row .event-chip-set {
    grid-column: 2 / -1;
  }
}

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

  .app-shell.ops-visible {
    grid-template-columns: 1fr;
  }

  .ops-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: auto;
  }

  .leaderboard-reset {
    align-items: stretch;
    flex-direction: column;
  }

  .leaderboard-reset button {
    justify-content: center;
    width: 100%;
  }

  .contacts-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .contacts-page-actions {
    justify-content: flex-start;
  }

  .game-root {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  body:not(.game-active) .app-shell:not(.ops-visible) {
    min-height: 100dvh;
  }

  .game-stage,
  .ops-panel {
    padding: 12px;
  }

  body:not(.game-active) .app-shell:not(.ops-visible) .game-stage {
    align-items: center;
    background:
      linear-gradient(rgba(3, 8, 20, 0.56), rgba(3, 8, 20, 0.72)),
      url("/assets/backgrounds/parallax-space-stars.png") center / 520px auto repeat,
      #030814;
    justify-content: center;
    min-height: 100dvh;
    padding:
      max(18px, env(safe-area-inset-top))
      20px
      max(18px, env(safe-area-inset-bottom));
  }

  body:not(.game-active) .app-shell:not(.ops-visible) .top-strip,
  body:not(.game-active) .app-shell:not(.ops-visible) .game-root {
    display: none;
  }

  body:not(.game-active) .app-shell:not(.ops-visible) .mobile-register-hero {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .mobile-register-logo {
    display: block;
    height: 46px;
    object-fit: contain;
    width: 72px;
  }

  .mobile-register-hero span {
    color: #ff3f2f;
    display: block;
    font-family: monospace;
    font-size: clamp(1rem, 5vw, 1.35rem);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 0 #3a0500;
  }

  .mobile-register-hero strong {
    color: var(--accent);
    display: block;
    font-family: monospace;
    font-size: clamp(2.25rem, 12vw, 3.35rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.98;
    text-transform: uppercase;
    text-shadow: 0 4px 0 #001f18;
  }

  .mobile-register-guide {
    display: block;
    height: min(45dvh, 360px);
    margin-top: 8px;
    object-fit: contain;
    object-position: center bottom;
    width: min(88vw, 380px);
  }

  body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar {
    background: rgba(5, 13, 21, 0.78);
    border-color: rgba(124, 200, 255, 0.45);
    gap: 10px;
    grid-template-columns: 1fr;
    margin: 0;
    max-width: 380px;
    padding: 12px;
    width: 100%;
  }

  body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar label {
    color: #d9faff;
    font-family: monospace;
    font-size: 0.95rem;
  }

  body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar input {
    font: 700 16px monospace;
    min-height: 46px;
    text-align: center;
  }

  body:not(.game-active) .app-shell:not(.ops-visible) .pilot-bar button {
    background: #c74634;
    border-color: #ff7a66;
    color: #ffffff;
    font: 900 1.05rem monospace;
    min-height: 48px;
    text-transform: uppercase;
  }

  body.game-active .app-shell:not(.ops-visible) .mobile-register-hero {
    display: none;
  }

  .architecture-map {
    display: grid;
    gap: 8px;
    min-height: 0;
  }

  .arch-links,
  .arch-flow-label {
    display: none;
  }

  .arch-route-legend,
  .arch-node {
    position: static;
  }

  .arch-node {
    width: auto;
  }

  .game-root {
    min-height: 0;
  }

  body.game-active .app-shell:not(.ops-visible) .game-stage {
    padding: 0;
  }

  .game-coach-panel {
    bottom: max(8px, env(safe-area-inset-bottom));
    gap: 7px;
    left: 8px;
    padding: 8px;
    right: 8px;
  }

  .game-coach-panel.is-editing {
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .game-coach-title {
    font-size: 10px;
  }

  .game-coach-question {
    font-size: 11px;
    line-height: 1.25;
  }

  .game-coach-row {
    gap: 5px;
  }

  .game-coach-row input {
    font-size: 16px;
    min-height: 38px;
    padding: 8px;
  }
}
