:root {
  --ink: #253f3f;
  --muted: #758382;
  --paper: #f5f3e9;
  --line: #d9dfd4;
  --green: #416c62;
  --coral: #c5745d;
  --yellow: #e4ba66;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
header {
  height: 78px;
  border-bottom: 1px solid var(--line);
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #faf9f2;
}
.wordmark {
  font-family: Georgia, serif;
  font-size: 24px;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sun {
  font-size: 40px;
  color: var(--coral);
  line-height: 1;
}
.badge,
.tag,
.eyebrow,
.onair,
footer,
.clock > span {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.7px;
}
.badge {
  border: 1px solid var(--line);
  padding: 7px 9px;
  letter-spacing: 1px;
}
.onair {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.onair > span {
  background: #78a28b;
  width: 7px;
  height: 7px;
  border-radius: 100%;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 38px 4% 0;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.eyebrow {
  color: var(--coral);
  line-height: 1.6;
}
h1 {
  font-family: Georgia, serif;
  font-size: 42px;
  letter-spacing: -1.4px;
  font-weight: normal;
  margin: 10px 0;
}
p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.clock {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 235px;
}
.clock > span:first-child {
  color: var(--coral);
}
.clock strong {
  font-size: 28px;
  font-weight: normal;
  font-family: Georgia, serif;
}
.clock small {
  font-family: Arial;
  font-size: 14px;
  color: var(--muted);
}
.clock > span:last-child {
  font-size: 10px;
  letter-spacing: 0.6px;
  font-weight: normal;
}
.transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  gap: 20px;
}
.transport > div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -12px 0 24px;
}
.chapters button[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}
button,
select,
input {
  font: inherit;
}
button {
  background: #fcfbf5;
  color: var(--ink);
  border: 1px solid #cad3c6;
  padding: 9px 13px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
}
button:hover {
  background: #e6ebdf;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
#play {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  min-width: 120px;
}
label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
select {
  border: 1px solid var(--line);
  padding: 7px;
  background: #faf9f2;
  color: var(--ink);
  border-radius: 3px;
}
.timeline {
  flex: 1;
  max-width: 650px;
  letter-spacing: 1px;
}
.timeline input {
  flex: 1;
  min-width: 70px;
  accent-color: var(--green);
}
#position {
  min-width: 80px;
  text-align: right;
  font-size: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.panel {
  border: 1px solid var(--line);
  background: #fcfbf5;
  padding: 20px;
  min-width: 0;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
h2 {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: normal;
  margin: 0;
  white-space: nowrap;
}
h2 > span {
  font-family: Arial;
  font-size: 10px;
  color: #9da9a0;
  margin-right: 8px;
}
.tag {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.floor {
  grid-column: span 2;
  padding-bottom: 0;
}
.floor canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #d8e3cc;
  image-rendering: pixelated;
}
.floor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 8px;
  letter-spacing: 0.7px;
  color: var(--muted);
}
.floor-footer span:nth-child(2) {
  max-width: 48%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
}
.coral {
  background: var(--coral);
}
.cash-label {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.5px;
}
.cash {
  font:
    54px Georgia,
    serif;
  margin: 12px 0 8px;
  letter-spacing: -2px;
}
.runway {
  font-size: 12px;
  display: flex;
  gap: 7px;
}
.runway > span:first-child {
  font-weight: bold;
}
.runway > span:last-child {
  color: var(--muted);
}
.meter {
  height: 5px;
  background: #e4e8db;
  margin: 13px 0 20px;
}
.meter > div {
  height: 100%;
  background: var(--green);
  transition: width 0.3s;
}
.money dl {
  font-size: 12px;
  margin: 0;
}
.money dl > div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #e7e9df;
}
.money dt {
  color: var(--muted);
}
.money dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.credit {
  background: #eaf0e4;
  padding: 12px;
  margin-top: 14px;
}
.credit > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.credit span {
  font-size: 8px;
  letter-spacing: 1px;
}
.credit strong {
  font-size: 10px;
  color: var(--green);
}
.credit p {
  font-size: 11px;
  margin-top: 6px;
}
.real {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.8px;
  margin-top: 15px;
  color: var(--muted);
}
.pipeline {
  grid-column: span 2;
}
.clientrow {
  display: grid;
  grid-template-columns: 1.4fr 1fr 85px 65px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #e4e8dd;
  gap: 10px;
}
.clientrow strong {
  font-size: 13px;
  font-weight: normal;
}
.clientrow small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.clientrow .status {
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--green);
}
.clientrow .value {
  text-align: right;
  font-size: 12px;
}
.trustbar {
  background: #e8ebe2;
  height: 4px;
}
.trustbar > div {
  height: 100%;
  background: #9cb494;
}
.wire {
  grid-column: 3;
  grid-row: 2 / span 2;
  min-height: 470px;
}
#feed {
  height: calc(100% - 45px);
  max-height: 545px;
  overflow: auto;
}
.dispatch {
  border-left: 2px solid #dce2d5;
  padding: 0 0 18px 14px;
  position: relative;
}
.dispatch:before {
  content: "";
  position: absolute;
  background: var(--coral);
  width: 5px;
  height: 5px;
  left: -3px;
  top: 4px;
}
.dispatch time {
  font-size: 9px;
  color: var(--coral);
  letter-spacing: 1px;
}
.dispatch p {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 5px;
  color: #526965;
}
.confessional {
  background: #edf0e4;
  position: relative;
}
.quote {
  font: 60px Georgia;
  color: #a6b7a0;
  height: 35px;
}
blockquote {
  font: 19px/1.55 Georgia;
  margin: 12px 0 22px;
  min-height: 88px;
}
#diaryday {
  font-size: 8px;
  color: var(--muted);
}
.buildmetrics {
  display: flex;
  justify-content: space-between;
  margin: 32px 0;
}
.buildmetrics strong {
  display: block;
  font: 32px Georgia;
  margin-bottom: 8px;
}
.buildmetrics span {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
pre {
  font-size: 11px;
  color: #5e7b6c;
  background: #eff1e8;
  padding: 12px;
  line-height: 1.8;
  overflow: auto;
}
.scorecards {
  grid-column: span 2;
}
.score {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.grade {
  font: 35px Georgia;
  color: var(--green);
  min-width: 68px;
}
.grade small {
  font: 11px Arial;
  color: var(--muted);
}
.scorebody {
  flex: 1;
}
.scorebody strong {
  font-size: 13px;
  font-weight: normal;
}
.scoregrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
}
.scoregrid span {
  font-size: 10px;
  color: var(--muted);
}
.scoregrid b {
  color: var(--ink);
  font-weight: normal;
  margin-left: 5px;
}
.showrunner p {
  font-size: 11px;
}
.adminbuttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}
.inject {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.inject label {
  display: block;
  flex: 1;
}
.inject select {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 10px;
}
.inject button {
  width: 100%;
  margin-top: 2px;
}
#controlstatus {
  padding-top: 10px;
  color: var(--coral);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 28px 0;
  font-size: 8px;
  color: #8b978c;
  letter-spacing: 1px;
}
footer > span {
  font-weight: normal;
  letter-spacing: 0.3px;
}
#access {
  padding: 20px;
  display: flex;
  gap: 15px;
  background: #edf0e4;
  margin-bottom: 20px;
}
#access[hidden] {
  display: none;
}
#error {
  background: #f4ddd4;
  padding: 14px;
  margin-bottom: 15px;
  color: #8b4235;
}
input[type="password"] {
  padding: 9px;
  border: 1px solid var(--line);
  max-width: 100%;
}
@media (max-width: 1050px) {
  .tag {
    display: none;
  }
  .clock {
    min-width: 180px;
  }
  .grid {
    gap: 12px;
  }
  .panel {
    padding: 15px;
  }
  .cash {
    font-size: 44px;
  }
  .wordmark {
    font-size: 20px;
  }
  .scoregrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  header {
    height: 65px;
  }
  .onair,
  .badge {
    display: none;
  }
  main {
    padding: 25px 5%;
  }
  .intro {
    display: block;
  }
  h1 {
    font-size: 34px;
  }
  .clock {
    border-left: 0;
    flex-direction: row;
    align-items: center;
    padding: 18px 0 0;
  }
  .clock > span:last-child {
    display: none;
  }
  .clock strong {
    font-size: 20px;
  }
  .transport {
    flex-wrap: wrap;
  }
  .timeline {
    min-width: 100%;
  }
  .grid {
    display: block;
  }
  .panel {
    margin-bottom: 15px;
  }
  .wire {
    min-height: 0;
  }
  #feed {
    max-height: 320px;
  }
  .clientrow {
    grid-template-columns: 1.2fr 0.8fr 64px 55px;
    gap: 6px;
  }
  .clientrow strong {
    font-size: 11px;
  }
  .floor-footer span:last-child {
    display: none;
  }
  .cash {
    font-size: 48px;
  }
  .buildmetrics {
    max-width: 300px;
  }
  footer {
    display: block;
    line-height: 2;
  }
  footer > span {
    display: block;
  }
  .tag {
    display: inline;
    font-size: 7px;
  }
}

