@charset "UTF-8";
/* ======== dein bestehendes SCSS (unverändert) ======== */
body {
  background: #f1f5f9;
  padding: 0;
  margin: 0;
}

@keyframes overlayAnimation {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(2);
  }
}
/* ================= APP BAR ================= */
.app-bar {
  background: linear-gradient(90deg, rgba(211, 0, 108, 0.8) 0%, rgba(28, 133, 152, 0.8) 100%);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  height: 64px;
  width: 100%;
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.0075em;
  padding-left: 12px;
  padding-right: 12px;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
  /* Aktionen rechts in einer Gruppe halten */
}
.app-bar .app-bar__title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.app-bar .app-bar__actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-right: 24px;
}
.app-bar .app-bar__action {
  border: 1px solid white;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  padding: 6px;
  transition: transform 0.1s ease, background-color 0.2s ease;
  background-color: transparent;
}
.app-bar .app-bar__action:hover {
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, 0.08);
}
.app-bar .app-bar__action svg {
  width: 24px;
  height: 24px;
  color: white;
  flex: 0 0 auto;
}

.wrapper {
  max-width: 1900px;
  margin: 0 auto;
  padding-top: 70px;
}

h2 {
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  line-height: 1.334;
  letter-spacing: 0em;
  color: #232323;
  text-align: left;
  margin: 0 auto;
  padding: 10px 0;
  text-indent: 8px;
}

.sound {
  position: relative;
  margin: 6px;
  padding: 0;
  width: 80px;
  background-color: black;
  border: none;
  -webkit-appearance: none;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}
.sound:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 80%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.sound:hover {
  box-shadow: 0px 4px 2px -2px rgba(0, 0, 0, 0.3), 0px 2px 2px 0px rgba(0, 0, 0, 0.2), 0px 2px 6px 0px rgba(0, 0, 0, 0.15);
}
.sound:hover:after {
  opacity: 1;
  animation: overlayAnimation 0.5s forwards;
}
.sound img {
  display: inline-block;
  width: 80px;
  height: 80px;
}
.sound div {
  background-color: black;
  color: white;
  font-size: 11px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  padding: 2px 4px 4px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.sound audio {
  display: none;
}

/* ================= PROGRESS BAR ================= */
.w3-light-grey,
.w3-hover-light-grey:hover,
.w3-light-gray,
.w3-hover-light-gray:hover {
  color: #000 !important;
  background-color: #dedede !important;
}

.w3-round-xlarge {
  border-radius: 16px;
  box-sizing: border-box;
  border: 0.5px solid lightgrey;
}

.w3-container {
  padding: 0.01em 16px;
  font-family: "Poppins", sans-serif;
}

.w3-blue,
.w3-hover-blue:hover {
  color: #fff !important;
  background-color: #2196f3 !important;
  background: linear-gradient(90deg, rgb(211, 0, 108) 0%, rgb(28, 133, 152) 100%);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.2s;
}

#loading-wrapper {
  width: 80%;
  margin: 0 auto;
  padding-top: 24px;
  box-sizing: border-box;
  height: 50px;
  transition: height 1s;
  overflow: hidden;
}

@media screen and (max-width: 550px) {
  #loading-wrapper {
    display: none;
  }
  .sound-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* ================= MATERIAL-STYLE SUCHFELD ================= */
.md-search {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 0.35rem 0.6rem 0.35rem 2.2rem;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  transition: box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  max-width: 420px;
  min-width: 160px;
  width: 100%;
  justify-self: center;
}
.md-search:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.md-search .md-search__icon {
  position: absolute;
  left: 0.6rem;
  width: 20px;
  height: 20px;
  opacity: 0.95;
}
.md-search .md-search__input {
  width: 100%;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.25rem 0;
}
.md-search .md-search__input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.85);
}
.md-search .md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}
.md-search .md-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.md-search .md-search__clear {
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0.1rem 0.25rem 0.2rem;
  margin-left: 0.25rem;
  border-radius: 50%;
  color: #fff;
  opacity: 0.9;
  transition: background-color 0.15s ease, opacity 0.15s ease, transform 0.06s ease;
}
.md-search .md-search__clear:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}
.md-search .md-search__clear:active {
  transform: scale(0.98);
}

/* Filter-Visibility */
.sound[hidden] {
  display: none !important;
}

