:root {
  color-scheme: dark;
  --paper: #06110f;
  --paper-bright: #0d2421;
  --ink: #f3f7f1;
  --muted: #9eb2ad;
  --line: rgba(194, 235, 221, 0.14);
  --blue: #77efbf;
  --coral: #ff9d79;
  --yellow: #77efbf;
  --mint: #34bd91;
  --launcher-base-2: #0a1b19;
  --launcher-panel-2: #12302d;
  --launcher-line-strong: rgba(194, 235, 221, 0.28);
  --launcher-muted-2: #728783;
  --launcher-amber: #f4c96b;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

html {
  background: var(--paper);
}

body.launcher-theme {
  min-height: 100svh;
  background:
    radial-gradient(circle at 76% -15%, rgba(52, 189, 145, 0.17), transparent 34%),
    radial-gradient(circle at 14% 75%, rgba(255, 157, 121, 0.06), transparent 28%),
    linear-gradient(135deg, #071512 0%, #06110f 56%, #081917 100%);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.launcher-theme::before {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 4px 4px;
  content: "";
  mix-blend-mode: soft-light;
}

.launcher-theme button:focus-visible,
.launcher-theme a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.launcher-theme .topbar {
  border-color: var(--line);
  background: rgba(6, 17, 15, 0.91);
  backdrop-filter: blur(18px);
}

.launcher-theme .launcher-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: start;
  gap: 18px;
}

.launcher-theme .brand {
  gap: 13px;
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
}

.launcher-theme .brand-logo {
  width: 70px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
}

.launcher-theme .brand-logo svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.launcher-theme .brand-logo .logo-fg { fill: var(--ink); }
.launcher-theme .brand-logo .logo-bg-stroke { stroke: var(--paper); }
.launcher-theme .brand-logo .logo-fade-06 { fill: color-mix(in srgb, var(--ink) 6%, var(--paper)); }
.launcher-theme .brand-logo .logo-fade-11 { fill: color-mix(in srgb, var(--ink) 11%, var(--paper)); }
.launcher-theme .brand-logo .logo-fade-19 { fill: color-mix(in srgb, var(--ink) 19%, var(--paper)); }
.launcher-theme .brand-logo .logo-fade-31 { fill: color-mix(in srgb, var(--ink) 31%, var(--paper)); }

.launcher-theme .brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  transform: none;
  border: 1px solid rgba(119, 239, 191, 0.52);
  border-radius: 0;
  background: linear-gradient(145deg, rgba(119, 239, 191, 0.2), rgba(119, 239, 191, 0.03));
  box-shadow: inset 0 0 24px rgba(119, 239, 191, 0.08);
  color: transparent;
}

.launcher-theme .brand-mark::before,
.launcher-theme .brand-mark::after {
  position: absolute;
  background: var(--blue);
  content: "";
}

.launcher-theme .brand-mark::before {
  top: 17px;
  left: 9px;
  width: 19px;
  height: 2px;
}

.launcher-theme .brand-mark::after {
  top: 9px;
  left: 18px;
  width: 2px;
  height: 18px;
}

.launcher-theme .brand-copy strong,
.launcher-theme .brand-copy small {
  display: block;
}

.launcher-theme .brand-copy strong {
  color: var(--ink);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.launcher-theme .brand-copy small {
  margin-top: 5px;
  color: var(--launcher-muted-2);
  font: 9px/1 "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.12em;
}

.launcher-theme .launcher-return {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--launcher-line-strong);
  padding: 0 14px;
  color: #c2d2cd;
  background: rgba(255, 255, 255, 0.018);
  font: 11px/1 "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.launcher-theme .launcher-return span {
  color: var(--blue);
  font-size: 17px;
  line-height: 1;
}

.launcher-theme .launcher-return:hover {
  border-color: rgba(119, 239, 191, 0.52);
  color: var(--blue);
  background: rgba(119, 239, 191, 0.055);
}

.launcher-theme .session-strip {
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
}

