:root {
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  background: #4FBBEE;
  overscroll-behavior: none;
}

.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: #4FBBEE;
  overflow: hidden;
}

.dots-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 22px 22px, rgba(255,255,255,.16) 15px, transparent 16px);
  background-size: 62px 62px;
  pointer-events: none;
}

.content {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 28px;
  color: #0B4E72;
}

/* ── header ── */

.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-duck { width: 30px; height: 30px; object-fit: contain; }

.logo-text {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 3px 0 rgba(11,78,114,.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.logo-text span { font-weight: 600; }

.spins-pill {
  margin-left: auto;
  flex-shrink: 0;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 0 #1C8BC4;
  white-space: nowrap;
}

/* ── title ── */

.title-block {
  margin-top: 22px;
  text-align: center;
  color: #fff;
}

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .9;
}

.headline {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.02em;
  text-shadow: 0 5px 0 rgba(11,78,114,.3);
  margin-top: 2px;
}

/* ── wheel ── */

.wheel-wrap {
  position: relative;
  width: min(290px, 78vw);
  height: min(290px, 78vw);
  margin: 22px auto 0;
}

.pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #FFC44D;
  filter: drop-shadow(0 4px 0 #E08A00);
  z-index: 3;
}

.wheel-dial {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    #FFFFFF 0 45deg, #BEE9FA 45deg 90deg,
    #FFFFFF 90deg 135deg, #BEE9FA 135deg 180deg,
    #FFFFFF 180deg 225deg, #BEE9FA 225deg 270deg,
    #FFFFFF 270deg 315deg, #BEE9FA 315deg 360deg);
  border: 10px solid #fff;
  box-shadow: 0 12px 0 #1C8BC4, 0 26px 40px rgba(9,64,95,.35);
  transition: transform 4.2s cubic-bezier(.17,.86,.32,1.02);
  will-change: transform;
}

.wheel-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.sector-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  margin-left: -32px;
  margin-top: -11px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: #0B4E72;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  /* Та же длительность/кривая, что у .wheel-dial: лейбл едет вместе со своим
     сектором, но независимо докручивается в обратную сторону, оставаясь
     горизонтальным на протяжении ВСЕГО вращения, а не только в состоянии покоя. */
  transition: transform 4.2s cubic-bezier(.17,.86,.32,1.02);
  will-change: transform;
}
.sector-label.is-premium {
  font-size: 10.5px;
  letter-spacing: .04em;
  color: #E08A00;
}
.sector-label img { width: 28px; height: 28px; object-fit: contain; }

.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: #FFC44D;
  box-shadow: 0 7px 0 #E08A00;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.wheel-hub img { width: 60px; height: 60px; object-fit: contain; }

/* ── bottom ── */

.bottom-block {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
}

.rewards-row {
  display: flex;
  gap: 10px;
}

.reward-card {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 10px 12px;
  box-shadow: 0 5px 0 #1C8BC4;
  min-width: 0;
}

.reward-label {
  font-size: 11px;
  font-weight: 800;
  color: #4FAEDA;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.reward-value {
  font-size: 15px;
  font-weight: 900;
  color: #0B4E72;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spin-btn {
  border: none;
  background: #FFC44D;
  color: #6B3E00;
  border-radius: 24px;
  padding: 18px;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  font-family: inherit;
  box-shadow: 0 7px 0 #E08A00;
  transition: transform .08s ease, box-shadow .08s ease, opacity .2s ease;
}
.spin-btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 3px 0 #E08A00;
}
.spin-btn:disabled {
  opacity: .55;
}

/* ── toast ── */

.toast {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 24px;
  background: rgba(11,78,114,.94);
  color: #fff;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 10;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
