/* All White Fit Check — G+ web palette: ink blue, champagne, burgundy.
   One focal pink CTA only, no radial glows. */
:root {
  --ink: #07131a;
  --ink-2: #0b1c25;
  --ink-3: #102630;
  --champagne: #d4b885;
  --burgundy: #8c1a2e;
  --pink: #ff006b;
  --paper: #f4f1ea;
  --muted: #8fa3ad;
  --line: rgba(212, 184, 133, 0.22);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── header ─────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 19, 26, 0.92);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.brand img { height: 26px; width: auto; display: block; }
.brand span { font-weight: 700; letter-spacing: .04em; font-size: .95rem; }
.topcta {
  color: var(--champagne); text-decoration: none; font-weight: 600; font-size: .9rem;
  border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
}
.topcta:hover { border-color: var(--champagne); }

/* ── hero ───────────────────────────────────────────────── */
main { max-width: 1140px; margin: 0 auto; padding: 0 20px 80px; }

.hero { padding: 56px 0 32px; text-align: center; }
.eyebrow {
  margin: 0 0 18px; color: var(--champagne);
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 20px; font-family: "Playfair Display", serif; font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 5rem); line-height: .95; letter-spacing: -.02em;
}
.hero h1 span { color: var(--champagne); font-style: italic; }
.lede {
  max-width: 30rem; margin: 0 auto; color: var(--muted);
  font-size: 1.02rem; line-height: 1.6;
}
.meta { margin: 22px 0 0; color: var(--champagne); font-size: .85rem; font-weight: 600; letter-spacing: .06em; }

/* ── tabs ───────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 8px; justify-content: center;
  margin: 8px 0 34px; padding: 6px;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 999px; width: fit-content; margin-inline: auto;
}
.tab {
  appearance: none; border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
  font: inherit; font-weight: 700; font-size: .88rem;
  padding: 10px 22px; border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.tab.active { background: var(--champagne); color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }

/* ── grid ───────────────────────────────────────────────── */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.grid.hidden { display: none; }

.card {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--champagne); transform: translateY(-2px); }
.card.picked { border-color: var(--champagne); box-shadow: inset 0 0 0 1px var(--champagne); }

.shot { position: relative; aspect-ratio: 4 / 5; background: var(--ink-3); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank {
  position: absolute; top: 10px; left: 10px;
  background: rgba(7, 19, 26, .82); color: var(--champagne);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.pickedTag {
  position: absolute; top: 10px; right: 10px;
  background: var(--champagne); color: var(--ink);
  font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  padding: 5px 10px; border-radius: 999px;
}

.body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.name { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }

.bar { height: 4px; background: var(--ink-3); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--champagne); width: 0; transition: width .4s ease; }
.count { color: var(--muted); font-size: .8rem; font-weight: 600; }

.vote {
  appearance: none; cursor: pointer; font: inherit;
  margin-top: auto; width: 100%; padding: 11px 14px;
  background: transparent; color: var(--champagne);
  border: 1px solid var(--champagne); border-radius: 999px;
  font-weight: 700; font-size: .88rem;
  transition: background .18s ease, color .18s ease;
}
.vote:hover { background: var(--champagne); color: var(--ink); }
.vote:disabled { opacity: .55; cursor: default; }
.card.picked .vote { background: var(--champagne); color: var(--ink); }
.vote:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }

/* ── outro ──────────────────────────────────────────────── */
.outro {
  margin-top: 64px; padding: 44px 24px; text-align: center;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.outro h2 { margin: 0 0 8px; font-family: "Playfair Display", serif; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.outro p { margin: 0 0 22px; color: var(--muted); }
/* the single focal-pink CTA on the page */
.cta {
  display: inline-block; text-decoration: none;
  background: var(--pink); color: #fff; font-weight: 800; letter-spacing: .02em;
  padding: 14px 32px; border-radius: 999px;
}
.cta:hover { filter: brightness(1.08); }

.foot { border-top: 1px solid var(--line); padding: 28px 20px; text-align: center; color: var(--muted); font-size: .8rem; }
.foot p { margin: 4px 0; }

/* ── toast ──────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--champagne); color: var(--ink);
  font-weight: 700; font-size: .88rem;
  padding: 12px 22px; border-radius: 999px;
  transition: transform .28s ease; z-index: 40; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }

.skeleton { background: var(--ink-3); border-radius: var(--radius); aspect-ratio: 4 / 5; }

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .body { padding: 11px; gap: 9px; }
  .name { font-size: .88rem; }
  .vote { padding: 9px 10px; font-size: .8rem; }
  .hero { padding: 40px 0 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
