:root {
  color-scheme: dark;
  font-family: "Comic Sans MS", "Trebuchet MS", Verdana, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  color: #ccff66;
  padding: 24px;
  background-color: #063300;
  background-image: url('/bg.gifv');
  background-repeat: repeat;
  background-size: 300px 300px;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  border: 12px ridge #86d900;
  box-shadow: inset 0 0 40px #001900;
}

body.locked {
  overflow: hidden;
}

body.locked main {
  visibility: hidden;
}

.enter-screen {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 20, 0, .52);
  backdrop-filter: contrast(1.4) saturate(1.6);
}

.enter-screen.hidden {
  display: none;
}

.enter-box {
  width: min(620px, 100%);
  padding: 28px;
  text-align: center;
  border: 10px ridge #bfff00;
  background: repeating-linear-gradient(135deg, #071f00 0 14px, #144900 14px 28px);
  box-shadow: 0 0 0 8px #001800, 0 0 60px #b6ff00, 18px 18px 0 rgba(0,0,0,.75);
}

.enter-warning {
  margin-bottom: 18px;
  color: #ffff33;
  font: bold 20px "Courier New", monospace;
  letter-spacing: 2px;
  text-shadow: 2px 2px #006000;
  animation: blink 1s steps(2, start) infinite;
}

#enter-button {
  width: min(460px, 100%);
  padding: 24px 18px;
  font-size: clamp(32px, 8vw, 58px);
  line-height: .9;
  color: #173600;
  border-width: 8px;
  text-shadow: 2px 2px #f6ff86;
}

.enter-subtitle {
  margin-top: 14px;
  color: #dfff70;
  font: bold 13px "Courier New", monospace;
  text-transform: uppercase;
}

main {
  width: min(590px, 100%);
  position: relative;
  text-align: center;
  padding: 22px;
  border: 7px ridge #9cff00;
  background: #001f00;
  box-shadow: 0 0 0 6px #2b6b00, 0 0 35px #a6ff00, 14px 14px 0 rgba(0,0,0,.65);
}

main::before {
  content: "☣ ☁ ☣ ☁ ☣";
  display: block;
  margin-bottom: 10px;
  color: #ffff00;
  font-size: 22px;
  letter-spacing: 6px;
  text-shadow: 2px 2px #008000;
}

marquee {
  display: block;
  margin: 0 0 12px;
  padding: 7px 10px;
  border: 3px inset #70b900;
  background: #adff2f;
  color: #123900;
  font: bold 18px "Courier New", monospace;
  text-shadow: 1px 1px #fff;
}

.logo {
  max-width: min(410px, 96%);
  height: auto;
  padding: 10px;
  border: 4px outset #70ff00;
  background: #111;
  filter: drop-shadow(0 0 14px #aaff00);
}

form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 4px double #b7ff00;
  background: repeating-linear-gradient(90deg, #082b00 0 8px, #0d4000 8px 16px);
}

input[type="file"] {
  width: 100%;
  padding: 12px;
  color: #dfff8a;
  border: 3px inset #99cc00;
  background: #020;
  font: bold 14px "Courier New", monospace;
}

button {
  border: 5px outset #c8ff00;
  padding: 14px 20px;
  color: #102900;
  background: linear-gradient(#efff6b, #71d900 48%, #2c7100 52%, #aaff00);
  font: 900 22px "Comic Sans MS", "Trebuchet MS", sans-serif;
  cursor: pointer;
  text-transform: none;
  text-shadow: 1px 1px #eeff9a;
  box-shadow: 0 0 18px #9cff00;
}

button:hover {
  filter: hue-rotate(25deg) saturate(1.5);
  transform: scale(1.025) rotate(-1deg);
}

button:active { border-style: inset; }

.message {
  padding: 12px 14px;
  border: 3px dashed #ccff00;
  background: #103b00;
  color: #eaff9a;
  font-weight: bold;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}

.badges span {
  display: inline-block;
  padding: 4px 7px;
  border: 2px outset #aaff00;
  background: #1d5400;
  color: #ffff66;
  font: bold 11px "Courier New", monospace;
}

a { color: #ffff00; font-weight: 900; }
a:visited { color: #baff00; }

.music-box {
  margin: 18px auto 0;
  padding: 10px;
  border: 4px groove #dfff00;
  background: linear-gradient(90deg, #041900, #235f00, #041900);
  box-shadow: inset 0 0 18px #9cff00, 0 0 12px #5cff00;
}

.music-title {
  margin-bottom: 8px;
  color: #ffff66;
  font: bold 14px "Courier New", monospace;
  letter-spacing: 1px;
  text-shadow: 2px 2px #004d00;
  animation: blink 1s steps(2, start) infinite;
}

audio {
  display: none;
}

.radio-toggle {
  width: 100%;
  padding: 10px 14px;
  border-width: 4px;
  font: 900 18px "Courier New", monospace;
}

.radio-display {
  margin-top: 8px;
  padding: 6px 8px;
  border: 3px inset #79bd00;
  background: #020b00;
  color: #bfff00;
  font: bold 13px "Courier New", monospace;
  letter-spacing: 2px;
}

.radio-light {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  border-radius: 50%;
  background: #315500;
  box-shadow: inset 0 0 4px #000;
}

body.radio-playing .radio-light {
  background: #ccff00;
  box-shadow: 0 0 10px #ccff00, inset 0 0 4px #fff;
}

@keyframes blink {
  50% { opacity: .35; }
}

.drop-zone {
  display: grid;
  gap: 7px;
  place-items: center;
  min-height: 120px;
  padding: 18px;
  border: 5px dashed #caff00;
  background: rgba(0, 30, 0, .88);
  color: #ecff9a;
  cursor: pointer;
  box-shadow: inset 0 0 22px #60a800;
}

.drop-zone.dragging {
  background: #234f00;
  border-style: solid;
  transform: rotate(.5deg) scale(1.01);
}

.drop-title {
  color: #ffff33;
  font: 900 28px "Comic Sans MS", "Trebuchet MS", sans-serif;
  text-shadow: 2px 2px #087000;
}

.drop-filename {
  font: bold 13px "Courier New", monospace;
}

.drop-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.url-upload {
  display: grid;
  gap: 6px;
  text-align: left;
  color: #ffff66;
  font: bold 12px "Courier New", monospace;
}

.url-upload input {
  width: 100%;
  padding: 11px;
  color: #dfff8a;
  border: 3px inset #99cc00;
  background: #020;
  font: bold 14px "Courier New", monospace;
}
