:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #03000e;
  background-image: radial-gradient(1px 1px at 18px 24px,#fff 95%,transparent),radial-gradient(2px 2px at 98px 110px,#fff7a3 95%,transparent),radial-gradient(1px 1px at 140px 55px,#977cff 95%,transparent),radial-gradient(1px 1px at 55px 152px,#fff 95%,transparent);
  background-size: 183px 173px,307px 239px,211px 197px,257px 281px;
  color: #ffff00;
  font-family: "Times New Roman",serif;
  font-size: 18px;
  text-align: center;
}

a {
  color: #00ffff;
}

a:visited {
  color: #fa86ff;
}

a:focus-visible,button:focus-visible {
  outline: 3px dashed #ff75fa;
  outline-offset: 5px;
}

button {
  font-family: Arial,sans-serif;
  font-size: 16px;
  cursor: pointer;
  color: #000;
  background: #c0c0c0;
  border: 4px outset #eee;
  padding: 6px 14px;
  border-radius: 0;
}

button:active {
  border-style: inset;
}

button[aria-pressed=true] {
  background: #ff0;
  color: #000;
}

main {
  width: min(920px,100%);
  margin: auto;
  padding: 0 18px;
}

h1 {
  font-family: Impact,"Arial Black",sans-serif;
  font-size: clamp(76px,18vw,168px);
  line-height: 1;
  margin: 18px 0 12px;
  letter-spacing: -5px;
  color: #ff0;
  text-shadow: -4px -2px #00f;
}

h2 {
  font-size: clamp(26px,5vw,38px);
  margin: 30px 0 15px;
}

nav {
  font-family: "Courier New",monospace;
  font-weight: bold;
  line-height: 1.8;
}

.tiny {
  font: 14px "Courier New",monospace;
  color: #ddd;
}

.ticker {
  overflow: hidden;
  border-top: 3px ridge #999;
  border-bottom: 3px ridge #999;
  background: #000080;
  color: white;
  padding: 5px;
  font: bold 18px "Courier New",monospace;
}

.ticker>div {
  white-space: nowrap;
  animation: scroll 23s linear infinite;
}

.welcome {
  margin: 24px auto 0;
  background: #ff0;
  color: #000;
  font: bold 18px "Courier New",monospace;
  display: table;
  padding: 3px 9px;
  transform: rotate(-2deg);
}

.space {
  height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planet {
  width: 330px;
  height: auto;
  max-width: 65vw;
  object-fit: contain;
  border-radius: 0;
  animation: float 5s ease-in-out infinite;
}

.side {
  position: absolute;
  width: 130px;
  border: 3px ridge #999;
  z-index: 1;
}

.left {
  left: 2%;
  top: 70px;
  transform: rotate(-13deg);
}

.right {
  right: 0;
  bottom: 65px;
  transform: rotate(14deg);
  width: 145px;
}

.space-note {
  position: absolute;
  top: 18px;
  left: 10%;
  font: bold 18px "Courier New",monospace;
  color: #0f0;
  transform: rotate(-7deg);
}

.space-note.bottom {
  top: auto;
  bottom: 20px;
  left: auto;
  right: 3%;
  color: #ff82e9;
  transform: rotate(4deg);
}

#mode {
  font-size: clamp(22px,5vw,38px);
  font-weight: 900;
  background: #ff0;
  border: 7px outset #ffff9d;
  padding: 12px 20px;
}

#mode-status {
  font-family: "Courier New",monospace;
  font-size: 16px;
}

hr {
  border: 0;
  border-top: 4px ridge #aaa;
  margin: 38px 0;
}

#math {
  font-weight: bold;
  font-size: clamp(22px,4vw,31px);
}

.equation {
  color: #0f0;
}

.million {
  color: #ff78dc;
  text-decoration: underline;
}

.approval {
  width: 140px;
  border: 2px solid #fff;
}

.contract {
  border: 3px dashed #f0f;
  padding: 14px;
  margin: 30px auto 0;
  max-width: 650px;
  overflow-wrap: anywhere;
  font: bold 18px "Courier New",monospace;
}

.contract button {
  margin-left: 8px;
}

.pictures {
  columns: 3;
  column-gap: 14px;
  margin-top: 25px;
}

.pictures a {
  display: block;
  margin-bottom: 16px;
}

.pictures img {
  display: block;
  width: 100%;
  border: 4px ridge #aaa;
}

.pictures a:nth-child(3n+1) {
  transform: rotate(-2deg);
}

.pictures a:nth-child(3n+2) {
  transform: rotate(2deg);
}

.pictures img:hover {
  border-color: #ff0;
}

.tv {
  max-width: 600px;
  margin: auto;
  border: 14px ridge #777;
  background: black;
  padding: 8px;
  box-shadow: 7px 7px #000;
}

.tv video {
  display: block;
  width: 100%;
  max-height: 430px;
  background: black;
}

.channels {
  margin: 15px;
}

.channels button[aria-pressed=true] {
  border-style: inset;
}

footer {
  padding: 30px 0 40px;
}

footer>p:first-child {
  font-weight: bold;
  font-size: 26px;
}

.badge {
  display: inline-block;
  border: 3px outset #aaa;
  background: #000080;
  color: white;
  font: bold 14px "Courier New",monospace;
  padding: 4px 8px;
}

.badge.yellow {
  background: #ff0;
  color: #000;
}

.wayne-mode h1 {
  color: #0f0;
  text-shadow: -4px -2px #00f;
}

.wayne-mode .planet {
  animation: wayne 3s ease-in-out infinite;
}

.wayne-mode .space-note {
  color: #0ff;
}

.wayne-mode .welcome {
  background: #f0f;
  color: #fff;
}

@keyframes float {
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

@keyframes wayne {
  0%,100% {
    transform: rotate(-12deg) scale(.95);
  }
  50% {
    transform: rotate(12deg) scale(1.08);
  }
}

@keyframes scroll {
  from {
    transform: translateX(15%);
  }
  to {
    transform: translateX(-100%);
  }
}

@media(max-width:600px) {
  main {
    padding: 0 12px;
  }
  .space {
    height: 370px;
  }
  .side {
    width: 80px;
  }
  .right {
    width: 85px;
    bottom: 58px;
  }
  .left {
    left: 0;
    top: 52px;
  }
  .space-note {
    font-size: 14px;
    left: 0;
  }
  .space-note.bottom {
    bottom: 15px;
    font-size: 14px;
  }
  .pictures {
    columns: 2;
    column-gap: 10px;
  }
  nav {
    font-size: 14px;
  }
  .welcome {
    font-size: 14px;
  }
  .tv {
    border-width: 9px;
    padding: 3px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
  }
}

.social-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0;
}

.social-button {
  display: inline-block;
  padding: 10px 24px;
  border: 5px outset #eee;
  font: bold 22px Arial,sans-serif;
  text-decoration: underline;
}

.social-button.pump,.social-button.pump:visited {
  background: #00ff68;
  color: #000;
  transform: rotate(-3deg);
}

.social-button.twitter,.social-button.twitter:visited {
  background: #00d5ff;
  color: #000;
  transform: rotate(3deg);
}

.social-button:hover {
  background: #ff0;
  color: #000;
}

.social-button:active {
  border-style: inset;
}

h1 {
  font-size: clamp(44px,10vw,96px);
  letter-spacing: -2px;
  line-height: 1.02;
  overflow-wrap: break-word;
}

h1 .subtitle {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(25px,7.8vw,76px);
  letter-spacing: -1px;
}