.townscene {
  position: relative;
}
.speech-bubble {
  position: absolute;
  z-index: 2;
  top: 8%;
  left: 28%;
  max-width: 65%;
  padding: 12px 16px;
  border: 2px solid #547965;
  border-radius: 12px;
  background: #fffdf2;
  color: #253f3f;
  font: 12px/1.5 Georgia;
  box-shadow: 4px 4px 0 #253f3f24;
}
.speech-bubble:after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 25px;
  border-width: 10px 10px 0 0;
  border-style: solid;
  border-color: #547965 transparent transparent transparent;
}
.speech-bubble[hidden] {
  display: none;
}
.rentclock {
  font: 10px monospace;
  color: #64786d;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.trumancam {
  grid-column: span 2;
}
.office-interior {
  height: 285px;
  background: linear-gradient(#d9ddc8 0 72%, #b7a48a 72%);
  position: relative;
  overflow: hidden;
  border: 1px solid #c5cbbb;
}
.office-window {
  position: absolute;
  left: 5%;
  top: 12%;
  width: 16%;
  height: 90px;
  border: 7px solid #f0e9d3;
  background: #a8c9c3;
  display: grid;
  place-items: center;
  font-size: 38px;
  color: #e4ba66;
  box-shadow: 5px 5px 0 #abb49e;
}
.office-screen {
  position: absolute;
  left: 30%;
  top: 7%;
  width: 62%;
  height: 168px;
  background: #263e3b;
  border: 8px solid #4a6255;
  box-shadow: 5px 5px 0 #a2ae96;
  z-index: 2;
  color: #c8dcc1;
}
#editingfile {
  font: 10px monospace;
  background: #3c5850;
  padding: 4px 8px;
}
#editingscreen {
  background: transparent;
  color: #ddebd2;
  font: 11px/1.6 monospace;
  padding: 6px 9px;
  margin: 0;
  height: 120px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.office-desk {
  position: absolute;
  left: 25%;
  top: 64%;
  width: 70%;
  height: 15px;
  background: #997057;
  border-bottom: 5px solid #76593d;
  z-index: 3;
}
.office-desk:before,
.office-desk:after {
  content: "";
  position: absolute;
  top: 15px;
  width: 10px;
  height: 78px;
  background: #76593d;
}
.office-desk:after {
  right: 12px;
}
.office-lamp {
  position: absolute;
  left: 26%;
  top: 40%;
  width: 18px;
  height: 62px;
  border-left: 5px solid #547965;
}
.office-lamp:before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  width: 30px;
  height: 22px;
  background: #e4ba66;
}
.office-founder {
  position: absolute;
  left: 18%;
  top: 55%;
  width: 23px;
  height: 43px;
  background: #c17d64;
  border-bottom: 9px solid #4c6258;
  z-index: 4;
}
.office-founder:before {
  content: "";
  position: absolute;
  top: -17px;
  width: 20px;
  height: 20px;
  background: #d5b18b;
  border-top: 5px solid #5b6250;
}
.office-chair {
  position: absolute;
  left: 16%;
  top: 67%;
  width: 30px;
  height: 42px;
  border: 6px solid #547965;
}
#camcaption {
  font-size: 10px;
  margin-top: 12px;
}
.recap {
  grid-column: span 2;
  background: #edf0e4;
}
#recaptext {
  color: #526965;
  margin-top: 18px;
}
#recapquote {
  font-size: 15px;
  min-height: 0;
  border-left: 2px solid #c5745d;
  padding-left: 14px;
}
body[data-phase="night"] .office-window {
  background: #354d66;
  color: #f0e5af;
}
body[data-phase="night"] .office-interior {
  background: linear-gradient(#aab5a7 0 72%, #958a79 72%);
}
@media (max-width: 760px) {
  .speech-bubble {
    font-size: 10px;
    padding: 6px;
    left: 8%;
    max-width: 85%;
    top: 3%;
    max-height: 85%;
    overflow: auto;
  }
  .office-interior {
    height: 250px;
  }
  #editingscreen {
    font-size: 9px;
  }
  .office-screen {
    left: 28%;
    width: 68%;
  }
  .recap h2 {
    white-space: normal;
  }
}

#showrunner[hidden]{display:none}
html,body{overflow-x:hidden}
