:root {
  --ink: #2d2640;
  --muted: #6e6585;
  --bg: #fbefff;
  --card: #ffffff;
  --accent: #ff5fa2;
  --accent-dark: #e0438a;
  --choice: #f3ecff;
  --choice-hover: #e6dbff;
  --row: #faf7ff;
  --right: #1f9d6b;
  --wrong: #d23c5a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 16px 48px;
  min-height: 100vh;
  font-family: 'Fredoka', system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 0%, #ffe3f1, transparent 45%),
              radial-gradient(circle at 90% 20%, #e3ecff, transparent 40%),
              var(--bg);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 0 16px;
}
.site-header a { color: var(--accent-dark); text-decoration: none; }
.site-name { font-weight: 600; font-size: 1.4rem; }
.site-header nav a { font-size: 1rem; }
.site-header nav a:hover { text-decoration: underline; }

.card {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px;
  background: var(--card);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgb(90 50 140 / 0.12);
  text-align: center;
}

h1 { margin: 16px 0 8px; font-size: 1.8rem; line-height: 1.2; }
h2 { margin: 32px 0 12px; font-size: 1.4rem; }
.lead { margin: 0 0 24px; color: var(--muted); font-size: 1.1rem; }

button, .kinds a {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.big-button {
  padding: 16px 40px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 8px 0 var(--accent-dark);
  transition: transform 0.1s, box-shadow 0.1s;
}
.big-button:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--accent-dark); }

/* multiply blends product photos' off-white backgrounds into the white card. */
.squishy-pic {
  display: block;
  max-width: 100%;
  object-fit: contain;
  border-radius: 24px;
  mix-blend-mode: multiply;
}
.squishy-pic.large { width: 260px; height: 260px; margin: 24px auto 8px; }
.squishy-pic.medium { display: inline-block; width: 80px; height: 80px; margin: 0 4px; }
.squishy-pic.small { width: 48px; height: 48px; flex: none; }

.progress-label { margin: 0 0 8px; color: var(--muted); }
progress {
  display: block;
  width: 100%;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--choice);
  overflow: hidden;
  appearance: none;
}
progress::-webkit-progress-bar { background: var(--choice); }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

h1.trivia { margin: 40px 0 24px; }

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.choices button {
  padding: 16px 12px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: var(--choice);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.25;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.choices button:hover { background: var(--choice-hover); border-color: var(--accent); }
.choices button:active { transform: scale(0.97); }

.percent { margin: 0; color: var(--accent); font-size: 4.5rem; font-weight: 600; line-height: 1; }
.score-detail { margin: 8px 0 0; color: var(--muted); font-size: 1.1rem; }
.play-again { margin-top: 24px; }

.review { margin: 32px 0 0; padding: 0; list-style: none; text-align: left; }
.review li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
}
.review li:nth-child(odd) { background: var(--row); }
.review-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review-name { font-weight: 600; }
.review-answer { color: var(--muted); }
.review .mark { font-size: 0.95rem; }
.review .right .mark { color: var(--right); }
.review .wrong .mark { color: var(--wrong); }

.kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.kinds a {
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--choice);
  color: var(--ink);
  font-size: 1.1rem;
  text-decoration: none;
}
.kinds a:hover { border-color: var(--accent); }
.kinds a.picked { background: var(--accent); color: white; }

.shops { margin: 0; padding: 0; list-style: none; text-align: left; }
.shops li { margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--row); }
.shops p { margin: 0; }
.shop-name { font-weight: 600; font-size: 1.15rem; }
.shop-name a { color: var(--accent-dark); }
.shop-where { color: var(--muted); }
.shops .shop-restock { margin-top: 6px; }
.empty { color: var(--muted); }

/* Phones: tighter spacing, one column of answers, and a smaller picture so
   all four answers fit on screen without scrolling. */
@media (max-width: 480px) {
  body { padding: 0 12px 32px; }
  .site-header { padding: 16px 4px 12px; }
  .site-name { font-size: 1.25rem; }
  .card { padding: 20px 16px; border-radius: 22px; }
  h1 { font-size: 1.45rem; }
  h1.trivia { margin: 28px 0 20px; }
  .lead { font-size: 1rem; }
  .squishy-pic.large { width: min(200px, 30vh); height: min(200px, 30vh); margin: 16px auto 4px; }
  .choices { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .choices button { padding: 14px 12px; }
  .percent { font-size: 3.5rem; }
  .big-button { width: 100%; padding: 16px 24px; }
  .kinds { gap: 8px; }
  .kinds a { padding: 10px 18px; font-size: 1rem; }
  .shops li { padding: 14px; }
}
