/* Dayton Pizza Review — shared styles */
:root {
  --bg: #FBF8F3;
  --bg-elev: #FFFFFF;
  --bg-sunk: #F3EEE5;
  --ink: #1C1714;
  --ink-2: #5E554D;
  --ink-3: #8F857B;
  --line: rgba(28, 23, 20, 0.10);
  --line-strong: rgba(28, 23, 20, 0.18);
  --accent: #D2462B;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(210, 70, 43, 0.10);
  --gold: #C99A3A;
  --shadow-sm: 0 1px 2px rgba(28,23,20,.06), 0 1px 1px rgba(28,23,20,.04);
  --shadow-md: 0 8px 24px -8px rgba(28,23,20,.18), 0 2px 6px rgba(28,23,20,.06);
  --shadow-lg: 0 24px 60px -20px rgba(28,23,20,.30);

  /* score bands */
  --s-legend: #C99A3A; --s-legend-bg: linear-gradient(135deg,#E9C46A,#C99A3A);
  --s-elite: #2F6B45;  --s-elite-bg: #2F6B45;
  --s-good: #5C8A4C;   --s-good-bg: #5C8A4C;
  --s-solid: #B98B1E;  --s-solid-bg: #D9A93A;
  --s-below: #C7692F;  --s-below-bg: #D97B3F;
  --s-bad: #C2412B;    --s-bad-bg: #C2412B;
  --s-worst: #7E2A1E;  --s-worst-bg: #7E2A1E;

  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --maxw: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110F;
    --bg-elev: #1D1916;
    --bg-sunk: #0F0D0B;
    --ink: #F4EEE6;
    --ink-2: #B9AEA3;
    --ink-3: #85796F;
    --line: rgba(244, 238, 230, 0.09);
    --line-strong: rgba(244, 238, 230, 0.16);
    --accent: #F0623F;
    --accent-soft: rgba(240, 98, 63, 0.14);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 10px 30px -10px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
    --s-elite: #6FBF8A; --s-good: #8FBF73; --s-solid: #E2B64C;
    --s-below: #E8924F; --s-bad: #EE6A50; --s-worst: #E0715E;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--s-legend-bg); color: #3F2E0B;
  font-family: var(--font-display); font-weight: 800; font-size: .8rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), var(--shadow-sm);
}
.brand em { font-style: italic; color: var(--accent); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; font-size: .9rem; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-sunk); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px -8px var(--accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-ghost { background: var(--bg-elev); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .85rem; }
.nav .btn { height: 38px; padding: 0 16px; font-size: .85rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 88px) 0 clamp(28px, 5vw, 48px); position: relative; }
.hero::before {
  content: ''; position: absolute; inset: -120px 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 280px at 12% 30%, var(--accent-soft), transparent 70%),
    radial-gradient(520px 260px at 88% 10%, rgba(201,154,58,.14), transparent 70%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--bg-elev); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -0.035em;
  margin: 22px 0 18px; max-width: 14ch; text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: clamp(32px, 5vw, 48px); max-width: 640px; }