.category-hidden {
  display: none !important;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 800px) {
  .app-bar {
    grid-template-columns: auto 1fr auto;
  }
  .app-bar .md-search {
    max-width: 240px;
  }
  .app-bar .app-bar__title {
    font-size: 1.1rem;
  }
}
/* ================= MOBILE SPEZIFISCH ================= */
@media (max-width: 480px) {
  .app-bar {
    grid-template-columns: auto 1fr auto;
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .app-bar .app-bar__title {
    font-size: 1rem;
  }
  .app-bar .md-search {
    max-width: 140px;
    min-width: 120px;
    padding: 0.25rem 0.5rem 0.25rem 1.8rem;
  }
  .app-bar .md-search .md-search__input {
    font-size: 0.8rem;
  }
  .app-bar .md-search .md-search__icon {
    width: 16px;
    height: 16px;
    left: 0.4rem;
  }
  .app-bar .md-search .md-search__clear {
    font-size: 16px;
    padding: 0.05rem 0.2rem;
  }
  .app-bar .app-bar__action {
    width: 36px;
    height: 36px;
    padding: 4px;
  }
  .app-bar .app-bar__action svg {
    width: 22px;
    height: 22px;
  }
}
/* ================= DARK MODE ================= */
/* Manuelles Toggle: <html class="dark"> … */
.dark body {
  background: #0f1522;
  color: #e5e7eb;
}
.dark h2 {
  color: #e5e7eb;
}
.dark .app-bar {
  background: linear-gradient(90deg, rgba(211, 0, 108, 0.9) 0%, rgba(28, 133, 152, 0.9) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 1px 6px rgba(0, 0, 0, 0.4);
}
.dark .app-bar .app-bar__title {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.dark .app-bar .app-bar__action {
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.dark .app-bar .app-bar__action:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.dark .app-bar .app-bar__action svg {
  color: #fff;
}
.dark .md-search {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.dark .md-search:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.dark .md-search .md-search__icon {
  opacity: 0.95;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3));
}
.dark .md-search .md-search__input {
  color: #fff;
}
.dark .md-search .md-search__input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.75);
}
.dark .md-search .md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}
.dark .md-search .md-search__clear {
  color: #fff;
  opacity: 0.9;
}
.dark .md-search .md-search__clear:hover {
  background: rgba(255, 255, 255, 0.12);
}
.dark .sound {
  background-color: #0b0f18;
  box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.6), 0 1px 1px 0 rgba(0, 0, 0, 0.5), 0 1px 3px 0 rgba(0, 0, 0, 0.5);
}
.dark .sound:after {
  background-color: rgba(255, 255, 255, 0.08);
}
.dark .sound:hover {
  box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.7), 0 2px 2px 0 rgba(0, 0, 0, 0.6), 0 2px 6px 0 rgba(0, 0, 0, 0.55);
}
.dark .sound div {
  background-color: #0b0f18;
  color: #f3f4f6;
}
.dark .w3-light-grey,
.dark .w3-hover-light-grey:hover,
.dark .w3-light-gray,
.dark .w3-hover-light-gray:hover {
  color: #e5e7eb !important;
  background-color: #242a36 !important;
}
.dark .w3-round-xlarge {
  border-color: #3b4252;
}
.dark .w3-container {
  color: #e5e7eb;
}
.dark .w3-blue,
.dark .w3-hover-blue:hover {
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@media (max-width: 480px) {
  .dark .app-bar .md-search {
    background: rgba(255, 255, 255, 0.06);
  }
}

/* Automatik */
@media (prefers-color-scheme: dark) {
  :root:not(.light) body {
    background: #0f1522;
    color: #e5e7eb;
  }
  :root:not(.light) h2 {
    color: #e5e7eb;
  }
  :root:not(.light) .app-bar {
    background: linear-gradient(90deg, rgba(211, 0, 108, 0.9) 0%, rgba(28, 133, 152, 0.9) 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 1px 6px rgba(0, 0, 0, 0.4);
  }
  :root:not(.light) .app-bar .app-bar__title {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  }
  :root:not(.light) .app-bar .app-bar__action {
    border: 1px solid rgba(255, 255, 255, 0.6);
  }
  :root:not(.light) .app-bar .app-bar__action:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  :root:not(.light) .app-bar .app-bar__action svg {
    color: #fff;
  }
  :root:not(.light) .md-search {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
  }
  :root:not(.light) .md-search:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  }
  :root:not(.light) .md-search .md-search__icon {
    opacity: 0.95;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3));
  }
  :root:not(.light) .md-search .md-search__input {
    color: #fff;
  }
  :root:not(.light) .md-search .md-search__input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.75);
  }
  :root:not(.light) .md-search .md-search__input::placeholder {
    color: rgba(255, 255, 255, 0.75);
  }
  :root:not(.light) .md-search .md-search__clear {
    color: #fff;
    opacity: 0.9;
  }
  :root:not(.light) .md-search .md-search__clear:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  :root:not(.light) .sound {
    background-color: #0b0f18;
    box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.6), 0 1px 1px 0 rgba(0, 0, 0, 0.5), 0 1px 3px 0 rgba(0, 0, 0, 0.5);
  }
  :root:not(.light) .sound:after {
    background-color: rgba(255, 255, 255, 0.08);
  }
  :root:not(.light) .sound:hover {
    box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.7), 0 2px 2px 0 rgba(0, 0, 0, 0.6), 0 2px 6px 0 rgba(0, 0, 0, 0.55);
  }
  :root:not(.light) .sound div {
    background-color: #0b0f18;
    color: #f3f4f6;
  }
  :root:not(.light) .w3-light-grey,
  :root:not(.light) .w3-hover-light-grey:hover,
  :root:not(.light) .w3-light-gray,
  :root:not(.light) .w3-hover-light-gray:hover {
    color: #e5e7eb !important;
    background-color: #242a36 !important;
  }
  :root:not(.light) .w3-round-xlarge {
    border-color: #3b4252;
  }
  :root:not(.light) .w3-container {
    color: #e5e7eb;
  }
  :root:not(.light) .w3-blue,
  :root:not(.light) .w3-hover-blue:hover {
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
}
@media (prefers-color-scheme: dark) and (max-width: 480px) {
  :root:not(.light) .app-bar .md-search {
    background: rgba(255, 255, 255, 0.06);
  }
}
/* ==================== Favoriten (ohne Animation) ==================== */
.edit-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.sound .fav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  font-size: 16px;
  color: #fff;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  z-index: 2;
}
.sound .fav-badge.add {
  background: #16a34a;
}
.sound .fav-badge.remove {
  background: #dc2626;
}

