:root {
  color-scheme: only light;
  --bg: #ffeed5;
  --pink: #ffeed5;
  --aqua: #9dcbd5;
  --ink: #ff6e06;
  --tower: #ff6e06;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color-scheme: only light;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: none;
  color: #111111;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  overflow-x: hidden;
  overflow-y: auto;
  forced-color-adjust: none;
  color-scheme: only light;
  transition: background-color 350ms linear, color 350ms linear;
}

.page-frame {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.marquee {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: 0 0 auto;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 34px;
  background: var(--pink);
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 10px solid var(--aqua);
  padding-top: 2px;
  transition: background-color 350ms linear, color 350ms linear, border-color 350ms linear;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  animation: marquee-scroll 18s linear infinite;
}

.marquee-track span {
  padding-right: 48px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.station-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 24px 24px 24px;
  width: 100%;
}

.station-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 140ms ease, filter 140ms ease;
}

.station-button:hover {
  transform: scale(1.015);
}

.station-button:active {
  transform: scale(0.99);
}

.station-art {
  display: block;
  width: min(56vw, 340px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
}

.tower-mask {
  background-color: #000000;
  -webkit-mask-image: url("88_7_lightning_blink.webp");
  mask-image: url("88_7_lightning_blink.webp");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color 350ms linear;
}

body.is-playing .tower-mask {
  background-color: var(--tower);
}

.pixel-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--tower);
  background: transparent;
  color: var(--tower);
  width: 30px;
  height: 30px;
  margin-top: 8px;
  padding: 0;
  position: relative;
  display: block;
  cursor: pointer;
  image-rendering: pixelated;
  box-shadow: 2px 2px 0 0 currentColor;
  transition: transform 140ms ease, background-color 350ms linear, border-color 350ms linear, color 350ms linear;
}

.pixel-toggle:hover {
  transform: translateY(-1px);
}

.pixel-toggle:active {
  transform: translateY(1px);
}

.pixel-toggle::before,
.pixel-toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.pixel-toggle:not(.is-playing)::before {
  top: 8px;
  left: 11px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  background: transparent;
}

.pixel-toggle.is-playing::before {
  top: 8px;
  left: 8px;
  width: 4px;
  height: 14px;
}

.pixel-toggle.is-playing::after {
  top: 8px;
  right: 8px;
  width: 4px;
  height: 14px;
}

.station-status {
  margin: 10px 0 0;
  max-width: min(86vw, 340px);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}

.repair-banner {
  display: flex;
  flex-direction: column;
  width: 100vw;
  max-width: none;
  margin-top: 100px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.repair-banner__pink,
.repair-banner__teal {
  display: block;
  width: 100%;
  height: 10px;
}

.repair-banner__pink {
  background: var(--pink);
  transition: background-color 350ms linear;
}

.repair-banner__teal {
  background: var(--aqua);
  transition: background-color 350ms linear;
}

.repair-photo {
  display: block;
  width: 100vw;
  max-width: none;
  height: auto;
  border: 0;
  outline: 0;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.dots-mark {
  display: none;
}

.decor-pane {
  display: none;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1024px) {
  .station-shell {
    padding: 20px 0 20px;
  }

  .station-art {
    width: min(68vw, 300px);
  }

  .marquee-track span {
    font-size: 15px;
  }

  .repair-photo {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .repair-banner {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .decor-pane {
    display: block;
    width: 100%;
    padding: 24px 0 32px;
  }

  .dots-mark {
    display: block;
    width: min(86vw, 480px);
    aspect-ratio: 600 / 603;
    margin: 0 auto;
    pointer-events: none;
    background-color: var(--tower);
    -webkit-mask-image: url("dots.webp");
    mask-image: url("dots.webp");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transform: none;
    will-change: auto;
  }
}

@media (min-width: 601px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: var(--ink) var(--bg);
    scrollbar-width: thin;
  }

  body::-webkit-scrollbar {
    width: 16px;
  }

  body::-webkit-scrollbar-track {
    background: var(--bg);
  }

  body::-webkit-scrollbar-thumb {
    background: var(--ink);
    border: 3px solid var(--bg);
    border-radius: 999px;
  }

  .page-frame {
    width: 100%;
    min-height: calc(100vh - 34px);
    position: relative;
  }

  .page-content {
    width: min(430px, 100%);
  }

  .station-shell {
    min-height: calc(100vh - 34px);
    padding: 20px 0 24px;
    transition: background-color 350ms linear, color 350ms linear;
  }

  .repair-banner {
    width: 100%;
    max-width: none;
    margin-top: 100px;
    margin-left: 0;
    margin-right: 0;
  }

  .repair-photo {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .decor-pane {
    position: fixed;
    top: 34px;
    left: min(430px, 100%);
    right: 0;
    bottom: 0;
    display: block;
    background: var(--bg);
    overflow: hidden;
  }

  .dots-mark {
    display: block;
    position: absolute;
    left: 80px;
    right: 0;
    top: 80px;
    bottom: 80px;
    pointer-events: none;
    background-color: var(--tower);
    -webkit-mask-image: url("dots.webp");
    mask-image: url("dots.webp");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left bottom;
    mask-position: left bottom;
    -webkit-mask-size: contain;
    mask-size: contain;
    transform: scale(1.25);
    transform-origin: left bottom;
    will-change: transform;
    transition: background-color 350ms linear;
  }
}
