:root {
  --misc-hue: 52deg;
  --misc-accent: hsl(var(--misc-hue) 95% 62%);
  --misc-accent-light: hsl(var(--misc-hue) 96% 78%);
  --misc-accent-dark: hsl(var(--misc-hue) 72% 34%);
}

.misc-page {
  height: 100vh;
  overflow: hidden;
  background-color: #05070d;
  background-image: url("../ui-img/stars.gif");
  background-repeat: repeat;
  color: #fff;
}

.misc-shell {
  display: block;
  min-height: 0;
  height: 100%;
  padding: clamp(1.25rem, 5vh, 3.5rem) clamp(1rem, 5vw, 4rem);
}

.misc-panel {
  width: min(900px, 100%);
  max-height: 100%;
  margin: 0 auto;
  overflow: auto;
  border: 1px solid var(--misc-accent);
  border-radius: .3rem;
  background: rgb(15 22 42 / 54%);
  box-shadow: 0 10px 30px rgb(0 0 0 / 45%), inset 0 0 24px rgb(0 0 0 / 28%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.misc-header {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem .75rem;
}

.misc-header h2 {
  margin: 0;
  color: var(--misc-accent);
  font: bold clamp(1.6rem, 4vw, 2.35rem) "Times New Roman", Times, serif;
  text-align: center;
  text-shadow: 0 1px 8px hsl(var(--misc-hue) 100% 55% / 35%);
}

.misc-back {
  justify-self: start;
  padding: .38rem .9rem .43rem;
  border: 2px outset var(--misc-accent-light);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--misc-accent-light), hsl(var(--misc-hue) 81% 57%) 52%, var(--misc-accent-dark));
  box-shadow: inset 0 1px 1px #fff8d9, 0 2px 4px #000;
  color: #241b07;
  font-family: "Comic Neue", "Comic Sans MS", cursive;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 0 1px #fff7ce;
}

.misc-back:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px hsl(var(--misc-hue) 55% 25% / 70%);
}

.hue-control {
  display: grid;
  justify-self: end;
  gap: .2rem;
  color: var(--misc-accent);
  font: .78rem "Times New Roman", Times, serif;
  text-align: center;
}

.hue-control input {
  width: 92px;
  height: 18px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.hue-control input::-webkit-slider-runnable-track {
  height: 7px;
  border: 1px solid #0a0a12;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d4d, #ffbf39, #87ed4d, #42e3e8, #658dff, #d761ed);
}

.hue-control input::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -4px;
  appearance: none;
  border: 2px solid #fff7c5;
  border-radius: 50%;
  background: var(--misc-accent);
  box-shadow: 0 1px 3px #000;
}

.hue-control input::-moz-range-track {
  height: 7px;
  border: 1px solid #0a0a12;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d4d, #ffbf39, #87ed4d, #42e3e8, #658dff, #d761ed);
}

.hue-control input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid #fff7c5;
  border-radius: 50%;
  background: var(--misc-accent);
  box-shadow: 0 1px 3px #000;
}

.misc-links {
  margin: 0;
  padding: .3rem 2.3rem 1.5rem 3rem;
  color: #fff;
  font: 1.08rem/1.5 "Times New Roman", Times, serif;
}

.misc-links li {
  margin: .45rem 0;
}

.misc-links a {
  color: var(--misc-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.misc-links a:hover,
.misc-links a:focus-visible {
  color: var(--misc-accent-light);
}

@media (max-width: 560px) {
  .misc-shell { padding: 1rem .7rem; }
  .misc-header { grid-template-columns: 1fr auto; gap: .7rem; }
  .misc-header h2 { grid-row: 2; grid-column: 1 / -1; }
  .misc-links { padding: .2rem 1.5rem 1.2rem 2.3rem; }
}
