.brand-mark { color: var(--gold); font-size: 38px; line-height: 1; }
.wheel-intro { padding: 58px 0 38px; }
.wheel-intro .eyebrow { margin-bottom: 15px; }
.wheel-intro h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 17px; letter-spacing: -1.7px; }
.wheel-intro .intro { max-width: 540px; }
.wheel-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.wheel-stage, .entries-panel { min-width: 0; border: 1px solid var(--line); border-radius: 16px; }
.wheel-stage { padding: 22px 30px 18px; text-align: center; overflow: hidden; background: radial-gradient(ellipse at 50% 43%, #6a88512b, transparent 65%), #131e1a; }
.stage-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: var(--muted); font-size: 9px; letter-spacing: 1.8px; text-align: left; }
.stage-heading > span:last-child { font-size: 25px; color: var(--gold); }
.wheel-frame { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 22px auto 26px; border: 7px solid #26372e; border-radius: 50%; outline: 1px solid #a3ae7766; box-shadow: 0 20px 50px #0005, 0 0 0 10px #bed5a804; }
.wheel-disc { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.wheel-disc svg { display: block; width: 100%; height: 100%; }
.wheel-pointer { position: absolute; top: -15px; left: calc(50% - 13px); width: 26px; height: 37px; background: #f4e5bd; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 2px 2px #0004); }
.wheel-hub { position: absolute; display: grid; place-items: center; inset: 42%; background: #18251f; color: var(--gold); border: 2px solid #cfbd89; border-radius: 50%; font-size: clamp(22px, 3.5vw, 40px); box-shadow: 0 4px 14px #0005; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary-button, .secondary-button { min-height: 48px; padding: 13px 24px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--mint); border-radius: 8px; font-size: 14px; font-weight: 600; }
.primary-button { color: #18231b; background: var(--mint); box-shadow: 0 3px 12px #0002; }
.primary-button:hover:enabled { background: #d0e3c2; }
.spin-button { width: min(290px, 100%); }
.spin-button > span:first-child { font-size: 23px; line-height: 1; }
.spin-status { min-height: 20px; margin: 15px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.entries-panel { padding: 28px; background: var(--panel); }
.entries-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.entries-heading h2 { font: 27px Georgia, serif; margin: 0; letter-spacing: -.6px; }
.entry-count { padding: 6px 10px; border: 1px solid var(--line); border-radius: 20px; color: var(--mint); font-size: 11px; white-space: nowrap; }
.panel-intro { margin: 15px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.entries-panel label { font-size: 13px; }
.input-hint { margin: 9px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.7; }
#wheel-entries { display: block; width: 100%; min-height: 220px; max-height: 520px; resize: vertical; border: 1px solid #485948; border-radius: 8px; padding: 13px 16px; background: #111c17; color: var(--text); font-size: 14px; line-height: 1.9; }
#wheel-entries:disabled { opacity: .6; }
#wheel-entries[aria-invalid='true'] { border-color: #d8a18d; }
.entries-error { margin: 10px 0 0; color: #efb29c; font-size: 12px; line-height: 1.6; }
.entries-error:empty { display: none; }
.entries-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.text-button { min-height: 44px; padding: 7px 0; background: none; color: var(--muted); border: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover:enabled { color: var(--text); }
#chance-label { font-size: 11px; color: var(--muted); }
.entries-note { display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 19px; }
.entries-note > span { color: var(--gold); font-size: 21px; }
.entries-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.save-note { margin: 19px 0 0; font-size: 10px; line-height: 1.6; color: var(--muted); }
.wheel-signature { margin: 30px 0 44px; color: var(--muted); text-align: center; font: italic 15px/1.6 Georgia, serif; }
.notice { border: 1px solid var(--gold); padding: 16px; border-radius: 8px; line-height: 1.6; }
.result-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #84926a; border-radius: 20px; color: var(--text); background: #19271f; box-shadow: 0 30px 100px #0008; overflow: auto; }
.result-dialog::backdrop { background: #08120eca; backdrop-filter: blur(5px); }
.result-dialog[open] { animation: reveal-result .52s cubic-bezier(.16, 1, .3, 1) both; }
.result-content { position: relative; overflow: hidden; padding: 42px 30px 30px; text-align: center; background: radial-gradient(ellipse at 50% 20%, #8b9f5030, transparent 65%); }
.close-result { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; background: none; border: 0; color: var(--muted); font-size: 27px; border-radius: 6px; }
.result-spark { display: inline-block; color: var(--gold); font-size: 60px; line-height: 1; margin-bottom: 20px; }
.result-dialog[open] .result-spark { animation: reveal-spark .8s ease-out both; }
.result-content .eyebrow { margin-bottom: 17px; font-size: 9px; }
#result-title { margin: 0; color: var(--mint); font: 42px/1.15 Georgia, serif; letter-spacing: -1px; overflow-wrap: anywhere; }
.result-subtitle { margin: 18px 0 28px; font-size: 13px; color: var(--muted); }
.result-actions { display: grid; gap: 10px; }
.secondary-button { color: var(--text); background: transparent; border-color: var(--line); }
.secondary-button:hover { background: #bbd5a80b; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti span { position: absolute; top: -15px; left: var(--x); width: 6px; height: 11px; border-radius: 2px; background: var(--color); opacity: 0; }
.result-dialog[open] .confetti span { animation: confetti-fall 1.65s var(--delay) ease-out both; }
@keyframes reveal-result { from { opacity: 0; transform: translateY(18px) scale(.88); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes reveal-spark { from { transform: rotate(-70deg) scale(.5); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
@keyframes confetti-fall { 0% { opacity: 0; transform: translateY(0) rotate(0); } 15% { opacity: .85; } 100% { opacity: 0; transform: translate(var(--drift), 350px) rotate(var(--turn)); } }
@media (max-width: 850px) {
  .wheel-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
  .wheel-stage { padding-inline: 20px; }
  .entries-panel { padding: 22px; }
  .stage-heading { font-size: 8px; letter-spacing: 1px; }
  .entries-heading h2 { font-size: 24px; }
}
@media (max-width: 700px) {
  .wheel-intro { padding: 36px 0 28px; }
  .wheel-layout { grid-template-columns: 1fr; }
  .wheel-frame { width: min(100%, 380px); }
  .wheel-hub { font-size: 30px; }
  .wheel-signature { font-size: 13px; }
  .result-content { padding: 40px 22px 24px; }
  #result-title { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .result-dialog[open], .result-dialog[open] .result-spark, .result-dialog[open] .confetti span { animation: none; }
}
