dialog.wheel-dialog { width: min(800px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border-radius: 24px; background: #fcf5e9; overflow-y: auto; overscroll-behavior: contain; }
.wheel-dialog::backdrop { background: #17372e9e; backdrop-filter: blur(5px); }
.welcome-wheel { --wheel-size: 280px; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding: 36px; border: 1px solid #eadcca; border-radius: 24px; background: radial-gradient(ellipse at 80% 20%, #ffe3b850, transparent 60%), #fcf5e9; color: #285848; overflow: hidden; }
.wheel-close { position: absolute; top: 9px; right: 9px; z-index: 4; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff9ed; color: #647260; font-size: 27px; cursor: pointer; }
.wheel-close:hover { background: #ede6d8; }
.wheel-eyebrow { font-size: 10px; font-weight: 800; color: #af7952; letter-spacing: 1.5px; }
.wheel-copy h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.5; margin: 14px 0; letter-spacing: 1px; }
.wheel-copy > p { font-size: 14px; line-height: 2; color: #827b68; margin: 0; }
.wheel-copy > p strong { color: #bd5d35; white-space: nowrap; }
.wheel-guarantee { display: flex; align-items: center; gap: 14px; padding-top: 25px; margin-top: 26px; border-top: 1px solid #e7dcc9; }
.wheel-guarantee > span { font-size: 32px; font-weight: 800; color: #c68853; letter-spacing: -1px; }
.wheel-guarantee > div { display: grid; gap: 6px; }
.wheel-guarantee strong { font-size: 12px; }
.wheel-guarantee small { font-size: 10px; color: #8b8977; }
.wheel-play { min-width: 0; display: grid; justify-items: center; }
.wheel-stage { position: relative; width: var(--wheel-size); height: var(--wheel-size); margin: 8px 0 16px; filter: drop-shadow(0 8px 15px #9f79401a); }
.wheel-disc { position: absolute; inset: 0; border-radius: 50%; border: 8px solid #e8b66c; background: conic-gradient(from -22.5deg, #f9d2bb 0deg 45deg, #fff7df 45deg 90deg, #d7e5d1 90deg 135deg, #fff7df 135deg 180deg, #f3dc9d 180deg 225deg, #fff7df 225deg 270deg, #d7e5d1 270deg 315deg, #fff0d5 315deg 360deg); box-shadow: inset 0 0 0 3px #fffbeb, 0 0 0 1px #dba760; }
.wheel-prize { position: absolute; top: 50%; left: 50%; display: grid; justify-items: center; width: 55px; margin: -20px 0 0 -27.5px; transform: rotate(calc(var(--prize-index) * 45deg)) translateY(calc(var(--wheel-size) * -.35)) rotate(calc(var(--prize-index) * -45deg)); color: #41634e; }
.wheel-prize small { font-size: 9px; letter-spacing: 1px; }
.wheel-prize strong { font-size: 24px; line-height: 1.15; }
.wheel-pointer { position: absolute; z-index: 3; top: -11px; left: calc(50% - 12px); width: 24px; height: 32px; background: #ba5c39; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 2px 2px #0002); }
.wheel-spin { position: absolute; inset: calc(50% - 46px); z-index: 2; width: 92px; height: 92px; display: grid; align-content: center; justify-items: center; gap: 2px; border-radius: 50%; border: 5px solid #fff8e5; background: #285848; color: #fff7df; box-shadow: 0 3px 10px #3d59352e; cursor: pointer; }
.wheel-spin img { width: 42px; height: 42px; }
.wheel-spin span { font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.wheel-spin:disabled { cursor: default; }
.wheel-spin:focus-visible { outline: 3px solid #c46235; outline-offset: 5px; }
.wheel-result { width: 100%; min-height: 76px; display: grid; place-content: center; justify-items: center; gap: 5px; margin-bottom: 12px; text-align: center; }
.wheel-result p { margin: 0; color: #8f836b; font-size: 12px; line-height: 1.8; }
.wheel-result > span { font-size: 11px; color: #8d7a55; }
.wheel-result > strong { font-size: 25px; color: #bb5b34; }
.wheel-result > small { font-size: 10px; color: #7b866e; }
.wheel-result.is-won { padding: 13px; background: #fffaf0; border: 1px dashed #d8b98c; border-radius: 14px; }
.wheel-retry { border: 0; background: transparent; color: #285848; text-decoration: underline; cursor: pointer; font-size: 12px; }
.wheel-shop { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; max-width: 330px; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 999px; background: #bd623c; color: white; font-size: 15px; font-weight: 800; letter-spacing: 1px; box-shadow: 0 4px 0 #a24e2d; cursor: pointer; }
.wheel-shop:hover { background: #aa542f; }
.wheel-shop span { font-size: 20px; }
.wheel-rules { max-width: 330px; margin: 16px 0 0; color: #9b927d; text-align: center; font-size: 10px; line-height: 1.8; }
@media (max-width: 640px) {
  dialog.wheel-dialog { width: min(320px, calc(100% - 48px)); max-height: calc(100dvh - 32px); border-radius: 20px; }
  .welcome-wheel { --wheel-size: min(216px, max(160px, 27svh), calc(100vw - 86px)); grid-template-columns: 1fr; gap: 10px; padding: 24px 16px 18px; border-radius: 20px; }
  .wheel-copy { text-align: center; }
  .wheel-copy h2 { margin: 6px 0; font-size: 21px; letter-spacing: .5px; }
  .wheel-copy > p { font-size: 11px; line-height: 1.8; }
  .wheel-eyebrow { font-size: 8px; letter-spacing: 1px; }
  .wheel-guarantee { display: none; }
  .wheel-prize { width: 46px; margin-left: -23px; margin-top: -16px; }
  .wheel-prize strong { font-size: 19px; }
  .wheel-prize small { font-size: 8px; }
  .wheel-spin { inset: calc(50% - 38px); width: 76px; height: 76px; border-width: 4px; }
  .wheel-spin img { width: 33px; height: 33px; }
  .wheel-spin span { font-size: 11px; }
  .wheel-result { min-height: 24px; margin-bottom: 8px; }
  .wheel-result p { font-size: 11px; }
  .wheel-result.is-won { padding: 9px; }
  .wheel-result > strong { font-size: 22px; }
  .wheel-result > small { font-size: 9px; }
  .wheel-stage { margin-bottom: 8px; }
  .wheel-shop { min-height: 44px; padding: 9px 16px; font-size: 13px; }
  .wheel-rules { margin-top: 10px; font-size: 9px; line-height: 1.7; }
}
@media (max-width: 640px) and (max-height: 650px) {
  .welcome-wheel { padding: 22px 14px 16px; gap: 8px; }
  .wheel-copy h2 { margin: 6px 0; font-size: 20px; }
  .wheel-copy > p { font-size: 11px; line-height: 1.7; }
  .wheel-stage { margin-bottom: 8px; }
  .wheel-spin { inset: calc(50% - 32px); width: 64px; height: 64px; border-width: 4px; }
  .wheel-spin img { width: 27px; height: 27px; }
  .wheel-spin span { font-size: 10px; }
  .wheel-prize { width: 44px; margin-left: -22px; margin-top: -15px; }
  .wheel-prize strong { font-size: 17px; }
  .wheel-prize small { font-size: 8px; }
  .wheel-result p { font-size: 11px; }
  .wheel-result > strong { font-size: 21px; }
  .wheel-result > small { font-size: 9px; }
  .wheel-shop { min-height: 42px; padding-block: 8px; }
  .wheel-rules { margin-top: 10px; font-size: 9px; line-height: 1.7; }
}
