:root {
  color-scheme: dark;
  --ink: #f8f3e8;
  --paper: #fffaf0;
  --dark: #101112;
  --darker: #070808;
  --panel: rgba(18, 19, 18, 0.92);
  --panel-strong: rgba(9, 10, 9, 0.98);
  --line: rgba(255, 255, 255, 0.18);
  --muted: #c9c2b4;
  --green: #70e06f;
  --green-deep: #1f8f50;
  --amber: #f4ba46;
  --red: #ee5d5d;
  --cyan: #4ecbd5;
  --violet: #a78bfa;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(112, 224, 111, 0.12), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(244, 186, 70, 0.12), transparent 28%),
    linear-gradient(145deg, #10110f 0%, #070808 46%, #16110d 100%);
}

button {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible {
  outline: 3px solid rgba(78, 203, 213, 0.72);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.captcha-app {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: clamp(26px, 5vw, 56px);
  padding: clamp(12px, 2.4vw, 28px);
}

.portal-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.portal-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(12px, 2vw, 22px);
}

.portal-heading p {
  margin: 0 0 4px;
  color: var(--amber);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-heading h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

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

.tool-launch {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(112, 224, 111, 0.54);
  color: #d8ffd6;
  background:
    linear-gradient(135deg, rgba(112, 224, 111, 0.2), rgba(78, 203, 213, 0.12)),
    rgba(31, 143, 80, 0.24);
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.tool-launch:hover,
.tool-launch:focus-visible {
  border-color: rgba(244, 186, 70, 0.72);
  color: var(--paper);
}

.session-pill {
  min-width: 112px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(238, 93, 93, 0.46);
  color: #ffd3d3;
  background: rgba(90, 18, 18, 0.52);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.session-pill.is-verified {
  border-color: rgba(112, 224, 111, 0.54);
  color: #d8ffd6;
  background: rgba(31, 143, 80, 0.34);
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(12px, 2vw, 18px);
  align-items: start;
}

.member-terminal,
.captcha-station,
.challenge-shell,
.result-panel,
.standby-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.member-terminal {
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.terminal-topline {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.terminal-topline span,
.challenge-header span,
.challenge-meta time,
.suspicion-meter small,
.result-panel span,
.result-stats small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-topline strong {
  color: #ffd3d3;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.terminal-topline.is-open strong {
  color: #d8ffd6;
}

.terminal-window {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
}

.terminal-window::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.terminal-window.is-unlocked::after {
  content: "";
  position: absolute;
  inset: auto 8% 8% 8%;
  height: 92px;
  opacity: 0.34;
  background:
    radial-gradient(ellipse at 18% 42%, rgba(112, 224, 111, 0.9), transparent 34%),
    radial-gradient(ellipse at 50% 50%, rgba(78, 203, 213, 0.65), transparent 42%),
    radial-gradient(ellipse at 82% 46%, rgba(244, 186, 70, 0.7), transparent 34%);
  filter: blur(16px);
  pointer-events: none;
}

.terminal-row,
.reserve-button,
.terminal-tool-card {
  position: relative;
  z-index: 1;
}

.terminal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
}

.terminal-row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.terminal-row strong {
  text-align: right;
  font-size: 0.95rem;
}

.reserve-button {
  min-height: 50px;
  margin-top: 4px;
  border: 1px solid rgba(112, 224, 111, 0.4);
  color: #061006;
  background: var(--green);
  font-weight: 950;
  cursor: pointer;
}

.reserve-button:disabled {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
}

.terminal-tool-card {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(112, 224, 111, 0.34);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 20%, rgba(112, 224, 111, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(112, 224, 111, 0.14), rgba(244, 186, 70, 0.08)),
    rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.terminal-tool-card:hover,
.terminal-tool-card:focus-visible {
  border-color: rgba(244, 186, 70, 0.72);
}

.terminal-tool-card span,
.terminal-tool-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-tool-card strong {
  color: #d8ffd6;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 0.98;
}

.terminal-tool-card small {
  color: rgba(248, 243, 232, 0.66);
  letter-spacing: 0;
  text-transform: none;
}

.captcha-station {
  min-height: 560px;
  padding: clamp(10px, 1.7vw, 16px);
  display: grid;
  align-content: start;
  gap: 12px;
}

.fake-widget {
  min-height: 86px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--paper);
  color: #1b1c1b;
}

.check-button {
  width: 44px;
  height: 44px;
  border: 2px solid #8c8c8c;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.check-button span {
  width: 24px;
  height: 14px;
  display: block;
  border-left: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: rotate(-45deg) translate(2px, -2px);
}

.fake-widget.is-active .check-button {
  border-color: var(--cyan);
}

.fake-widget.is-verified .check-button {
  border-color: var(--green-deep);
}

.fake-widget.is-verified .check-button span {
  border-color: var(--green-deep);
}

.widget-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.widget-copy strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.1;
}

.widget-copy small {
  color: #5b5d59;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sound-toggle,
.secondary-button,
.verify-button {
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 0 13px;
  font-weight: 900;
  cursor: pointer;
}

.sound-toggle {
  color: #1b1c1b;
  background: #eeeeea;
}

.standby-panel {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: center;
  padding: clamp(12px, 1.8vw, 18px);
}

.standby-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.standby-map span {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.16);
}

.standby-map span::after {
  content: "";
  position: absolute;
  inset: 26%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.standby-map .is-warm::before,
.standby-map .is-origin::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(112, 224, 111, 0.65), transparent 62%);
  filter: blur(4px);
}

.standby-map .is-origin::before {
  inset: 8%;
  background:
    radial-gradient(circle, rgba(244, 186, 70, 0.72), transparent 58%),
    radial-gradient(circle at 72% 35%, rgba(112, 224, 111, 0.55), transparent 42%);
  animation: standby-pulse 1.9s ease-in-out infinite;
}

@keyframes standby-pulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.78;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.standby-copy {
  display: grid;
  gap: 8px;
}

.standby-copy span {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standby-copy strong {
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 0.98;
}

.standby-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.challenge-shell {
  padding: clamp(12px, 1.8vw, 18px);
}

.challenge-shell.is-shaking {
  animation: shake 250ms linear;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-7px);
  }

  75% {
    transform: translateX(7px);
  }
}

.challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 10px;
}

.challenge-header h2 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1;
}

.suspicion-meter {
  min-width: 108px;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(244, 186, 70, 0.36);
  background: rgba(244, 186, 70, 0.1);
}

.suspicion-meter strong {
  color: var(--amber);
  font-size: 1.1rem;
}

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

.round-pips {
  display: flex;
  gap: 6px;
}

.round-pips span {
  width: 26px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.round-pips span.is-complete {
  border-color: rgba(112, 224, 111, 0.72);
  background: var(--green);
}

.round-pips span.is-current {
  border-color: rgba(78, 203, 213, 0.82);
  background: var(--cyan);
}

.round-prompt {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--paper);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  font-weight: 850;
  line-height: 1.25;
}

.arena {
  min-height: 318px;
}

.choice-grid {
  display: grid;
  gap: 8px;
}

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

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

.choice-tile,
.suspect-card,
.meter-tile {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  overflow: hidden;
}

.choice-tile {
  aspect-ratio: 1 / 0.82;
  padding: 8px;
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.choice-tile:hover,
.choice-tile:focus-visible,
.suspect-card:hover,
.suspect-card:focus-visible,
.meter-tile:hover,
.meter-tile:focus-visible {
  border-color: rgba(78, 203, 213, 0.78);
}

.choice-tile.is-selected,
.suspect-card.is-selected,
.meter-tile.is-selected {
  border-color: rgba(112, 224, 111, 0.95);
  background:
    linear-gradient(135deg, rgba(112, 224, 111, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.choice-tile strong,
.suspect-card strong,
.meter-tile strong {
  position: relative;
  z-index: 2;
  overflow-wrap: anywhere;
  font-size: clamp(0.76rem, 1.6vw, 0.95rem);
  line-height: 1.05;
}

.tile-tag,
.tile-note,
.suspect-tell,
.meter-note {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: clamp(0.62rem, 1.2vw, 0.72rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.tile-tag {
  color: #101112;
  background: var(--amber);
  justify-self: start;
  padding: 3px 6px;
}

.choice-tile.is-origin .tile-tag {
  background: var(--green);
}

.airflow {
  position: absolute;
  inset: auto 8px 8px auto;
  z-index: 2;
  min-width: 42px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(112, 224, 111, 0.45);
  color: #d8ffd6;
  background: rgba(31, 143, 80, 0.24);
  font-size: 0.72rem;
  font-weight: 950;
}

.airflow.is-decoy {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.vapor {
  position: absolute;
  inset: 18% 8% 8% 18%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.has-vapor .vapor,
.is-origin .vapor,
.is-path .vapor {
  opacity: 1;
}

.vapor::before,
.vapor::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(112, 224, 111, 0.5);
  border-radius: 50%;
  filter: blur(0.2px);
}

.vapor::before {
  width: 58%;
  height: 36%;
  left: 8%;
  top: 30%;
}

.vapor::after {
  width: 42%;
  height: 28%;
  right: 8%;
  top: 12%;
}

.has-vapor .vapor {
  animation: vapor-breathe 1.8s ease-in-out infinite;
}

@keyframes vapor-breathe {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(3px, -3px) scale(1.06);
  }
}

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

.suspect-card {
  min-height: 132px;
  padding: 10px;
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.suspect-face {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 38%, #1b1c1b 0 3px, transparent 4px),
    radial-gradient(circle at 65% 38%, #1b1c1b 0 3px, transparent 4px),
    linear-gradient(#e7c28f, #bd8358);
}

.suspect-face::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 30px;
  width: 14px;
  height: 5px;
  border-bottom: 2px solid #1b1c1b;
}

.suspect-card.has-source::before {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 70px;
  height: 50px;
  opacity: 0.9;
  background:
    radial-gradient(ellipse at 28% 58%, rgba(112, 224, 111, 0.58), transparent 56%),
    radial-gradient(ellipse at 68% 30%, rgba(112, 224, 111, 0.42), transparent 58%);
  filter: blur(5px);
}

.suspect-card.has-source .suspect-face::after {
  width: 18px;
  left: 15px;
  border-bottom-color: var(--red);
}

.suspect-tell {
  color: #d7cfbf;
}

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

.meter-tile {
  min-height: 104px;
  padding: 9px;
  display: grid;
  align-content: space-between;
}

.meter-gauge {
  position: relative;
  z-index: 2;
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.meter-gauge span {
  display: block;
  height: 100%;
  width: var(--meter-width);
  background: var(--meter-color);
}

.meter-value {
  position: relative;
  z-index: 2;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 950;
  line-height: 0.9;
}

.meter-note {
  color: var(--muted);
}

.challenge-actions,
.result-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(244, 186, 70, 0.72);
}

.verify-button {
  min-width: 112px;
  border-color: rgba(112, 224, 111, 0.62);
  color: #071107;
  background: var(--green);
}

.verify-button:disabled {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
}

.feedback {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.feedback.is-good {
  color: #d8ffd6;
}

.feedback.is-bad {
  color: #ffd3d3;
}

.result-panel {
  padding: clamp(16px, 2.2vw, 24px);
}

.result-panel span {
  color: var(--green);
}

.result-panel h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.95;
}

.result-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 4px;
}

.result-stats div {
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.result-stats strong {
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  line-height: 1;
}

.result-stats small {
  color: var(--muted);
}

.fartbot {
  position: fixed;
  right: clamp(12px, 2vw, 22px);
  bottom: clamp(12px, 2vw, 22px);
  z-index: 20;
  width: min(390px, calc(100vw - 24px));
  border: 1px solid rgba(112, 224, 111, 0.42);
  background:
    linear-gradient(135deg, rgba(112, 224, 111, 0.11), rgba(244, 186, 70, 0.08) 48%, rgba(78, 203, 213, 0.08)),
    var(--panel-strong);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  overflow: visible;
}

.fartbot.is-collapsed {
  width: min(330px, calc(100vw - 24px));
}

.fartbot.is-collapsed #fartBotMute {
  display: none;
}

.fartbot.is-collapsed #fartBotToggle {
  min-width: 104px;
  min-height: 44px;
  border-color: rgba(112, 224, 111, 0.68);
  color: #071107;
  background: var(--green);
  font-size: 0.82rem;
}

.fartbot-header {
  position: relative;
  z-index: 2;
  min-height: 84px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.32);
}

.fartbot-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(112, 224, 111, 0.6);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 3px rgba(112, 224, 111, 0.08);
  overflow: hidden;
}

.fartbot-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.12);
}

.fartbot-title {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fartbot-title span,
.fartbot-title small,
.fartbot-message-label {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fartbot-title strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  line-height: 1;
}

.fartbot-title small {
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: none;
}

.fartbot-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fartbot-control {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 950;
  cursor: pointer;
}

.fartbot-control:hover,
.fartbot-control:focus-visible,
.fartbot-form button:hover,
.fartbot-form button:focus-visible {
  border-color: rgba(244, 186, 70, 0.78);
}

.fartbot-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.fartbot.is-collapsed .fartbot-body {
  display: none;
}

.fartbot-pressure {
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.fartbot-pressure span {
  display: block;
  width: 18%;
  height: 100%;
  background:
    linear-gradient(90deg, var(--green), var(--amber) 62%, var(--red));
  transition: width 220ms ease;
}

.fartbot-log {
  height: min(310px, 42vh);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-color: rgba(112, 224, 111, 0.72) rgba(255, 255, 255, 0.08);
}

.fartbot-message {
  display: grid;
  gap: 4px;
  max-width: 92%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.fartbot-message.is-bot {
  align-self: start;
  border-color: rgba(112, 224, 111, 0.28);
  background:
    linear-gradient(135deg, rgba(112, 224, 111, 0.13), rgba(255, 255, 255, 0.06)),
    rgba(0, 0, 0, 0.2);
}

.fartbot-message.is-user {
  align-self: end;
  border-color: rgba(78, 203, 213, 0.4);
  background:
    linear-gradient(135deg, rgba(78, 203, 213, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(0, 0, 0, 0.2);
}

.fartbot-message-label {
  color: #d8ffd6;
  letter-spacing: 0.06em;
}

.fartbot-message.is-user .fartbot-message-label {
  color: #ddfbff;
}

.fartbot-message p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.fartbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.fartbot-form input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0 10px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.34);
  font: inherit;
  font-weight: 750;
}

.fartbot-form input:focus {
  outline: 3px solid rgba(78, 203, 213, 0.58);
  outline-offset: 2px;
}

.fartbot-form button {
  min-width: 76px;
  min-height: 42px;
  border: 1px solid rgba(112, 224, 111, 0.62);
  color: #071107;
  background: var(--green);
  font-weight: 950;
  cursor: pointer;
}

.fartbot-puffs {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.fartbot-puff {
  position: absolute;
  left: var(--puff-left, 52px);
  top: var(--puff-top, 44px);
  width: var(--puff-size, 28px);
  height: calc(var(--puff-size, 28px) * 0.7);
  border: 2px solid rgba(112, 224, 111, 0.68);
  border-radius: 50%;
  opacity: 0;
  filter: blur(0.3px);
  animation: fartbot-puff 1.45s ease-out forwards;
}

.fartbot-puff::before,
.fartbot-puff::after {
  content: "";
  position: absolute;
  border: inherit;
  border-radius: inherit;
}

.fartbot-puff::before {
  width: 70%;
  height: 82%;
  left: -34%;
  top: 18%;
}

.fartbot-puff::after {
  width: 58%;
  height: 72%;
  right: -28%;
  top: -18%;
}

@keyframes fartbot-puff {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.72) rotate(0deg);
  }

  18% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate(var(--puff-x, -72px), var(--puff-y, -84px)) scale(1.35) rotate(var(--puff-rotate, -16deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .captcha-app {
    align-content: start;
  }

  .portal-heading {
    align-items: start;
    flex-direction: column;
  }

  .portal-actions {
    width: 100%;
    justify-content: start;
    flex-wrap: wrap;
  }

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

  .member-terminal {
    min-height: auto;
  }

  .captcha-station {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .fake-widget {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .sound-toggle {
    grid-column: 1 / -1;
  }

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

  .suspicion-meter {
    width: 100%;
    grid-template-columns: 1fr auto;
    place-items: center stretch;
  }

  .choice-grid.cols-4,
  .meter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .choice-tile {
    aspect-ratio: 1 / 0.92;
  }

  .result-stats {
    grid-template-columns: 1fr;
  }

  .standby-panel {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .fartbot {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }

  .fartbot.is-collapsed {
    width: auto;
  }

  .fartbot-header {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .fartbot.is-collapsed .fartbot-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .fartbot-avatar {
    width: 42px;
    height: 42px;
  }

  .fartbot-controls {
    grid-column: 1 / -1;
    justify-content: end;
  }

  .fartbot.is-collapsed .fartbot-controls {
    grid-column: auto;
  }

  .fartbot-log {
    height: 250px;
  }
}

/* The whole collapsed support card opens the chat. */
.fartbot.is-collapsed{cursor:pointer}
