:root {
  --bg:        #0b0512;
  --bg-2:      #140a24;
  --panel:     #170c28;
  --line:      #3a1d63;
  --text:      #e8dcff;
  --text-dim:  #9a86bf;
  --pink:      #ff4fd8;
  --cyan:      #35e6ff;
  --purple:    #a24bff;
  --green:     #3dff9e;
  --amber:     #ffb03d;
  --red:       #ff4d6d;
  --yellow:    #ffe14f;
  --font-px: "Courier New", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-px);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(circle at 20% 0%, rgba(162, 75, 255, .18), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(53, 230, 255, .12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: 2rem;
}

.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,.16) 3px,
    rgba(0,0,0,0) 4px
  );
  mix-blend-mode: multiply;
  opacity: .55;
}

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.4rem 1rem .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .8rem; }

.brand-mark {
  font-size: 2rem;
  color: var(--pink);
  text-shadow: 0 0 12px var(--pink);
  line-height: 1;
}

.topbar h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: .22em;
  color: #fff;
  text-shadow: 0 0 6px var(--pink), 0 0 22px rgba(255, 79, 216, .6);
}

.brand-sub {
  margin: .15rem 0 0;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.clock-box { text-align: right; }

.clock-time {
  font-size: 1.7rem;
  letter-spacing: .12em;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(53, 230, 255, .7);
}

.clock-date {
  font-size: .8rem;
  color: var(--text);
  text-transform: capitalize;
}

.clock-tz {
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stage-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}

.stage {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 79, 216, .25),
    0 0 40px rgba(162, 75, 255, .28),
    inset 0 0 60px rgba(0, 0, 0, .6);
  background: #0a0412;
}

#garage {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: crosshair;
}

.tooltip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -115%);
  background: rgba(10, 4, 20, .95);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 14px rgba(53, 230, 255, .45);
  padding: .45rem .6rem;
  border-radius: 4px;
  font-size: .74rem;
  letter-spacing: .05em;
  max-width: 230px;
  pointer-events: none;
  white-space: normal;
}

.tooltip strong {
  display: block;
  color: var(--cyan);
  letter-spacing: .12em;
  margin-bottom: .15rem;
}

.status-bar {
  margin-top: .9rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .85rem 1rem;
}

.status-main { display: flex; align-items: center; gap: .85rem; }

.status-led {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-dim);
  box-shadow: 0 0 10px currentColor;
  flex: none;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.status-label {
  font-size: .64rem;
  letter-spacing: .2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.status-value {
  font-size: 1.15rem;
  letter-spacing: .12em;
  color: #fff;
  text-transform: uppercase;
}

.status-value.small { font-size: .95rem; }

.status-desc { font-size: .78rem; color: var(--text-dim); }

.status-next { text-align: right; }

.timeline-box {
  margin-top: .9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .8rem 1rem 1rem;
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .45rem;
}

.timeline-scale { display: flex; gap: 1.5rem; font-style: normal; }
.timeline-scale i { font-style: normal; }

.timeline {
  position: relative;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #0d0618;
  overflow: hidden;
  display: flex;
}

.tl-block {
  height: 100%;
  position: relative;
  transition: filter .2s;
}

.tl-block:hover { filter: brightness(1.45); }

.timeline-now {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 8px #fff, 0 0 14px var(--cyan);
  z-index: 3;
  transition: left .8s linear;
}

.timeline-legend {
  margin-top: .6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  font-size: .7rem;
  color: var(--text-dim);
}

.timeline-legend span { display: flex; align-items: center; gap: .35rem; }
.timeline-legend i {
  width: 10px; height: 10px; border-radius: 2px; display: inline-block;
}

.panels {
  max-width: 1180px;
  margin: 1.2rem auto 0;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.1rem 1.2rem;
}

.panel h2 {
  margin: 0 0 .8rem;
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 79, 216, .5);
}

.agenda { width: 100%; border-collapse: collapse; font-size: .78rem; }

.agenda th {
  text-align: left;
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  padding: .3rem .4rem;
}

.agenda td {
  padding: .38rem .4rem;
  border-bottom: 1px solid rgba(58, 29, 99, .5);
  vertical-align: top;
}

.agenda tr.is-today td { background: rgba(162, 75, 255, .16); }
.agenda tr.is-off td { color: var(--text-dim); }

.agenda .day { color: var(--cyan); letter-spacing: .1em; white-space: nowrap; }
.agenda .hours { white-space: nowrap; }
.agenda .blocks { color: var(--text-dim); font-size: .72rem; }

.panel-note {
  margin: .9rem 0 0;
  font-size: .74rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.panel-note strong { color: var(--red); }

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

.stations li {
  display: flex;
  gap: .6rem;
  padding: .45rem 0;
  border-bottom: 1px solid rgba(58, 29, 99, .5);
  font-size: .78rem;
}

.stations li:last-child { border-bottom: none; }

.stations .st-dot {
  width: 10px; height: 10px; border-radius: 2px;
  margin-top: .35rem; flex: none;
  box-shadow: 0 0 8px currentColor;
}

.stations b { color: #fff; letter-spacing: .1em; display: block; font-weight: normal; }
.stations small { color: var(--text-dim); }

.footer {
  max-width: 1180px;
  margin: 1.4rem auto 0;
  padding: 0 1rem;
  font-size: .72rem;
  color: var(--text-dim);
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.footer code { color: var(--cyan); }
.footer-sep { opacity: .5; }

@media (max-width: 820px) {
  .panels { grid-template-columns: 1fr; }
  .status-bar { grid-template-columns: 1fr; }
  .status-next { text-align: left; }
  .topbar { align-items: flex-start; }
  .clock-box { text-align: left; }
  .timeline-scale { display: none; }
}
