/*
 * La encuesta de la noche, que se abre como hoja ahí mismo: en la carta (con
 * menu.css y su temática) y en el portal (con hub-rating.css, que le pone los
 * colores del portal). Aquí solo lo propio de la encuesta: estrellas grandes
 * para el pulgar, quien está en cabina en grande y las etiquetas de lo que
 * falló. Los colores salen de las variables; nada va quemado.
 */

/* ========== En cabina: el DJ primero y en grande ========== */
.gp-rate-stage {
  position: relative; overflow: hidden;
  margin: 2px 0 0; padding: 18px 18px 20px; border-radius: 22px;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 55%),
              linear-gradient(150deg, var(--hero-a), var(--hero-b));
  color: var(--hero-ink);
  box-shadow: 0 16px 40px var(--shadow);
}
.gp-rate-stage-kicker {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.gp-rate-performers { display: grid; gap: 10px; margin-top: 14px; }
.gp-rate-performers.is-choice { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.gp-rate-performer {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 0;
  border: 0; background: none; color: inherit; text-align: left; font: inherit;
}
.gp-rate-performer:disabled { opacity: 1; cursor: default; }
.gp-rate-performers.is-choice .gp-rate-performer {
  gap: 10px; padding: 10px; min-height: 64px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.07);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.gp-rate-performers.is-choice .gp-rate-performer[aria-checked="true"] {
  border-color: var(--accent-light); background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-light) 45%, transparent);
}
.gp-rate-performer-photo {
  flex: none; display: grid; place-items: center; overflow: hidden;
  width: 68px; height: 68px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--accent-light); font: 600 24px "Fraunces", serif;
}
.gp-rate-performers.is-choice .gp-rate-performer-photo { width: 44px; height: 44px; border-radius: 13px; font-size: 16px; }
.gp-rate-performer-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-rate-performer-txt { display: grid; gap: 3px; min-width: 0; }
.gp-rate-performer-txt b {
  font-family: "Fraunces", serif; font-weight: 500; font-size: 26px; line-height: 1.02; letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.gp-rate-performers.is-choice .gp-rate-performer-txt b { font-size: 16px; }
.gp-rate-performer-txt small { font-size: 12px; opacity: .72; }
.gp-rate-hint { margin: 8px 0 0; font-size: 12px; opacity: .72; }
.gp-rate-stage-q { margin: 20px 0 8px; font-family: "Fraunces", serif; font-style: italic; font-weight: 500; font-size: 21px; }

/* ========== Estrellas ========== */
.gp-stars { display: flex; gap: 2px; }
.gp-star {
  flex: none; width: 46px; height: 46px; padding: 6px;
  border: 0; border-radius: 12px; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gp-star svg {
  display: block; width: 100%; height: 100%;
  fill: transparent; stroke: color-mix(in srgb, var(--text-muted) 60%, transparent); stroke-width: 1.4; stroke-linejoin: round;
  transition: fill .15s, stroke .15s, transform .15s;
}
.gp-star.is-on svg { fill: var(--accent); stroke: var(--accent); }
.gp-star:active svg { transform: scale(.86); }
.gp-star:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.gp-star.is-pop svg { animation: gp-star-pop .34s cubic-bezier(.16, 1, .3, 1); }
@keyframes gp-star-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: none; } }
.gp-stars--xl { gap: 4px; justify-content: space-between; max-width: 330px; }
.gp-stars--xl .gp-star { width: 58px; height: 58px; padding: 4px; }
.gp-rate-stage .gp-star svg { stroke: rgba(255, 255, 255, 0.5); }
.gp-rate-stage .gp-star.is-on svg { fill: var(--accent-light); stroke: var(--accent-light); }
.gp-rate-stage .gp-star:focus-visible { outline-color: var(--accent-light); }
.gp-stars-word { font: 600 12.5px "DM Sans", sans-serif; color: var(--text-muted); }
.gp-rate-stage .gp-stars-word { display: block; margin: 6px 0 0; color: inherit; opacity: .8; font-size: 13px; }

/* ========== Lo demás ========== */
.gp-rate-list { display: grid; gap: 10px; margin: 16px 0 0; }
.gp-rate-list-title { margin: 4px 6px 0; font-family: "Fraunces", serif; font-style: italic; font-weight: 500; font-size: 19px; }
.gp-rate-list-title small { font: 500 12px "DM Sans", sans-serif; color: var(--text-muted); }
.gp-rate-row {
  padding: 14px 14px 12px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}
.gp-rate-row-head { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.gp-rate-row-emoji {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--glow); font-size: 15px;
}
.gp-rate-row-head b { flex: 1; min-width: 0; font-family: "Fraunces", serif; font-weight: 500; font-size: 16px; }
.gp-rate-row .gp-stars { justify-content: space-between; max-width: 300px; }

/* ========== Etiquetas ========== */
.gp-rate-issues, .gp-rate-staff { margin-top: 12px; animation: gp-rise .3s cubic-bezier(.16, 1, .3, 1) both; }
.gp-rate-wishes { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.gp-rate-ask { margin: 0 0 8px; font: 600 12.5px "DM Sans", sans-serif; }
.gp-rate-ask small { font-weight: 500; opacity: .7; }
.gp-rate-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.gp-rate-chip {
  min-height: 38px; padding: 8px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-subtle); background: var(--surface-2); color: var(--text-primary);
  font: 500 13px "DM Sans", sans-serif;
  transition: background .15s, border-color .15s, color .15s;
}
.gp-rate-chip[aria-pressed="true"] { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--on-brand); }
.gp-rate-chip:disabled { opacity: .4; cursor: default; }
.gp-rate-stage .gp-rate-chip { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.24); color: inherit; }
.gp-rate-stage .gp-rate-chip[aria-pressed="true"] { background: var(--accent-light); border-color: var(--accent-light); color: var(--brand-primary); }

/* ========== Comentario y contacto ========== */
.gp-rate-more { margin: 16px 2px 6px; }
.gp-rate-textarea {
  display: block; width: 100%; min-height: 88px; padding: 12px 14px;
  border: 1px solid var(--border-subtle); border-radius: 14px;
  background: var(--surface-2); color: var(--text-primary);
  font: 16px/1.45 "DM Sans", sans-serif; resize: vertical; outline: 0;
}
.gp-rate-textarea::placeholder { color: var(--text-muted); }
.gp-rate-textarea:focus { border-color: var(--accent); }

/* ========== La hoja ========== */
.gp-sheet--tall { max-height: 92vh; }
.gp-rate-sheet-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.gp-rate-sheet-form .gp-sheet-body { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.gp-sheet-foot .gp-btn-primary { margin-top: 0; }
.gp-sheet-foot .gp-note { margin-top: 6px; }

/* ========== Gracias ========== */
.gp-rate-done { padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); text-align: center; outline: 0; }
.gp-rate-done-ico { margin-bottom: 8px; color: var(--accent); font-size: 32px; letter-spacing: 6px; }
.gp-rate-done h2 {
  margin: 0 0 8px; font-family: "Fraunces", serif; font-style: italic; font-weight: 500;
  font-size: 26px; line-height: 1.1; text-wrap: balance; color: var(--text-primary);
}
.gp-rate-done p { margin: 0 auto; max-width: 34ch; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.gp-rate-done .gp-btn-primary { margin-top: 20px; }
.gp-rate-again {
  min-height: 42px; margin-top: 8px; border: 0; background: none; cursor: pointer;
  color: var(--text-muted); font: 600 13px "DM Sans", sans-serif; text-decoration: underline; text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .gp-star svg, .gp-rate-issues, .gp-rate-staff { transition: none; animation: none !important; }
}
