.dz-page {
  --tc-bg-1: var(--plum);
  --tc-neutral-600: var(--line);
  --tc-neutral-1000: #120b22;
  --tc-neutral-0: var(--text);
  --tc-neutral-200: var(--muted);
  --tc-theme-primary-1: var(--violet);
}

.dz-page {
  min-height: 100vh;
  min-height: 100dvh;
}

.dz-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(8px, 2vh, 24px) 16px;
  background: radial-gradient(ellipse at 50% 20%, rgba(116, 22, 248, 0.12), transparent 60%);
}

.dz-wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  --dz-accent: var(--tc-theme-primary-1, #7416f8);

  --dz-card-h: clamp(120px, calc(100dvh - 490px), 236px);
  --dz-card-w: calc(var(--dz-card-h) * 0.75);
  --dz-gap: 12px;
}

.dz-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: clamp(8px, 1.6vh, 16px);
  text-align: center;
}

.dz-head h1 {
  margin: 0;
  font-size: clamp(24px, 3.6vh, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--tc-neutral-0);
}

.dz-head h1 span {
  color: var(--dz-accent);
}

.dz-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 12px);
  background: var(--tc-bg-1);
  border: 1px solid var(--tc-neutral-600);
  border-radius: 20px;
  padding: clamp(10px, 2vh, 18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.dz-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dz-tabs::-webkit-scrollbar {
  display: none;
}

.dz-tab {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid var(--tc-neutral-600);
  background: transparent;
  color: var(--tc-neutral-200);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dz-tab[aria-pressed="true"] {
  background: var(--dz-accent);
  border-color: var(--dz-accent);
  color: #fff;
}

.dz-reel {
  position: relative;
  border-radius: 14px;
  background: var(--tc-neutral-1000);
  border: 1px solid var(--tc-neutral-600);
  padding: 12px 0;
  overflow: hidden;
}

.dz-reel::before,
.dz-reel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}

.dz-reel::before {
  left: 0;
  background: linear-gradient(90deg, var(--tc-neutral-1000), transparent);
}

.dz-reel::after {
  right: 0;
  background: linear-gradient(270deg, var(--tc-neutral-1000), transparent);
}

.dz-marker {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: var(--dz-accent);
  box-shadow: 0 0 16px var(--dz-accent);
  z-index: 3;
}

.dz-marker::before,
.dz-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
}

.dz-marker::before {
  top: 0;
  border-top-color: var(--dz-accent);
}

.dz-marker::after {
  bottom: 0;
  border-bottom-color: var(--dz-accent);
}

.dz-viewport {
  overflow: hidden;
  margin: 0 auto;
  max-width: 100%;
}

.dz-strip {
  display: flex;
  gap: var(--dz-gap);
  will-change: transform;
}

.dz-card {
  position: relative;
  flex: 0 0 var(--dz-card-w);
  height: var(--dz-card-h);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #2a1652, #120a24);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.dz-card-fallback {
  position: relative;
  z-index: 0;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  color: #fff;
}

.dz-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.dz-strip.has-winner .dz-card {
  opacity: 0.35;
}

.dz-card.is-won {
  opacity: 1 !important;
  box-shadow: 0 0 0 2px var(--dz-accent), 0 0 32px rgba(116, 22, 248, 0.6);
}

.dz-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 8px 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--tc-neutral-600);
  background: var(--tc-neutral-1000);
}

.dz-idle,
.dz-result {
  flex: 1;
  min-width: 0;
}

.dz-idle[hidden],
.dz-result[hidden],
.dz-play[hidden] {
  display: none !important;
}

.dz-idle strong {
  display: block;
  color: var(--tc-neutral-0);
  font-size: 15px;
}

.dz-idle span {
  font-size: 12px;
  color: var(--tc-neutral-200);
}

.dz-result {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: dz-pop 0.3s ease;
}

.dz-result img {
  width: 36px;
  height: 48px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
  background: #1b0f36;
}

.dz-result-text {
  min-width: 0;
}

.dz-result h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  color: var(--tc-neutral-0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dz-result-provider {
  margin: 0;
  font-size: 12px;
  color: var(--tc-neutral-200);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dz-result-buy {
  margin: 0 0 0 auto;
  text-align: right;
  line-height: 1.1;
  flex-shrink: 0;
}

.dz-result-buy span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tc-neutral-200);
}

