[data-dp-wheel][hidden], .dp-wheel-dialog:not([open]) { display: none !important; }

[data-dp-wheel], .dp-wheel-dialog {
  --wheel-wine: #471328;
  --wheel-ink: #30212a;
  --wheel-gold: #d6b985;
  --wheel-type: Manrope, system-ui, "Segoe UI", sans-serif;
  --wheel-display: "Cormorant Garamond", Georgia, "Noto Serif CJK SC", "Songti SC", SimSun, serif;
}
[data-dp-wheel=store] {
  position: fixed;
  z-index: 24;
  inset-inline-start: max(20px, env(safe-area-inset-left));
  inset-block-end: max(22px, env(safe-area-inset-bottom));
  max-inline-size: calc(100vw - 44px);
}
[data-dp-wheel] .dp-wheel-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 20px 6px 8px;
  border: 1px solid #cfb57f;
  border-radius: 28px;
  background: linear-gradient(114deg, #722e41, #400f25 68%);
  color: #fff8ea;
  box-shadow: inset 0 0 0 2px #ffffff0e, 0 3px 12px #2c071d42;
  font: 600 14px/1.35 var(--wheel-type);
  cursor: pointer;
}
[data-dp-wheel] .dp-wheel-launch::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid #f6dfad;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff0bb 0 6%, #754521 8% 11%, transparent 13% 53%, #e1bc7a 55% 60%, #6b3c28 62% 66%, #f7dea3 68%),
    repeating-conic-gradient(from -36deg, #ecd6a6 0deg 2deg, transparent 2deg 72deg),
    conic-gradient(from -36deg, #88394e 0 20%, #f2d8ad 20% 40%, #502235 40% 60%, #efcf9e 60% 80%, #a76a6b 80%);
  box-shadow: 0 1px 3px #1b061f85;
}
[data-dp-wheel=account] { margin-block: 1rem; }
[data-dp-wheel=account] .dp-wheel-launch {
  border-radius: 9px;
  padding: 9px 17px;
}

.dp-wheel-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(860px, calc(100vw - 56px));
  min-width: 0;
  max-width: none;
  max-height: calc(100vh - 44px);
  max-height: calc(100dvh - 44px);
  margin: auto !important;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d5b88d;
  border-radius: 16px;
  background: #fcf9f4;
  box-shadow: 0 32px 110px #190b18a3, 0 4px 16px #230f1d66;
  color: var(--wheel-ink);
  text-align: start;
  font: 15px/1.5 var(--wheel-type);
}
.dp-wheel-dialog::backdrop {
  background: #24161ec7;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.dp-wheel-dialog * { box-sizing: border-box; }
.dp-wheel-content {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  isolation: isolate;
  overflow-wrap: anywhere;
}
.dp-wheel-stage {
  --dp-dial-size: clamp(246px, 33vw, 346px);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 28px 22px;
  overflow: hidden;
  background-color: #3d1023;
  background-image:
    radial-gradient(ellipse at 35% 12%, #a552622e, transparent 57%),
    linear-gradient(133deg, transparent 8%, #4a182b 19%, #69283a 29%, #46182a 39%, #310f20 50%, #531d31 65%, #471629 71%, #250d1b 98%);
}
.dp-wheel-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .48;
  background:
    repeating-linear-gradient(124deg, transparent 0 2px, #ffd1b407 2px 3px),
    radial-gradient(ellipse farthest-side at 54% 48%, transparent 43%, #23091788 100%);
}
.dp-wheel-stage::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid #d8ae7a42;
  border-radius: 5px;
  background:
    linear-gradient(90deg, #e6cda0, transparent) top left / 29px 1px,
    linear-gradient(#e6cda0, transparent) top left / 1px 29px,
    linear-gradient(270deg, #e6cda0, transparent) bottom right / 29px 1px,
    linear-gradient(0deg, #e6cda0, transparent) bottom right / 1px 29px;
  background-repeat: no-repeat;
}
.dp-wheel-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  padding: 46px clamp(25px, 3vw, 44px) 36px;
  background: linear-gradient(122deg, #eee4d58c, transparent 39%), #fcf9f4;
}
.dp-wheel-dialog .dp-wheel-close {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #b7a18e54;
  border-radius: 50%;
  background: #fffaf2;
  color: #533648;
  font: 400 25px/1 Arial, sans-serif;
  cursor: pointer;
}
.dp-wheel-intro { display: grid; gap: 9px; }
.dp-wheel-dialog h2 {
  margin: 0;
  padding: 0;
  color: #42192b;
  font: 400 clamp(32px, 3.5vw, 48px)/1.06 var(--wheel-display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.dp-wheel-dialog:lang(zh) h2, .dp-wheel-dialog:lang(ja) h2 {
  font-size: clamp(29px, 3vw, 41px);
  letter-spacing: .025em;
  line-height: 1.22;
}
.dp-wheel-dialog p { margin: 0; }
.dp-wheel-intro p { color: #605157; font-size: 14px; line-height: 1.5; }
.dp-wheel-dialog .dp-wheel-odds {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.dp-wheel-odds li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin: 0 !important;
  padding: 0;
  color: #452b30;
  font: 550 13px/1.3 var(--wheel-type);
  font-variant-numeric: tabular-nums;
}
.dp-wheel-odds li + li {
  border-inline-start: 1px solid #d6bf9b;
  padding-inline-start: clamp(6px, 1.3vw, 16px);
}
.dp-wheel-odds li[data-coins="0"]::before {
  content: "";
  width: 25px;
  height: 24px;
  background: linear-gradient(90deg,#906542,#d5bc96) center / 19px 1px no-repeat;
}
.dp-wheel-odds .dp-wheel-coins { display: block; width: 34px; height: 24px; }
.dp-wheel-odds-percent { margin-block-start: auto; color: #75472c; font: 500 15px/1.3 var(--wheel-type); }
.dp-wheel-prize-legend { display: grid; gap: 10px; }
.dp-wheel-dialog .dp-wheel-odds-title { color: #583444; font: 650 13px/1.4 var(--wheel-type); }
.dp-wheel-dialog .dp-wheel-rate { color: #6a5251; font: 500 12.5px/1.4 var(--wheel-type); }
.dp-wheel-balance-block { display: grid; gap: 4px; }
.dp-wheel-action { display: grid; gap: 8px; }
.dp-wheel-content :is(.dp-wheel-primary,.dp-wheel-secondary) {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #53192e;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font: 650 15px/1.35 var(--wheel-type);
  cursor: pointer;
}
.dp-wheel-content .dp-wheel-primary {
  color: #fff9f3;
  background: linear-gradient(106deg, #69243a, #491528 72%);
  box-shadow: inset 0 1px 0 #d69b8d42, 0 2px 5px #642b3826;
}
.dp-wheel-content .dp-wheel-primary:disabled { opacity: .85; cursor: wait; }
.dp-wheel-content .dp-wheel-secondary { border-color: #bca998; background: transparent; color: #50283a; }
.dp-wheel-text { align-self: center; padding: 4px 6px; color: #63384c; text-underline-offset: 3px; font-size: 13px; }
.dp-wheel-dialog .dp-wheel-deadline { color: #6e5b52; font-size: 12px; line-height: 1.5; }
.dp-wheel-content .dp-wheel-rule {
  padding-block-start: 13px;
  border-block-start: 1px solid #dacaad;
  color: #615454;
  font-size: 12.5px;
  line-height: 1.58;
}
.dp-wheel-dialog .dp-wheel-award {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #713548;
  font: 400 clamp(22px, 3.1vw, 36px)/1.18 var(--wheel-display);
  font-variant-numeric: lining-nums;
}
.dp-wheel-award .dp-wheel-coins { flex: none; display: block; width: 78px; height: 58px; }
.dp-wheel-dialog .dp-wheel-award[data-coins="0"] { font: 500 16px/1.5 var(--wheel-type); }
.dp-wheel-dialog .dp-wheel-balance { color: #3e2932; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dp-wheel-dialog .dp-wheel-note:not(.dp-wheel-rule) { color: #625056; font-size: 14px; }
.dp-wheel-dialog :focus-visible, [data-dp-wheel] .dp-wheel-launch:focus-visible { outline: 3px solid #985e29; outline-offset: 3px; }
.dp-wheel-content:has(> :only-child) { display: block; }
.dp-wheel-content > .dp-wheel-panel:only-child { min-height: 220px; }
@media (hover:hover) {
  .dp-wheel-content .dp-wheel-primary:hover:not(:disabled), [data-dp-wheel] .dp-wheel-launch:hover { filter: brightness(1.13); }
  .dp-wheel-content .dp-wheel-secondary:hover { background: #f3e9df; }
}
@media (prefers-reduced-motion:no-preference) {
  .dp-wheel-dialog[open] { animation: dp-wheel-open .32s ease-out both; }
  .dp-wheel-dialog[data-view="credited"] .dp-wheel-award { animation: dp-wheel-reveal .46s ease-out both; }
  .dp-wheel-dialog[data-view="settled"] .dp-wheel-index { animation: dp-wheel-catch .25s ease-out both; }
  @keyframes dp-wheel-open { from { opacity: 0; transform: translateY(9px); } }
  @keyframes dp-wheel-reveal { from { opacity: 0; transform: translateY(5px); } }
  @keyframes dp-wheel-catch {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(7deg); }
    65% { transform: rotate(-3deg); }
  }
}
@media (max-width:699px) {
  [data-dp-wheel=store] { inset-inline-start: max(12px, env(safe-area-inset-left)); inset-block-end: max(74px, calc(70px + env(safe-area-inset-bottom))); }
  [data-dp-wheel=store] .dp-wheel-launch { min-height: 38px; gap: 6px; padding: 4px 13px 4px 5px; font-size: 12px; }
  [data-dp-wheel=store] .dp-wheel-launch::before { width: 25px; height: 25px; }
  .dp-wheel-dialog { width: min(430px, calc(100vw - 22px)); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .dp-wheel-content { grid-template-columns: minmax(0,1fr); }
  .dp-wheel-stage { --dp-dial-size: clamp(164px, min(56vw, 29vh), 235px); min-height: 0; padding: 18px 24px; }
  .dp-wheel-stage::after { inset: 8px; border-radius: 4px; }
  .dp-wheel-panel { padding: 20px clamp(16px, 5vw, 28px) 22px; gap: 11px; }
  .dp-wheel-intro { gap: 5px; }
  .dp-wheel-dialog h2 { font-size: clamp(28px, 8vw, 37px); }
  .dp-wheel-dialog:lang(zh) h2, .dp-wheel-dialog:lang(ja) h2 { font-size: clamp(25px, 7vw, 31px); }
  .dp-wheel-dialog .dp-wheel-close { inset-inline-end: 11px; inset-block-start: 11px; color: #fff3d9; border-color: #cfb28b80; background: #441426; }
  .dp-wheel-intro p { font-size: 13px; }
  .dp-wheel-content .dp-wheel-rule { padding-block-start: 10px; }
  .dp-wheel-dialog .dp-wheel-award { font-size: 25px; }
  .dp-wheel-award .dp-wheel-coins { width: 62px; height: 45px; }
}
@media (max-height:560px) and (min-width:700px) {
  .dp-wheel-stage { min-height: 340px; --dp-dial-size: min(32vw,62vh); }
  .dp-wheel-panel { padding-block: 30px 22px; gap: 10px; }
}
@media (max-width:699px) and (max-height:620px) {
  .dp-wheel-stage { --dp-dial-size: clamp(120px, 22vh, 160px); padding-block: 12px; }
  .dp-wheel-panel { padding-block: 14px; gap: 8px; }
}

/* A stationary metal casing holds the moving enamel dial. */
.dp-wheel-face {
  direction: ltr;
  isolation: isolate;
  position: relative;
  width: var(--dp-dial-size, clamp(190px, 50vw, 330px));
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
}
.dp-wheel-face::before { content: none; }
.dp-wheel-face > svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  direction: ltr;
  filter: drop-shadow(0 9px 9px rgb(26 4 13 / .42));
}
.dp-wheel-face .dp-wheel-rotor {
  direction: ltr;
  transform-box: view-box;
  transform-origin: 50% 50%;
}
.dp-wheel-face .dp-wheel-numeral {
  font-family: Baskerville, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: 45px;
  font-variant-numeric: lining-nums;
  line-height: 1;
}
.dp-wheel-face .dp-wheel-index {
  transform-box: fill-box;
  transform-origin: 50% 25%;
}

.dp-wheel-coins {
  display: inline-block;
  flex: none;
  width: auto;
  height: 1.12em;
  overflow: visible;
  vertical-align: -.14em;
  direction: ltr;
}
.dp-wheel-face .dp-wheel-empty-engraving text,
.dp-wheel-face .dp-wheel-ribbon text {
  paint-order: stroke fill;
  stroke: #332432;
  stroke-width: .65px;
  stroke-linejoin: round;
}
