:root {
  --bg-dark: #040718;
  --bg-panel: #0a1033;
  --border-blue: #466be0;
  --gold: #f5a623;
  --orange: #e67e22;
  --green: #27ae60;
  --red: #c0392b;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
}
body {
  background: radial-gradient(
    circle at center,
    #142266 0%,
    #060921 65%,
    var(--bg-dark) 100%
  );
  color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
}

/*.container {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 25px;
  max-width: 1150px;
  width: 100%;
}
  */

.container {
  display: grid;
  grid-template-columns: 1fr 320px; /* Gewinnleiter rechts etwas breiter (vorher 270px) */
  gap: 35px;
  max-width: 1480px; /* Deutlich breiter auf dem Desktop (vorher 1150px) */
  width: 94%;
}
.game-area {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 16, 51, 0.9);
  padding: 12px 22px;
  border-radius: 50px;
  border: 2px solid var(--border-blue);
  box-shadow: 0 0 15px rgba(70, 107, 224, 0.3);
}
.jokers {
  display: flex;
  gap: 12px;
}
.joker-btn {
  background: linear-gradient(180deg, #1b2c7a, #0a1033);
  color: #fff;
  border: 2px solid var(--border-blue);
  border-radius: 30px;
  padding: 8px 18px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}
.joker-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}
.joker-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.walk-btn {
  background: transparent;
  border: 1px solid #8fa3e0;
  color: #ddd;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  margin-left: 6px;
}
.walk-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.joker-display {
  min-height: 95px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.audience-chart {
  display: flex;
  gap: 20px;
  background: var(--bg-panel);
  padding: 12px 25px;
  border-radius: 15px;
  border: 2px solid var(--border-blue);
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
}
.bar-wrap {
  height: 70px;
  width: 22px;
  background: #040718;
  display: flex;
  align-items: flex-end;
  border-radius: 4px;
  margin: 4px 0;
}
.bar-fill {
  width: 100%;
  background: var(--gold);
  transition: height 0.6s;
}
.phone-timer {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--gold);
  background: var(--bg-panel);
  padding: 12px 25px;
  border-radius: 50px;
  border: 2px solid var(--gold);
}