.launcher-theme .session-strip > div + div {
  border-color: var(--line);
}

.launcher-theme .session-strip span,
.launcher-theme .panel-heading p,
.launcher-theme .challenge-copy > p:first-child,
.launcher-theme .match-score span,
.launcher-theme .footer-note,
.launcher-theme .status-chip {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.launcher-theme .session-strip span {
  color: var(--launcher-muted-2);
}

.launcher-theme .session-strip strong {
  color: var(--ink);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
}

.launcher-theme .header-actions {
  gap: 10px;
}

.launcher-theme .mask-toggle {
  border-color: var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.026);
}

.launcher-theme .mask-toggle > span {
  color: var(--blue);
}

.launcher-theme .mask-toggle[aria-pressed="true"] {
  border-color: rgba(119, 239, 191, 0.55);
  background: rgba(119, 239, 191, 0.08);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.launcher-theme .text-button {
  border-color: var(--launcher-line-strong);
  color: #c2d2cd;
}

.launcher-theme .text-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.launcher-theme .intro-copy .eyebrow,
.launcher-theme .challenge-copy > p:first-child,
.launcher-theme .result-card > span {
  color: var(--blue);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.launcher-theme .intro-copy h1,
.launcher-theme .challenge-copy h2,
.launcher-theme .camera-gate strong,
.launcher-theme .result-card h2 {
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  letter-spacing: -0.025em;
}

.launcher-theme .intro-copy h1 em {
  color: var(--ink);
}

.launcher-theme .intro-copy h1 em::after {
  display: none;
}

.launcher-theme .intro-copy > p:last-child {
  color: #c6d5d0;
}

.launcher-theme .meme-button {
  position: relative;
  border-color: var(--line);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(119, 239, 191, 0.045), transparent 62%),
    rgba(13, 36, 33, 0.88);
  color: var(--ink);
  box-shadow: none;
}

.launcher-theme .meme-button:hover {
  border-color: rgba(119, 239, 191, 0.52);
}

.launcher-theme .meme-button[aria-current="true"] {
  border: 1px solid var(--blue);
  background:
    linear-gradient(145deg, rgba(119, 239, 191, 0.12), transparent 70%),
    var(--launcher-panel-2);
  box-shadow: inset 0 -3px 0 var(--blue);
}

.launcher-theme .meme-button img {
  border-radius: 0;
  filter: saturate(0.76) brightness(0.82);
}

.launcher-theme .meme-button[aria-current="true"] img {
  filter: saturate(0.95) brightness(0.98);
}

.launcher-theme .meme-button small {
  color: var(--launcher-muted-2);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.launcher-theme .meme-button[data-complete="true"]::after {
  border-radius: 0;
  background: var(--blue);
  color: #071512;
}

.launcher-theme .panel {
  border: 1px solid var(--launcher-line-strong);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(27, 65, 59, 0.63), rgba(8, 24, 21, 0.96) 45%),
    var(--paper-bright);
  box-shadow: var(--shadow);
}

.launcher-theme .target-panel,
.launcher-theme .camera-panel {
  transform: none;
}

.launcher-theme .panel-index {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  font: 10px/1 "Cascadia Mono", Consolas, monospace;
}

.launcher-theme .panel-index::after {
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 0 3px 9px;
  background: var(--blue);
  content: "";
}

.launcher-theme .status-chip {
  border-color: var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.launcher-theme .status-chip[data-state="ready"],
.launcher-theme .status-chip[data-state="tracking"],
.launcher-theme .status-chip[data-state="captured"] {
  border-color: rgba(119, 239, 191, 0.46);
  background: rgba(119, 239, 191, 0.08);
  color: var(--blue);
}

.launcher-theme .status-chip[data-state="missing"],
.launcher-theme .status-chip[data-state="error"] {
  border-color: rgba(244, 201, 107, 0.45);
  background: rgba(244, 201, 107, 0.08);
  color: var(--launcher-amber);
}

.launcher-theme .target-stage,
.launcher-theme .camera-stage {
  border: 1px solid var(--launcher-line-strong);
  border-radius: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(119, 239, 191, 0.13), transparent 27%),
    linear-gradient(145deg, #102a27, #081512 74%);
}

.launcher-theme .target-stage::after,
.launcher-theme .camera-stage::after {
  position: absolute;
  z-index: 1;
  inset: 18px;
  border: 1px solid rgba(194, 235, 221, 0.07);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(194, 235, 221, 0.045) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(194, 235, 221, 0.045) 50%, transparent 50.2%);
  content: "";
  pointer-events: none;
}

.launcher-theme .target-stage figcaption,
.launcher-theme .live-label {
  border-color: var(--line);
  border-radius: 0;
  background: rgba(5, 15, 13, 0.78);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 400;
}

.launcher-theme .live-label span {
  background: var(--coral);
}

.launcher-theme .camera-gate {
  background:
    radial-gradient(circle at 50% 42%, rgba(119, 239, 191, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(16, 42, 39, 0.98), rgba(8, 21, 18, 0.99) 74%);
}

.launcher-theme .camera-gate::after {
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: rgba(167, 196, 187, 0.48);
  content: "camera input / local processing";
  font: 9px/1.4 "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launcher-theme .camera-gate-icon {
  border-color: rgba(119, 239, 191, 0.42);
  border-radius: 0;
  background: rgba(119, 239, 191, 0.05);
  color: var(--blue);
  box-shadow: 0 0 50px rgba(119, 239, 191, 0.08);
}

.launcher-theme .camera-gate p {
  color: var(--muted);
}

.launcher-theme .primary-button {
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--blue);
  box-shadow: 0 11px 28px rgba(52, 189, 145, 0.16);
  color: #071512;
  font-weight: 720;
}

.launcher-theme .primary-button:hover {
  transform: translateY(-1px);
  background: #97f6d1;
  box-shadow: 0 13px 30px rgba(52, 189, 145, 0.2);
}

.launcher-theme .match-readout {
  border-color: var(--line);
  border-radius: 0;
  background: rgba(5, 15, 13, 0.45);
}

.launcher-theme .match-score strong {
  color: var(--blue);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
}

.launcher-theme .match-summary > p {
  color: var(--muted);
}

.launcher-theme .heuristic-item {
  border-color: var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
}

.launcher-theme .heuristic-item span {
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 400;
}

.launcher-theme .heuristic-track {
  border-radius: 0;
  background: rgba(181, 208, 199, 0.16);
}

.launcher-theme .heuristic-track i {
  border-radius: 0;
  background: var(--blue);
}

.launcher-theme .hold-track {
  border: 1px solid var(--launcher-line-strong);
  border-radius: 0;
  background: rgba(181, 208, 199, 0.14);
}

.launcher-theme #holdBar {
  background: linear-gradient(90deg, var(--mint), var(--blue));
}

