/* Einbindung des Gorilla-Fonts */
@font-face {
  font-family: "Gorilla";
  src: url("/fonts/Gorilla.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* CSS-Variablen für wiederverwendbare Werte */
:root {
  --primary-color: #4361ee;
  --hover-color: #3a0ca3;
  --header-bg: #030d2c;
  --background-overlay: rgba(255, 255, 255, 0.1);
  --tooltip-bg: rgba(255, 255, 255, 0.15);
  --tooltip-border: rgba(255, 255, 255, 0.3);
  --text-color: white;
  --placeholder-color: rgba(255, 255, 255, 0.6);
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --volume-slider-bg: rgba(0, 0, 0, 0.7);
  --audio-control-bg: rgba(0, 0, 0, 0.5);
  --audio-control-bg-hover: rgba(0, 0, 0, 0.7);
  --accent-color: #14376b;
}

/* Allgemeine Styles für die Webseite */
body {
  margin: 0;
  overflow: hidden;
  color: var(--text-color);
  font-family: "Gorilla", sans-serif;
}

/* Hintergrundbild */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/images/Background.webp") no-repeat center center fixed;
  background-size: cover;
  z-index: -1;
}

/* Sternen-Canvas */
#starCanvas {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Tooltip-Styling */
.tooltip {
  position: absolute;
  background: var(--tooltip-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--tooltip-border);
  padding: 10px 15px;
  border-radius: 10px;
  visibility: hidden;
  pointer-events: none;
  color: var(--text-color);
  font-family: "Gorilla", sans-serif;
  font-size: 14px;
  text-align: center;
  max-width: 200px;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  transform: translateY(-10px);
  opacity: 0;
  box-shadow: var(--box-shadow);
  z-index: 10;
}

.tooltip.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

#header-ui {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 1600px);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 18, 44, 0.9), rgba(10, 18, 44, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
  z-index: 100;
}

#header-ui .box {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 14px;
  min-height: 40px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 0;
  padding-right: 4px;
}

.logo-image {
  height: 40px;
  width: auto;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
  filter: drop-shadow(0 0 12px rgba(123, 166, 255, 0.16));
}

.logo:hover .logo-image {
  transform: scale(1.04);
  filter: drop-shadow(0 0 18px rgba(123, 166, 255, 0.28));
}

#filterForm {
  gap: 12px;
}

#filterForm label {
  font-family: "Gorilla", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
}

#filterForm select,
#searchBox input[type="text"] {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.075);
  color: var(--text-color);
  font-family: "Gorilla", sans-serif;
  font-size: 14px;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
  box-sizing: border-box;
}

#filterForm select:focus,
#searchBox input[type="text"]:focus {
  outline: none;
  border-color: rgba(150, 188, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 4px rgba(67, 97, 238, 0.16),
    0 0 18px rgba(125, 166, 255, 0.12);
}

#filterForm select option {
  color: white;
  background: #091225;
}

#filterForm select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 112px;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.75) 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.75) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

#searchBox {
  gap: 10px;
}

#searchBox input[type="text"] {
  min-width: 220px;
}

#searchBox {
  position: relative;
  overflow: visible;
}

#searchInput {
  text-overflow: ellipsis;
}

#searchBox input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Gorilla", sans-serif;
}

#searchBox button,
.play-button {
  height: 38px;
  padding: 0 15px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(76, 110, 245, 0.95), rgba(91, 141, 239, 0.95));
  color: white;
  font-family: "Gorilla", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(67, 97, 238, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

#searchBox button:hover,
.play-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(67, 97, 238, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  filter: brightness(1.05);
}

#searchBox button:active,
.play-button:active {
  transform: scale(0.98);
}

.suggestions-list {
  position: fixed;
  display: none;
  flex-direction: column;
  max-height: min(320px, 42vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10, 18, 44, 0.96), rgba(10, 18, 44, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  z-index: 2200;
}

.suggestions-list.show {
  display: flex;
}

.suggestions-list div {
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Gorilla", sans-serif;
  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.suggestions-list div:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(2px);
}

.suggestions-list::-webkit-scrollbar {
  width: 10px;
}

.suggestions-list::-webkit-scrollbar-track {
  background: transparent;
}

.suggestions-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.audio-control {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-color);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.audio-control:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(125, 166, 255, 0.35);
}

.volume-slider {
  align-items: center;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  padding: 10px 12px;
  width: 170px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10, 18, 44, 0.96), rgba(10, 18, 44, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-sizing: border-box;
  z-index: 2200;
}

#volumeControl {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

#volumeControl:focus {
  outline: none;
}