/* Sechseck-Frage & Antworten */
.wwm-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.wwm-box-wrapper::before,
.wwm-box-wrapper::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--border-blue);
  min-width: 15px;
}
.question-hex {
  position: relative;
  width: 100%;
  background: var(--border-blue);
  padding: 2px;
  clip-path: polygon(
    28px 0%,
    calc(100% - 28px) 0%,
    100% 50%,
    calc(100% - 28px) 100%,
    28px 100%,
    0% 50%
  );
}
.question-inner {
  background: linear-gradient(180deg, #132166 0%, #070c26 100%);
  /* padding: 28px 45px; */
  padding: 36px 55px; /* Vorher: 28px 45px */
  text-align: center;
  /*font-size: 1.35rem; */
  font-size: 1.65rem; /* Vorher: 1.35rem */
  line-height: 1.4;
  clip-path: polygon(
    27px 0%,
    calc(100% - 27px) 0%,
    100% 50%,
    calc(100% - 27px) 100%,
    27px 100%,
    0% 50%
  );
}

.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 0;
}
.answer-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.answer-wrap::before,
.answer-wrap::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--border-blue);
  min-width: 12px;
}
.answer-hex {
  width: 100%;
  background: var(--border-blue);
  padding: 2px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  clip-path: polygon(
    22px 0%,
    calc(100% - 22px) 0%,
    100% 50%,
    calc(100% - 22px) 100%,
    22px 100%,
    0% 50%
  );
}
.answer-btn {
  width: 100%;
  background: linear-gradient(180deg, #132166 0%, #070c26 100%);
  padding: 20px 38px; /* Vorher: 15px 32px */
  color: #fff;
  font-size: 1.25rem; /* Vorher: 1.05rem */
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  clip-path: polygon(
    21px 0%,
    calc(100% - 21px) 0%,
    100% 50%,
    calc(100% - 21px) 100%,
    21px 100%,
    0% 50%
  );
}
.answer-hex:hover:not(:disabled) {
  background: var(--gold);
}
.answer-hex:hover:not(:disabled) .answer-btn {
  background: linear-gradient(180deg, #1c3194 0%, #0b143d 100%);
}
.answer-btn .letter,
.answer-btn .diamond {
  color: var(--gold);
  font-weight: bold;
}
.answer-btn .diamond {
  font-size: 0.7rem;
}

.answer-hex.selected {
  background: #ffffff !important;
}
.answer-hex.selected .answer-btn {
  background: linear-gradient(180deg, #f39c12, #d35400) !important;
}
.answer-hex.selected .letter,
.answer-hex.selected .diamond {
  color: #ffffff !important;
}
.answer-hex.correct {
  background: #ffffff !important;
}
.answer-hex.correct .answer-btn {
  background: linear-gradient(180deg, #2ecc71, #1e8449) !important;
}
.answer-hex.correct .letter,
.answer-hex.correct .diamond {
  color: #ffffff !important;
}
.answer-hex.wrong {
  background: #ffffff !important;
}
.answer-hex.wrong .answer-btn {
  background: linear-gradient(180deg, #e74c3c, #922b21) !important;
}
.answer-hex.wrong .letter,
.answer-hex.wrong .diamond {
  color: #ffffff !important;
}
.answer-wrap.hidden-5050 {
  visibility: hidden;
  pointer-events: none;
}

/* Rechte Gewinnleiter */
.ladder {
  background: rgba(10, 16, 51, 0.92);
  border: 2px solid var(--border-blue);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
}
.step {
  display: flex;
  justify-content: space-between;
  border-radius: 20px;
  padding: 7px 16px; /* Vorher: 5px 14px */
  font-size: 1.08rem; /* Vorher: 0.92rem */
  color: var(--gold);
}
.step.safe {
  color: #fff;
  font-weight: bold;
}
.step.active {
  background: linear-gradient(90deg, #f39c12, #d35400);
  color: #fff;
  font-weight: bold;
}
.step.passed {
  color: #5c76d6;
}

/* Grosse Gewinnstufen-Zwischenanzeige */
.win-banner {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #142266 0%, #040718 90%);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 90;
  padding: 20px;
}
.win-banner h2 {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.big-ladder {
  width: 100%;
  max-width: 480px;
  background: rgba(10, 16, 51, 0.95);
  border: 3px solid var(--border-blue);
  border-radius: 18px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  box-shadow: 0 0 45px rgba(70, 107, 224, 0.6);
}
.big-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 22px;
  font-size: 1.15rem;
  color: var(--gold);
  clip-path: polygon(
    14px 0%,
    calc(100% - 14px) 0%,
    100% 50%,
    calc(100% - 14px) 100%,
    14px 100%,
    0% 50%
  );
}
.big-step.safe {
  color: #ffffff;
  font-weight: bold;
}
.big-step.passed {
  color: #5c76d6;
}
.big-step.reached {
  background: linear-gradient(90deg, #f5a623, #d35400);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.3rem;
  transform: scale(1.03);
}
.skip-btn {
  margin-top: 20px;
  background: transparent;
  border: 1px solid #8fa3e0;
  color: #d8e1ff;
  padding: 8px 22px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95rem;
}
.skip-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Startbildschirm mit eigenem Studio-Hintergrund (bg.png) */
.overlay {
  position: fixed;
  inset: 0;
  background: #040718 url("bg.png") center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 100;
  padding: 20px;
  overflow: hidden;
}

/* Leichte Abdunkelung unten für gute Lesbarkeit der Buttons */
.overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 30%,
    rgba(4, 7, 24, 0.75) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.tv-logo-wrap {
  position: relative;
  z-index: 2;
  width: 380px;
  max-width: 80vw;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.tv-logo-img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.25);
  filter: drop-shadow(0 0 30px rgba(70, 107, 224, 0.8));
}

.tv-logo-img.animate-intro {
  animation:
    logoZoomIn 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    logoFloat 4s ease-in-out 2.8s infinite alternate;
}

@keyframes logoZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.25) rotate(-12deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes logoFloat {
  0% {
    transform: scale(1) translateY(0px);
    filter: drop-shadow(0 0 25px rgba(70, 107, 224, 0.85));
  }
  100% {
    transform: scale(1.03) translateY(-6px);
    filter: drop-shadow(0 0 45px rgba(100, 150, 255, 1));
  }
}

.welcome-controls {
  position: relative;
  z-index: 2;
}
.overlay h1 {
  font-size: 2.1rem;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}
.overlay p {
  font-size: 1.1rem;
  margin-bottom: 22px;
  max-width: 520px;
  line-height: 1.5;
  color: #e6ecff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}
.primary-btn {
  background: linear-gradient(180deg, #f5a623, #c97606);
  color: #040718;
  border: 2px solid #fff;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(245, 166, 35, 0.5);
  transition: transform 0.2s;
}
.primary-btn:hover {
  transform: scale(1.05);
}

.overlay h1 {
  font-size: 2.1rem;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.overlay p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 520px;
  line-height: 1.5;
  color: #d8e1ff;
}
.primary-btn {
  background: linear-gradient(180deg, #f5a623, #c97606);
  color: #040718;
  border: 2px solid #fff;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(245, 166, 35, 0.5);
  transition: transform 0.2s;
}
.primary-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 850px) {
  .container,
  .answers-grid {
    grid-template-columns: 1fr;
  }
  .ladder {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
  }
}
/* Sanftes Einblenden der Antwortfelder (A -> B -> C -> D) */
.answer-wrap {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.answer-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Millionen-Finale & Gewinnscheck */
.million-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #291d00 0%, #040718 85%);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 150;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}
.million-screen h1 {
  font-size: 3rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 25px rgba(245, 166, 35, 0.9);
  margin-bottom: 20px;
  animation: pulseWin 1.5s infinite;
}
.cheque-box {
  background: linear-gradient(135deg, #162675 0%, #0a1033 100%);
  border: 4px solid var(--gold);
  border-radius: 20px;
  padding: 35px 50px;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 0 60px rgba(245, 166, 35, 0.7);
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}
.cheque-box .cheque-title {
  font-size: 1.1rem;
  color: #8fa3e0;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cheque-box .cheque-amount {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--gold);
  margin: 15px 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}
.cheque-box .cheque-sub {
  font-size: 1.2rem;
  color: #fff;
}
.confetti {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 12px;
  opacity: 0.9;
  animation: fall linear forwards;
  z-index: 1;
}
@keyframes pulseWin {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@keyframes fall {
  to {
    transform: translateY(105vh) rotate(720deg);
  }
}
