.theme-retro .retro-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 5px 8px;
  border: 2px inset #eeeeee;
  background: #060606;
  color: #4cff4c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.theme-retro .retro-programs {
  overflow: hidden;
}

.theme-retro .retro-desktop {
  position: relative;
  width: min(1180px, 100%);
  min-height: 760px;
  margin: 0 auto;
  border: 6px inset #eeeeee;
  background-color: #267e7d;
  background-image:
    linear-gradient(rgba(6, 6, 6, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 6, 6, .12) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 12px 12px 0 rgba(6, 6, 6, .28);
}

.theme-retro .retro-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  border: 5px outset #eeeeee;
  background: #c3c3c3;
  color: #060606;
  box-shadow: 8px 9px 0 rgba(6, 6, 6, .38);
  will-change: transform;
}

.theme-retro .retro-window-player {
  z-index: 1;
  top: 42px;
  left: 4%;
  width: min(590px, 54%);
}

.theme-retro .retro-window-text {
  z-index: 2;
  top: 214px;
  right: 4%;
  width: min(480px, 43%);
}

.theme-retro .retro-window-image {
  z-index: 3;
  bottom: 42px;
  left: 18%;
  width: min(510px, 46%);
}

.theme-retro .retro-window-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 8px;
  background: #171986;
  color: #ffffff;
}

.theme-retro .retro-window-bar h3 {
  overflow: hidden;
  margin: 0;
  font: 700 13px/1 "Courier New", monospace;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-retro .retro-window-controls {
  flex: 0 0 auto;
  font-weight: 700;
  letter-spacing: .14em;
}

.theme-retro .retro-window-body {
  flex: 1;
  padding: 20px;
}

.theme-retro .retro-window-body > .num {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: .1em;
}

.theme-retro .retro-window-body > p {
  margin: 0;
  color: #172b2b;
  font-size: 14px;
}

.theme-retro .retro-track {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 3px inset #eeeeee;
  background: #060606;
  color: #4cff4c;
}

.theme-retro .retro-track span {
  font-size: 9px;
  letter-spacing: .12em;
}

.theme-retro .retro-track strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-retro .retro-visualizer {
  height: 68px;
  display: flex;
  align-items: end;
  gap: 5px;
  margin-top: 10px;
  padding: 10px;
  border: 3px inset #eeeeee;
  background: #060606;
}

.theme-retro .retro-visualizer span {
  width: 100%;
  height: 76%;
  background: #4cff4c;
  transform-origin: 50% 100%;
}

.theme-retro .retro-visualizer span:nth-child(2),
.theme-retro .retro-visualizer span:nth-child(7),
.theme-retro .retro-visualizer span:nth-child(10) {
  height: 42%;
}

.theme-retro .retro-visualizer span:nth-child(3),
.theme-retro .retro-visualizer span:nth-child(6),
.theme-retro .retro-visualizer span:nth-child(11) {
  height: 92%;
}

.theme-retro .retro-visualizer span:nth-child(4),
.theme-retro .retro-visualizer span:nth-child(9) {
  height: 58%;
}

.theme-retro .retro-visualizer span:nth-child(5),
.theme-retro .retro-visualizer span:nth-child(12) {
  height: 30%;
}

.theme-retro .retro-pause {
  margin-top: 12px;
  padding: 7px 10px;
  border: 3px outset #eeeeee;
  border-radius: 0;
  background: #c3c3c3;
  color: #060606;
  font: 700 10px/1.2 "Courier New", monospace;
  cursor: pointer;
}

.theme-retro .retro-pause:active {
  border-style: inset;
}

.theme-retro .retro-pause:focus-visible {
  outline: 3px solid #171986;
  outline-offset: 3px;
}

.theme-retro .retro-rules {
  margin: 20px 0 4px;
  padding: 14px 14px 14px 38px;
  border: 2px inset #eeeeee;
  background: #eeeeee;
  font-size: 12px;
  line-height: 1.8;
}

.theme-retro .retro-window-status {
  width: auto;
  display: block;
  margin: 0 4px 4px;
  padding: 4px 7px;
  border: 2px inset #eeeeee;
  font-size: 9px;
}

.theme-retro .retro-pixel-frame {
  margin: 14px 0;
  padding: 8px;
  border: 4px inset #eeeeee;
  background: #060606;
}

.theme-retro .retro-pixel-frame svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 800px) {
  .theme-retro .retro-programs {
    overflow: visible;
  }

  .theme-retro .retro-desktop {
    min-height: 0;
    display: grid;
    gap: 24px;
    padding: 18px;
    box-shadow: 7px 7px 0 rgba(6, 6, 6, .28);
  }

  .theme-retro .retro-window,
  .theme-retro .retro-window-player,
  .theme-retro .retro-window-text,
  .theme-retro .retro-window-image {
    position: relative;
    inset: auto;
    width: 100%;
    box-shadow: 5px 6px 0 rgba(6, 6, 6, .32);
    will-change: auto;
  }

  .theme-retro .retro-window-player {
    order: 1;
  }

  .theme-retro .retro-window-text {
    order: 2;
  }

  .theme-retro .retro-window-image {
    order: 3;
  }
}

@media (max-width: 480px) {
  .theme-retro .retro-desktop {
    padding: 10px;
  }

  .theme-retro .retro-window-body {
    padding: 15px;
  }

  .theme-retro .retro-window-bar h3 {
    font-size: 11px;
  }

  .theme-retro .retro-window-controls {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-retro .retro-window,
  .theme-retro .retro-visualizer span {
    will-change: auto;
  }
}
