:root {
  --orange: #f9a11b;
  --orange-dark: #d9870a;
  --charcoal: #53534a;
  --ink: #2b2b27;
  --paper: #fbf8f2;
  --card: #ffffff;
  --line: #e7e1d6;
  --muted: #7a7a70;
  --star-off: #d9d4ca;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.bar { width: 100%; height: 8px; background: var(--orange); }
main {
  width: 100%;
  max-width: 480px;
  padding: 28px 20px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.logo { width: 78%; max-width: 300px; height: auto; margin: 8px 0 28px; }
.location {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 6px;
}
.location span { color: var(--orange-dark); }
h1 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 7vw, 2.2rem);
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--ink);
}
.sub { color: var(--muted); margin: 0 0 30px; font-size: 1rem; }

/* Stars */
.stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0 0 12px;
  border: 0;
  padding: 0;
}
.star {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  width: 19%;
  max-width: 72px;
  aspect-ratio: 1;
  touch-action: manipulation;
}
.star svg { width: 100%; height: 100%; display: block; transition: transform .12s ease; }
.star path { fill: var(--star-off); transition: fill .12s ease; }
.star.on path { fill: var(--orange); }
.star:active svg { transform: scale(0.9); }
.star:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 2px; border-radius: 8px; }
.hint {
  min-height: 1.5em;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  margin: 0;
}

/* Thank-you panel (4-5 stars) */
.panel { display: none; width: 100%; }
.panel.show { display: block; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.btn {
  display: block;
  width: 100%;
  padding: 17px 20px;
  border-radius: 999px;
  border: 0;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:active { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--charcoal); border: 2px solid var(--line); margin-top: 10px; }
.ideas {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 22px 0 0;
}
.ideas h2 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 500;
}
.ideas ul { margin: 0; padding-left: 1.1em; }
.ideas li { margin: 6px 0; line-height: 1.4; }
.change { margin-top: 18px; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 0.9rem; cursor: pointer; }

/* Popup (1-3 stars) */
.overlay {
  position: fixed; inset: 0;
  background: rgba(30, 30, 26, 0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  z-index: 10;
}
.overlay.show { display: flex; }
@media (min-height: 560px) { .overlay { align-items: center; } }
.modal {
  background: var(--card);
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  padding: 26px 22px 18px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  animation: rise .2s ease;
}
.modal p { font-size: 1.1rem; line-height: 1.45; margin: 0 0 22px; }
.modal .small {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
}
.modal .small a { color: var(--muted); }

footer { padding: 0 20px 24px; color: var(--muted); font-size: 0.8rem; text-align: center; }
footer a { color: var(--muted); }
