/* Spin the Wheel — slate + coral, multicolour wheel */
.wheel-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 820px) { .wheel-layout { grid-template-columns: 1fr; } }
.wheel-stage { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1; }
#wheel { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 0 0 8px var(--surface), 0 0 0 9px var(--line), 0 24px 48px -20px rgba(0,0,0,.45); cursor: pointer; }
.pointer { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 2; width: 0; height: 0;
  border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 40px solid var(--accent-2); filter: drop-shadow(0 4px 4px rgba(0,0,0,.3)); }
.spin-btn { position: absolute; inset: 0; margin: auto; width: 22%; height: 22%; border-radius: 50%; border: 5px solid #fff; background: var(--accent); color: #fff;
  font: 800 clamp(14px, 2.4vw, 20px)/1 var(--display); letter-spacing: .04em; cursor: pointer; box-shadow: 0 8px 18px rgba(0,0,0,.35); transition: transform .15s; }
.spin-btn:hover { transform: scale(1.06); }
.spin-btn:disabled { cursor: default; opacity: .9; transform: none; }
#entries { min-height: 230px; font-size: 15.5px; }
.history ol { margin: 0; padding-left: 22px; max-height: 180px; overflow: auto; font-size: 14.5px; }
.history li { padding: 2px 0; }
.winner { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(10, 10, 14, .55); backdrop-filter: blur(3px); }
.winner-card { width: min(460px, 100%); text-align: center; padding: 28px 24px 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
.winner-card .muted { margin: 0; font-weight: 600; }
.winner-name { font: 800 clamp(32px, 7vw, 52px)/1.1 var(--display); letter-spacing: -0.03em; margin: 8px 0 18px; word-break: break-word; color: var(--ink); }
.winner-card .btns { justify-content: center; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }
.coin-stage, .dice-stage { text-align: center; padding: 10px 0 6px; }
.coin { position: relative; width: 170px; height: 170px; margin: 18px auto 10px; transform-style: preserve-3d; transition: transform 1.6s cubic-bezier(.2,.8,.2,1); }
.face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; backface-visibility: hidden; font: 800 64px/1 var(--display); color: #5b3a00;
  background: radial-gradient(circle at 35% 30%, #ffe58a, #f2b705 60%, #c98a00); box-shadow: inset 0 0 0 8px #e0a400, 0 14px 28px -12px rgba(0,0,0,.45); }
.face.tails { transform: rotateY(180deg); background: radial-gradient(circle at 35% 30%, #f1f5f9, #cbd5e1 60%, #94a3b8); color: #334155; box-shadow: inset 0 0 0 8px #a5b4c6, 0 14px 28px -12px rgba(0,0,0,.45); }
.big-btn { min-height: 52px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.field.inline { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; }
.field.inline select { width: auto; }
.dice { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 18px 0 8px; min-height: 96px; }
.die { width: 88px; height: 88px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 20px -10px rgba(0,0,0,.35);
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 12px; }
.die i { width: 14px; height: 14px; margin: auto; border-radius: 50%; background: var(--accent-2); visibility: hidden; }
.die i.on { visibility: visible; }
.die.roll { animation: shake .5s ease; }
@keyframes shake { 0% { transform: rotate(0) } 25% { transform: rotate(-18deg) scale(.9) } 50% { transform: rotate(14deg) } 75% { transform: rotate(-8deg) } 100% { transform: rotate(0) } }
