*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  background: linear-gradient(165deg, #0a1628 0%, #0d2142 40%, #152a52 100%);
  color: #e3eaf5;
  min-height: 100vh;
}
.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  text-align: center;
}
@media (min-width: 480px) {
  .wrap {
    padding: 2rem 1.25rem;
  }
}
.screen.hidden {
  display: none !important;
}
.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #90caf9;
  width: 100%;
}
h2 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}
.muted {
  color: #9eb4d4;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  max-width: 28rem;
}
.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  width: 100%;
}
.login-block {
  padding: 1.25rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(100, 160, 220, 0.22);
  background: rgba(20, 40, 72, 0.65);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}
.login-block--vk .vkid-sdk-root {
  margin-top: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn.vk {
  background: #2787f5;
  color: #fff;
  width: min(100%, 22rem);
  align-self: center;
}
.btn.vk:hover {
  filter: brightness(1.08);
}
.btn.tg {
  background: #229ed9;
  color: #fff;
  width: min(100%, 22rem);
  align-self: center;
}
.btn.tg:hover {
  filter: brightness(1.08);
}
.btn.max {
  background: rgba(70, 90, 120, 0.9);
  color: #e3eaf5;
  width: min(100%, 22rem);
  align-self: center;
  cursor: pointer;
  border: 1px solid rgba(180, 200, 230, 0.35);
}
.btn.max:hover {
  filter: brightness(1.06);
}
.btn.primary {
  background: linear-gradient(180deg, #1a6bdd, #0d47a1);
  color: #fff;
  width: min(100%, 22rem);
  align-self: center;
  margin-top: 0.25rem;
}
.btn.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}
.spin-btn {
  margin: 0.5rem 0 0;
}
.subscribe-section {
  max-width: 24rem;
  margin: 0 auto;
  padding: 0.5rem 0.25rem 1.5rem;
}
.subscribe-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: #b3d4ff;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.subscribe-lead {
  margin: 0 0 1rem !important;
  font-size: 0.92rem;
}
.social-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  margin: 0 0 1rem;
  max-width: 22rem;
  align-self: center;
}
.tagline {
  margin: 0 0 0.9rem;
  color: #b2c2db;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 24rem;
}
.lottery-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.btn.ghost {
  background: rgba(30, 55, 95, 0.6);
  color: #b8cce8;
  border: 1px solid rgba(100, 160, 220, 0.35);
}
.btn.ghost:hover {
  color: #e3eaf5;
  border-color: rgba(144, 202, 249, 0.5);
  background: rgba(40, 70, 115, 0.75);
}
.small {
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}
.vkid-sdk-root {
  min-height: 48px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.flash {
  margin: 1rem auto 0;
  font-size: 0.9rem;
  color: #90caf9;
  max-width: 28rem;
}
.flash.ok {
  color: #81c784;
}
.flash.err {
  color: #ef9a9a;
}
.wheel-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto 1.75rem;
  width: 100%;
  max-width: min(94vw, 30rem);
  padding-top: 0.75rem;
}
.wheel {
  width: 100%;
  max-width: min(94vw, 30rem);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 clamp(4px, 1.2vw, 10px) rgba(0, 0, 0, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 40px rgba(0, 0, 0, 0.45);
  transition: none;
  transform-origin: 50% 50%;
}
.wheel svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  vertical-align: top;
}
.wheel-legend {
  width: fit-content;
  max-width: min(94vw, 20rem);
  margin: 1.5rem auto 0;
  padding: 0.75rem 1rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(100, 160, 220, 0.25);
  background: rgba(15, 30, 55, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
.wheel-legend-title {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #90caf9;
  text-align: center;
  width: 100%;
}
.wheel-legend-list {
  margin: 0;
  padding: 0;
  list-style: none;
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.wheel-legend-item {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: #e3eaf5;
  line-height: 1.35;
  width: 100%;
}
.wheel-legend-swatch {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.wheel-legend-swatch--img {
  padding: 0;
  overflow: hidden;
  background: rgba(8, 18, 36, 0.65);
}
.wheel-legend-swatch--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wheel svg image {
  pointer-events: none;
}
.wheel-legend-name {
  text-align: left;
  min-width: 0;
}
.wheel-marker {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: clamp(10px, 3vw, 14px) solid transparent;
  border-right: clamp(10px, 3vw, 14px) solid transparent;
  border-top: clamp(16px, 4.5vw, 22px) solid #64b5f6;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  z-index: 2;
  pointer-events: none;
}
.wheel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  padding: 1.5rem;
  text-align: center;
  color: #9eb4d4;
  font-size: 0.95rem;
  border: 2px dashed rgba(100, 160, 220, 0.4);
  border-radius: 50%;
  aspect-ratio: 1;
  width: 100%;
  max-width: min(94vw, 30rem);
  margin: 0 auto;
  background: rgba(15, 30, 55, 0.5);
}
.spin-result {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.45;
  min-height: 3rem;
  color: #e3eaf5;
  max-width: 28rem;
}
.spin-result_muted {
  color: #9eb4d4;
}
.logout-foot {
  margin-top: 1.5rem;
}
