:root {
  --bg: #14181c;
  --panel: #1e2630;
  --panel-2: #26313d;
  --text: #eef3f8;
  --muted: #9ab;
  --green: #00c030;
  --red: #ff4d4d;
  --gold: #f5c518;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 { font-size: 1.9rem; margin-bottom: .75rem; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }

.hidden { display: none !important; }
.tagline { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.5; }

button {
  font: inherit;
  border: 0;
  border-radius: var(--radius);
  padding: .8rem 1.4rem;
  cursor: pointer;
  color: var(--text);
  background: var(--panel-2);
}
button:hover { filter: brightness(1.15); }
.primary { background: var(--gold); color: #14181c; font-weight: 700; }
.ghost { background: transparent; color: var(--muted); text-decoration: underline; }

.progress {
  height: 6px;
  background: var(--panel);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: .4rem;
}
#progress-bar {
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width .3s;
}
.progress-text { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.poster-wrap { display: flex; justify-content: center; margin-bottom: 1rem; }
.poster-wrap img {
  max-width: 220px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}
.poster-fallback {
  width: 220px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--panel-2), #31404f);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--muted);
}
.poster-fallback.small { width: 100%; font-size: .9rem; }

.card h2 { margin: 0 0 .25rem; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }

.answers { display: flex; flex-direction: column; gap: .6rem; }
.answer, .n-answer { width: 100%; font-weight: 600; }
.liked { background: var(--green); color: #06210b; }
.disliked { background: var(--red); color: #2b0808; }
.skip { background: var(--panel-2); color: var(--muted); }

.quiz-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.caveat {
  background: var(--panel);
  border-left: 4px solid var(--gold);
  padding: .75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  margin-bottom: 1rem;
}

.critic-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: .8rem;
}
.critic-card h3 { font-size: 1.15rem; }
.badge {
  background: var(--gold);
  color: #14181c;
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 99px;
  vertical-align: middle;
}
.pub { color: var(--gold); font-size: .9rem; margin: .15rem 0 .5rem; }
.stats { font-size: .95rem; line-height: 1.4; }
.links { margin-top: .5rem; font-size: .85rem; }
.links a { color: var(--muted); }

#narrow-cta {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-top: 1.5rem;
}
#narrow-cta h2 { margin-top: 0; }
#narrow-cta p { color: var(--muted); margin-bottom: .8rem; }

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.rec-card img { width: 100%; border-radius: 8px; }
.rec-title { font-weight: 600; font-size: .9rem; margin-top: .4rem; }
.rec-meta { color: var(--muted); font-size: .8rem; }
.gem { color: var(--gold); }

#standings { margin-bottom: 1rem; }
.standing {
  display: flex;
  justify-content: space-between;
  background: var(--panel);
  border-radius: 8px;
  padding: .6rem .9rem;
  margin-bottom: .4rem;
}
.standing.leader { outline: 2px solid var(--gold); }
.pub-inline { color: var(--muted); font-size: .85rem; }
.wins { font-weight: 700; color: var(--gold); }
#narrow-done { margin: 1rem 0; font-size: 1.1rem; }

#restart { margin-top: 2rem; }

footer {
  text-align: center;
  color: #567;
  font-size: .75rem;
  padding: 1.5rem 1rem;
  line-height: 1.5;
}
footer a { color: #789; }

@media (max-width: 480px) {
  .poster-wrap img, .poster-fallback { max-width: 160px; width: 160px; }
}