#volumeControl::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91, 141, 239, 0.95), rgba(160, 196, 255, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

#volumeControl::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(176, 210, 255, 0.95));
  box-shadow:
    0 0 0 4px rgba(91, 141, 239, 0.14),
    0 6px 14px rgba(0, 0, 0, 0.28);
}

#volumeControl::-moz-range-track {
  height: 6px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91, 141, 239, 0.95), rgba(160, 196, 255, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

#volumeControl::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(176, 210, 255, 0.95));
  box-shadow:
    0 0 0 4px rgba(91, 141, 239, 0.14),
    0 6px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

#volumeControl::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91, 141, 239, 0.95), rgba(160, 196, 255, 0.9));
}

.volume-slider.show {
  display: block;
}

#star-counts {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Gorilla", sans-serif;
}

.star-count-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  min-height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-sizing: border-box;
}

.star-icon {
  height: 22px;
  width: auto;
}

.star-count-text {
  font-family: "Gorilla", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.settings-button {
  margin-left: auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  font-size: 18px;
  line-height: 1;
  align-self: center;
  z-index: 2000;
  position: relative;
  cursor: pointer;
  pointer-events: auto;
  box-sizing: border-box;
  transition:
    transform 0.2s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.settings-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(125, 166, 255, 0.35);
}

.logo {
  flex: 0 0 auto;
}

#filterForm {
  flex: 0 0 auto;
  gap: 10px;
}

#filterForm label {
  white-space: nowrap;
}

#searchBox {
  flex: 1 1 360px;
  max-width: 420px;
  min-width: 280px;
  gap: 8px;
}

#searchBox input[type="text"] {
  min-width: 0;
  width: 100%;
}

.audio-control {
  flex: 0 0 auto;
}

#star-counts {
  flex: 0 0 auto;
  gap: 8px;
  margin-left: 4px;
}

.star-count-item {
  padding: 6px 9px;
}

.play-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.settings-button {
  flex: 0 0 auto;
  margin-left: auto;
}

.credits-time-tools,
.credits-speed-tools {
  position: fixed;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.credits-time-tools {
  top: 18px;
  left: 18px;
}

.credits-speed-tools {
  top: 18px;
  right: 18px;
  align-items: flex-end;
}

.credits-time-counter,
.credits-speed-control {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(7, 12, 30, 0.88), rgba(7, 12, 30, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  color: white;
}

.credits-time-counter {
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.credits-speed-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(7, 12, 30, 0.82);
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.2s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.credits-speed-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(125, 166, 255, 0.35);
}

.credits-speed-control {
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credits-speed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.credits-speed-row label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  white-space: nowrap;
}

.credits-duration-fields {
  display: flex;
  align-items: center;
  gap: 8px;
}

.credits-speed-control input[type="number"] {
  width: 72px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-family: "Gorilla", sans-serif;
  font-size: 14px;
  text-align: center;
  outline: none;
  box-sizing: border-box;
}

.credits-speed-control input[type="number"]:focus {
  border-color: rgba(125, 166, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.14);
}

.credits-speed-control span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  min-width: auto;
  text-align: left;
}

.credits-apply-button {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(76, 110, 245, 0.95), rgba(91, 141, 239, 0.95));
  color: white;
  font-family: "Gorilla", sans-serif;
  font-size: 14px;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(67, 97, 238, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.credits-apply-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(67, 97, 238, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  filter: brightness(1.05);
}

.credits-apply-button:active {
  transform: scale(0.98);
}

.hidden {
  display: none !important;
}

.credits-scene {
  --credits-duration: 45000ms;
  position: fixed;
  inset: 0;
  z-index: 2200;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  background:
    radial-gradient(circle at top, rgba(85, 125, 255, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.68) 0%, rgba(2, 6, 23, 0.42) 20%, rgba(2, 6, 23, 0.82) 100%);
  backdrop-filter: blur(2px);
}

.credits-scene.active {
  opacity: 1;
}

.credits-scene.hidden {
  display: none;
}

.credits-backdrop,
.credits-vignette,
.credits-gradient,
.credits-scroll-shell {
  position: absolute;
  inset: 0;
}

.credits-vignette {
  background: radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.45) 100%);
}

.credits-gradient-top {
  height: 18vh;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0));
}

.credits-gradient-bottom {
  top: auto;
  height: 24vh;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0));
}

