@font-face {
  font-family: "Quake";
  src: url("../fonts/dpquake.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

html, body { height: 100%; margin: 0; overflow: hidden; }

body {
  background: url("../assets/img/wurstbg.png") center center / cover no-repeat fixed;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

/* ===== Zentrales Logo ===== */
.center-logo {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 10;              /* über dem Canvas */
  pointer-events: none;
}

.center-logo img {
  max-width: min(80vw, 900px);
  height: auto;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.center-logo img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 30px rgba(255, 120, 0, 0.6));
}

/* ===== Musik-Player ===== */
.music-player {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 20;              /* über dem Canvas */
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  color: #fff;
  user-select: none;
}

.mp-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.mp-btn:hover { background: rgba(255, 255, 255, .14); }

.mp-meta { display: flex; flex-direction: column; line-height: 1.1; }
.mp-title { font-weight: 700; font-size: 14px; }
.mp-artist { opacity: .8; font-size: 12px; }

/* ===== Quake-Menü ===== */
.quake-menu {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  z-index: 15;
  background: rgba(0, 0, 0, .25);
  color: #f2f2f2;
  font-family: "Quake", monospace;
}

#menuList {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(44px, 6vw, 86px);
  letter-spacing: 2px;
  text-transform: uppercase;
}

#menuList li {
  position: relative;
  padding: 10px 10px 10px 80px;   /* Platz für die Wurst */
  margin: 10px 0;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 6px 22px rgba(0, 0, 0, .75);
}

#menuList li.active {
  filter: drop-shadow(0 0 26px rgba(255, 140, 0, .55));
}

.menu-wurst {
  position: fixed;
  width: 64px;
  height: auto;
  z-index: 16;
  pointer-events: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .8));
  animation: quakeSpin 1.4s linear infinite;
  transform-style: preserve-3d;
  will-change: transform;
}

.hidden { display: none !important; }

/* ===== Overlays (Links + About) ===== */
.links-overlay {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  z-index: 25;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  color: #f2f2f2;
  font-family: "Quake", monospace;
}

.links-panel {
  width: min(92vw, 560px);
  max-height: 82vh;
  overflow: auto;
  background: rgba(15, 15, 15, .85);
  border: 1px solid rgba(255, 140, 0, .35);
  border-radius: 16px;
  padding: 28px 30px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.links-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 6px 22px rgba(0, 0, 0, .75);
}

.links-panel ul { list-style: none; margin: 0; padding: 0; }
.links-panel li { margin: 2px 0; }

.links-panel a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #f2f2f2; text-decoration: none;
  font-size: clamp(18px, 2.4vw, 24px);
  transition: background .12s ease, transform .12s ease, filter .12s ease;
}

.links-panel a:hover {
  background: rgba(255, 140, 0, .12);
  transform: translateX(4px);
  filter: drop-shadow(0 0 18px rgba(255, 140, 0, .45));
}

.links-panel a .lp-desc {
  margin-left: auto;
  font-size: 12px; opacity: .6;
  font-family: system-ui, monospace;
}

.links-hint {
  margin-top: 18px; text-align: center;
  font-size: 12px; opacity: .55;
  font-family: system-ui, monospace;
}

.about-text {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
  color: #eaeaea;
}

/* ===== Toast-Hinweis ===== */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 40;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(15, 15, 15, .9);
  border: 1px solid rgba(255, 140, 0, .35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
  color: #eaeaea;
  font: 14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast a { color: #ff9a3c; text-decoration: none; font-weight: 600; }
.toast a:hover { text-decoration: underline; }

@keyframes quakeSpin {
  from { transform: translate(-50%, -50%) rotateY(0deg); }
  to   { transform: translate(-50%, -50%) rotateY(360deg); }
}
