.allin-draw {
  position: relative;
  min-height: 100dvh;
  overflow-x: clip;
  background: #000;
  color: #fff;
  color-scheme: only dark;
}

.allin-draw::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle at 20% 24%,
      rgba(1, 145, 255, 0.19),
      transparent 31%
    ),
    radial-gradient(
      circle at 84% 74%,
      rgba(127, 196, 255, 0.11),
      transparent 28%
    ),
    linear-gradient(145deg, #07101a 0%, #000 38%, #03070d 100%);
  content: "";
  pointer-events: none;
}

.draw-grain {
  position: fixed;
  inset: -40%;
  z-index: 20;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

.draw-nav {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(0 0 0 / 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.draw-nav-in {
  display: flex;
  width: min(100% - 32px, 1280px);
  min-height: 68px;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
}

.draw-linkme-logo,
.draw-allin-logo {
  display: block;
  width: auto;
  flex: 0 0 auto;
}

.draw-linkme-logo {
  height: 22px;
}

.draw-allin-logo {
  height: 24px;
}

.draw-nav-x {
  color: rgb(255 255 255 / 0.38);
  font-size: 21px;
  line-height: 1;
}

.draw-nav-in > p {
  margin-left: auto;
  color: rgb(255 255 255 / 0.5);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draw-main {
  position: relative;
  z-index: 1;
}

.draw-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.draw-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 46px;
}

.draw-kick,
.draw-console-label {
  color: var(--blue-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.draw-heading h1 {
  width: 100%;
  font-family: var(--font-display), var(--font-ui);
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: 0.005em;
  text-wrap: balance;
  text-transform: uppercase;
}

.draw-lede {
  width: 100%;
  color: rgb(255 255 255 / 0.66);
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.draw-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  gap: 40px;
  align-items: start;
}

.draw-stage {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 36px 24px 32px;
  border: 1px solid rgb(255 255 255 / 0.11);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 35%, rgb(1 145 255 / 0.12), transparent 45%),
    rgb(255 255 255 / 0.035);
}

.draw-wheel {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -8deg,
    #f3f6fb 0deg 12deg,
    #0191ff 12deg 24deg,
    #08223a 24deg 36deg,
    #c9d5ee 36deg 48deg
  );
  rotate: var(--draw-rotation);
  transition: rotate var(--draw-duration) cubic-bezier(0.08, 0.68, 0.12, 1);
}

.draw-wheel::before,
.draw-wheel::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.draw-wheel::before {
  inset: 10px;
  border: 2px solid rgb(0 0 0 / 0.58);
}

.draw-wheel::after {
  inset: 30%;
  border: 1px solid rgb(255 255 255 / 0.32);
  background: #05080c;
}

.draw-wheel-rim {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 50%;
}

.draw-wheel-core {
  position: relative;
  z-index: 1;
  display: flex;
  width: 32%;
  min-width: 112px;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  rotate: calc(var(--draw-rotation) * -1);
  transition: rotate var(--draw-duration) cubic-bezier(0.08, 0.68, 0.12, 1);
}

.draw-wheel-core img {
  display: block;
  width: 72%;
  height: auto;
}

.draw-wheel-core p {
  color: rgb(255 255 255 / 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.draw-pointer {
  position: relative;
  z-index: 3;
  width: 0;
  height: 0;
  margin-bottom: -48px;
  border-top: 25px solid #fff;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
}

.draw-result {
  display: grid;
  width: min(100%, 560px);
  min-height: 150px;
  place-items: center;
  padding-top: 4px;
  text-align: center;
}

.draw-result-placeholder {
  max-width: 36ch;
  color: rgb(255 255 255 / 0.58);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.draw-winner {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.draw-winner > p:first-child {
  color: var(--blue-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.draw-winner h2 {
  max-width: 20ch;
  overflow-wrap: anywhere;
  font-family: var(--font-display), var(--font-ui);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  text-wrap: balance;
  text-transform: uppercase;
}

.draw-winner dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 36px;
}

.draw-winner dl div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.draw-winner dt {
  color: rgb(255 255 255 / 0.42);
  font-size: 13px;
}

.draw-winner dd {
  color: #fff;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.draw-timestamp {
  color: rgb(255 255 255 / 0.38);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.draw-spin-button {
  min-width: min(100%, 310px);
  min-height: 58px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  outline: 2px solid transparent;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-family: var(--font-display), var(--font-ui);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.draw-spin-button:hover:not(:disabled) {
  background: #dcecff;
  transform: translateY(-2px);
}

.draw-spin-button:active:not(:disabled) {
  transform: translateY(0);
}

.draw-spin-button:focus-visible {
  outline-color: var(--blue-hi);
  outline-offset: 3px;
}

.draw-spin-button:disabled {
  background: rgb(255 255 255 / 0.13);
  color: rgb(255 255 255 / 0.34);
  cursor: not-allowed;
}

.draw-console {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.11);
  border-radius: 28px;
  background: rgb(255 255 255 / 0.035);
}

.draw-prize-card,
.draw-pool-summary,
.draw-privacy-note {
  padding: 28px;
}

.draw-prize-card,
.draw-pool-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.draw-prize-card {
  min-height: 330px;
  justify-content: space-between;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  background: radial-gradient(
    circle at 85% 18%,
    rgb(1 145 255 / 0.17),
    transparent 42%
  );
}

.draw-prize-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.draw-prize-lockup > p {
  font-family: var(--font-display), var(--font-ui);
  font-size: clamp(4.8rem, 8vw, 7rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.draw-prize-lockup > span {
  color: var(--blue-text);
  font-size: 25px;
  line-height: 1;
}

.draw-prize-lockup h2 {
  max-width: 12ch;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.draw-loading {
  color: rgb(255 255 255 / 0.55);
  font-size: 16px;
}

.draw-error {
  padding: 13px 14px;
  border: 1px solid rgb(255 105 97 / 0.32);
  border-radius: 12px;
  background: rgb(255 59 48 / 0.08);
  color: #ffb4ae;
  font-size: 14px;
  line-height: 1.5;
}

.draw-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.draw-stats > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 22px 18px;
}

.draw-stats > div + div {
  border-left: 1px solid rgb(255 255 255 / 0.1);
}

.draw-stats strong {
  overflow: hidden;
  color: #fff;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
}

.draw-stats span {
  color: rgb(255 255 255 / 0.44);
  font-size: 11px;
  line-height: 1.35;
}

@media (min-width: 961px) {
  .draw-heading h1,
  .draw-lede {
    white-space: nowrap;
  }

  .draw-lede {
    font-size: clamp(14px, 1.3vw, 18px);
  }
}

@media (max-width: 960px) {
  .draw-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .draw-console {
    width: min(100%, 720px);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .draw-nav-in {
    width: min(100% - 32px, 1280px);
    min-height: 62px;
    gap: 10px;
  }

  .draw-linkme-logo {
    height: 18px;
  }

  .draw-allin-logo {
    height: 20px;
  }

  .draw-nav-in > p {
    display: none;
  }

  .draw-shell {
    padding: 44px 16px 56px;
  }

  .draw-heading {
    gap: 16px;
    padding-bottom: 34px;
  }

  .draw-heading h1 {
    font-size: clamp(3.2rem, 17vw, 5.6rem);
  }

  .draw-lede {
    font-size: 16px;
  }

  .draw-layout {
    gap: 24px;
  }

  .draw-stage,
  .draw-console {
    border-radius: 20px;
  }

  .draw-stage {
    gap: 22px;
    padding: 30px 14px 24px;
  }

  .draw-wheel-core {
    min-width: 88px;
  }

  .draw-result {
    min-height: 138px;
  }

  .draw-winner dl {
    gap: 8px 18px;
  }

  .draw-spin-button {
    width: 100%;
    min-width: 0;
  }

  .draw-prize-card,
  .draw-pool-summary,
  .draw-privacy-note {
    padding: 22px;
  }

  .draw-prize-card {
    min-height: 280px;
  }

  .draw-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .draw-stats > div {
    padding: 18px 22px;
  }

  .draw-stats > div + div {
    border-top: 1px solid rgb(255 255 255 / 0.1);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .draw-wheel,
  .draw-wheel-core {
    transition-duration: 1ms;
  }

  .draw-spin-button:hover:not(:disabled) {
    transform: none;
  }
}
