.mzms,
.mzms * {
  box-sizing: border-box;
}

.mzms {
  width: min(100%, 760px);
  margin: 28px auto;
  padding: 30px 20px;
  color: #f6f7fb;
  background: radial-gradient(circle at top, #283451, #101522 65%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  text-align: center;
  font-family: Tahoma, Arial, sans-serif;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

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

.mzms-wheel {
  width: min(68vw, 290px);
  height: min(68vw, 290px);
  display: grid;
  place-items: center;
  border: 9px solid #fff;
  border-radius: 50%;
  background: repeating-conic-gradient(#f5c518 0deg 9deg, #e94f64 9deg 18deg, #293f73 18deg 27deg, #37a897 27deg 36deg);
  box-shadow: 0 14px 35px rgba(0,0,0,.36), 0 0 0 4px #f5c518;
  transition: transform 3s cubic-bezier(.12,.72,.14,1);
}

.mzms-wheel span {
  width: 105px;
  height: 105px;
  display: grid;
  place-items: center;
  border: 7px solid #161d2d;
  border-radius: 50%;
  color: #161d2d;
  background: #fff;
  font-size: 40px;
  font-weight: 900;
}

.mzms-pointer {
  position: absolute;
  z-index: 2;
  top: -4px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  border-top: 48px solid #f5c518;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.35));
}

.mzms button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mzms button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.mzms-spin {
  width: min(100%, 340px);
  margin: 25px auto 0;
  padding: 15px 24px;
  color: #161d2d;
  background: #f5c518;
  font-size: 20px !important;
  box-shadow: 0 6px 0 #a78300;
}

.mzms-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 22px;
  color: #dce2f1;
}

.mzms-message {
  min-height: 28px;
  margin: 18px 0;
  color: #f5c518;
  font-size: 19px;
  font-weight: 700;
}

.mzms-card {
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr;
  gap: 24px;
  margin-top: 15px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: rgba(255,255,255,.07);
  text-align: right;
}

.mzms-card[hidden] {
  display: none;
}

.mzms-poster-wrap {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #252d3d;
}

.mzms-poster-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mzms-poster-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 22px;
  color: #aeb8ce;
  text-align: center;
}

.mzms-info h2 {
  margin: 9px 0 !important;
  color: #fff;
  font-size: clamp(25px, 5vw, 39px) !important;
  line-height: 1.25;
}

.mzms-rank {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  color: #161d2d;
  background: #f5c518;
  font-size: 13px;
  font-weight: 800;
}

.mzms-info p {
  color: #cbd3e5;
}

.mzms-overview {
  font-size: 14px;
  line-height: 1.75;
}

.mzms-info a {
  display: inline-block;
  margin-top: 10px;
  color: #f5c518;
  font-weight: 700;
}

.mzms-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.mzms-actions button {
  padding: 10px 14px;
  color: #fff;
  background: #33415f;
}

.mzms-actions .mzms-reset {
  background: #b52f43;
}

.mzms-recent {
  margin-top: 18px;
  color: #aeb8ce;
  font-size: 13px;
}

.mzms-credit {
  margin: 20px 0 0;
  color: #7f8aa2;
  font-size: 11px;
}

.mzms-login {
  padding: 18px;
  border-radius: 12px;
  background: #fff4ce;
  color: #493b00;
  text-align: center;
}

@media (max-width: 620px) {
  .mzms {
    padding: 24px 14px;
    border-radius: 20px;
  }

  .mzms-card {
    grid-template-columns: 1fr;
  }

  .mzms-poster-wrap {
    width: min(72vw, 260px);
    margin: auto;
  }

  .mzms-info {
    text-align: center;
  }
}