.stat { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat-num { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .78rem; color: var(--ink-3); margin-top: 2px; }

/* ---------- Section headers ---------- */
.section { padding: clamp(28px, 5vw, 56px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.1; }
.section-head p { color: var(--ink-2); font-size: .95rem; }
.kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* ---------- Score badge ---------- */
.score {
  --size: 56px;
  width: var(--size); height: var(--size); flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: calc(var(--size) * .36);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), var(--shadow-sm);
}
.score.legend { background: var(--s-legend-bg); color: #3F2E0B; box-shadow: 0 8px 24px -8px rgba(201,154,58,.7), inset 0 0 0 1px rgba(255,255,255,.4); }
.score.elite { background: var(--s-elite-bg); }
.score.good { background: var(--s-good-bg); }
.score.solid { background: var(--s-solid-bg); color: #3B2A06; }
.score.below { background: var(--s-below-bg); }
.score.bad { background: var(--s-bad-bg); }
.score.worst { background: var(--s-worst-bg); }
.score.none { background: var(--bg-sunk); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }

.tier { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.tier::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tier.legend { color: var(--s-legend); background: rgba(201,154,58,.13); }
.tier.elite { color: var(--s-elite); background: color-mix(in srgb, var(--s-elite) 12%, transparent); }
.tier.good { color: var(--s-good); background: color-mix(in srgb, var(--s-good) 12%, transparent); }
.tier.solid { color: var(--s-solid); background: color-mix(in srgb, var(--s-solid) 13%, transparent); }
.tier.below { color: var(--s-below); background: color-mix(in srgb, var(--s-below) 12%, transparent); }
.tier.bad { color: var(--s-bad); background: color-mix(in srgb, var(--s-bad) 12%, transparent); }
.tier.worst { color: var(--s-worst); background: color-mix(in srgb, var(--s-worst) 12%, transparent); }

/* ---------- Podium ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.podium-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  overflow: hidden; isolation: isolate;
}
.podium-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.podium-card.first { border-color: rgba(201,154,58,.45); }
.podium-card.first::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px 200px at 100% 0%, rgba(233,196,106,.22), transparent 70%); }
.podium-top { display: flex; align-items: center; justify-content: space-between; }
.medal { font-size: 1.9rem; line-height: 1; }
.podium-card .score { --size: 68px; }
.podium-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.podium-pizza { color: var(--ink-2); font-size: .95rem; }
.podium-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.place-label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 260px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--ink);
  font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.chips { display: inline-flex; padding: 4px; gap: 2px; background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 999px; }
.chip { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 999px; font-size: .85rem; color: var(--ink-2); font-weight: 500; transition: background .2s, color .2s, box-shadow .2s; }
.chip[aria-pressed="true"] { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-sm); }
.select { height: 44px; padding: 0 36px 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-elev) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238F857B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ink); font: inherit; font-size: .9rem; appearance: none; -webkit-appearance: none; }
.legend-note { font-size: .82rem; color: var(--ink-3); margin-bottom: 14px; }
.legend-note b { color: var(--accent); }

/* ---------- Ranking list ---------- */
.list { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; }
.row {
  display: grid; align-items: center; gap: 18px;
  grid-template-columns: 44px auto minmax(0,1fr) auto auto;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  animation: rise .5s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.row.single { background: color-mix(in srgb, var(--bg-elev) 55%, var(--bg)); }
.row.single .score, .row.single .row-main { opacity: .62; }
.rank { font-family: var(--font-mono); font-size: .85rem; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.rank .medal { font-size: 1.5rem; }
.row-main { min-width: 0; }
.row-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.row-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; line-height: 1.25; }
.row-name:hover { color: var(--accent); }
.asterisk { color: var(--accent); font-weight: 700; margin-left: 1px; }
.row-pizza { color: var(--ink-2); font-size: .95rem; }
.row-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; font-size: .8rem; color: var(--ink-3); }
.badge-single { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--ink-2); }

.reviewers { display: flex; gap: 6px; }
.rv {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 52px; height: 52px; padding: 0 6px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); line-height: 1.1;
  transition: border-color .2s, background .2s, transform .15s;
}
button.rv { cursor: help; }
button.rv:hover, button.rv[aria-expanded="true"] { border-color: var(--ink-3); background: var(--bg-sunk); }
.rv-label { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; color: var(--ink-3); }
.rv-score { font-family: var(--font-mono); font-size: .95rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.rv.na .rv-score { color: var(--ink-3); }
button.rv .rv-label::after { content: ' •'; color: var(--accent); }

.share { position: relative; display: flex; gap: 4px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.icon-btn:hover { color: var(--ink); background: var(--bg-sunk); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.fb:hover { color: #fff; background: #1877F2; border-color: #1877F2; }
.icon-btn.x:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.icon-btn.ok { color: #fff; background: var(--s-good-bg); border-color: transparent; }

@media (max-width: 860px) {
  .row { grid-template-columns: 34px auto minmax(0,1fr); gap: 12px 14px; padding: 14px; }
  .row .score { --size: 50px; }
  .reviewers { grid-column: 2 / -1; }
  .share { grid-column: 2 / -1; grid-row: auto; }
  .row-extra { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .rv { min-width: 46px; height: 46px; }
}
@media (min-width: 861px) { .row-extra { display: contents; } }

.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-2); }
.empty h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

/* skeleton */
.skeleton { height: 82px; border-radius: var(--radius); background: linear-gradient(90deg, var(--bg-sunk), var(--bg-elev), var(--bg-sunk)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border: 1px solid var(--line); }

/* ---------- Scale + About ---------- */
.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-sm); }
.card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 4px; }
.card > p { color: var(--ink-2); font-size: .92rem; margin-bottom: 16px; }
.scale-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.scale-list li { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.scale-list li:first-child { border-top: 0; }
.scale-range { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.scale-bar { height: 6px; border-radius: 999px; background: currentColor; opacity: .9; }
.scale-desc { color: var(--ink-2); }
.people { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.person { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: .85rem; background: var(--accent-soft); color: var(--accent); }
.person b { display: block; font-weight: 600; margin-bottom: 2px; }
.person span { color: var(--ink-2); font-size: .9rem; }
.disclaimer { margin-top: 14px; font-size: .88rem; color: var(--ink-2); padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); }

/* Portnoy term + popover */
.term { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline dashed; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: help; }
.pop {
  position: fixed; z-index: 80; width: min(340px, calc(100vw - 24px));
  background: var(--ink); color: var(--bg); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow-lg); font-size: .88rem; line-height: 1.5;
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98);
  transition: opacity .18s, transform .18s, visibility .18s; pointer-events: none;
}
.pop.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.pop-title { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin-bottom: 6px; }
.pop-note { font-style: italic; }
.pop .scale-mini { list-style: none; padding: 0; }
.pop .scale-mini li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); }
.pop .scale-mini li:first-child { border-top: 0; }
.pop .scale-mini span:first-child { white-space: nowrap; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; }

/* ---------- Detail page ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-2); text-decoration: none; margin: 28px 0 20px; }
.back:hover { color: var(--ink); }
.place-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; padding: clamp(22px, 4vw, 36px); border-radius: 24px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; isolation: isolate; }
.place-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 240px at 100% 0%, var(--accent-soft), transparent 70%); }
.place-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 10px; text-wrap: balance; }
.place-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: .95rem; }
.place-meta a { color: var(--accent); text-decoration: none; }
.place-meta a:hover { text-decoration: underline; }
.place-hero .score { --size: 96px; }
.place-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (max-width: 600px) { .place-hero { grid-template-columns: 1fr; } .place-hero .score { --size: 76px; grid-row: 1; } }

.reviews { display: flex; flex-direction: column; gap: 16px; }
.review { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow-sm); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.review-head h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; font-style: italic; letter-spacing: -0.015em; }
.review-date { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); margin-top: 2px; }
.review-head-right { display: flex; align-items: center; gap: 12px; }
.review-head .score { --size: 52px; }
.verdicts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
@media (max-width: 700px) { .verdicts { grid-template-columns: 1fr; } }
.verdict { padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.verdict-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.verdict-who { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.verdict-score { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.verdict-score.na { color: var(--ink-3); font-weight: 400; font-size: 1.3rem; }
.verdict p { margin-top: 8px; color: var(--ink-2); font-size: .93rem; font-style: italic; }

/* ---------- Forms ---------- */
.form-shell { max-width: 640px; margin: 0 auto; padding: 8px 0 64px; }
.form-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-md); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .88rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: .95rem; display: none; }
.alert.ok { display: block; background: color-mix(in srgb, var(--s-good) 14%, transparent); color: var(--s-good); }
.alert.err { display: block; background: var(--accent-soft); color: var(--accent); }
.fine { font-size: .85rem; color: var(--ink-3); margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); padding: 32px 0 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { font-size: .85rem; color: var(--ink-3); }
.footer-links { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-links a { font-size: .85rem; color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.footer-links a:hover { background: var(--bg-sunk); color: var(--ink); }
.footer-links .muted { color: var(--ink-3); opacity: .7; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .25s, transform .25s; z-index: 90; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .podium { grid-template-columns: 1fr; }
  .podium-card { flex-direction: row; align-items: center; padding: 16px; }
  .podium-card .podium-top { flex-direction: column-reverse; gap: 6px; }
  .podium-card .score { --size: 58px; }
  .podium-card .podium-meta { display: none; }
  .stats { gap: 8px; }
  .stat { padding: 12px 14px; }
}

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* nav CTA keeps button colors */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--accent-ink); background: var(--accent); }
.nav-links a.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.rv.na { border-style: dashed; background: transparent; }
@media (max-width: 560px) { .scale-list li { grid-template-columns: 72px 1fr; } .scale-list .tier { display: none; } }