.dz-result-buy strong {
  font-family: "DM Mono", monospace;
  font-size: 18px;
  color: var(--tc-neutral-0);
}

.dz-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dz-play,
.dz-spin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.dz-play {
  background: #fff;
  color: #14101f;
}

.dz-play:hover {
  background: #e9e3ff;
  color: #14101f;
}

.dz-spin {
  min-width: 120px;
  background: var(--dz-accent);
  color: #fff;
}

.dz-spin:hover:not(:disabled) {
  background: #6510dc;
}

.dz-spin:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dz-sound {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--tc-neutral-600);
  background: transparent;
  color: var(--tc-neutral-0);
  font-size: 18px;
}

@keyframes dz-pop {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.dz-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dz-field {
  margin: 0;
  border: 1px solid var(--tc-neutral-600);
  border-radius: 12px;
  padding: 7px 12px;
  background: var(--tc-neutral-1000);
}

.dz-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--tc-neutral-200);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.dz-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  letter-spacing: 0.08em;
}

.dz-switch input {
  accent-color: var(--dz-accent);
  width: 14px;
  height: 14px;
}

.dz-buy-fields {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.dz-buy-fields.is-off {
  opacity: 0.4;
  pointer-events: none;
}

.dz-buy-fields span {
  color: var(--tc-neutral-200);
}

.dz-field input[type="number"],
.dz-field select {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--tc-neutral-0);
  font-weight: 700;
  font-size: 14px;
  outline: none;
}

.dz-field select option {
  background: #14101f;
}

.dz-field:focus-within {
  border-color: var(--dz-accent);
}

.dz-tab:focus-visible,
.dz-spin:focus-visible,
.dz-sound:focus-visible,
.dz-play:focus-visible {
  outline: 3px solid var(--dz-accent);
  outline-offset: 2px;
}

.dz-history-wrap {
  display: none;
}

@media (min-height: 1000px) {
  .dz-history-wrap:not([hidden]) {
    display: block;
  }

  .dz-wrap {
    --dz-card-h: clamp(120px, calc(100dvh - 560px), 250px);
  }
}

.dz-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dz-history-head h3 {
  margin: 0;
  font-size: 14px;
  color: var(--tc-neutral-0);
}

.dz-history-head button {
  border: 0;
  background: none;
  color: var(--tc-neutral-200);
  font-size: 12px;
  text-decoration: underline;
}

.dz-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow: hidden;
}

.dz-history li {
  flex: 0 0 210px;
}

.dz-history a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--tc-neutral-600);
  color: var(--tc-neutral-0);
}

.dz-history a:hover {
  border-color: var(--dz-accent);
}

.dz-history img {
  width: 27px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.dz-h-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dz-h-name small {
  display: block;
  font-weight: 400;
  color: var(--tc-neutral-200);
}

.dz-h-buy {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: var(--tc-neutral-200);
}

.dz-page > footer .section-footer {
  padding: 8px 0 10px !important;
}

.dz-page > footer .navigation {
  display: none !important;
}

.dz-foot {
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  color: var(--tc-neutral-200);
}

.dz-foot + .dz-foot {
  margin-top: 2px;
}

@media (max-width: 640px) {
  .dz-wrap {
    --dz-card-w: 88px;
    --dz-card-h: 117px;
    --dz-gap: 8px;
  }

  .dz-head .referral-eyebrow {
    display: none;
  }

  .dz-bar {
    flex-wrap: wrap;
    padding: 8px;
  }

  .dz-actions {
    width: 100%;
  }

  .dz-spin {
    flex: 1;
  }

  .dz-field {
    padding: 6px 10px;
  }

  .dz-buy-fields {
    gap: 3px;
  }

  .dz-foot {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .dz-wrap {
    --dz-card-w: 76px;
    --dz-card-h: 101px;
  }
}

@media (max-width: 640px) and (max-height: 720px) {
  .dz-wrap {
    --dz-card-w: 66px;
    --dz-card-h: 88px;
  }

  .dz-reel {
    padding: 8px 0;
  }

  .dz-main {
    padding: 4px 12px;
  }

  .dz-bar {
    min-height: 0;
  }

  .dz-play,
  .dz-spin,
  .dz-sound {
    height: 40px;
  }
}

.dz-page .dz-tab i {
  font-size: 14px;
  vertical-align: -2px;
}

.dz-page .dz-switch {
  font-size: 10px;
  margin: 0;
}

.dz-page .dz-foot {
  font-size: 11px;
}

@media (max-width: 640px) {
  .dz-page .dz-foot {
    font-size: 10px;
    line-height: 1.4;
  }
}

.dz-main {
  background:
    radial-gradient(50% 60% at 50% 30%, rgba(123, 44, 255, 0.22), transparent 70%),
    var(--ink);
}

.dz-head .referral-eyebrow {
  display: none;
}

.dz-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 3.4vh, 34px);
  letter-spacing: -0.04em;
}