.launcher-theme .face-off-mark {
  border: 1px solid rgba(119, 239, 191, 0.52);
  border-radius: 0;
  background: rgba(5, 15, 13, 0.92);
  box-shadow: 0 0 32px rgba(119, 239, 191, 0.13);
  color: var(--blue);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.launcher-theme .challenge-copy > p:last-child {
  color: var(--muted);
}

.launcher-theme .metric-chips span {
  border-color: var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
  color: #b4c7c1;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 400;
}

.launcher-theme .footer-note {
  border-top: 1px solid var(--line);
  color: var(--launcher-muted-2);
}

.launcher-theme .footer-note span,
.launcher-theme .footer-note strong {
  color: var(--muted);
}

.launcher-theme .result-overlay {
  background: rgba(2, 9, 8, 0.82);
}

.launcher-theme .result-card {
  transform: none;
  border: 1px solid var(--launcher-line-strong);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(27, 65, 59, 0.78), rgba(8, 24, 21, 0.98) 52%),
    var(--paper-bright);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.launcher-theme .result-card::before,
.launcher-theme .result-card::after {
  display: none;
}

.launcher-theme .result-card p {
  color: #c6d5d0;
}

.launcher-theme .gallery-shot {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--launcher-base-2);
}

.launcher-theme .gallery-shot span {
  color: var(--blue);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.launcher-theme .update-notice {
  border: 1px solid rgba(244, 201, 107, 0.48);
  border-radius: 0;
  background: #1c251f;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.launcher-theme .update-notice strong {
  color: var(--launcher-amber);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
}

.launcher-theme .update-notice button {
  border: 1px solid var(--launcher-line-strong);
  border-radius: 0;
  background: var(--blue);
  color: #071512;
}

@media (min-width: 951px) {
  html,
  body.launcher-theme {
    height: 100%;
    overflow: hidden;
  }

  .launcher-theme .game-shell {
    display: grid;
    width: min(1760px, calc(100% - 72px));
    height: 100dvh;
    padding: 0 0 10px;
    grid-template-rows: 64px 58px 72px minmax(0, 1fr) 24px;
  }

  .launcher-theme .topbar {
    min-height: 0;
    height: 64px;
    gap: 28px;
    border-bottom-width: 1px;
  }

  .launcher-theme .session-strip > div {
    min-width: 92px;
    padding: 7px 14px;
  }

  .launcher-theme .session-strip span {
    font-size: 8px;
  }

  .launcher-theme .session-strip strong {
    font-size: 15px;
  }

  .launcher-theme .intro-copy {
    display: grid;
    min-height: 0;
    padding: 10px 0 8px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    grid-template-rows: auto 1fr;
    align-items: end;
    gap: 1px 36px;
  }

  .launcher-theme .intro-copy .eyebrow {
    grid-column: 1;
    margin: 0;
    font-size: 9px;
  }

  .launcher-theme .intro-copy h1 {
    grid-column: 1;
    margin: 2px 0 0;
    font-size: 29px;
    line-height: 0.96;
  }

  .launcher-theme .intro-copy > p:last-child {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .launcher-theme .meme-picker {
    display: grid;
    min-height: 0;
    margin: 0 0 8px;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
  }

  .launcher-theme .meme-button {
    display: grid;
    height: 64px;
    min-width: 0;
    padding: 6px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
  }

  .launcher-theme .meme-button img {
    width: 44px;
    height: 50px;
  }

  .launcher-theme .meme-button strong {
    font-family: Bahnschrift, "Arial Narrow", sans-serif;
    font-size: 10px;
    line-height: 1.05;
  }

  .launcher-theme .meme-button small {
    margin-top: 5px;
    font-size: 7px;
  }

  .launcher-theme .meme-button[data-complete="true"]::after {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .launcher-theme .face-off {
    min-height: 0;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 12px;
  }

  .launcher-theme .panel {
    display: flex;
    min-height: 0;
    padding: 12px;
    flex-direction: column;
  }

  .launcher-theme .panel-heading {
    min-height: 25px;
    margin-bottom: 8px;
  }

  .launcher-theme .panel-heading p {
    font-size: 9px;
  }

  .launcher-theme .status-chip {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 8px;
  }

  .launcher-theme .target-stage,
  .launcher-theme .camera-stage {
    min-height: 0;
    height: auto;
    flex: 1 1 auto;
  }

  .launcher-theme .match-readout {
    flex: 0 0 104px;
    padding: 9px 1px 0;
    border: 0;
    background: transparent;
  }

  .launcher-theme .match-summary {
    margin-bottom: 7px;
    gap: 12px;
  }

  .launcher-theme .match-score strong {
    font-size: 26px;
  }

  .launcher-theme .match-summary > p {
    max-width: 330px;
    font-size: 9px;
  }

  .launcher-theme .heuristic-scores {
    gap: 6px;
    margin-bottom: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .launcher-theme .heuristic-item {
    padding: 6px 8px;
  }

  .launcher-theme .heuristic-item > div:first-child {
    margin-bottom: 4px;
  }

  .launcher-theme .heuristic-track {
    height: 3px;
  }

  .launcher-theme .hold-track {
    height: 6px;
  }

  .launcher-theme .challenge-copy {
    flex: 0 0 auto;
    padding: 10px 1px 0;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.82fr);
    gap: 4px 16px;
  }

  .launcher-theme .challenge-copy > p:first-child {
    font-size: 8px;
  }

  .launcher-theme .challenge-copy h2 {
    font-size: 22px;
  }

  .launcher-theme .challenge-copy > p:last-child {
    font-size: 10px;
  }

  .launcher-theme .metric-chips {
    min-height: 24px;
    margin: 7px 1px 0;
  }

  .launcher-theme .metric-chips span {
    padding: 4px 7px;
    font-size: 8px;
  }

  .launcher-theme .face-off-mark {
    top: 44%;
    width: 42px;
    height: 42px;
    font-size: 11px;
  }

  .launcher-theme .footer-note {
    min-height: 0;
    padding: 7px 0 0;
    gap: 18px;
    font-size: 8px;
  }

  .launcher-theme .footer-note p {
    font-size: 8px;
  }
}

@media (max-width: 950px) {
  .launcher-theme .game-shell {
    padding-top: 0;
  }

  .launcher-theme .intro-copy {
    padding-top: 24px;
  }

  .launcher-theme .face-off-mark {
    display: none;
  }
}

@media (max-width: 620px) {
  .launcher-theme .game-shell {
    width: min(100% - 16px, 1440px);
  }

  .launcher-theme .topbar {
    background: rgba(6, 17, 15, 0.94);
  }

  .launcher-theme .brand {
    gap: 4px;
  }

  .launcher-theme .launcher-nav {
    gap: 6px;
  }

  .launcher-theme .brand-logo {
    width: 34px;
    height: 30px;
  }

  .launcher-theme .launcher-return {
    width: 34px;
    min-height: 34px;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .launcher-theme .launcher-return strong {
    display: none;
  }

  .launcher-theme .brand-mark {
    width: 30px;
    height: 34px;
  }

  .launcher-theme .brand-mark::before {
    top: 16px;
    left: 7px;
    width: 15px;
  }

  .launcher-theme .brand-mark::after {
    top: 8px;
    left: 14px;
    height: 17px;
  }

  .launcher-theme .brand-copy {
    display: none;
  }

  .launcher-theme .session-strip {
    border: 0;
    background: transparent;
  }

  .launcher-theme .mask-toggle {
    border: 0;
    background: transparent;
  }

  .launcher-theme .meme-button,
  .launcher-theme .meme-button img,
  .launcher-theme .panel,
  .launcher-theme .camera-stage,
  .launcher-theme .target-stage,
  .launcher-theme .panel-heading p,
  .launcher-theme .status-chip,
  .launcher-theme .primary-button,
  .launcher-theme .match-readout,
  .launcher-theme .update-notice,
  .launcher-theme .result-card,
  .launcher-theme .gallery-shot {
    border-radius: 0;
  }

  .launcher-theme .panel {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  }

  .launcher-theme .camera-panel {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .launcher-theme .panel-heading p,
  .launcher-theme .status-chip {
    background: rgba(5, 15, 13, 0.72);
  }

  .launcher-theme .camera-gate::after {
    display: none;
  }

  .launcher-theme .match-readout {
    border-color: var(--launcher-line-strong);
    background: linear-gradient(135deg, #0d2421, #081512);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
  }

  .launcher-theme .challenge-copy {
    background: linear-gradient(transparent, rgba(5, 15, 13, 0.96) 46%);
  }

  .launcher-theme .challenge-copy > p:first-child {
    color: var(--blue);
  }
}

@media (prefers-reduced-motion: reduce) {
  .launcher-theme *,
  .launcher-theme *::before,
  .launcher-theme *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
