/* The briefing room of Flight ops, as the app draws it: a night stage in every theme, Amelia at
   the head of a round table and her six specialists around it, each in their colour. Shared by
   the features page (site.css) and the homepage (flight.css), so it carries its own tokens. */

.ag-amelia { --agent: #e7b54a; }
.ag-hayes { --agent: #d4a843; }
.ag-skyler { --agent: #38bdf8; }
.ag-riley { --agent: #34d399; }
.ag-reeves { --agent: #fb923c; }
.ag-parker { --agent: #f87171; }
.ag-avery { --agent: #a78bfa; }

.rt-box {
  container-type: inline-size;
}

.rt {
  --rt-stage: #070d18;
  --rt-stage-2: #0c1626;
  --rt-line: rgb(120 150 200 / 8%);
  --rt-text: #e6edf6;
  --rt-muted: #9fb0c8;
  --rt-ok: #4ecb94;
  --rt-caution: #f0b04a;
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 300px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, rgb(64 120 210 / 22%), transparent 62%),
    radial-gradient(ellipse at 50% 120%, rgb(231 181 74 / 10%), transparent 55%),
    var(--rt-stage);
  color: var(--rt-text);
  box-shadow: inset 0 0 0 1px rgb(120 150 200 / 16%);
  font-size: 14px;
  line-height: 1.3;
}

.rt-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rt-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--rt-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.rt-table {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(44%, 340px);
  aspect-ratio: 1.55;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, var(--rt-stage-2), var(--rt-stage) 80%);
  box-shadow:
    0 0 0 1px rgb(120 160 230 / 40%),
    0 0 60px rgb(91 155 255 / 22%),
    0 30px 80px rgb(0 0 0 / 45%),
    inset 0 1px 0 rgb(255 255 255 / 6%);
  display: grid;
  place-items: center;
}

.rt-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 10px;
  text-align: center;
}

.rt-route {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(15px, 4cqi, 24px);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.rt-route .rt-ico {
  width: 0.8em;
  height: 0.8em;
  color: #e7b54a;
}

.rt-meta {
  color: var(--rt-muted);
  font-size: 11.5px;
}

.rt-verdict {
  margin-top: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgb(240 176 74 / 55%);
  background: rgb(240 176 74 / 14%);
  color: var(--rt-caution);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.rt-seats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rt-seat {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 104px;
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rt-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 50%;
  color: var(--agent);
  background: color-mix(in srgb, var(--agent) 14%, var(--rt-stage));
  border: 1px solid color-mix(in srgb, var(--agent) 50%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--agent) 40%, transparent);
}

.rt-head .rt-avatar {
  width: 48px;
  height: 48px;
}

.rt-ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rt-head .rt-avatar .rt-ico {
  width: 24px;
  height: 24px;
}

.rt-name {
  font-size: 13px;
  font-weight: 650;
}

.rt-role {
  color: color-mix(in srgb, var(--agent) 70%, var(--rt-muted));
  font-size: 11px;
}

.rt-call {
  margin-top: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  font: 700 10.5px/1 ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
}

.rt-call--go {
  color: var(--rt-ok);
  border: 1px solid rgb(78 203 148 / 55%);
}

.rt-call--caution {
  color: #1a1003;
  background: var(--rt-caution);
  border: 1px solid var(--rt-caution);
}

/* On a phone the stage gets taller, the seats smaller and the roles go: the names and the calls
   are what the picture is about. */
@container (max-width: 480px) {
  .rt {
    aspect-ratio: 1 / 1;
  }

  .rt-table {
    width: 56%;
    aspect-ratio: 1.3;
  }

  .rt-seat {
    width: 72px;
  }

  .rt-avatar {
    width: 32px;
    height: 32px;
  }

  .rt-head .rt-avatar {
    width: 38px;
    height: 38px;
  }

  .rt-ico {
    width: 16px;
    height: 16px;
  }

  .rt-head .rt-avatar .rt-ico {
    width: 19px;
    height: 19px;
  }

  .rt-name {
    font-size: 12px;
  }

  .rt-role {
    display: none;
  }

  .rt-call {
    font-size: 9.5px;
  }

  .rt-meta {
    display: none;
  }

  .rt-verdict {
    font-size: 11px;
    padding: 2px 8px;
  }
}
