:root { --bg: #fff; --text:#111; --black:#000; --white:#fff; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #000 url('/fondo.png') center/cover fixed no-repeat;
  display: flex; flex-direction: column; align-items: center;
}
.header { text-align: center; padding: 24px 16px 8px; }
.title { margin: 0 0 12px; font-weight: 800; letter-spacing: 1px; color: #000; }
.mode-buttons { display: flex; gap: 12px; justify-content: center; }
.main { width: 100%; max-width: 960px; padding: 12px 16px 40px; display:flex; flex-direction: column; align-items: center; gap: 16px; }
.subtitle { margin: 8px 0 0; padding: 6px 10px; background: transparent; border-radius: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: transform .08s ease, opacity .2s ease; cursor: pointer; }
.btn-dark { background: var(--black); color: var(--white); border: 1px solid #000; }
.btn-outline { background: rgba(255,255,255,0.9); color: #000; border: 1px solid #000; }
.btn:active { transform: scale(0.98); }

.wheel-wrap { position: relative; width: min(90vw, 620px); aspect-ratio: 1/1; display: grid; place-items: center; }
.wheel-wrap canvas { width: 100%; height: 100%; border-radius: 50%; background: rgba(255,255,255,0.9); }
.wheel-logo { position: absolute; width: 22%; aspect-ratio: 1/1; object-fit: contain; pointer-events: none; opacity: 0.9; }
.pointer {
  position: absolute; bottom: -8px; width: 0; height: 0;
  border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 22px solid #000;
  filter: drop-shadow(0 2px 0 rgba(255,255,255,0.9));
}

.wheel-mode-label {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  text-align: center;
  font-weight: 700;
  color: #000;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  pointer-events: none;
  font-size: 1.5em;
}

.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.45); padding: 16px; }
.modal.hidden { display: none; }
.modal.invert .modal-content { background: #000; color: #fff; border-color: #fff; }
.modal.invert .modal-content .btn { background: #D4AF37; color: #000; border-color: #D4AF37; }
.modal-content {
  max-width: 560px; width: 100%;
  background: #fff; border: 2px solid #000; border-radius: 12px; padding: 20px; text-align: center;
}
#modalText { font-size: 1.05rem; margin: 8px 0 16px; }
#modalTitle { color: inherit; }
/* Gold title inside inverted modal */
.modal.invert #modalTitle { color: #D4AF37; }
/* Ensure default button styles remain for non-invert modals */