* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff7d6;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 213, 79, 0.35), transparent 22%),
    radial-gradient(circle at 15% 20%, rgba(244, 63, 94, 0.35), transparent 25%),
    radial-gradient(circle at 85% 22%, rgba(59, 130, 246, 0.35), transparent 25%),
    linear-gradient(135deg, #170018, #27003f 42%, #050014);
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.45) 1px, transparent 1.5px);
  background-size: 48px 48px;
  opacity: 0.16;
  pointer-events: none;
}

.casino {
  position: relative;
  width: min(92vw, 620px);
  padding: 34px 38px 42px;
  border-radius: 44px 44px 34px 34px;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,0.15) 12%, transparent 18%),
    linear-gradient(145deg, #be123c, #7f1d1d 48%, #450a0a);
  border: 8px solid #facc15;
  box-shadow:
    0 35px 90px rgba(0,0,0,0.6),
    inset 0 0 0 4px rgba(255,255,255,0.16),
    inset 0 -28px 42px rgba(0,0,0,0.28),
    0 0 38px rgba(250,204,21,0.48);
}

.casino::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: -34px;
  height: 78px;
  border-radius: 999px 999px 24px 24px;
  background:
    repeating-radial-gradient(circle at 18px 18px, #fff7ad 0 4px, #f59e0b 5px 8px, transparent 9px 28px),
    linear-gradient(180deg, #fbbf24, #b45309);
  border: 6px solid #fff1a8;
  box-shadow: 0 0 28px rgba(250,204,21,0.75);
  z-index: -1;
}

.casino::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -28px;
  height: 44px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, #7f1d1d, #2b0202);
  border: 5px solid #facc15;
  border-top: 0;
  z-index: -1;
}

h1 {
  margin: 4px 0 8px;
  text-align: center;
  font-size: clamp(2.3rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: #fff7ad;
  text-shadow:
    0 3px 0 #7c2d12,
    0 0 12px #facc15,
    0 0 28px #fb7185;
}

.subtitle {
  margin: 0 0 24px;
  text-align: center;
  color: #ffe4a3;
  font-weight: 700;
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.score-card {
  padding: 13px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, #2a0909, #120202);
  border: 3px solid #f59e0b;
  box-shadow:
    inset 0 0 18px rgba(250,204,21,0.18),
    0 7px 0 #451a03;
  text-align: center;
}
.home-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  color: #2b0202;

  background: linear-gradient(180deg, #fef08a, #f59e0b);
  border: 3px solid #fff7ad;

  box-shadow:
    0 6px 0 #7c2d12,
    0 0 15px rgba(250,204,21,0.5);

  z-index: 1000;
  transition: all 0.15s ease;
}

.home-btn:hover {
  transform: translateY(-2px);
}

.home-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #7c2d12;
}
.label {
  display: block;
  margin-bottom: 4px;
  color: #fef3c7;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.value {
  color: #facc15;
  font-size: 1.45rem;
  font-weight: 950;
  text-shadow: 0 0 10px rgba(250,204,21,0.9);
}

.machine {
  position: relative;
  padding: 22px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 32%),
    linear-gradient(180deg, #f59e0b, #92400e);
  border: 6px solid #fff1a8;
  box-shadow:
    inset 0 0 0 4px #7c2d12,
    inset 0 -20px 35px rgba(0,0,0,0.32),
    0 14px 0 #431407;
}

.machine::before {
  content: "WIN";
  position: absolute;
  left: 50%;
  top: -19px;
  transform: translateX(-50%);
  padding: 4px 28px;
  border-radius: 999px;
  color: #7f1d1d;
  background: #fef08a;
  border: 4px solid #b45309;
  font-weight: 1000;
  letter-spacing: 0.2em;
  box-shadow: 0 0 18px rgba(254,240,138,0.85);
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 26px;
  background: #160202;
  border: 5px solid #451a03;
  box-shadow: inset 0 0 28px rgba(0,0,0,0.8);
}

.reel {
  height: 140px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  font-size: clamp(3.8rem, 13vw, 5.4rem);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.8), transparent 22%, transparent 72%, rgba(0,0,0,0.18)),
    repeating-linear-gradient(180deg, #fff7ed 0 18px, #fde68a 19px 22px, #fff7ed 23px 42px);
  color: #180202;
  border: 5px solid #7c2d12;
  box-shadow:
    inset 0 12px 20px rgba(255,255,255,0.75),
    inset 0 -16px 22px rgba(0,0,0,0.22),
    0 7px 0 #431407;
}

.reel.spin {
  animation: reelShake 0.11s linear infinite;
}

@keyframes reelShake {
  0% { transform: translateY(-8px); filter: blur(0); }
  50% { transform: translateY(8px); filter: blur(2.5px); }
  100% { transform: translateY(-8px); filter: blur(0); }
}

.controls {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  min-height: 92px;
}

button {
  font-family: inherit;
  border: 0;
  cursor: pointer;
  font-weight: 950;
  transition: transform 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}

#spinBtn {
  position: absolute;
  right: -88px;
  top: -225px;
  width: 88px;
  height: 230px;
  padding: 0;
  color: transparent;
  background: transparent;
  transform-origin: bottom center;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.45));
}

#spinBtn::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 52px;
  width: 18px;
  height: 145px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9ca3af, #f9fafb, #6b7280);
  border: 2px solid #374151;
}