.credits-scroll-shell {
  display: flex;
  justify-content: center;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.credits-track {
  position: absolute;
  left: 50%;
  width: min(780px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  gap: 7rem;
  padding: 22vh 0 28vh;
  transform: translate3d(-50%, 105vh, 0);
  will-change: transform;
}

.credits-scene.active .credits-track {
  animation: credits-roll var(--credits-duration) linear forwards;
}

@keyframes credits-roll {
  from {
    transform: translate3d(-50%, 105vh, 0);
  }
  to {
    transform: translate3d(-50%, -100%, 0);
  }
}

.credits-block {
  text-align: center;
  padding: 0 1rem;
}

.credits-kicker {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(196, 214, 255, 0.82);
}

.credits-level-overline {
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 3rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(196, 214, 255, 0.9);
}

.credits-level-overline span {
  display: inline-block;
  line-height: 1.05;
}

.credits-level-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 18px rgba(160, 196, 255, 0.22));
}

.credits-intro h2,
.credits-outro h2,
.credits-level h3 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.credits-subline {
  max-width: 640px;
  margin: 1.4rem auto 0;
  font-family: "Gorilla", sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(231, 238, 255, 0.86);
}

.credits-names {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.credits-names li {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 18px rgba(103, 148, 255, 0.18);
}

.credits-anonymous {
  color: rgba(222, 232, 255, 0.82);
}

.shooting-star {
  --trail-width: 140px;
  --star-scale: 1;
  position: absolute;
  width: calc(3px * var(--star-scale));
  height: calc(3px * var(--star-scale));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 24px rgba(117, 180, 255, 0.85);
  opacity: 0;
  transform: rotate(-28deg) translate3d(0, 0, 0);
  animation-name: shooting-star-flight;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.shooting-star::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: var(--trail-width);
  height: 1px;
  transform: translate(100%, -50%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}

@keyframes shooting-star-flight {
  0%,
  72%,
  100% {
    opacity: 0;
    transform: rotate(-28deg) translate3d(0, 0, 0) scale(0.8);
  }
  8% {
    opacity: 1;
  }
  34% {
    opacity: 1;
    transform: rotate(-28deg) translate3d(-180px, 180px, 0) scale(1);
  }
  45% {
    opacity: 0;
    transform: rotate(-28deg) translate3d(-260px, 260px, 0) scale(0.92);
  }
}

@media only screen and (max-width: 768px) {
  .credits-track {
    width: calc(100vw - 32px);
    gap: 5.5rem;
    padding: 24vh 0 30vh;
  }

  .credits-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.32em;
  }

  .credits-level-overline {
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    gap: 14px;
  }

  .credits-level-icon {
    width: 56px;
    height: 56px;
  }

  .credits-names li {
    letter-spacing: 0.05em;
  }

  .credits-speed-tools {
    top: auto;
    right: 14px;
    bottom: 14px;
    align-items: flex-end;
  }

  .credits-speed-control {
    min-width: min(280px, calc(100vw - 28px));
  }

  .credits-time-tools {
    top: 14px;
    left: 14px;
  }
}

/* Mobile Anpassungen */
@media only screen and (max-width: 768px) {
  #header-ui {
    width: calc(100% - 20px);
    top: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    gap: 10px;
    justify-content: space-between;
  }

  .logo-image {
    height: 40px;
  }

  .settings-button {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  #filterForm,
  #searchBox,
  .audio-control,
  .audio-control-container,
  .volume-slider,
  #star-counts {
    display: none;
  }

  .tooltip {
    font-size: 10px;
    max-width: 160px;
  }

  #starCanvas {
    width: 200vw;
    height: 200vh;
    position: absolute;
  }

  body {
    overflow: scroll;
  }
}

.settings-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 320px;
  max-width: min(92vw, 420px);
  padding: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 18, 44, 0.96), rgba(10, 18, 44, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  color: white;
  z-index: 3000;
}

.settings-modal.hidden {
  display: none;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 18px;
}

.settings-content h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.03em;
}

.settings-content label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.settings-content input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #5b8def;
  cursor: pointer;
}

.close-settings {
  align-self: flex-end;
  height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(76, 110, 245, 0.95), rgba(91, 141, 239, 0.95));
  color: white;
  font-family: "Gorilla", sans-serif;
  font-size: 14px;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(67, 97, 238, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.close-settings:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(67, 97, 238, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  filter: brightness(1.05);
}
