:root {
  color-scheme: dark;
  --bg: #070806;
  --paper: #fff4de;
  --amber: #ffb347;
  --muted: #bba98e;
  --line: #6c4a24;
  --panel: #18120a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgb(0 0 0 / 0.16), rgb(0 0 0 / 0.16)),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 0.025) 0, rgb(255 255 255 / 0.025) 1px, transparent 1px, transparent 5px),
    var(--bg);
  color: var(--paper);
  font: 15px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.shell {
  width: min(1280px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
}

.top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.eyebrow,
h1,
h2,
p,
dl {
  margin: 0;
}

.eyebrow {
  color: var(--amber);
  font-size: 12px;
}

h1 {
  margin-top: 2px;
  font-size: clamp(44px, 9vw, 128px);
  line-height: 0.9;
  text-transform: uppercase;
}

h2 {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

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

.readouts span,
.panel,
.influence {
  border: 1px solid var(--line);
  background: rgb(24 18 10 / 0.86);
}

.readouts span {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--amber);
  text-align: center;
}

.stage {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 14px;
}

.stream {
  min-height: 360px;
  border: 1px solid var(--line);
  background: #020302;
  padding: 10px;
}

.stream-mount {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgb(255 179 71 / 0.12), transparent 34%),
    #030403;
}

.stream-mount::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgb(0 0 0 / 0.9);
}

.stream-mount iframe,
.stream-mount video,
.stream-mount img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  object-fit: cover;
}

.placeholder {
  display: grid;
  gap: 10px;
  text-align: center;
  color: var(--amber);
}

.placeholder strong {
  font-size: clamp(24px, 4vw, 50px);
}

.placeholder span,
code {
  color: var(--muted);
}

.panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 14px;
}

dl {
  display: grid;
  gap: 8px;
}

dl div {
  min-height: 62px;
  border: 1px solid var(--line);
  padding: 10px;
  background: #120d07;
}

dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
}

.message {
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--amber);
  text-align: center;
}

.influence {
  padding: 14px;
}

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

.influence-head span {
  color: var(--amber);
}

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

button {
  min-height: 54px;
  border: 1px solid #3a2c1a;
  border-radius: 2px;
  background: #100d09;
  color: #6f6555;
  text-transform: uppercase;
  font: inherit;
}

@media (max-width: 980px) {
  .top,
  .stage {
    grid-template-columns: 1fr;
  }

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

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