#spinBtn::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 28%, #fecaca, transparent 24%),
    linear-gradient(145deg, #ef4444, #7f1d1d);
  border: 5px solid #fee2e2;
  box-shadow:
    inset -8px -10px 14px rgba(0,0,0,0.28),
    0 0 22px rgba(239,68,68,0.8);
}

#spinBtn:hover:not(:disabled) {
  transform: rotate(7deg) translateY(8px);
}

#spinBtn:active:not(:disabled) {
  transform: rotate(15deg) translateY(18px);
}

#spinBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#resetBtn {
  align-self: end;
  min-width: 150px;
  padding: 15px 24px;
  border-radius: 999px;
  color: #2b0202;
  background: linear-gradient(180deg, #fef08a, #f59e0b);
  border: 4px solid #fff7ad;
  box-shadow: 0 8px 0 #7c2d12, 0 0 18px rgba(250,204,21,0.42);
}

#resetBtn:hover {
  transform: translateY(-2px);
}

#resetBtn:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 #7c2d12;
}

.hidden {
  display: none !important;
}

.message {
  min-height: 42px;
  margin-top: 10px;
  padding: 10px 14px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 950;
  color: #fff7ad;
  text-shadow: 0 0 12px rgba(250,204,21,0.85);
}

.win {
  animation: winFlash 0.65s ease-in-out 4;
}

@keyframes winFlash {
  0%, 100% {
    box-shadow:
      inset 0 0 0 4px #7c2d12,
      inset 0 -20px 35px rgba(0,0,0,0.32),
      0 14px 0 #431407;
  }
  50% {
    box-shadow:
      inset 0 0 0 4px #7c2d12,
      inset 0 -20px 35px rgba(0,0,0,0.32),
      0 14px 0 #431407,
      0 0 42px 14px rgba(250,204,21,0.95);
  }
}

.disclaimer {
  margin: 18px 0 0;
  text-align: center;
  color: #fed7aa;
  font-size: 0.78rem;
  opacity: 0.8;
}

@media (max-width: 760px) {
  .casino {
    padding: 30px 22px 38px;
  }

  #spinBtn {
    position: relative;
    right: auto;
    top: auto;
    width: 84px;
    height: 150px;
    margin-right: 8px;
  }

  #spinBtn::before {
    top: 46px;
    height: 92px;
  }

  .controls {
    align-items: end;
  }
}

@media (max-width: 520px) {
  .scoreboard {
    grid-template-columns: 1fr;
  }

  .reels {
    gap: 8px;
    padding: 10px;
  }

  .reel {
    height: 112px;
    border-width: 4px;
  }

  @media (max-width: 900px) {
  .layout {
    flex-direction: column;
    align-items: center;
  }
}
}
.layout {
  display: flex;
  gap: 100px;
  align-items: center;
  justify-content: center;
}

/* Gewinn-Tabelle */
.paytable {
  min-width: 200px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1a0505, #090202);
  border: 4px solid #facc15;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.5),
    0 0 20px rgba(250,204,21,0.4);
}

.paytable h2 {
  text-align: center;
  margin-top: 0;
  color: #facc15;
  text-shadow: 0 0 10px rgba(250,204,21,0.8);
}

.pay-item {
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.pay-item:hover {
  background: rgba(250,204,21,0.2);
}

.hint {
  margin-top: 12px;
  font-size: 0.8rem;
  text-align: center;
  color: #fef3c7;
  opacity: 0.8;
}
.pay-item.active {
  background: rgba(250, 204, 21, 0.9);
  color: #2b0202;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(250,204,21,1);
  transition: all 0.2s ease;
}

.casino {
  animation: casinoGlow 2s infinite alternate;
}

@keyframes casinoGlow {
  from {
    box-shadow:
      0 35px 90px rgba(0,0,0,0.6),
      0 0 25px rgba(250,204,21,0.4);
  }
  to {
    box-shadow:
      0 35px 90px rgba(0,0,0,0.6),
      0 0 55px rgba(250,204,21,0.9);
  }
}

.pay-item.active {
  background: rgba(250, 204, 21, 0.95);
  color: #2b0202;
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(250,204,21,1);
  animation: payBlink 0.35s infinite alternate;
}

@keyframes payBlink {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.5);
  }
}

.jackpot-overlay {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,0.72);
  z-index: 999;
}

.jackpot-overlay.show {
  display: grid;
  animation: overlayFlash 0.25s infinite alternate;
}

.jackpot-text {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 1000;
  color: #facc15;
  text-shadow:
    0 0 15px #fff,
    0 0 35px #facc15,
    0 0 70px #ef4444;
  animation: jackpotPop 0.8s ease infinite alternate;
}

@keyframes jackpotPop {
  from {
    transform: scale(0.9) rotate(-3deg);
  }
  to {
    transform: scale(1.15) rotate(3deg);
  }
}

@keyframes overlayFlash {
  from {
    background: rgba(0,0,0,0.72);
  }
  to {
    background: rgba(127,29,29,0.75);
  }
}

.reel.spin {
  animation: reelSpin 0.08s linear infinite;
}

@keyframes reelSpin {
  0% {
    transform: translateY(-18px) scaleY(1.05);
    filter: blur(1px);
  }
  50% {
    transform: translateY(18px) scaleY(0.95);
    filter: blur(4px);
  }
  100% {
    transform: translateY(-18px) scaleY(1.05);
    filter: blur(1px);
  }
}