.dz-head h1 span {
  color: var(--volt);
}

.dz-panel {
  border-radius: var(--radius-l);
  box-shadow: 0 30px 90px rgba(123, 44, 255, 0.18);
}

.dz-tab {
  font-family: var(--body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 800;
}

.dz-tab[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--ink);
}

.dz-page .dz-tab i {
  font-size: 15px;
  vertical-align: -2px;
}

.dz-marker {
  background: var(--volt);
  box-shadow: 0 0 18px rgba(214, 255, 58, 0.8);
}

.dz-marker::before {
  border-top-color: var(--volt);
}

.dz-marker::after {
  border-bottom-color: var(--volt);
}

.dz-card.is-won {
  box-shadow: 0 0 0 2px var(--volt), 0 0 36px rgba(214, 255, 58, 0.35);
}

.dz-spin,
.dz-play {
  font-family: var(--body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
}

.dz-spin {
  background: var(--volt);
  color: #16101f;
}

.dz-spin:hover:not(:disabled) {
  background: #e6ff7d;
}

.dz-play {
  background: var(--violet);
  color: #fff;
}

.dz-play:hover {
  background: #8d47ff;
  color: #fff;
}

.dz-field-label,
.dz-result-buy span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.dz-switch input {
  accent-color: var(--volt);
}

.dz-page .dz-switch {
  font-size: 12px;
}

.dz-result-buy strong,
.dz-h-buy {
  font-family: var(--display);
}

.dz-field select {
  font-family: var(--body);
}

.footer-slim {
  margin-top: 0;
  padding: 10px 0 12px;
}

.footer-slim .footer-note {
  max-width: none;
  text-align: center;
  font-size: 11px;
}

.footer-slim .footer-note a {
  color: var(--violet-soft);
}

.footer-slim .age {
  width: 24px;
  height: 24px;
  font-size: 9px;
  margin-right: 8px;
}

.dz-reel::before,
.dz-reel::after {
  display: none;
}

.dz-page .dz-viewport {
  width: 100% !important;
  perspective: 1000px;
  perspective-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}

.dz-page .dz-strip {
  transform-style: preserve-3d;
}

.dz-page .dz-card {
  transition: box-shadow 0.3s ease, opacity 0.3s ease;
  backface-visibility: hidden;
  will-change: transform;
}

.dz-page .dz-strip.has-winner .dz-card {
  opacity: 0.45;
}

.dz-page .dz-strip.has-winner .dz-card.is-won {
  opacity: 1;
}

.dz-page .dz-reel {
  padding: 0;
}

.dz-page .dz-viewport {
  padding: 12px 0;
}

@media (max-width: 640px) and (max-height: 720px) {
  .dz-page .dz-viewport {
    padding: 8px 0;
  }
}

.dz-main {
  background: var(--ink);
}

.dz-head h1 {
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dz-head h1 span {
  color: inherit;
}

.dz-panel {
  border-radius: var(--radius-l);
  box-shadow: none;
}

.dz-reel,
.dz-bar,
.dz-field {
  border-radius: var(--radius-m);
}

.dz-tab {
  border-radius: var(--radius-s);
  font-weight: 600;
}

.dz-card {
  border-radius: var(--radius-s);
}

.dz-marker {
  box-shadow: none;
  width: 2px;
}

.dz-card.is-won {
  box-shadow: 0 0 0 2px var(--volt);
}

.dz-spin,
.dz-play,
.dz-sound {
  border-radius: var(--radius-s);
  font-weight: 700;
}

.dz-result-buy strong,
.dz-h-buy {
  font-stretch: 112%;
  font-weight: 800;
}

.dz-page .footer {
  margin-top: 0;
}

.dz-page .dz-tab i {
  display: none;
}
