:root {
  --gold: #f5bb35;
  --bg: #090b10;
  --card: #171a22;
  --text: #f7f7f7;
  --muted: #a2a6b2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at top, #252019, var(--bg) 55%);
  color: var(--text);
  font-family: Arial, sans-serif;
}

.header {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #39301d;
}

.logo {
  font-size: 17px;
  font-weight: 900;
  color: var(--gold);
}

.logo span { color: white; }

.demo {
  font-size: 9px;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 6px;
}

.container {
  width: min(100%, 560px);
  margin: auto;
  padding: 15px;
}

.prize {
  text-align: center;
  padding: 25px 10px;
  background: linear-gradient(140deg, #29200e, #111319);
  border: 1px solid #6c5022;
  border-radius: 18px;
}

.prize p {
  letter-spacing: 3px;
  font-size: 12px;
}

.prize h1 {
  color: var(--gold);
  font-size: clamp(48px, 12vw, 72px);
  margin: 8px 0 0;
}

.prize h2 {
  margin: 0 0 20px;
  font-size: 23px;
}

.price {
  padding: 12px;
  background: #372a12;
  border-radius: 10px;
  font-size: 12px;
}

.price strong { color: var(--gold); }

.wheel-section {
  text-align: center;
  padding: 25px 0;
}

.wheel-container {
  width: min(90vw, 420px);
  aspect-ratio: 1;
  position: relative;
  margin: auto;
}

#wheel {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px #b6812660);
}

.pointer {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 30px solid var(--gold);
  z-index: 3;
}

.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 17%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #ffe6a1, #a76b12);
  border: 4px solid #f8d57c;
  border-radius: 50%;
  font-size: 25px;
}

.wheel-caption, .notice {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.progress-card, .positions-card, .checkout {
  background: var(--card);
  padding: 20px;
  margin-bottom: 18px;
  border: 1px solid #373943;
  border-radius: 16px;
}

.progress-info, .total {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
}

.progress-bar {
  background: #33343a;
  height: 12px;
  border-radius: 20px;
  overflow: hidden;
}

#progressFill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #a66a12, var(--gold));
}

.progress-card p, .positions-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-top: 20px;
}

.position {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid #494c55;
  background: #262932;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.position.selected {
  background: var(--gold);
  color: #161616;
  border-color: #ffe1a0;
}

.legend {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  font-size: 12px;
}

.total strong {
  color: var(--gold);
  font-size: 23px;
}

#checkoutButton {
  width: 100%;
  padding: 17px;
  border: none;
  border-radius: 12px;
  background: var(--gold);
  color: #141414;
  font-weight: 900;
  font-size: 16px;
}

#checkoutButton:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 360px) {
  .positions-grid { gap: 5px; }
  .position { font-size: 12px; }
}
.position.reservada {
  background: #b8860b;
  color: #171717;
  border-color: #f5bb35;
  cursor: not-allowed;
}

.position.paga {
  background: #177245;
  color: #ffffff;
  border-color: #39bd79;
  cursor: not-allowed;
}

.position:disabled {
  opacity: 0.85;
}
.grid-admin {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.admin-posicao {
  padding: 12px 4px;
  border-radius: 9px;
  background: #30343c;
  color: white;
  text-align: center;
  border: 1px solid #555;
}

.admin-posicao strong,
.admin-posicao small {
  display: block;
}

.admin-posicao small {
  margin-top: 5px;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.admin-posicao.reservada {
  background: #a87915;
  color: #111;
}

.admin-posicao.paga {
  background: #176b43;
}

@media (min-width: 700px) {
  .grid-admin {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}
