:root{
  --bg: #f0a14a;
  --text: #222;
}

*{ box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background-image: url("/fondo.png");
  background-size: 360px 360px;
  background-repeat: repeat;
  background-position: center;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 16px;
}

.title {
  margin: 8px 0 0;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
}

select {
  padding: 8px 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #bbb;
  background: #fff;
}

.wheel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border-radius: 16px;
  padding: 12px;
}

.hidden { display: none; }

.wheel {
  width: min(90vw, 520px);
  height: auto;
  display: block;
}

.sector {
  stroke: #fff;
  stroke-width: 2;
}

.label {
  font-size: 14px;
  font-weight: 700;
  fill: #222;
  text-anchor: start;
  dominant-baseline: middle;
}

.arrow {
  cursor: pointer;
  transform-origin: 250px 250px;
  transition: transform 3.2s cubic-bezier(0.18, 0.8, 0.22, 1);
}

.hint {
  margin: 0;
  font-size: 12px;
  color: #333;
}

.cta {
  display: inline-block;
  margin-top: 4px;
  padding: 12px 18px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  transition: transform .1s ease, filter .2s ease;
}
.cta:hover { filter: brightness(1.05); }
.cta:active { transform: translateY(1px); }

.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.35);}
.modal.show{display:flex;}
.modal-content{background:#000;color:#fff;border-radius:12px;padding:16px 20px;min-width:240px;max-width:80vw;box-shadow:0 6px 24px rgba(0,0,0,.25);}
.modal-content button{margin:16px auto 0;padding:8px 12px;border:0;border-radius:8px;background:#d4af37;color:#000;font-weight:700;cursor:pointer;display:block;}
.modal-title{margin:0 0 8px;color:#d4af37;font-weight:800;font-size:18px;text-align:center;}

@media (min-width: 700px) {
  .label { font-size: 16px; }
}