.edit-mode .sound .fav-badge {
  display: inline-flex;
}

.favorites-section {
  margin-top: 6px;
}

/* ===== Ergänzung: Snake-UI ===== */
@media (max-width: 800px) {
  #open-snake {
    display: none !important;
  }
}
#snake-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#snake-overlay[aria-hidden=false] {
  display: flex;
}

.modal-open {
  overflow: hidden;
}

.snake-modal {
  width: min(100%, 980px);
  background: linear-gradient(180deg, #0b0f18 0%, #0e1422 100%);
  color: #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  font-family: "Poppins", sans-serif;
}

.snake-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.snake-title-group h3 {
  margin: 0;
  font-size: 1.25rem;
}

.snake-subtitle {
  opacity: 0.8;
  font-size: 0.85rem;
}

.snake-controls {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.snake-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 0.9rem;
}

.snake-btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  transition: transform 0.06s ease, background-color 0.15s ease;
}

.snake-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.snake-btn.ghost {
  background: transparent;
}

.snake-hud {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.95rem;
  margin: 4px 0 12px;
  opacity: 0.95;
}

.snake-stage-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(1200px 600px at 20% 10%, #12192a, #0b0f18);
}

#snake-canvas {
  display: block;
  width: 100%;
  height: auto;
}

#snake-pop-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.snake-pop {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) scale(0.6);
  animation: pop-bubble 0.8s ease-out forwards;
  overflow: hidden;
}

.snake-pop img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
}

@keyframes pop-bubble {
  60% {
    transform: translate(-50%, -80%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -120%) scale(0.8);
    opacity: 0;
  }
}
/* Leaderboard */
.snake-leaderboard {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
}

.snake-lead-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.snake-leaderboard h4 {
  margin: 0;
  font-size: 1rem;
}

.snake-leaders {
  margin: 8px 0 0;
  padding-left: 20px;
  max-height: 180px;
  overflow: auto;
}

.snake-leaders li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  padding: 2px 0;
}

.snake-leaders .name {
  opacity: 0.95;
}

.snake-leaders .score {
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

/* Name-Dialog */
.snake-name-dialog {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
}

.snake-name-dialog[aria-hidden=false] {
  display: grid;
}

.snd-card {
  width: min(92vw, 420px);
  background: #0d1322;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.snd-card h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

.snd-hint {
  margin: 0 0 10px;
  opacity: 0.85;
  font-size: 0.9rem;
}

.snd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.snd-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

#snd-name-input {
  background: #0b0f18;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 1rem;
  outline: 0;
}

#snd-name-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

#snd-name-input.snd-invalid {
  border-color: #e11d48;
}

.snd-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}/*# sourceMappingURL=style.css.map */