/* ===== Grundlayout ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #d6dce5;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* ===== Legende oben links ===== */
.legend {
  position: absolute;
  top: 18px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-square {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-color: #e85d26;
  border: 2px solid #c14a1a;
  border-radius: 2px;
}

.legend-text {
  font-size: 18px;
  font-weight: 700;
  color: #2b4a8c;
}

/* ===== Mute-Button oben rechts ===== */
.mute-btn {
  position: absolute;
  top: 14px;
  right: 20px;
  background: rgba(255,255,255,0.6);
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 22px;
  padding: 4px 10px;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}
.mute-btn:hover {
  background: rgba(255,255,255,0.9);
}

/* ===== Container für die drei Räder ===== */
.wheels-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ===== Einzelnes Rad-Paket ===== */
.wheel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.wheel-assembly {
  position: relative;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Zeiger (Dreieck oben) ===== */
.pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #c0392b;
  z-index: 5;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

/* ===== Rad (SVG-Container) ===== */
.wheel-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #333;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  /* Transition wird per JS gesteuert */
}

.wheel-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Glow-Effekt nach Stop: Gewinn (grün) vs. Verlust (orange/rot) */
.wheel-circle.glow-win {
  box-shadow: 0 0 22px 8px rgba(40, 180, 50, 0.65);
}
.wheel-circle.glow-lose {
  box-shadow: 0 0 18px 6px rgba(232, 93, 38, 0.55);
}

/* ===== Ständer ===== */
.stand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -2px;
}

.stand-pole {
  width: 8px;
  height: 40px;
  background: linear-gradient(to right, #888, #bbb, #888);
  border-radius: 2px;
}

.stand-base {
  width: 70px;
  height: 12px;
  background: linear-gradient(to bottom, #999, #666);
  border-radius: 0 0 8px 8px;
  margin-top: -1px;
}

/* ===== Beschriftung unter dem Rad ===== */
.wheel-label {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #2b4a8c;
  text-align: center;
}

/* ===== Responsiv ===== */
@media (max-width: 700px) {
  .wheels-container {
    gap: 30px;
  }
  .wheel-assembly {
    width: 160px;
  }
  .wheel-circle {
    width: 150px;
    height: 150px;
  }
  .wheel-label {
    font-size: 17px;
  }
}

@media (max-width: 500px) {
  .wheels-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
}
