/* Brand palette from maxmia.ru */
:root {
  --maxmia-slate: #4a586e;
  --maxmia-olive: #686032;
  --maxmia-cloud: #8697a1;
  --maxmia-silver: #bcbcbc;
  --maxmia-ink: #0f1118;
  --accent-gold: #cbbf80;
  --bg-gradient: radial-gradient(circle at 20% 20%, #1f2433, #0c0f18 60%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--maxmia-silver);
  background: var(--bg-gradient);
  min-height: 100vh;
  padding-bottom: 64px;
}

h1,
h2,
.hero__badge {
  font-family: "Cinzel", "Manrope", serif;
  letter-spacing: 0.02em;
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 32px 24px;
  align-items: center;
}

.hero__badge {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--maxmia-olive), var(--maxmia-slate));
  color: white;
  font-size: 26px;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  border: 2px solid var(--accent-gold);
}

.hero__copy h1 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 3vw, 40px);
}

.hero__copy p {
  margin: 0 0 12px;
  color: var(--maxmia-cloud);
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-gold);
  color: white;
  background: rgba(202, 191, 128, 0.08);
  backdrop-filter: blur(8px);
}

.hero__pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 6px rgba(203, 191, 128, 0.18);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent-gold);
  margin: 0 0 6px;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 24px;
}

.panel {
  background: linear-gradient(145deg, rgba(29, 34, 48, 0.8), rgba(18, 20, 32, 0.9));
  border: 1px solid rgba(203, 191, 128, 0.2);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.panel__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-gold);
  color: white;
  font-weight: 600;
  background: rgba(203, 191, 128, 0.12);
}

.chip--muted {
  border-color: rgba(203, 191, 128, 0.32);
  color: var(--maxmia-cloud);
  background: rgba(203, 191, 128, 0.06);
}

.wheel-shell {
  position: relative;
  margin-top: 16px;
  display: grid;
  place-items: center;
  padding: 20px 0 12px;
}

.wheel-sunburst {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: conic-gradient(
      from 45deg,
      rgba(203, 191, 128, 0.35),
      rgba(18, 20, 32, 0.05),
      rgba(203, 191, 128, 0.35)
    ),
    radial-gradient(circle, rgba(203, 191, 128, 0.12), transparent 60%);
  filter: blur(14px);
  z-index: 0;
}

.wheel-frame {
  position: relative;
  width: min(480px, 80vw);
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(74, 88, 110, 0.12), rgba(0, 0, 0, 0.4));
  border-radius: 50%;
  border: 3px solid var(--accent-gold);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 60px rgba(0, 0, 0, 0.45);
  overflow: visible;
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(203, 191, 128, 0.12), rgba(74, 88, 110, 0.06), rgba(15, 17, 24, 0.8));
}

.wheel-pointer {
  position: absolute;
  right: -14px;
  width: 32px;
  height: 32px;
  clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
  background: linear-gradient(135deg, var(--accent-gold), #f1e7b7);
  border: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.spin-button {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-gold);
  background: linear-gradient(145deg, var(--maxmia-olive), var(--maxmia-slate));
  color: white;
  font-family: "Cinzel", serif;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 4px rgba(203, 191, 128, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}

.spin-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: inset 0 0 0 3px rgba(203, 191, 128, 0.2);
}

.spin-button:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(203, 191, 128, 0.3);
  background: rgba(255, 255, 255, 0.03);
  color: var(--maxmia-silver);
  min-height: 44px;
  line-height: 1.5;
}

.status[data-type="success"] {
  border-color: rgba(200, 234, 174, 0.6);
  color: #e5f5d6;
}

.status[data-type="warning"] {
  border-color: rgba(203, 191, 128, 0.5);
  color: var(--accent-gold);
}

.status[data-type="error"] {
  border-color: rgba(255, 99, 99, 0.5);
  color: #ffb3b3;
}

.config-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.prize-list {
  display: grid;
  gap: 12px;
}

.prize-card {
  border: 1px solid rgba(203, 191, 128, 0.22);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.prize-card__header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.prize-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, rgba(74, 88, 110, 0.6), rgba(104, 96, 50, 0.7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.progress {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}

.progress__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--accent-gold), var(--maxmia-olive));
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(203, 191, 128, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: white;
}

.input--small {
  max-width: 120px;
}

.form-card {
  border: 1px solid rgba(203, 191, 128, 0.22);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.form-label {
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
  display: block;
}

.hint {
  margin: 2px 0 10px;
  color: var(--maxmia-cloud);
  font-size: 13px;
}

.limit-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-button {
  justify-self: start;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(203, 191, 128, 0.4);
  background: rgba(203, 191, 128, 0.08);
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  background: rgba(203, 191, 128, 0.16);
  transform: translateY(-1px);
}

.embed-panel .snippet {
  background: rgba(0, 0, 0, 0.4);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(203, 191, 128, 0.18);
  color: var(--maxmia-silver);
  overflow-x: auto;
}

.form-range {
  width: 100%;
  accent-color: var(--accent-gold);
}

@media (max-width: 900px) {
  .config-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero__copy {
    text-align: center;
  }
}

@media (max-width: 540px) {
  .wheel-pointer {
    right: -8px;
  }

  .spin-button {
    width: 92px;
    height: 92px;
  }

  .panel {
    padding: 16px;
  }

  .chip {
    font-size: 13px;
  }
}
