:root {
  font:
    15px/1.45 "Inter",
    "Arial",
    sans-serif;
  color: #dfebe9;
  background: #101719;
  --line: #2a383a;
  --mint: #98f4d4;
  --muted: #9caaa9;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100dvh;
  min-height: 420px;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr) 34px;
}
header,
footer,
.transport,
.roster-head,
.roster-caption,
.source,
.transport-end,
.actions {
  display: flex;
  align-items: center;
}
header {
  padding: 0 26px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #141d1f;
}
.brand {
  font-weight: 750;
  font-size: 21px;
  letter-spacing: -1px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand-mark {
  width: 18px;
  height: 22px;
  display: block;
  background: repeating-linear-gradient(119deg, transparent 0 3px, var(--mint) 4px 6px, transparent 7px 8px);
  transform: skew(-12deg);
}
.divider {
  height: 24px;
  width: 1px;
  background: var(--line);
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.4px;
}
.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font: 12px var(--mono);
  color: var(--muted);
}
.lamp {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #81918f;
}
body.live .lamp {
  background: var(--mint);
  box-shadow: 0 0 9px #98f4d454;
}
main {
  display: grid;
  grid-template-columns: clamp(228px, 23vw, 320px) minmax(0, 1fr);
  overflow: hidden;
}
aside {
  overflow: auto;
  border-right: 1px solid var(--line);
  padding: 22px 18px;
  background: #141c1e;
}
.roster-head,
.roster-caption,
.transport {
  justify-content: space-between;
}
.roster-head h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.8px;
}
.roster-head span,
.chip {
  border: 1px solid #354745;
  border-radius: 20px;
  color: var(--mint);
  padding: 2px 8px;
  font: 11px/1.5 var(--mono);
}
.roster-caption {
  color: var(--muted);
  font: 11px var(--mono);
  margin: 16px 0 10px;
}
.roster-caption span {
  color: #abbab7;
}
#empty {
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.card {
  padding: 15px 0 9px;
  border-top: 1px solid var(--line);
}
.card-top {
  display: flex;
  gap: 10px;
  align-items: center;
}
.portrait {
  width: 44px;
  height: 48px;
  object-fit: cover;
  border-radius: 5px;
  background: #223034;
}
.identity {
  font-size: 14px;
  font-weight: 600;
}
.state {
  font: 10px/1.5 var(--mono);
  color: var(--muted);
}
.value {
  margin-left: auto;
  text-align: right;
  font: 23px var(--mono);
  color: var(--mint);
}
.value small {
  display: block;
  font: 9px var(--mono);
  color: var(--muted);
}
.card.away .portrait {
  filter: grayscale(1);
  opacity: 0.58;
}
.chart {
  width: 100%;
  height: 37px;
  display: block;
  margin-top: 9px;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: #859492;
  font: 9px var(--mono);
}
.viewport {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 56px;
  min-width: 0;
  background: #080e10;
}
#stage {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 55%, #12323955, transparent 65%),
    radial-gradient(#42646755 0.8px, transparent 0.9px) center/15px 15px;
}
video,
#overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: contain;
}
video {
  visibility: hidden;
}
body.has-source video {
  visibility: visible;
  background: #080e10;
}
#overlay {
  pointer-events: none;
}
#welcome {
  position: relative;
  width: min(340px, 85%);
  text-align: center;
}
#welcome h2 {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -2.2px;
}
#welcome p {
  color: #aebcba;
  font-size: 14px;
  margin: 8px auto 23px;
  max-width: 300px;
}
.aperture {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  border: 1px dashed #577e77;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.aperture i {
  width: 45px;
  height: 45px;
  border: 1px solid #54887c;
  border-radius: 50%;
  background: radial-gradient(circle, #a0f3d1 2px, #4c7c7233 3px 9px, transparent 10px);
}
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid #65817d;
  pointer-events: none;
}
.tl {
  top: 18px;
  left: 18px;
  border-width: 1px 0 0 1px;
}
.tr {
  top: 18px;
  right: 18px;
  border-width: 1px 1px 0 0;
}
.bl {
  bottom: 18px;
  left: 18px;
  border-width: 0 0 1px 1px;
}
.br {
  bottom: 18px;
  right: 18px;
  border-width: 0 1px 1px 0;
}
.actions {
  gap: 8px;
  justify-content: center;
}
button {
  background: var(--mint);
  color: #0b201d;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 9px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
button.secondary,
.icon {
  background: #1d2a2d;
  color: #e1eeeb;
  border-color: #3a4a4d;
}
button:hover {
  filter: brightness(1.13);
}
button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: progress;
}
.transport {
  padding: 0 18px;
  border-top: 1px solid var(--line);
  gap: 8px;
}
.source,
.transport-end {
  gap: 12px;
}
.source strong {
  font-size: 13px;
  font-weight: 500;
}
#size,
#clock,
footer {
  font: 11px var(--mono);
  color: var(--muted);
}
.icon {
  font-size: 18px;
  line-height: 1;
  padding: 5px 8px;
}
footer {
  justify-content: space-between;
  padding: 0 24px;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: #172123;
}
.local:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border: 1px solid #6fa397;
  border-radius: 2px;
  margin-right: 7px;
}
#status {
  text-align: right;
}
body.has-source #welcome,
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  body {
    grid-template-rows: 49px minmax(0, 1fr) 32px;
  }
  header {
    padding: 0 14px;
    gap: 11px;
  }
  main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(200px, 1.4fr) minmax(110px, 1fr);
  }
  .viewport {
    grid-row: 1;
    grid-template-rows: minmax(0, 1fr) 40px;
  }
  aside {
    grid-row: 2;
    border-top: 1px solid var(--line);
    padding: 10px 14px;
  }
  .roster-caption {
    margin: 6px 0;
  }
  .roster-head h2 {
    font-size: 18px;
  }
  .aperture {
    display: none;
  }
  #welcome p {
    margin: 4px auto 10px;
  }
  .transport {
    padding: 0 12px;
  }
  .transport button {
    padding: 4px 7px;
  }
  footer {
    padding: 0 12px;
    font-size: 10px;
  }
  .card {
    padding: 9px 0;
  }
  #size {
    display: none;
  }
}
