/* PHOENIX's live wheel (phoenix/giveaway/, phoenix/js/phoenix-giveaway.js): Vesper beside the wheel, the winners under
   it, and the draw's check. The wheel's colours are wheel.js's, so the page and the GIF in Discord match. */
.gw { max-width: 1040px; margin: 0 auto; padding: calc(96px + env(safe-area-inset-top, 0px)) max(16px, 4vw, env(safe-area-inset-right, 0px)) calc(60px + env(safe-area-inset-bottom, 0px)) max(16px, 4vw, env(safe-area-inset-left, 0px)); }
.gw-head { text-align: center; margin-bottom: 8px; }
.gw-head .server { color: var(--gold); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.gw-head h1 { font-family: var(--display); font-size: clamp(30px, 5vw, 48px); line-height: 1.05; margin: 8px 0 10px; }
.gw-head .about { color: var(--muted); max-width: 640px; margin: 0 auto; }
.gw-state { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; }
.gw-stage { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: end; gap: 0; margin: 18px auto 0; max-width: 860px; }
.gw-vesper { position: relative; z-index: 2; margin-right: -9%; align-self: center; transform-origin: 70% 90%; }
.gw-vesper img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.gw-vesper.spin { animation: vesperSpin 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gw-vesper.tada { animation: vesperTada 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes vesperSpin { 0% { transform: translateX(0) rotate(0); } 35% { transform: translateX(6%) rotate(4deg); } 100% { transform: translateX(0) rotate(0); } }
@keyframes vesperTada { 0% { transform: scale(0.96); } 60% { transform: scale(1.04) translateY(-3%); } 100% { transform: scale(1); } }
.gw-wheel { position: relative; aspect-ratio: 1; }
.gw-wheel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gw-call { text-align: center; min-height: 64px; margin: 14px 0 0; }
.gw-call .big { font-family: var(--display); font-size: clamp(22px, 3.6vw, 32px); color: var(--gold); }
.gw-call .small { color: var(--muted); font-size: 14px; margin-top: 4px; }
.gw-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 0; }
.gw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 30px; align-items: start; }
.gw-grid > .panel + .panel { margin-top: 0; }
.gw-winners { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.gw-winners li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.gw-winners .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1a0b07; background: var(--gold); flex: none; }
.gw-winners li.re .n { background: #c9561c; color: #ffe7cc; }
.gw-winners b { overflow-wrap: anywhere; }
.gw-winners .note { margin: 0; }
.gw-check dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 12px 0; font-size: 13px; }
.gw-check dt { color: var(--muted); }
.gw-check dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.gw-check ol { margin: 10px 0 0; padding-left: 20px; font-size: 14px; }
.gw-check .ok { color: #8fe3a1; font-weight: 700; }
.gw-check .bad { color: #ff8a80; font-weight: 700; }
.gw-practice { margin: 16px auto 0; max-width: 560px; text-align: center; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line-hot); color: var(--muted); font-size: 14px; }
.gw-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
@media (max-width: 720px) {
  .gw { padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
  .gw-stage { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); }
  .gw-vesper { margin-right: -14%; }
}
@media (prefers-reduced-motion: reduce) {
  .gw-vesper.spin, .gw-vesper.tada { animation: none; }
}
