/*! WheelySpin Tools 1.0.0 */
.wsp-app, .wsp-dialog, .wsp-hub, .wsp-related {
  --wsp-ink: #24204A;
  --wsp-muted: #5E5A80;
  --wsp-line: #D9DCF2;
  --wsp-tint: #EEF0FF;
  --wsp-paper: #FFFFFF;
  --wsp-marigold: #FFB627;
  --wsp-coral: #F2545B;
  --wsp-lagoon: #19A7A0;
  --wsp-sky: #4D9DE0;
  --wsp-font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wsp-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.wsp-app, .wsp-app *, .wsp-dialog, .wsp-dialog * { box-sizing: border-box; }
.wsp-app.alignwide { max-width: min(1200px, 100%); }
.wsp-app { font-family: var(--wsp-font); color: var(--wsp-ink); font-size: 16px; line-height: 1.45; margin: 0 0 2.5rem; min-height: 320px; }
.wsp-app.wsp-nested { margin: 0; min-height: 0; }
.wsp-app [hidden] { display: none !important; }

/* Buttons and inputs ---------------------------------------------------- */
.wsp-app .wsp-btn:not(#wsp), .wsp-dialog .wsp-btn:not(#wsp) {
  appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 600 15px/1.2 var(--wsp-font); color: var(--wsp-ink); background: var(--wsp-tint);
  border: 1px solid var(--wsp-line); border-radius: 10px; padding: 9px 14px; margin: 0; cursor: pointer;
  text-transform: none; letter-spacing: 0; text-decoration: none; box-shadow: none; min-height: 40px;
}
.wsp-app .wsp-btn:not(#wsp):hover, .wsp-dialog .wsp-btn:not(#wsp):hover { border-color: var(--wsp-ink); background: var(--wsp-tint); color: var(--wsp-ink); }
.wsp-app .wsp-btn-primary:not(#wsp), .wsp-dialog .wsp-btn-primary:not(#wsp) { background: var(--wsp-ink); border-color: var(--wsp-ink); color: #fff; }
.wsp-app .wsp-btn-primary:not(#wsp):hover, .wsp-dialog .wsp-btn-primary:not(#wsp):hover { background: #38326B; color: #fff; }
.wsp-app .wsp-btn-ghost:not(#wsp), .wsp-dialog .wsp-btn-ghost:not(#wsp) { background: transparent; border-color: transparent; }
.wsp-app .wsp-btn-lg:not(#wsp) { font-size: 17px; padding: 13px 24px; min-height: 50px; border-radius: 12px; }
.wsp-app .wsp-btn-small:not(#wsp), .wsp-dialog .wsp-btn-small:not(#wsp) { font-size: 13px; padding: 5px 10px; min-height: 30px; border-radius: 8px; }
.wsp-app .wsp-btn-icon:not(#wsp) { width: 40px; padding: 0; font-size: 20px; }
.wsp-app .wsp-btn-truth:not(#wsp) { background: var(--wsp-lagoon); border-color: var(--wsp-lagoon); color: #fff; }
.wsp-app .wsp-btn-dare:not(#wsp) { background: var(--wsp-coral); border-color: var(--wsp-coral); color: #fff; }
.wsp-app .wsp-btn-truth:not(#wsp):hover { background: #14918B; border-color: #14918B; color: #fff; }
.wsp-app .wsp-btn-dare:not(#wsp):hover { background: #E0434A; border-color: #E0434A; color: #fff; }
.wsp-app .wsp-btn:not(#wsp):disabled { opacity: .55; cursor: not-allowed; }
.wsp-app button:focus-visible, .wsp-dialog button:focus-visible, .wsp-app input:focus-visible, .wsp-app select:focus-visible,
.wsp-app textarea:focus-visible, .wsp-app summary:focus-visible, .wsp-hub a:focus-visible, .wsp-related a:focus-visible {
  outline: 3px solid var(--wsp-marigold); outline-offset: 2px;
}
.wsp-app .wsp-input:not(#wsp) {
  width: 100%; font: 400 16px/1.4 var(--wsp-font); color: var(--wsp-ink); background: #fff;
  border: 1.5px solid var(--wsp-line); border-radius: 10px; padding: 10px 12px; margin: 0; box-shadow: none; min-height: 44px;
}
.wsp-app .wsp-input:not(#wsp):focus { border-color: var(--wsp-ink); outline: none; }
.wsp-app textarea.wsp-input:not(#wsp) { resize: vertical; min-height: 120px; }
.wsp-app .wsp-select:not(#wsp) { width: auto; padding-right: 30px; }
.wsp-app .wsp-num:not(#wsp) { max-width: 140px; }
.wsp-app .wsp-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.wsp-app .wsp-label { font-size: 14px; font-weight: 700; color: var(--wsp-ink); margin: 0; }
.wsp-app .wsp-hint, .wsp-dialog .wsp-hint { font-size: 14px; color: var(--wsp-muted); margin: 6px 0 0; }
.wsp-app .wsp-check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; margin: 0; }
.wsp-app .wsp-check input:not(#wsp) { appearance: auto; -webkit-appearance: checkbox; width: 18px; height: 18px; margin: 0; padding: 0; border: 0; background: none; accent-color: var(--wsp-ink); }
.wsp-app .wsp-check input:not(#wsp)::before, .wsp-app .wsp-check input:not(#wsp)::after { content: none; display: none; }
.wsp-app .wsp-count { display: inline-block; min-width: 1.6em; padding: 1px 7px; border-radius: 999px; background: var(--wsp-ink); color: #fff; font-size: 12px; text-align: center; }
.wsp-app .wsp-h { font: 700 16px/1.3 var(--wsp-font); margin: 18px 0 8px; color: var(--wsp-ink); }
.wsp-app .wsp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
.wsp-app .wsp-row-tight { margin-top: 8px; }
.wsp-app .wsp-row-center { justify-content: center; }
.wsp-app .wsp-grid2, .wsp-app .wsp-grid3, .wsp-app .wsp-grid4 { display: grid; gap: 12px; margin: 0 0 12px; }
.wsp-app .wsp-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wsp-app .wsp-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wsp-app .wsp-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wsp-app .wsp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.wsp-app .wsp-chip:not(#wsp) { border-radius: 999px; min-height: 36px; padding: 6px 14px; font-size: 14px; background: #fff; }
.wsp-app .wsp-chip.is-on:not(#wsp) { background: var(--wsp-ink); border-color: var(--wsp-ink); color: #fff; }
.wsp-app .wsp-chips-tabs { margin-bottom: 12px; }
.wsp-app .wsp-chips-tabs .wsp-chip:not(#wsp) { font-size: 15px; min-height: 42px; padding: 8px 18px; }

.wsp-app button:not(#wsp):focus:not(:focus-visible), .wsp-dialog button:not(#wsp):focus:not(:focus-visible) { outline: none; }

/* Panels ---------------------------------------------------------------- */
.wsp-app .wsp-card, .wsp-app .wsp-panel { background: var(--wsp-paper); border: 1px solid var(--wsp-line); border-radius: 16px; padding: 18px; }
.wsp-app .wsp-card > .wsp-btn-lg:not(#wsp) { margin-top: 14px; }
.wsp-app.wsp-stack { max-width: 780px; margin-left: auto; margin-right: auto; display: flex; flex-direction: column; gap: 16px; }
.wsp-app.wsp-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.wsp-app.wsp-center .wsp-card, .wsp-app .wsp-card.wsp-center { text-align: center; }
.wsp-app .wsp-big-result { font: 800 clamp(26px, 5vw, 42px)/1.15 var(--wsp-font); margin: 16px 0 6px; text-align: center; word-break: break-word; }
.wsp-app .wsp-big-result.is-many { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 22px; }
.wsp-app .wsp-num-chip { display: inline-block; padding: 6px 12px; border-radius: 10px; background: var(--wsp-tint); border: 1px solid var(--wsp-line); }
.wsp-app .wsp-total { font-weight: 600; margin: 12px 0 0; }
.wsp-app .wsp-history { margin: 0; padding-left: 1.4em; color: var(--wsp-muted); font-size: 15px; max-height: 220px; overflow: auto; }
.wsp-app .wsp-history li { margin: 2px 0; }

/* Wheel ----------------------------------------------------------------- */
.wsp-app.wsp-wheel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.wsp-app .wsp-stage { display: flex; flex-direction: column; align-items: center; }
.wsp-app .wsp-wheel-box { position: relative; width: 100%; max-width: min(560px, calc(100vw - 24px)); aspect-ratio: 1 / 1; margin: 6px auto 0; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.wsp-app .wsp-canvas { position: absolute; inset: 0; display: block; cursor: pointer; }
.wsp-app .wsp-pointer {
  position: absolute; z-index: 2; top: 50%; right: 0; width: 58px; height: 46px; margin-top: -23px;
  background: var(--wsp-coral); clip-path: polygon(0 50%, 48% 0, 100% 0, 100% 100%, 48% 100%);
  filter: drop-shadow(0 3px 0 var(--wsp-ink)); transform-origin: 85% 50%;
}
.wsp-app .wsp-pointer.is-flick { animation: wsp-flick .14s ease-out; }
@keyframes wsp-flick { 0% { transform: rotate(16deg); } 100% { transform: rotate(0); } }
.wsp-app .wsp-spin:not(#wsp) {
  position: absolute; z-index: 3; top: 50%; left: 50%; width: 21%; height: 21%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 4px solid var(--wsp-ink); background: var(--wsp-marigold); color: var(--wsp-ink);
  font: 800 clamp(15px, 3.2vw, 26px)/1 var(--wsp-font); padding: 0; margin: 0; cursor: pointer;
  box-shadow: 0 5px 0 var(--wsp-ink); text-transform: none; letter-spacing: 0;
}
.wsp-app .wsp-spin:not(#wsp):hover { background: #FFC24D; color: var(--wsp-ink); }
.wsp-app .wsp-spin:not(#wsp):active { transform: translate(-50%, calc(-50% + 3px)); box-shadow: 0 2px 0 var(--wsp-ink); }
.wsp-app .wsp-spin:not(#wsp):disabled { cursor: progress; }
.wsp-app .wsp-status { margin: 14px 0 0; text-align: center; font-weight: 600; min-height: 1.5em; color: var(--wsp-muted); }
.wsp-app.is-spinning .wsp-status { color: var(--wsp-ink); }
.wsp-app .wsp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--wsp-tint); padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.wsp-app .wsp-tab:not(#wsp) { appearance: none; border: 0; background: transparent; border-radius: 9px; padding: 9px 10px; font: 700 15px/1.2 var(--wsp-font); color: var(--wsp-muted); cursor: pointer; min-height: 40px; }
.wsp-app .wsp-tab.is-on:not(#wsp) { background: #fff; color: var(--wsp-ink); box-shadow: 0 1px 0 var(--wsp-line); }
.wsp-app .wsp-entries:not(#wsp) { min-height: 220px; font-size: 16px; }
.wsp-app .wsp-opts { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--wsp-line); }
.wsp-app .wsp-results { margin: 0; padding-left: 1.5em; max-height: 300px; overflow: auto; }
.wsp-app .wsp-results li { padding: 4px 0; border-bottom: 1px solid var(--wsp-tint); }
.wsp-app .wsp-results .wsp-empty { list-style: none; margin-left: -1.5em; color: var(--wsp-muted); border: 0; }
.wsp-app .wsp-obs { margin-top: 16px; padding-top: 4px; border-top: 1px dashed var(--wsp-line); }
.wsp-app .wsp-stage:fullscreen { background: #fff; justify-content: center; padding: 3vh; }
.wsp-app .wsp-stage:fullscreen .wsp-wheel-box { max-width: none; width: min(92vw, 84vh); }

/* Dialog ---------------------------------------------------------------- */
.wsp-dialog { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(36, 32, 74, .55); font-family: var(--wsp-font); color: var(--wsp-ink); }
.wsp-dialog-card { background: #fff; border-radius: 20px; padding: 26px 24px 18px; width: 100%; max-width: 460px; text-align: center; border: 3px solid var(--wsp-ink); box-shadow: 0 8px 0 var(--wsp-ink); animation: wsp-pop .22s ease-out; }
@keyframes wsp-pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wsp-dialog-kicker { margin: 0; font-size: 15px; font-weight: 600; color: var(--wsp-muted); }
.wsp-dialog-result { margin: 6px 0 4px; font: 800 clamp(28px, 7vw, 44px)/1.12 var(--wsp-font); word-break: break-word; }
.wsp-dialog-detail { margin: 8px 0 0; font-size: 16px; }
.wsp-dialog-actions { justify-content: center; margin-top: 18px; }
.wsp-swatch-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.wsp-swatch { width: 36px; height: 36px; border-radius: 8px; border: 2px solid var(--wsp-ink); display: inline-block; }
.wsp-swatch-row code { font-family: var(--wsp-mono); font-size: 16px; }
.wsp-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100000; }

/* Dice ------------------------------------------------------------------ */
.wsp-app .wsp-tray { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 82px; margin: 18px 0 4px; }
.wsp-app .wsp-die { width: 64px; height: 64px; border-radius: 14px; background: #fff; border: 2.5px solid var(--wsp-ink); box-shadow: 0 4px 0 var(--wsp-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wsp-app .wsp-die.is-d6 { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 9px; gap: 2px; place-items: center; }
.wsp-app .wsp-pip { width: 10px; height: 10px; border-radius: 50%; background: var(--wsp-ink); }
.wsp-app .wsp-pip.is-off { background: transparent; }
.wsp-app .wsp-die-n { font: 800 24px/1 var(--wsp-font); }
.wsp-app .wsp-die-t { font-size: 11px; color: var(--wsp-muted); font-weight: 700; }
.wsp-app .wsp-die.is-dim { opacity: .35; }
.wsp-app .wsp-stepper { display: inline-flex; align-items: center; gap: 8px; }
.wsp-app .wsp-stepper-n { min-width: 2ch; text-align: center; font: 800 22px/1 var(--wsp-font); }
.wsp-app .wsp-notation { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 16px; }
.wsp-app .wsp-stat-head, .wsp-app .wsp-stat-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 60px; gap: 10px; align-items: center; }
.wsp-app .wsp-stat-head { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--wsp-muted); }
.wsp-app .wsp-stat-row { padding: 8px 0; border-bottom: 1px solid var(--wsp-tint); }
.wsp-app .wsp-stat-dice { display: flex; gap: 6px; flex-wrap: wrap; }
.wsp-app .wsp-stat-dice .wsp-die { width: 38px; height: 38px; border-radius: 9px; padding: 5px; box-shadow: 0 2px 0 var(--wsp-ink); border-width: 2px; }
.wsp-app .wsp-stat-dice .wsp-pip { width: 6px; height: 6px; }
.wsp-app .wsp-stat-score { font: 800 26px/1 var(--wsp-font); }
.wsp-app .wsp-stat-mod { font-weight: 700; color: var(--wsp-muted); }

/* Coin ------------------------------------------------------------------ */
.wsp-app .wsp-coin-stage { perspective: 900px; display: flex; justify-content: center; padding: 30px 0 6px; }
.wsp-app .wsp-coin-toss.is-tossing { animation: wsp-toss 1.25s ease-in-out; }
@keyframes wsp-toss { 0% { transform: translateY(0); } 45% { transform: translateY(-70px); } 100% { transform: translateY(0); } }
.wsp-app .wsp-coin { position: relative; width: 170px; height: 170px; transform-style: preserve-3d; transition: transform 1.25s cubic-bezier(.2, .7, .2, 1); cursor: pointer; }
.wsp-app .wsp-coin.is-reduced { transition: none; }
.wsp-app .wsp-coin-face { position: absolute; inset: 0; border-radius: 50%; border: 5px solid var(--wsp-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .45); }
.wsp-app .wsp-coin-face span { font: 800 64px/1 var(--wsp-font); }
.wsp-app .wsp-coin-face small { font-size: 14px; font-weight: 700; }
.wsp-app .wsp-coin-face.is-h { background: var(--wsp-marigold); }
.wsp-app .wsp-coin-face.is-t { background: var(--wsp-lagoon); color: #fff; transform: rotateY(180deg); }
.wsp-app .wsp-coin-multi { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0; }
.wsp-app .wsp-coin-mini { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--wsp-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.wsp-app .wsp-coin-mini.is-h { background: var(--wsp-marigold); }
.wsp-app .wsp-coin-mini.is-t { background: var(--wsp-lagoon); color: #fff; }

/* Reveal, name picker, teams, winners ----------------------------------- */
.wsp-app .wsp-reveal { min-height: 110px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; margin-bottom: 8px; border-radius: 14px; background: var(--wsp-tint); border: 2px solid var(--wsp-ink); font: 800 clamp(22px, 4.4vw, 36px)/1.2 var(--wsp-font); word-break: break-word; }
.wsp-app .wsp-order { text-align: left; font-size: 18px; font-weight: 600; margin: 0; padding-left: 1.6em; columns: 2; }
.wsp-app .wsp-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.wsp-app .wsp-team { background: var(--wsp-tint); border-radius: 12px; padding: 4px 14px 10px; border-top: 5px solid var(--wsp-sky); }
.wsp-app .wsp-team:nth-child(4n+2) { border-top-color: var(--wsp-coral); }
.wsp-app .wsp-team:nth-child(4n+3) { border-top-color: var(--wsp-lagoon); }
.wsp-app .wsp-team:nth-child(4n+4) { border-top-color: var(--wsp-marigold); }
.wsp-app .wsp-team ul { margin: 0; padding-left: 1.1em; }
.wsp-app .wsp-team .is-captain { font-weight: 800; }
.wsp-app .wsp-winners { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.wsp-app .wsp-winner { border: 2px solid var(--wsp-ink); border-radius: 12px; padding: 12px 14px; background: #fff; }
.wsp-app .wsp-winner.is-reserve { border-style: dashed; }
.wsp-app .wsp-winner p { margin: 0; }
.wsp-app .wsp-winner-text { margin-top: 6px !important; white-space: pre-wrap; word-break: break-word; }
.wsp-app .wsp-filters { margin: 12px 0; display: flex; flex-direction: column; gap: 12px; }

/* 8 ball ---------------------------------------------------------------- */
.wsp-app .wsp-8-stage { display: flex; justify-content: center; padding: 10px 0 18px; }
.wsp-app .wsp-8ball { width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #5B5784 0, #24204A 38%, #0E0C22 100%); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wsp-app .wsp-8ball.is-shaking { animation: wsp-shake .8s ease-in-out; }
@keyframes wsp-shake { 0%, 100% { transform: translate(0, 0) rotate(0); } 20% { transform: translate(-12px, 4px) rotate(-8deg); } 40% { transform: translate(10px, -6px) rotate(6deg); } 60% { transform: translate(-8px, 6px) rotate(-4deg); } 80% { transform: translate(6px, -2px) rotate(3deg); } }
.wsp-app .wsp-8-window { width: 46%; height: 46%; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; }
.wsp-app .wsp-8-text { font: 800 54px/1 var(--wsp-font); color: var(--wsp-ink); }
.wsp-app .wsp-8-window.is-shown { background: #16123A; }
.wsp-app .wsp-8-window.is-shown .wsp-8-text { font-size: 14px; line-height: 1.15; color: #7FD3FF; font-weight: 700; animation: wsp-fade .6s ease-out; }
@keyframes wsp-fade { from { opacity: 0; } to { opacity: 1; } }
.wsp-app.wsp-center input[type="text"].wsp-input:not(#wsp) { margin: 0 auto; max-width: 420px; display: block; }

/* Cards ----------------------------------------------------------------- */
.wsp-app .wsp-deck { min-height: 210px; margin: 6px 0 4px; padding: 26px 22px; border-radius: 20px; border: 3px solid var(--wsp-ink); background: var(--wsp-tint); box-shadow: 0 6px 0 var(--wsp-ink); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.wsp-app .wsp-deck.is-truth { background: #E2F5F3; }
.wsp-app .wsp-deck.is-dare { background: #FDE8EA; }
.wsp-app .wsp-deck.is-flip { animation: wsp-flip .25s ease-out; }
@keyframes wsp-flip { from { transform: rotateX(18deg) scale(.97); } to { transform: none; } }
.wsp-app .wsp-card-kicker { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--wsp-muted); }
.wsp-app .wsp-card-text { font: 700 clamp(20px, 3.4vw, 28px)/1.3 var(--wsp-font); word-break: break-word; }
.wsp-app .wsp-wyr-a, .wsp-app .wsp-wyr-b { display: block; }
.wsp-app .wsp-wyr-or { display: block; margin: 10px 0; font-size: 16px; color: var(--wsp-muted); }
.wsp-app .wsp-details { margin-top: 16px; border-top: 1px dashed var(--wsp-line); padding-top: 12px; }
.wsp-app .wsp-details summary { cursor: pointer; font-weight: 700; }
.wsp-app .wsp-details textarea:not(#wsp) { margin-top: 10px; min-height: 90px; }
.wsp-app .wsp-prompt-parts { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.wsp-app .wsp-prompt-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--wsp-tint); }

/* Spin the bottle ------------------------------------------------------- */
.wsp-app .wsp-bottle-board { --wsp-seat-r: min(170px, 38vw); position: relative; width: min(100%, 420px); aspect-ratio: 1 / 1; margin: 6px auto; border-radius: 50%; border: 2px dashed var(--wsp-line); background: var(--wsp-tint); cursor: pointer; }
.wsp-app .wsp-bottle-ring { position: absolute; inset: 0; }
.wsp-app .wsp-seat { position: absolute; left: 50%; top: 50%; max-width: 110px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 2px solid var(--wsp-ink); font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsp-app .wsp-bottle { position: absolute; left: 50%; top: 50%; height: 58%; width: auto; margin: 0; translate: -50% -50%; transition: transform 3.5s cubic-bezier(.12, .75, .16, 1); }

/* Lottery and PIN ------------------------------------------------------- */
.wsp-app .wsp-lotto-out { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 6px; }
.wsp-app .wsp-lotto-line { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wsp-app .wsp-ball { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--wsp-ink); background: #fff; display: inline-flex; align-items: center; justify-content: center; font: 800 18px/1 var(--wsp-font); }
.wsp-app .wsp-ball.is-bonus { background: var(--wsp-marigold); }
.wsp-app .wsp-pin-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.wsp-app .wsp-pin-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--wsp-tint); }
.wsp-app .wsp-pin { font: 700 22px/1 var(--wsp-mono); letter-spacing: .08em; }

/* Audit ----------------------------------------------------------------- */
.wsp-app .wsp-checklist { list-style: none; margin: 0; padding: 0; }
.wsp-app .wsp-checklist li { padding: 4px 0 4px 28px; position: relative; }
.wsp-app .wsp-checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--wsp-lagoon); }
.wsp-app .wsp-checklist li.is-bad::before { background: var(--wsp-coral); }
.wsp-app .wsp-audit-table { margin-top: 12px; }
.wsp-app .wsp-audit-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 140px minmax(60px, 1fr); gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--wsp-tint); font-size: 15px; }
.wsp-app .wsp-audit-row.is-head { font-weight: 700; color: var(--wsp-muted); font-size: 13px; }
.wsp-app .wsp-audit-bar { height: 10px; background: var(--wsp-tint); border-radius: 999px; overflow: hidden; }
.wsp-app .wsp-audit-bar span { display: block; height: 100%; background: var(--wsp-sky); }

/* OBS overlay ----------------------------------------------------------- */
html.wsp-overlay-html, body.wsp-overlay-body { background: transparent !important; margin: 0; overflow: hidden; }
.wsp-app.wsp-overlay-mode { margin: 0; min-height: 0; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; }
.wsp-app.wsp-overlay-mode .wsp-wheel-box { width: min(94vw, 90vh); max-width: none; margin: 4vh 0 0; }
.wsp-app .wsp-banner { position: absolute; left: 50%; bottom: 6vh; transform: translateX(-50%); z-index: 5; max-width: 90vw; padding: 14px 28px; border-radius: 16px; background: var(--wsp-ink); color: #fff; border: 4px solid var(--wsp-marigold); font: 800 clamp(24px, 6vh, 56px)/1.1 var(--wsp-font); text-align: center; word-break: break-word; }

/* Hubs and related links (server-rendered) ------------------------------ */
.wsp-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 1rem 0 2rem; padding: 0; list-style: none; font-family: var(--wsp-font); }
.wsp-hub-group { margin: 2rem 0 0; }
.wsp-hub li { margin: 0; }
.wsp-hub a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--wsp-line); border-left: 6px solid var(--wsp-c, var(--wsp-sky)); border-radius: 12px; background: #fff; color: var(--wsp-ink); text-decoration: none; }
.wsp-hub a:hover { border-color: var(--wsp-ink); border-left-color: var(--wsp-c, var(--wsp-sky)); }
.wsp-hub strong { display: block; font-size: 17px; margin-bottom: 4px; }
.wsp-hub span { display: block; font-size: 14px; color: var(--wsp-muted); line-height: 1.4; }
.wsp-related { margin: 2.5rem 0 1rem; padding: 18px 20px; border-radius: 14px; background: var(--wsp-tint); font-family: var(--wsp-font); color: var(--wsp-ink); }
.wsp-related h2 { font-size: 20px; margin: 0 0 10px; }
.wsp-related ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wsp-related li { margin: 0; }
.wsp-related a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--wsp-line); color: var(--wsp-ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.wsp-related a:hover { border-color: var(--wsp-ink); }
.wsp-related p { margin: 12px 0 0; font-size: 15px; }
.wsp-related p a { padding: 0; border: 0; background: none; text-decoration: underline; }

/* Small screens ---------------------------------------------------------- */
@media (max-width: 880px) {
  .wsp-app.wsp-wheel, .wsp-app.wsp-split { grid-template-columns: minmax(0, 1fr); }
  .wsp-app .wsp-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .wsp-app .wsp-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wsp-app .wsp-grid3 > :last-child { grid-column: 1 / -1; }
  .wsp-app .wsp-card, .wsp-app .wsp-panel { padding: 14px; }
  .wsp-app .wsp-audit-row { grid-template-columns: minmax(0, 1fr) 60px 110px; }
  .wsp-app .wsp-audit-bar { display: none; }
  .wsp-app .wsp-order { columns: 1; }
  .wsp-app .wsp-prompt-row { grid-template-columns: 70px minmax(0, 1fr); }
  .wsp-app .wsp-prompt-row .wsp-btn:not(#wsp) { grid-column: 1 / -1; justify-self: start; }
  .wsp-app .wsp-coin { width: 140px; height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .wsp-app *, .wsp-dialog * { animation: none !important; transition: none !important; }
}
