/* ============================================================
   style.css  —  Aussehen des Glücksrads
   ============================================================ */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  user-select: none;
  background: linear-gradient(160deg, #00b4d8, #0077b6);
}

/* Farb-Themes (in config.js wählbar) */
body.theme-neon   { background: linear-gradient(160deg, #f706cf, #7b2ff7, #00f5d4); }
body.theme-sunset { background: linear-gradient(160deg, #ff8c42, #ff5d8f, #6a0572); }
body.theme-ocean  { background: linear-gradient(160deg, #00b4d8, #0077b6, #023e8a); }
body.theme-party  { background: linear-gradient(160deg, #f9d423, #ff4e50, #6a0572); }

h1 { margin: 0 0 4px; font-size: 1.6rem; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.subtitle { margin: 0 0 18px; opacity: 0.95; font-size: 0.95rem; }

/* Bereich um das Rad (für den Zeiger) */
.wheel-area { position: relative; width: min(86vw, 340px); aspect-ratio: 1/1; margin-bottom: 18px; }

/* Der Zeiger oben (zeigt nach unten ins Rad) */
.pointer {
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 26px solid #fff;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
  z-index: 3;
}

/* Das Rad selbst */
canvas#wheel {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), inset 0 0 0 6px rgba(255,255,255,0.9);
  display: block;
}

/* Knopf in der Mitte (Deko) */
.hub {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.spin-btn {
  border: none;
  border-radius: 999px;
  padding: 15px 34px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #6a0572;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: transform 0.08s ease;
}
.spin-btn:active { transform: scale(0.96); }
.spin-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.result {
  margin-top: 18px;
  min-height: 2.2em;
  font-size: 1.2rem;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* Ergebnis mit Link -> als auffälliger, tippbarer Button */
.result-link {
  display: inline-block;
  text-decoration: none;
  background: #fff;
  color: #6a0572;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  animation: pop 0.4s ease;
}
.result-link:active { transform: scale(0.96); }

/* Großes Ergebnis-Overlay */
.overlay {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 50;
}
.overlay-text {
  font-size: 2rem; font-weight: 900; color: #fff;
  text-shadow: 0 0 18px #ff5d8f, 0 4px 10px rgba(0,0,0,0.5);
  padding: 0 24px; text-align: center;
  animation: pop 0.5s ease;
}
@keyframes pop {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* Name-Eingabe (optional) */
.name-input {
  width: min(86vw, 340px);
  padding: 11px 14px;
  margin: 0 0 16px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  text-align: center;
  color: #2a0845;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Link zum Schande-Verlauf (Hall of Fame) */
.hof-link {
  display: inline-block;
  margin-top: 18px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  opacity: 0.95;
  border-bottom: 2px solid rgba(255,255,255,0.6);
  padding-bottom: 2px;
}
.hof-link:active { transform: scale(0.97); }

/* Vollbild für Bild/Video */
.media-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.media-content { max-width: 100%; max-height: 100%; display: flex; }
.media-content img, .media-content video {
  max-width: 100%; max-height: 88vh; border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.media-close {
  position: absolute; top: 14px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.92); color: #2a0845;
  font-size: 1.3rem; font-weight: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hidden { display: none !important; }