/* Reference-matched food editorial design — presentation only. */
:root {
 --bg:#faf6ee; --bg-elev:#fffdf9; --bg-sunk:#f0e9dd;
 --ink:#211913; --ink-2:#655c54; --ink-3:#84796e;
 --line:rgba(105,74,44,.12); --line-strong:rgba(105,74,44,.22);
 --accent:#d32d12; --accent-ink:#fff; --accent-soft:rgba(211,45,18,.08);
 --s-legend:#ac7920; --s-legend-bg:linear-gradient(135deg,#ffe6a3,#d49c39);
 --s-elite:#2f6844; --s-good:#59804d; --s-solid:#ac8018;
 --s-below:#de4b20; --s-below-bg:#df4a20; --s-bad:#da2519; --s-bad-bg:#da2519; --s-worst:#90291f;
 --maxw:1240px; --radius:14px;
 --shadow-sm:0 3px 9px rgba(86,60,35,.065);
 --shadow-md:0 9px 28px rgba(86,60,35,.11);
 color-scheme:light;
}
body { position:relative; background:var(--bg); }
body::before { content:''; position:absolute; inset:0; z-index:-1; background:url('assets/editorial-background.webp') center 650px/100% auto repeat-y; opacity:.32; pointer-events:none; }
.wrap { padding-inline:clamp(20px,4vw,40px); }
.nav { background:rgba(255,252,247,.92); border-color:rgba(105,74,44,.10); }
.nav-inner { height:76px; }
.brand { font-size:1.35rem; font-weight:650; gap:12px; }
.brand-mark { width:36px; height:36px; background:none; border-radius:0; box-shadow:none; }
.brand em { color:#d72a13; }
.nav-links { gap:12px; }
.nav-links a { font-size:.88rem; }
.nav .btn { height:44px; padding-inline:22px; }
.btn-primary { background:linear-gradient(180deg,#e9451b,#c6210e); color:#fff; border:1px solid rgba(190,42,14,.20); box-shadow:0 5px 10px rgba(190,42,14,.21),inset 0 1px 0 rgba(255,255,255,.14); }
.btn-primary:hover { background:linear-gradient(180deg,#d73a14,#b51b09); box-shadow:0 7px 16px rgba(190,42,14,.25); }
.nav-links a.btn-primary { background:linear-gradient(180deg,#e9451b,#c6210e); }
.nav-links a.btn-primary:hover { background:linear-gradient(180deg,#d73a14,#b51b09); }
.btn-ghost { background:rgba(255,252,247,.62); }
.btn-primary > span { margin-left:10px; font-size:1.25rem; }
.home-hero { position:relative; isolation:isolate; padding:58px 0 36px; overflow:hidden; }
.hero::before { display:none; }
.hero-art { position:absolute; inset:0; z-index:-2; }
.hero-art img { width:100%; height:100%; object-fit:cover; object-position:center; }
.home-hero::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(250,246,238,.52) 0%,rgba(250,246,238,.32) 35%,transparent 62%); pointer-events:none; }
.home-hero .wrap { position:relative; }
.hero-copy { max-width:620px; }
.eyebrow { border:0; background:transparent; padding:0; box-shadow:none; font-size:.7rem; letter-spacing:.12em; }
.eyebrow .dot { width:7px; height:7px; box-shadow:none; }
.hero h1 { font-size:clamp(3.2rem,5.7vw,5.1rem); font-weight:650; line-height:.98; letter-spacing:-.05em; max-width:none; text-wrap:initial; margin:24px 0 22px; }
.hero h1 em { font-weight:500; color:#cc2c15; }
.hero-sub { max-width:49ch; font-size:1.03rem; line-height:1.6; }
.hero-actions { margin-top:24px; gap:14px; }
.hero-actions .btn { height:48px; padding-inline:24px; }
.stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; max-width:620px; margin-top:28px; }
.stat { display:flex; align-items:center; gap:16px; background:rgba(255,255,255,.9); padding:17px 18px; border-radius:13px; border:1px solid rgba(128,85,43,.09); box-shadow:0 3px 9px rgba(86,60,35,.09); }
.stat-num { font-size:2.1rem; font-weight:600; }
.stat-label { font-size:.74rem; color:var(--ink-3); white-space:nowrap; margin-top:3px; }
.stat-icon { width:38px; height:38px; flex:none; color:#e3441e; }
.stat-icon svg { width:100%; height:100%; }
.stat-icon.trophy { color:#df991e; }
.good-pizza-stamp { position:absolute; left:50%; top:40%; width:118px; height:118px; border:1px solid rgba(122,84,45,.55); border-radius:50%; color:#a27d5a; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; transform:rotate(-12deg); background:rgba(255,249,235,.62); }
.good-pizza-stamp img { width:32px; height:32px; filter:sepia(1); opacity:.5; }
.good-pizza-stamp span { font-family:var(--font-mono); font-size:.58rem; letter-spacing:.12em; }
.hero-signoff { position:absolute; right:0; bottom:-8px; padding:4px 8px; border-radius:8px; background:rgba(255,249,235,.75); font-family:var(--font-display); font-size:1.1rem; font-style:italic; line-height:1.25; transform:rotate(-9deg); text-align:center; color:#4d3022; }
.art-caption { position:absolute; right:0; bottom:-27px; font-size:.55rem; color:#705441; background:#fff9eb9c; border-radius:3px; padding:1px 4px; }
.section { padding:36px 0; }
.section-head { margin-bottom:24px; gap:14px; }
.section-head h2 { font-size:clamp(1.7rem,3vw,2.45rem); line-height:1.15; letter-spacing:-.04em; }
.section-head p { font-size:.78rem; }
.kicker { color:#d13214; font-size:.65rem; letter-spacing:.13em; margin-bottom:8px; }
.podium { gap:24px; }
.podium-card { border-radius:14px; padding:6px 6px 17px; gap:14px; background:rgba(255,255,255,.93); border:1px solid rgba(151,118,77,.12); box-shadow:0 6px 20px rgba(86,60,35,.06); }
.podium-card.first { border:2px solid #edbd55; padding:5px 5px 16px; box-shadow:0 0 0 3px rgba(255,225,136,.25),0 6px 17px rgba(171,121,40,.14); }
.podium-card.first::before { display:none; }
.podium-photo,.pizza-thumb { background-image:url('assets/pizza-card-placeholder-bw-v2.webp?v=2'); background-repeat:no-repeat; background-size:300% auto; }
.photo-1 { background-position:left center; }
.photo-2 { background-position:center center; }
.photo-3 { background-position:right center; }
.podium-photo { aspect-ratio:2/1; width:100%; border-radius:10px; position:relative; overflow:hidden; }
.podium-photo::after { content:''; position:absolute; inset:55% 0 0; background:linear-gradient(transparent,rgba(20,10,0,.20)); pointer-events:none; }
.podium-card .score { position:absolute; --size:64px; right:12px; top:12px; border:3px solid #fffbe9; box-shadow:0 2px 6px #0003; }
.podium-rank { position:absolute; left:15px; top:14px; width:58px; height:58px; border-radius:50%; background:linear-gradient(140deg,#fff0ac,#edba46); border:4px double #b78427; display:grid; place-items:center; color:#714a16; font-family:var(--font-display); font-size:2rem; font-weight:650; box-shadow:0 0 0 4px #fff4b199,0 2px 8px #0002; }
.podium-rank.rank-2 { background:linear-gradient(140deg,#fff,#d6d7d3); border-color:#949895; color:#535653; box-shadow:0 0 0 4px #ffffffe0,0 2px 8px #0002; }
.podium-rank.rank-3 { background:linear-gradient(140deg,#ffcf9b,#d99755); border-color:#9f643c; color:#60351e; box-shadow:0 0 0 4px #f6dcbdc9,0 2px 8px #0002; }
.podium-card > div:not(.podium-photo) { padding-inline:16px; }
.podium-name { font-size:1.3rem; letter-spacing:-.025em; }
.podium-pizza { font-size:.88rem; }
.podium-meta { padding-top:0; }
.place-label { font-size:.64rem; letter-spacing:.025em; }
.first .place-label { color:var(--accent); }
.photo-caption { position:absolute; right:7px; bottom:4px; font-size:.48rem; color:#fff; text-shadow:0 1px 3px #000; z-index:1; }
.toolbar { gap:10px; margin-bottom:18px; }
.search input,.select { background:rgba(255,255,255,.88); font-size:.85rem; height:43px; }
.chips { border:0; background:transparent; gap:5px; padding:0; }
.chip { height:38px; padding-inline:16px; background:#efe9de; font-size:.76rem; }
.chip[aria-pressed="true"] { background:linear-gradient(180deg,#e9451b,#c6210e); color:white; box-shadow:0 2px 5px #c6210e22; }
.legend-note { font-size:.72rem; margin-bottom:16px; }
.list { gap:10px; }
.row { grid-template-columns:26px 56px 78px minmax(0,1fr) auto auto; gap:16px; padding:12px 17px; border-radius:12px; background:rgba(255,255,255,.92); box-shadow:0 3px 9px rgba(86,60,35,.035); border-color:rgba(151,118,77,.10); }
.row.single { background:rgba(255,252,244,.86); border:1px solid #e6be73; }
.row.single .score,.row.single .row-main { opacity:1; }
.pizza-thumb { display:block; width:78px; height:62px; border-radius:9px; box-shadow:inset 0 0 0 1px #0001; }
.row-name { font-size:1.06rem; }
.row-pizza { font-size:.8rem; }
.row-sub { font-size:.68rem; gap:5px 8px; }
.tier { font-size:.59rem; letter-spacing:.04em; padding:3px 8px; }
.rank { font-size:.7rem; }
.rank .rank-medal { display:inline-grid; place-items:center; background:var(--bg-sunk); width:26px; height:26px; border-radius:50%; font-size:.68rem; font-family:var(--font-mono); color:var(--ink-2); }
.rv { min-width:44px; height:46px; border-radius:9px; background:rgba(250,246,238,.72); }
.rv-label { font-size:.55rem; }
.rv-score { font-size:.88rem; }
.icon-btn { width:34px; height:34px; }
.grid-2 { grid-template-columns:1.04fr 1fr; gap:20px; }
.card { padding:26px; background:rgba(255,253,249,.86); border-radius:13px; box-shadow:0 5px 20px rgba(86,60,35,.06); }
.card h3 { font-size:1.8rem; line-height:1.2; letter-spacing:-.03em; }
.card > p { font-size:.86rem; margin-top:8px; }
#scale .card:first-child { background:linear-gradient(135deg,#243e28,#162d1c); color:#fff9e9; border:1px solid #2d4931; box-shadow:0 6px 20px rgba(27,51,31,.14); }
#scale .card:first-child .kicker { color:#efbf57; }
#scale .card:first-child > p { color:#e4e9dd; }
.scale-list li { padding:10px 0; font-size:.81rem; gap:10px; grid-template-columns:80px 1fr auto; }
#scale .card:first-child .scale-list li { border-color:rgba(232,245,217,.12); }
#scale .card:first-child .scale-desc { color:#e0e8d7; }
.scale-range { font-size:.76rem; }
#scale .tier.legend { background:#f4d180; color:#68450a; }
#scale .tier.elite { background:#bed8bd; color:#214f33; }
#scale .tier.good { background:#d1e1bd; color:#42622c; }
#scale .tier.solid { background:#f3d99c; color:#7c5910; }
#scale .tier.below { background:#f8cbab; color:#8f3816; }
#scale .tier.bad { background:#fbd8d2; color:#a22b1d; }
#scale .tier.worst { background:#e9b9b2; color:#82271c; }
#scale .card:first-child .tier-legend .scale-range { color:#f8ce65 !important; }
#scale .card:first-child .tier-elite .scale-range { color:#91c99b !important; }
#scale .card:first-child .tier-good .scale-range { color:#a9cf8b !important; }
#scale .card:first-child .tier-solid .scale-range { color:#e6ba57 !important; }
#scale .card:first-child .tier-below .scale-range { color:#ffab71 !important; }
#scale .card:first-child .tier-bad .scale-range { color:#ff7b66 !important; }
#scale .card:first-child .tier-worst .scale-range { color:#f09581 !important; }
.people { gap:10px; margin-top:20px; }
.person { background:rgba(255,255,255,.28); padding:14px; border-radius:10px; border-color:var(--line); }
.avatar { width:48px; height:48px; border-radius:50%; background:#f5dec4; font-family:var(--font-display); font-size:1rem; color:#823e23; }
.person:nth-child(2) .avatar { background:#d9e4cf; color:#38582d; }
.person:nth-child(3) .avatar { background:#ecd3c8; color:#753e33; }
.person b { font-size:.9rem; }
.person span { font-size:.81rem; }
.disclaimer { margin-top:16px; background:rgba(244,118,82,.10); border-radius:9px; padding:16px; }
.footer { margin-top:24px; padding:28px 0 34px; }
.footer p,.footer-links a { font-size:.74rem; }
.place-hero { background:rgba(255,253,249,.94); border-radius:18px; }
.place-hero::before { background:linear-gradient(100deg,transparent,rgba(221,178,105,.09)); }
.review,.form-card { background:rgba(255,253,249,.94); border-radius:16px; }
.submit-page .hero h1 { font-size:clamp(2.7rem,5.7vw,4.5rem); }
.request-layout { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; padding-top:40px; }
.request-layout .hero { padding-top:20px; }
.request-layout .form-shell { width:100%; padding-top:20px; }
@media (max-width:1100px) {
 .hero-copy { max-width:550px; }
 .stats { max-width:540px; gap:12px; }
 .stat { padding:14px 12px; gap:10px; }
 .stat-icon { width:31px; height:31px; }
 .stat-label { font-size:.67rem; }
 .row { grid-template-columns:26px 52px 65px minmax(0,1fr); gap:12px; }
 .pizza-thumb { width:65px; height:55px; }
 .row-extra { grid-column:4; display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
 .good-pizza-stamp { left:56%; }
 .grid-2 { grid-template-columns:1fr 1fr; }
 .scale-list li { grid-template-columns:68px 1fr; }
 .scale-list .tier { display:none; }
}
@media (max-width:860px) {
 .nav-inner { height:66px; }
 .brand { font-size:1.16rem; }
 .nav-links { gap:0; }
 .nav-links a { padding:8px; font-size:.76rem; }
 .home-hero { padding-top:38px; }
 .hero-copy { max-width:470px; }
 .hero h1 { font-size:3.6rem; }
 .hero-sub { max-width:42ch; font-size:.9rem; }
 .stats { max-width:470px; }
 .stat { gap:8px; padding:12px 10px; }
 .stat-num { font-size:1.8rem; }
 .stat-label { font-size:.6rem; }
 .good-pizza-stamp { display:none; }
 .hero-signoff { right:0; font-size:.85rem; }
 .podium { gap:14px; }
 .podium-card .score { --size:48px; top:9px; right:8px; border-width:2px; }
 .podium-rank { width:44px; height:44px; font-size:1.6rem; left:10px; top:10px; }
 .podium-name { font-size:1.1rem; }
 .podium-card > div:not(.podium-photo) { padding-inline:10px; }
 .podium-meta .place-label { font-size:.5rem; }
 .grid-2 { grid-template-columns:1fr; }
 .scale-list li { grid-template-columns:80px 1fr auto; }
 .scale-list .tier { display:inline-flex; }
 .request-layout { display:block; padding-top:0; }
 .request-layout .hero { padding-top:38px; }
}
@media (max-width:640px) {
 body::before { background-size:auto 1500px; background-position:center 720px; opacity:.3; }
 .nav-inner { gap:6px; }
 .brand { font-size:.95rem; gap:7px; }
 .brand-mark { width:28px; height:28px; }
 .nav .btn { height:37px; padding-inline:12px; font-size:.65rem; }
 .nav .btn span { font-size:1rem; margin-left:3px; }
 .nav-links a:not(.btn) { font-size:.7rem; }
 .home-hero { padding:34px 0 290px; }
 .home-hero .wrap { position:static; }
 .hero-art { top:310px; }
 .hero-art img { object-position:78% center; }
 .home-hero::after { background:linear-gradient(180deg,var(--bg) 0%,var(--bg) 29%,rgba(250,246,238,.87) 44%,rgba(250,246,238,.1) 64%,transparent 100%); }
 .hero-copy { max-width:none; }
 .hero h1 { font-size:clamp(2.9rem,11vw,3.6rem); letter-spacing:-.045em; margin:20px 0; }
 .hero-sub { max-width:45ch; font-size:.9rem; }
 .eyebrow { font-size:.6rem; }
 .hero-actions { gap:8px; margin-top:22px; }
 .hero-actions .btn { padding-inline:16px; font-size:.76rem; height:42px; }
 .stats { gap:8px; max-width:none; margin-top:24px; }
 .stat { padding:12px 9px; gap:7px; }
 .stat-icon { width:23px; height:23px; }
 .stat-num { font-size:1.55rem; }
 .stat-label { font-size:.55rem; white-space:normal; }
 .hero-signoff { bottom:30px; right:22px; color:#3d271d; font-size:1.1rem; }
 .art-caption { bottom:8px; right:15px; font-size:.5rem; }
 .section { padding:28px 0; }
 .section-head { margin-bottom:18px; gap:10px; }
 .section-head h2 { font-size:1.75rem; }
 .section-head p { font-size:.67rem; }
 .podium { grid-template-columns:1fr; gap:16px; }
 .podium-card { display:grid; grid-template-columns:120px 1fr; gap:8px 14px; padding:8px; align-items:center; }
 .podium-card.first { padding:7px; }
 .podium-photo { aspect-ratio:1; height:120px; grid-row:1/3; }
 .podium-card .score { --size:43px; border-width:2px; top:7px; right:7px; }
 .podium-rank { width:30px; height:30px; top:10px; left:8px; border-width:2px; font-size:1.2rem; box-shadow:0 0 0 2px #fff2; }
 .podium-card > div:not(.podium-photo) { padding-inline:0; }
 .podium-name { font-size:1.12rem; }
 .podium-pizza { font-size:.77rem; }
 .podium-card .podium-meta { display:flex; margin-top:0; justify-content:flex-start; flex-wrap:wrap; gap:10px; }
 .podium-meta .place-label { font-size:.55rem; }
 .toolbar { gap:8px; }
 .search { flex-basis:100%; }
 .search input { height:42px; font-size:.8rem; }
 .chips { gap:5px; flex:1; }
 .chip { padding-inline:11px; height:35px; font-size:.65rem; }
 .select { width:125px; font-size:.68rem; padding-left:10px; padding-right:27px; height:35px; }
 .legend-note { font-size:.66rem; }
 .row { grid-template-columns:18px 44px 50px minmax(0,1fr); gap:9px; padding:11px 9px; }
 .row .score { --size:44px; }
 .pizza-thumb { width:50px; height:50px; border-radius:7px; }
 .rank { font-size:.55rem; }
 .rank .rank-medal { width:18px; height:18px; font-size:.48rem; }
 .row-name { font-size:.92rem; }
 .row-pizza { font-size:.72rem; }
 .row-sub { font-size:.58rem; gap:5px; }
 .row-extra { grid-column:2/-1; display:flex; justify-content:space-between; gap:8px; padding-top:4px; }
 .rv { min-width:39px; height:40px; }
 .rv-label { font-size:.5rem; }
 .rv-score { font-size:.75rem; }
 .icon-btn { width:31px; height:31px; }
 .card { padding:22px 18px; }
 .card h3 { font-size:1.55rem; }
 .scale-list li { grid-template-columns:65px 1fr; font-size:.78rem; gap:8px; }
 .scale-list .tier { display:none; }
 .person { padding:12px 10px; gap:12px; }
 .person span { font-size:.76rem; }
 .avatar { width:41px; height:41px; }
 .footer { margin-top:12px; }
}
@media (min-width:641px) and (max-width:760px) {
 .podium { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .podium-card { flex-direction:column; align-items:stretch; padding:6px 6px 14px; gap:12px; }
 .podium-card .podium-meta { display:flex; }
}
@media (max-width:370px) {
 .brand { font-size:.83rem; }
 .nav .btn { font-size:.6rem; padding-inline:10px; }
 .hero h1 { font-size:2.65rem; }
 .hero-actions .btn { padding-inline:12px; font-size:.7rem; }
 .stat { padding:10px 7px; }
 .stat-icon { width:20px; height:20px; }
 .podium-card { grid-template-columns:100px 1fr; gap:8px 12px; }
 .podium-photo { height:100px; }
 .chips { flex-basis:100%; }
 .toolbar label:last-child,.select { width:100%; }
 .row { grid-template-columns:15px 40px 43px minmax(0,1fr); gap:7px; }
 .row .score { --size:40px; }
 .pizza-thumb { width:43px; height:43px; }
}

.footer-brand { display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.footer-brand .brand { font-size:1rem; }
.footer-brand .brand-mark { width:30px; height:30px; }
@media (max-width:640px) { .footer-brand { gap:10px; } }

/* Per-review uploaded pizza photography */
.review-photo-thumb { object-fit: cover; object-position: center; background: none; }
.podium-photo.has-upload { background-image: none; }
.podium-photo .podium-upload { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 50% 50% !important; display: block !important; }
.podium-photo::after { z-index: 1; }
.podium-photo .podium-rank,
.podium-photo .score,
.podium-photo .photo-caption { z-index: 2; }
.review-photo { width: 100%; max-height: 620px; object-fit: cover; object-position: center; border-radius: 14px; display: block; margin: 0 0 18px; border: 1px solid var(--line); background: var(--bg-sunk); }

/* ---------- Community ratings + accounts ---------- */
.nav-account.active { color: var(--ink); background: var(--bg-sunk); }

.community-score {
  min-width: 104px;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(44,89,57,.18);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(238,247,236,.94), rgba(248,244,231,.95));
  color: #254c2f;
  text-decoration: none;
  line-height: 1;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.community-score:hover { border-color: rgba(44,89,57,.42); box-shadow: 0 5px 14px rgba(39,81,50,.10); transform: translateY(-1px); }
.community-label { grid-column: 1 / -1; font-family: var(--font-mono); font-size: .52rem; letter-spacing: .09em; text-transform: uppercase; color: #64806a; white-space: nowrap; }
.community-score strong { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; color: #1f4c2d; font-variant-numeric: tabular-nums; }
.community-votes { font-size: .62rem; color: #68816e; white-space: nowrap; align-self: end; padding-bottom: 1px; }
.community-score-large { width: max-content; min-width: 165px; padding: 10px 13px; min-height: 62px; }
.community-score-large strong { font-size: 1.75rem; }
.community-score-large .community-label { font-size: .57rem; }
.community-score-large .community-votes { font-size: .7rem; }
.community-score-mini { min-width: 90px; min-height: 44px; padding: 6px 8px; }
.community-score-mini strong { font-size: 1.1rem; }
.community-score-mini .community-label { font-size: .46rem; }
.community-score-mini .community-votes { font-size: .56rem; }

.account-main { padding-top: clamp(38px, 6vw, 76px); padding-bottom: 40px; }
.account-header { max-width: 800px; margin-bottom: 28px; }
.account-header h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 550; letter-spacing: -.055em; line-height: .92; margin: 10px 0 16px; }
.account-header h1 em { color: var(--accent); font-weight: 550; }
.account-header .hero-sub { max-width: 670px; }
.account-alert { margin: 0 0 20px; padding: 12px 15px; border-radius: 10px; font-size: .88rem; border: 1px solid var(--line); }
.account-alert.ok { background: #edf7ec; color: #285934; border-color: #cbe4c9; }
.account-alert.err { background: #fff0ed; color: #8d2f22; border-color: #edc9c2; }

.auth-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.auth-card { background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px,4vw,34px); box-shadow: var(--shadow-sm); }
.auth-card.featured { border-color: rgba(205,53,25,.22); box-shadow: 0 8px 30px rgba(113,61,29,.08); }
.auth-card h2 { font-family: var(--font-display); font-size: clamp(1.7rem,3vw,2.4rem); font-weight: 600; letter-spacing: -.035em; margin: 7px 0 6px; }
.auth-card > p { color: var(--ink-2); font-size: .88rem; line-height: 1.55; margin-bottom: 20px; }
.account-form { display: grid; gap: 14px; }
.account-form .field { margin: 0; }
.account-form .field > span { display: block; font-family: var(--font-mono); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.account-form .field small { display: block; margin-top: 4px; font-size: .7rem; color: var(--ink-3); }
.account-form input, .resend-box input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.9); color: var(--ink);
  min-height: 44px; padding: 10px 12px; font: inherit; outline: none;
}
.account-form input:focus, .resend-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(211,58,28,.10); }
.account-form .btn { justify-self: start; margin-top: 4px; }
.account-message { min-height: 20px; margin-top: 12px; font-size: .78rem; }
.account-message.ok { color: #2d6d3e; }
.account-message.err { color: #a23424; }
.resend-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.resend-box > span { display: block; font-size: .72rem; color: var(--ink-3); margin-bottom: 7px; }
.resend-box > div { display: flex; gap: 7px; }
.resend-box input { min-height: 38px; font-size: .78rem; }
.resend-box small { display: block; color: var(--ink-3); margin-top: 7px; min-height: 16px; }

.ratings-shell { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; box-shadow: var(--shadow-sm); }
.account-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line); background: rgba(247,243,234,.76); }
.account-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.account-who > div:last-child { display: grid; min-width: 0; }
.account-who strong { font-family: var(--font-display); font-size: 1rem; }
.account-who span { font-size: .7rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #dfead5; color: #31593a; font-family: var(--font-display); font-weight: 700; flex: 0 0 auto; }
.ratings-toolbar { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ratings-toolbar .search { flex: 1; max-width: 520px; }
.ratings-count { color: var(--ink-3); font-size: .72rem; white-space: nowrap; }
.ratings-count b { color: var(--ink); font-family: var(--font-mono); }
.rating-list-head { display: grid; grid-template-columns: minmax(260px,1fr) 90px 110px 140px; gap: 16px; padding: 9px 18px; background: var(--bg-sunk); color: var(--ink-3); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.rating-list-head span:not(:first-child) { text-align: center; }
.my-rating-list { display: grid; }
.my-rating-row { display: grid; grid-template-columns: minmax(260px,1fr) 90px 110px 140px; gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.my-rating-row:first-child { border-top: 0; }
.my-rating-row:hover { background: rgba(250,247,240,.62); }
.rating-pizza { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rating-pizza > img, .rating-thumb-fallback { width: 66px; height: 50px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.rating-thumb-fallback { display: block; background-image: url('assets/pizza-card-placeholder-bw-v2.webp?v=2'); background-size: 300% auto; background-position: 50% 50%; filter: grayscale(1); }
.rating-pizza > div { min-width: 0; display: grid; gap: 2px; }
.rating-pizza a { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rating-pizza a:hover { color: var(--accent); }
.rating-pizza span { font-size: .72rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rating-metric { display: grid; justify-items: center; gap: 2px; }
.rating-metric strong { font-family: var(--font-display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.rating-metric span { font-size: .58rem; color: var(--ink-3); }
.community-cell strong { color: #285838; }
.rating-select-wrap { display: grid; grid-template-columns: 1fr; justify-items: stretch; gap: 3px; }
.rating-select { width: 100%; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fffdf9; color: var(--ink); padding: 8px 28px 8px 10px; font-family: var(--font-mono); font-size: .88rem; font-weight: 600; text-align: center; cursor: pointer; }
.rating-select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(211,58,28,.10); }
.rating-select:disabled { opacity: .65; cursor: wait; }
.save-state { min-height: 12px; text-align: center; font-size: .58rem; color: #3c7449; }
.rating-loading { padding: 42px 20px; text-align: center; color: var(--ink-3); font-size: .85rem; }
.ratings-note { padding: 11px 18px 15px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .68rem; }

@media (max-width: 860px) {
  .community-score { min-width: 112px; }
  .auth-grid { grid-template-columns: 1fr; }
  .rating-list-head { display: none; }
  .my-rating-row { grid-template-columns: minmax(0,1fr) 72px 90px 112px; gap: 9px; padding: 11px 12px; }
  .rating-pizza > img, .rating-thumb-fallback { width: 54px; height: 46px; }
}
@media (max-width: 640px) {
  .nav-account { padding-inline: 7px !important; }
  .account-main { padding-top: 28px; }
  .account-header h1 { font-size: 3.4rem; }
  .auth-card { padding: 22px 18px; }
  .ratings-toolbar { align-items: stretch; flex-direction: column; }
  .ratings-toolbar .search { max-width: none; }
  .ratings-count { align-self: flex-end; }
  .my-rating-row { grid-template-columns: minmax(0,1fr) 74px 100px; grid-template-areas: 'pizza community rating' 'pizza panel rating'; gap: 5px 8px; }
  .rating-pizza { grid-area: pizza; }
  .my-rating-row > .rating-metric:nth-child(2) { grid-area: panel; }
  .my-rating-row > .community-cell { grid-area: community; }
  .rating-select-wrap { grid-area: rating; align-self: center; }
  .rating-pizza > img, .rating-thumb-fallback { width: 46px; height: 46px; }
  .rating-pizza a { font-size: .88rem; }
  .rating-pizza span { font-size: .64rem; }
  .rating-metric { grid-template-columns: auto auto; gap: 4px; align-items: baseline; justify-content: center; }
  .rating-metric strong { font-size: .95rem; }
  .rating-metric span { font-size: .53rem; }
  .rating-select { min-height: 40px; font-size: .8rem; }
  .community-score-mini { min-width: 80px; }
}
@media (max-width: 430px) {
  .nav .nav-account { font-size: .64rem; }
  .my-rating-row { grid-template-columns: minmax(0,1fr) 66px 88px; padding-inline: 9px; }
  .rating-pizza { gap: 8px; }
  .rating-pizza > img, .rating-thumb-fallback { width: 40px; height: 40px; }
}
