:root {
  color-scheme: dark;
  --navy: #082f4a;
  --navy-deep: #06273e;
  --navy-soft: #124e72;
  --orange: #f17343;
  --orange-light: #ff8a56;
  --white: #f7fbff;
  --mist: #b9d0df;
  --line: rgba(206, 228, 241, .42);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #031c2d;
}

body {
  display: grid;
  place-items: center;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.event-screen {
  position: relative;
  width: min(100vw, 177.7778vh);
  height: min(100vh, 56.25vw);
  overflow: hidden;
  container-type: size;
  color: var(--white);
  background-color: var(--navy);
  background-image: url("assets/display-bg.png");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.event-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(2, 28, 45, .12);
  pointer-events: none;
}

.empty-public-state {
  display: none;
  position: absolute;
  inset: 9.6cqh 0 9.9cqh;
  z-index: 3;
  padding: 10cqh 10cqw;
  place-content: center;
  background: rgba(5, 42, 66, .72);
  backdrop-filter: blur(8px);
}

.empty-public-state span {
  color: var(--orange-light);
  font-size: 1.1cqw;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.empty-public-state h1 {
  max-width: 62cqw;
  margin: 2.4cqh 0 1.5cqh;
  font-family: "Roboto Condensed", Inter, sans-serif;
  font-size: 5.4cqw;
  line-height: .98;
}

.empty-public-state p {
  margin: 0;
  color: var(--mist);
  font-size: 1.7cqw;
}

.event-screen.is-empty .schedule { visibility: hidden; }
.event-screen.is-empty .empty-public-state { display: grid; }

.screen-header {
  height: 9.6cqh;
  padding: 0 2.75cqw;
  display: grid;
  grid-template-columns: auto 1px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 2.25cqw;
  border-bottom: 1px solid rgba(179, 218, 240, .12);
  background: rgba(13, 67, 99, .3);
}

.brand-title {
  font-size: 2.16cqw;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-rule {
  height: 4.4cqh;
  background: rgba(255, 255, 255, .42);
}

.brand-line {
  font-size: .88cqw;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  white-space: nowrap;
}

.today-date {
  font-size: 1.34cqw;
  font-weight: 500;
  white-space: nowrap;
}

.current-time {
  padding-left: 2cqw;
  border-left: 1px solid rgba(255, 255, 255, .42);
  font-size: 2.15cqw;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.schedule {
  height: 80.5cqh;
  display: grid;
  grid-template-columns: 19.55cqw 49.25cqw 31.2cqw;
}

.date-poster {
  height: 100%;
  padding: 9.2cqh 2.8cqw 5.5cqh;
  display: flex;
  flex-direction: column;
  background-color: var(--orange);
  border-radius: 0 1.5cqw 1.5cqw 0;
  box-shadow: 1.2cqw 0 3.2cqw rgba(0, 0, 0, .12);
}

.poster-weekday,
.poster-month {
  font-size: 1.94cqw;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.poster-day {
  margin: 2.1cqh 0 1.4cqh;
  font-size: 11.7cqw;
  font-weight: 800;
  line-height: .78;
  letter-spacing: -.09em;
  font-variant-numeric: tabular-nums;
}

.poster-year {
  margin-top: 1.2cqh;
  font-size: 1.72cqw;
  font-weight: 500;
  letter-spacing: .35em;
}

.poster-motto {
  margin-top: auto;
  font-size: .88cqw;
  font-weight: 600;
  line-height: 1.86;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.poster-motto span {
  display: block;
  width: 9cqw;
  height: 1px;
  margin-bottom: 2.55cqh;
  background: rgba(255, 255, 255, .82);
}

.poster-motto p { margin: 0; }

.hero-event {
  min-width: 0;
  padding: 5.7cqh 2.55cqw 4.2cqh 3.15cqw;
  display: flex;
  flex-direction: column;
}

.eyebrow,
.upcoming-label {
  color: var(--orange-light);
  font-size: 1.16cqw;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.hero-event h1 {
  max-width: 43cqw;
  margin: 3.2cqh 0 3.5cqh;
  font-family: "Roboto Condensed", Inter, sans-serif;
  font-size: clamp(44px, 5.45cqw, 105px);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.hero-meta {
  display: grid;
  gap: 2.55cqh;
}

.meta-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 3.7cqw minmax(0, 1fr);
  align-items: center;
  font-size: 2.24cqw;
  line-height: 1.1;
}

.meta-row i {
  width: 2.6cqw;
  color: var(--white);
  font-size: 2.38cqw;
  text-align: center;
}

.hero-description-wrap {
  margin-top: auto;
  padding-top: 3.4cqh;
  border-top: 1px solid var(--line);
}

.hero-description-wrap p {
  max-width: 42cqw;
  margin: 0;
  color: var(--mist);
  font-size: 1.82cqw;
  font-weight: 400;
  line-height: 1.3;
}

.upcoming-panel {
  min-width: 0;
  margin: 3.8cqh 2.7cqw 3.2cqh 0;
  padding: 1.9cqh 0 0 2.55cqw;
  border-left: 1px solid rgba(196, 225, 243, .6);
}

.upcoming-label {
  margin-bottom: 2.45cqh;
  color: var(--white);
  font-size: .93cqw;
}

.upcoming-list {
  height: calc(100% - 5cqh);
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.upcoming-item {
  min-height: 0;
  padding: 0 0 2.35cqh;
  display: grid;
  grid-template-columns: 7.7cqw minmax(0, 1fr);
  gap: 1.35cqw;
  align-content: center;
  border-bottom: 1px solid var(--line);
}

.upcoming-item + .upcoming-item { padding-top: 2.35cqh; }
.upcoming-item:last-child { border-bottom: 0; }

.mini-date {
  padding-right: 1.25cqw;
  border-right: 1px solid rgba(194, 224, 241, .45);
}

.mini-weekday {
  display: block;
  margin-bottom: .8cqh;
  font-size: .88cqw;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.mini-day {
  display: block;
  font-size: 4.55cqw;
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.07em;
}

.mini-month {
  display: block;
  margin-top: 1.15cqh;
  font-size: .72cqw;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.mini-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-content h2 {
  margin: 0 0 1.5cqh;
  font-family: "Roboto Condensed", Inter, sans-serif;
  font-size: 1.58cqw;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-meta {
  display: grid;
  gap: .8cqh;
  color: #e6f2f8;
  font-size: .97cqw;
  line-height: 1.15;
}

.mini-meta div {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.35cqw minmax(0, 1fr);
  align-items: center;
}

.mini-meta i {
  color: var(--white);
  font-size: .92cqw;
  text-align: center;
}

.mini-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-footer {
  height: 9.9cqh;
  padding: 0 2.75cqw;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.65cqw;
  border-top: 1px solid rgba(180, 220, 241, .1);
  background: rgba(5, 38, 60, .55);
}

.rotation-progress {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(1.5cqw, 8.2cqw);
  justify-content: start;
  gap: .34cqw;
}

.progress-segment {
  height: .62cqh;
  border-radius: 999px;
  background: rgba(176, 211, 232, .74);
  transition: background-color .3s ease, transform .3s ease;
}

.progress-segment.active {
  background: var(--orange);
  transform: scaleY(1.12);
}

.data-mode {
  color: rgba(197, 221, 235, .58);
  font-size: .68cqw;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  white-space: nowrap;
}

.values {
  color: rgba(230, 242, 248, .72);
  font-size: .75cqw;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.values span {
  display: inline-block;
  width: 1px;
  height: 1.8cqh;
  margin: 0 1cqw;
  vertical-align: middle;
  background: rgba(226, 242, 250, .45);
}

.loading-state {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2cqw;
  background: rgba(4, 35, 55, .96);
  font-size: 1.25cqw;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: opacity .35s ease, visibility .35s ease;
}

.loading-state i { color: var(--orange); }
.loading-state.hidden { display: none; }

.event-screen.is-changing .hero-event,
.event-screen.is-changing .date-poster,
.event-screen.is-changing .upcoming-list {
  opacity: .14;
  transform: translateY(.6cqh);
}

.hero-event,
.date-poster,
.upcoming-list {
  transition: opacity .28s ease, transform .28s ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-aspect-ratio: 4/3) {
  .brand-line { display: none; }
  .screen-header { grid-template-columns: auto 1px 1fr auto auto; }
  .today-date { justify-self: end; }
}
