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

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 30%, #1d1d2b 0%, #0b0b12 70%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

header { text-align: center; padding: 28px 16px 10px; }
h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 7vw, 76px);
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ffcc00, #ff5e3a, #ff2d95);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#sottotitolo { opacity: .75; margin-top: 4px; }

main { display: flex; flex-direction: column; align-items: center; padding: 40px 16px 30px; }

.wheel-wrap {
  position: relative;
  width: min(92vw, 78vh, 760px);
  aspect-ratio: 1;
}
#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 10px #1a1a24, 0 0 0 14px #ffcc00, 0 0 60px rgba(255, 204, 0, .35);
}
.pointer {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 46px solid #fff;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.6));
  z-index: 3;
}
.pointer.tick { animation: tick .12s ease-out; }
@keyframes tick { 50% { transform: translateX(-50%) rotate(-12deg); } }

.hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20%; aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid #ffcc00;
  background: #111;
  color: #ffcc00;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(22px, 4vw, 40px);
  letter-spacing: 2px;
  cursor: pointer;
  z-index: 2;
  transition: transform .15s;
}
.hub:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.06); }
.hub:disabled { opacity: .6; cursor: default; }

.hint { margin-top: 26px; opacity: .6; font-size: 14px; }

.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: opacity .3s;
}
.modal.hidden { opacity: 0; pointer-events: none; }
.card {
  background: #15151f;
  border: 3px solid #ffcc00;
  border-radius: 24px;
  padding: 40px 50px;
  text-align: center;
  animation: pop .5s cubic-bezier(.2, 1.6, .4, 1);
  max-width: 90vw;
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.label { text-transform: uppercase; letter-spacing: 3px; opacity: .7; font-size: 14px; }
.pos { color: #ffcc00; font-weight: 800; margin-top: 6px; }
.card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 8vw, 80px);
  margin: 8px 0 24px;
  word-break: break-all;
}
.card button {
  background: #ffcc00; color: #111; border: 0;
  padding: 12px 34px; border-radius: 999px;
  font-weight: 800; font-size: 16px; cursor: pointer;
}

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
