/* Cellar Cabin — dark cellar-luxe design system
   Layout: fixed left rail + editorial main column (top bar + drawer on mobile).
   WebKit notes: no `aspect-ratio` on flex/grid children; gauges get explicit w/h + flex:none;
   no var() inside SVG presentation attributes. */

:root {
  --bg: #100c0c;
  --bg-2: #171111;
  --panel: #1d1616;
  --panel-2: #241b1a;
  --panel-3: #2c2120;
  --line: #3a2c29;
  --line-soft: #2a201f;

  --text: #f3ebe1;
  --muted: #b2a297;
  --dim: #82736a;

  --wine: #8c1d2f;
  --wine-lit: #b8303f;
  --wine-deep: #5d1220;
  --brass: #c9a24a;
  --brass-lit: #e6c67f;
  --oak: #9c6b3f;
  --good: #6aa87a;

  --paper: #f2ece2;
  --paper-2: #e7dfd2;
  --paper-ink: #221a18;
  --paper-muted: #6b5b52;
  --paper-line: #d5c9b8;

  --radius: 14px;
  --radius-sm: 9px;
  --rail: 252px;
  --maxw: 1180px;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --plate: linear-gradient(158deg, #f8f3ea 0%, #ece3d4 68%, #ded3c1 100%);

  --shadow: 0 18px 44px rgba(0, 0, 0, .46);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, .32);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.018em; margin: 0 0 .5em; line-height: 1.1;
  font-optical-sizing: auto; font-variation-settings: "SOFT" 8, "WONK" 1;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.25rem); }
h3 { font-size: 1.16rem; line-height: 1.28; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================ RAIL ============================ */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 60;
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px 20px 20px;
  background: linear-gradient(180deg, #1a1313 0%, #130e0e 62%, #0d0909 100%);
  border-right: 1px solid var(--line);
}
.rail::after {
  content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 162, 74, .5), transparent);
}
.rail-brand { display: flex; align-items: center; gap: 11px; }
.rail-brand img { width: 40px; height: 40px; flex: none; object-fit: contain; }
.rail-brand b { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; letter-spacing: .01em; display: block; line-height: 1.1; }
.rail-brand span { color: var(--dim); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-family: var(--font-mono); }

.rail-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.rail-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  color: var(--muted); font-size: .92rem; border: 1px solid transparent;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.rail-nav a i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.rail-nav a:hover { color: var(--text); background: rgba(201, 162, 74, .07); border-color: var(--line); }
.rail-nav a:hover i, .rail-nav a[aria-current="page"] i { background: var(--brass); transform: scale(1.5); }
.rail-nav a[aria-current="page"] { color: var(--text); background: rgba(140, 29, 47, .18); border-color: rgba(184, 48, 63, .4); }

.rail-meter { margin-top: auto; border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: rgba(0, 0, 0, .28); }
.rail-meter .mono { color: var(--dim); }
.rail-meter b { font-family: var(--font-display); font-size: 1.6rem; display: block; margin-top: 2px; }
.rail-meter .track { display: block; height: 4px; border-radius: 99px; background: var(--line-soft); margin-top: 9px; overflow: hidden; }
.rail-meter .track > i { display: block; height: 4px; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--wine-lit), var(--brass)); transition: width .3s var(--ease); }
.rail-foot { color: var(--dim); font-size: .72rem; line-height: 1.5; }
.rail-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* mobile top bar */
.topbar {
  display: none; position: sticky; top: 0; z-index: 70;
  align-items: center; gap: 12px; padding: 10px 14px;
  background: rgba(16, 12, 12, .94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
}
.topbar .rail-brand img { width: 32px; height: 32px; }
.burger {
  margin-left: auto; width: 42px; height: 38px; flex: none; border: 1px solid var(--line);
  border-radius: 9px; background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.burger span { display: block; width: 17px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 55; }

/* ============================ SHELL ============================ */
.shell { margin-left: var(--rail); }
.band { padding: clamp(46px, 6vw, 84px) 0; position: relative; }
.band--tint { background: linear-gradient(180deg, #1a1312, #150f0f); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.band--deep { background: radial-gradient(120% 130% at 12% 0%, #2a1417 0%, #140e0e 58%, #0e0a0a 100%); }
.band--paper { background: var(--paper); color: var(--paper-ink); }
.band--paper h1, .band--paper h2, .band--paper h3 { color: var(--paper-ink); }
.band--paper .mono { color: var(--wine); }
.band--paper .lede { color: var(--paper-muted); }
.wrap { width: min(var(--maxw), calc(100% - 56px)); margin: 0 auto; }

.head { margin-bottom: 34px; }
.head .mono { color: var(--brass); display: block; margin-bottom: 10px; }
.head p { color: var(--muted); max-width: 62ch; margin: 0; }
.head--center { text-align: center; }
.head--center p { margin-inline: auto; }
.head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.head--split p { flex: 1 1 320px; }
.lede { color: var(--muted); font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .93rem/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--wine { background: linear-gradient(180deg, var(--wine-lit), var(--wine)); color: #fff; box-shadow: 0 10px 22px rgba(140, 29, 47, .34); }
.btn--wine:hover { background: linear-gradient(180deg, #c4394a, #9c2334); }
.btn--brass { background: linear-gradient(180deg, var(--brass-lit), var(--brass)); color: #241a08; }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-lit); }
.btn--sm { height: 38px; padding: 0 14px; font-size: .84rem; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--muted);
  font: 600 .7rem/1.6 var(--font-mono); letter-spacing: .09em; text-transform: uppercase;
}
.tag--wine { border-color: rgba(184, 48, 63, .55); color: #e79aa4; background: rgba(140, 29, 47, .16); }
.tag--brass { border-color: rgba(201, 162, 74, .5); color: var(--brass-lit); background: rgba(201, 162, 74, .1); }

/* ============================ HERO (bento) ============================ */
.hero { padding: clamp(30px, 4vw, 58px) 0 clamp(40px, 5vw, 70px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; left: -140px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(140, 29, 47, .34), transparent 62%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -160px; bottom: -220px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(201, 162, 74, .13), transparent 65%); pointer-events: none;
}
.bento { position: relative; display: grid; gap: 16px; grid-template-columns: 1.55fr 1fr; align-items: start; }
.bento-main { display: flex; flex-direction: column; gap: 16px; }
.bento-side { display: flex; flex-direction: column; gap: 16px; }
.tile {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden;
}
.tile--intro { padding: clamp(24px, 3vw, 36px); }
.tile--intro h1 { margin-bottom: 14px; }
.tile--intro h1 em { font-style: normal; color: var(--brass-lit); }
.tile--intro .lede { max-width: 54ch; margin-bottom: 20px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

.searchbox { display: flex; gap: 9px; align-items: stretch; }
.searchbox .field { position: relative; flex: 1 1 auto; }
.searchbox input {
  width: 100%; height: 52px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .34); color: var(--text); padding: 0 14px 0 42px; font: 400 1rem/1 var(--font-body);
}
.searchbox input::placeholder { color: var(--dim); }
.searchbox input:focus { border-color: var(--brass); outline: none; }
.searchbox .ico { position: absolute; left: 14px; top: 17px; width: 16px; height: 16px; opacity: .7; }
.searchbox .btn { height: 52px; }
.suggest {
  position: absolute; top: 58px; left: 0; right: 0; z-index: 40; display: none;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px;
  box-shadow: var(--shadow); overflow: hidden; max-height: 320px; overflow-y: auto;
}
.suggest.open { display: block; }
.suggest a { display: flex; gap: 11px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.active { background: rgba(201, 162, 74, .12); }
.suggest img { width: 38px; height: 38px; flex: none; object-fit: cover; border-radius: 7px; background: #fff; }
.suggest b { font-weight: 600; font-size: .9rem; display: block; }
.suggest small { color: var(--dim); font-size: .75rem; }

.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); }
.tile--stats { padding: 0; }
.statgrid > div { padding: 20px 18px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; justify-content: center; min-height: 108px; }
.statgrid > div:nth-child(2n) { border-right: 0; }
.statgrid > div:nth-child(n+3) { border-bottom: 0; }
.statgrid b { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; color: var(--brass-lit); }
.statgrid span { color: var(--dim); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-family: var(--font-mono); margin-top: 7px; }

.tile--shot { padding: 0; border: 1px solid var(--line); }
.tile--shot img { width: 100%; height: clamp(180px, 22vw, 250px); object-fit: cover; }
.tile--pick { display: flex; gap: 14px; align-items: center; }
.tile--pick .shot { width: 84px; height: 96px; flex: none; border-radius: 10px; overflow: hidden; background: #fff; }
.tile--pick .shot img { width: 100%; height: 100%; object-fit: cover; }
.tile--pick .meta { min-width: 0; }
.tile--pick h3 { margin: 6px 0 4px; font-size: 1.02rem; }
.tile--pick p { color: var(--dim); font-size: .8rem; margin: 0; }

/* rating gauge — explicit box, never aspect-ratio */
.gauge { position: relative; width: 74px; height: 74px; flex: none; display: grid; place-items: center; }
.gauge svg { width: 74px; height: 74px; display: block; transform: rotate(-90deg); }
.gauge .g-track { fill: none; stroke: #3a2c29; stroke-width: 7; }
.gauge .g-fill { fill: none; stroke: #c9a24a; stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray 1s var(--ease); }
.gauge .g-val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.24rem; line-height: 1; }
.gauge--sm, .gauge--sm svg { width: 56px; height: 56px; }
.gauge--sm .g-val { font-size: 1rem; }
.gauge--lg, .gauge--lg svg { width: 104px; height: 104px; }
.gauge--lg .g-val { font-size: 1.7rem; }

/* ============================ ZIG-ZAG PICKS ============================ */
.zig { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 34px); }
.zigrow {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(18px, 3vw, 40px); align-items: center;
  border-top: 1px solid var(--paper-line); padding-top: clamp(20px, 3vw, 34px);
}
.zigrow:first-child { border-top: 0; padding-top: 0; }
.zigrow:nth-child(even) .zigshot { order: 2; }
.zigshot { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--paper-line); }
.zigshot img { width: 100%; height: clamp(230px, 27vw, 330px); object-fit: cover; }
.zigshot .badge {
  position: absolute; top: 14px; left: 14px; background: var(--wine); color: #fff;
  font: 700 .72rem/1 var(--font-mono); letter-spacing: .12em; padding: 8px 11px; border-radius: 8px; text-transform: uppercase;
}
.zigbody h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); margin-bottom: 8px; }
.zigbody .kicker { color: var(--wine); font: 700 .72rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.zigbody p { color: var(--paper-muted); }
.zigmetrics { display: flex; gap: 20px; flex-wrap: wrap; margin: 16px 0 18px; }
.zigmetrics div { min-width: 92px; }
.zigmetrics b { font-family: var(--font-display); font-size: 1.5rem; display: block; line-height: 1; color: var(--paper-ink); }
.zigmetrics span { font: 600 .66rem/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); }
.zigactions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.band--paper .btn--ghost { border-color: var(--paper-line); color: var(--paper-ink); background: rgba(0, 0, 0, .02); }
.band--paper .btn--ghost:hover { border-color: var(--wine); color: var(--wine); }
.band--paper .tag { border-color: var(--paper-line); color: var(--paper-muted); }
.band--paper .cmp { background: #fff; border-color: var(--paper-line); color: var(--paper-muted); height: 38px; padding: 0 14px; }
.band--paper .cmp:hover { color: var(--wine); border-color: var(--wine); }
.band--paper .cmp[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }

/* ============================ RANKING (sticky column) ============================ */
.ranklayout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(22px, 3vw, 46px); align-items: start; }
.rankaside { position: sticky; top: 26px; }
.rankaside h2 { margin-bottom: 12px; }
.rankaside p { color: var(--muted); font-size: .93rem; }
.legend { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.legend div { display: flex; align-items: center; gap: 9px; font-size: .82rem; color: var(--muted); }
.legend i { width: 22px; height: 5px; border-radius: 99px; flex: none; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.rankrow {
  position: relative; display: grid; grid-template-columns: 54px 92px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 18px 14px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(120deg, var(--panel-2), var(--panel));
  transition: border-color .22s var(--ease), transform .22s var(--ease), background .22s;
}
.rankrow:hover { border-color: rgba(201, 162, 74, .55); transform: translateX(4px); background: linear-gradient(120deg, #2b2020, #1f1817); }
.rankrow .rk { font-family: var(--font-display); font-size: 1.85rem; color: var(--brass); text-align: center; }
.rankrow .shot { width: 92px; height: 92px; flex: none; border-radius: 10px; overflow: hidden; background: #fff; }
.rankrow .shot img { width: 100%; height: 100%; object-fit: cover; }
.rankrow h3 { font-size: 1.04rem; margin: 0 0 4px; }
.rankrow .sub { color: var(--dim); font-size: .78rem; margin-bottom: 9px; display: flex; gap: 8px; flex-wrap: wrap; }
.bars { display: grid; gap: 6px; max-width: 460px; }
.bar { display: grid; grid-template-columns: 84px 1fr 34px; align-items: center; gap: 9px; font-size: .72rem; color: var(--muted); }
.bar .track { height: 6px; border-radius: 99px; background: #2a2020; overflow: hidden; }
.bar .fill { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 1.1s var(--ease); }
.bar--cool .fill { background: linear-gradient(90deg, #4a6f9c, #86b6e6); }
.bar--quiet .fill { background: linear-gradient(90deg, #6d5aa8, #b9a2f0); }
.bar--cap .fill { background: linear-gradient(90deg, var(--wine), #d9576a); }
.bar .val { font-family: var(--font-mono); color: var(--text); text-align: right; }
.rankrow .right { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rankrow .stretch { position: absolute; inset: 0; border-radius: 12px; }

/* ============================ FILTERS + GRID ============================ */
.filters {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
  padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 24px;
}
.fgroup { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1 1 150px; }
.fgroup label { font: 600 .66rem/1 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--dim); }
.fgroup select, .fgroup input {
  height: 42px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3);
  color: var(--text); padding: 0 11px; font: 400 .92rem/1 var(--font-body); width: 100%;
}
.fgroup select:focus, .fgroup input:focus { border-color: var(--brass); outline: none; }
.filters .btn { height: 42px; flex: 0 0 auto; }
.fcount { color: var(--dim); font-size: .8rem; font-family: var(--font-mono); margin-left: auto; align-self: flex-end; padding-bottom: 12px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); position: relative;
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: rgba(201, 162, 74, .5); box-shadow: var(--shadow-sm); }
.card .shot { height: 190px; background: #fff; overflow: hidden; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .shot img { transform: scale(1.05); }
.card .body { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card .cat { font: 600 .64rem/1 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.card h3 { font-size: .99rem; margin: 0 0 8px; }
.card .feats { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.card .feats li { color: var(--muted); font-size: .79rem; line-height: 1.4; padding-left: 14px; position: relative; }
.card .feats li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--wine-lit); }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 11px; }
.card .score { font-family: var(--font-display); font-size: 1.15rem; color: var(--brass-lit); }
.card .score small { color: var(--dim); font-size: .72rem; font-family: var(--font-mono); }
.card .stretch { position: absolute; inset: 0; }
.cmp {
  position: relative; z-index: 3; height: 30px; padding: 0 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--muted);
  font: 600 .72rem/1 var(--font-body); display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s, border-color .2s, background .2s;
}
.cmp:hover { color: var(--brass-lit); border-color: rgba(201, 162, 74, .55); }
.cmp[aria-pressed="true"] { background: rgba(140, 29, 47, .3); border-color: var(--wine-lit); color: #f0c2c8; }

.pager { display: flex; gap: 7px; justify-content: center; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.pager button {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); font: 600 .86rem/1 var(--font-body); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.pager button:hover:not(:disabled) { color: var(--text); border-color: var(--brass); }
.pager button[aria-current="true"] { background: var(--wine); border-color: var(--wine-lit); color: #fff; }
.pager button:disabled { opacity: .35; cursor: default; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ============================ QUIZ ============================ */
.quizbox {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel);
}
.quizside { padding: clamp(22px, 3vw, 34px); background: linear-gradient(160deg, #2a1417, #170f0f); border-right: 1px solid var(--line); }
.quizside h2 { margin-bottom: 10px; }
.quizside p { color: var(--muted); font-size: .95rem; }
.qsteps { display: flex; gap: 7px; margin-top: 20px; }
.qsteps i { height: 4px; flex: 1 1 auto; border-radius: 99px; background: #3a2c29; transition: background .3s; }
.qsteps i.on { background: linear-gradient(90deg, var(--wine-lit), var(--brass)); }
.quizmain { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; min-height: 330px; }
.qq { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 16px; }
.qopts { display: grid; gap: 9px; }
.qopt {
  text-align: left; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .25); color: var(--text); cursor: pointer; font: 500 .93rem/1.35 var(--font-body);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.qopt:hover { border-color: var(--brass); background: rgba(201, 162, 74, .1); transform: translateX(3px); }
.qopt small { display: block; color: var(--dim); font-size: .78rem; margin-top: 3px; }
.qnav { margin-top: auto; padding-top: 18px; display: flex; gap: 10px; align-items: center; }
.qresult { display: flex; gap: 16px; align-items: flex-start; }
.qresult .shot { width: 122px; height: 138px; flex: none; border-radius: 10px; overflow: hidden; background: #fff; }
.qresult .shot img { width: 100%; height: 100%; object-fit: cover; }
.qwhy { list-style: none; padding: 0; margin: 10px 0 14px; display: flex; flex-direction: column; gap: 6px; }
.qwhy li { font-size: .84rem; color: var(--muted); padding-left: 16px; position: relative; }
.qwhy li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-size: .8rem; }
.qalt { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.qalt a { font-size: .82rem; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.qalt a:hover { color: var(--brass-lit); border-color: var(--brass); }

/* ============================ METHOD BAND ============================ */
.methodgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.method { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: rgba(0, 0, 0, .22); }
.method .n { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; color: var(--brass); display: block; margin-bottom: 10px; }
.method h3 { font-size: 1.02rem; margin-bottom: 7px; }
.method p { color: var(--muted); font-size: .85rem; margin: 0; }
.tempscale { margin-top: 26px; border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: rgba(0, 0, 0, .22); }
.tempbar { position: relative; height: 34px; border-radius: 9px; margin: 26px 0 8px; overflow: hidden; background: linear-gradient(90deg, #2f5f8f, #4f7fae 22%, #8c6b4a 55%, #8c1d2f 88%); }
.tempbar span { position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(255, 255, 255, .55); }
.templabels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.tempnotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.tempnotes div { font-size: .83rem; color: var(--muted); border-left: 2px solid var(--wine); padding-left: 11px; }
.tempnotes b { color: var(--text); display: block; font-family: var(--font-display); font-size: 1.02rem; }

/* ============================ COMPARE TRAY + MODAL ============================ */
.tray {
  position: fixed; left: var(--rail); right: 0; bottom: 0; z-index: 80; transform: translateY(110%);
  transition: transform .32s var(--ease);
  background: rgba(23, 17, 17, .97); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, .45);
}
.tray.open { transform: translateY(0); }
.tray-in { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.tray-slots { display: flex; gap: 9px; flex: 1 1 auto; flex-wrap: wrap; }
.slot { position: relative; width: 58px; height: 58px; flex: none; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot button {
  position: absolute; top: 2px; right: 2px; width: 19px; height: 19px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .74); color: #fff; cursor: pointer; font-size: 12px; line-height: 19px; padding: 0;
}
.slot--empty { border-style: dashed; background: rgba(0, 0, 0, .3); display: grid; place-items: center; color: var(--dim); font-size: 1.1rem; }
.tray .label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

.modal { position: fixed; inset: 0; z-index: 120; display: none; }
.modal.open { display: block; }
.modal .veil { position: absolute; inset: 0; background: rgba(6, 4, 4, .78); }
.modal .sheet {
  position: absolute; top: 4vh; left: 50%; transform: translateX(-50%);
  width: min(1080px, 94vw); max-height: 92vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.modal .sheet-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.modal .sheet-head h3 { margin: 0; font-size: 1.06rem; }
.modal .x { margin-left: auto; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 1rem; }
.ctable { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ctable th, .ctable td { padding: 9px 13px; border-bottom: 1px solid var(--line-soft); vertical-align: top; text-align: left; }
.ctable thead th { background: var(--panel-3); font: 600 .74rem/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ctable tbody th { color: var(--dim); font-weight: 600; width: 168px; font-size: .78rem; }
.ctable td { color: var(--text); }
.ctable .ph { display: flex; gap: 10px; align-items: center; }
.ctable .ph img { width: 46px; height: 46px; flex: none; border-radius: 7px; object-fit: cover; background: #fff; }

/* ============================ PRODUCT PAGE ============================ */
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: .8rem; padding: 20px 0 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brass-lit); }
.crumbs span { color: var(--line); }

.phero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: stretch; padding: 22px 0 0; }
.pleft, .pright { display: flex; flex-direction: column; gap: 14px; }
.frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.frame img { width: 100%; height: clamp(280px, 34vw, 420px); object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; cursor: pointer; height: 84px; }
.thumbs button[aria-current="true"] { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.specpanel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); flex: 1 1 auto; display: flex; flex-direction: column; overflow: hidden; }
.specpanel h2 { font-size: 1.02rem; margin: 0; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.specpanel dl { margin: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.specpanel .row { display: grid; grid-template-columns: 40% 60%; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); flex: 1 1 auto; align-items: center; min-height: 46px; }
.specpanel .row:last-child { border-bottom: 0; }
.specpanel dt { color: var(--dim); font: 600 .72rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.specpanel dd { margin: 0; font-size: .89rem; }

.buybox { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(170deg, #2a1c1c, var(--panel)); padding: 20px; position: sticky; top: 20px; }
.buybox .top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.buybox h1 { font-size: clamp(1.32rem, 2.1vw, 1.72rem); margin: 0 0 6px; }
.buybox .brandline { color: var(--brass); font: 600 .7rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.buybox .rankline { color: var(--muted); font-size: .84rem; margin: 0 0 14px; }
.buybox .acts { display: grid; gap: 9px; }
.buybox .acts .btn { width: 100%; }
.buybox .fineprint { color: var(--dim); font-size: .74rem; margin: 12px 0 0; line-height: 1.5; }
.quickfacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; margin: 14px 0; }
.quickfacts div { background: rgba(0, 0, 0, .3); padding: 11px 12px; }
.quickfacts b { display: block; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.15; }
.quickfacts span { font: 600 .63rem/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

.sidecard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; flex: 1 1 auto; display: flex; flex-direction: column; }
.sidecard h2 { font-size: 1.02rem; margin: 0; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.sidecard .line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); font-size: .87rem; align-items: baseline; flex: 0 0 auto; }
.sidecard .line span { color: var(--dim); font: 600 .7rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.sidecard .line b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.sidecard .peers { padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.sidecard .peer { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 9px; transition: background .2s; }
.sidecard .peer:hover { background: rgba(201, 162, 74, .1); }
.sidecard .peer img { width: 40px; height: 40px; flex: none; border-radius: 7px; object-fit: cover; background: #fff; }
.sidecard .peer b { display: block; font-size: .84rem; font-weight: 600; line-height: 1.25; }
.sidecard .peer small { color: var(--dim); font-size: .72rem; font-family: var(--font-mono); }

.verdictband { border-left: 3px solid var(--wine-lit); background: linear-gradient(90deg, rgba(140, 29, 47, .2), transparent 70%); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 26px 0 0; }
.verdictband .mono { color: var(--brass); display: block; margin-bottom: 7px; }
.verdictband p { margin: 0; font-size: 1.02rem; }

.feat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feat3 li { list-style: none; border: 1px solid var(--line); border-radius: 11px; padding: 14px 15px; background: rgba(0, 0, 0, .22); font-size: .88rem; color: var(--text); display: flex; gap: 10px; }
.feat3 li i { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); flex: none; margin-top: 8px; }
ul.feat3 { padding: 0; margin: 0; }

.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pc > div { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--panel); }
.pc h3 { display: flex; align-items: center; gap: 9px; font-size: 1.04rem; }
.pc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pc li { font-size: .89rem; color: var(--muted); padding-left: 22px; position: relative; line-height: 1.5; }
.pc--pro li::before { content: "✓"; position: absolute; left: 0; color: var(--good); }
.pc--con li::before { content: "✕"; position: absolute; left: 0; color: #d2707c; }

.readlayout { display: grid; grid-template-columns: 1fr 316px; gap: clamp(20px, 3vw, 38px); align-items: start; }
.prose { font-size: 1.02rem; }
.prose p { color: #ddd0c4; }
.prose h2 { margin-top: 26px; }
.scorecard { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.scorecard h3 { margin: 0; padding: 13px 16px; font-size: 1rem; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.scorecard .sc { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.scorecard .sc:last-child { border-bottom: 0; }
.scorecard .lbl { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 7px; }
.scorecard .lbl b { font-family: var(--font-mono); color: var(--brass-lit); font-weight: 600; }
.scorecard .track { height: 6px; border-radius: 99px; background: #2a2020; overflow: hidden; }
.scorecard .fill { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--wine), var(--brass)); transition: width 1.1s var(--ease); }
.scorecard .note { padding: 12px 16px; color: var(--dim); font-size: .76rem; border-top: 1px solid var(--line); }

.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rev { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: rgba(0, 0, 0, .22); }
.rev .who { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.rev .av { width: 34px; height: 34px; flex: none; border-radius: 50%; background: linear-gradient(140deg, var(--wine), var(--oak)); display: grid; place-items: center; font: 600 .82rem/1 var(--font-body); color: #fff; }
.rev b { font-size: .92rem; display: block; }
.rev .meta { color: var(--dim); font-size: .74rem; font-family: var(--font-mono); }
.rev p { margin: 0; color: var(--muted); font-size: .89rem; }

.rel4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ============================ PAGE (legal/about) ============================ */
.doc { max-width: 74ch; }
.doc h2 { margin-top: 30px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; }

/* ============================ FOOTER ============================ */
.sitefoot { margin-left: var(--rail); border-top: 1px solid var(--line); background: #0c0808; padding: 44px 0 28px; }
.sitefoot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.sitefoot-brand { display: flex; gap: 12px; align-items: flex-start; }
.sitefoot-brand img { width: 42px; height: 42px; flex: none; object-fit: contain; }
.sitefoot p { color: var(--dim); font-size: .84rem; max-width: 40ch; }
.sitefoot h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 0 0 12px; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sitefoot ul a { color: var(--muted); font-size: .87rem; }
.sitefoot ul a:hover { color: var(--brass-lit); }
.sitefoot-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--dim); font-size: .78rem; }

/* cookie banner */
#cookie {
  position: fixed; left: calc(var(--rail) + 18px); bottom: 18px; z-index: 90; display: none;
  width: min(430px, calc(100% - 36px)); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 17px; box-shadow: var(--shadow);
}
#cookie.show { display: block; }
body.has-tray #cookie { bottom: 104px; }
#cookie p { font-size: .84rem; color: var(--muted); margin: 0 0 11px; }
#cookie a { color: var(--brass-lit); text-decoration: underline; }
#cookie .row { display: flex; gap: 9px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1180px) {
  .grid, .rel4, .methodgrid { grid-template-columns: repeat(3, 1fr); }
  .ranklayout { grid-template-columns: 1fr; }
  .rankaside { position: static; }
}
@media (max-width: 1040px) {
  :root { --rail: 0px; }
  .rail {
    transform: translateX(-100%); transition: transform .3s var(--ease); width: 268px;
    box-shadow: 22px 0 40px rgba(0, 0, 0, .5);
  }
  body.nav-open .rail { transform: none; }
  body.nav-open .scrim { display: block; }
  .topbar { display: flex; }
  .shell, .sitefoot { margin-left: 0; }
  .tray { left: 0; }
  #cookie { left: 18px; }
  .bento { grid-template-columns: 1fr; }
  .phero { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .readlayout { grid-template-columns: 1fr; }
  .scorecard { position: static; }
  .quizbox { grid-template-columns: 1fr; }
  .quizside { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .grid, .rel4, .methodgrid, .reviews, .feat3, .tempnotes { grid-template-columns: repeat(2, 1fr); }
  .zigrow { grid-template-columns: 1fr; }
  .zigrow:nth-child(even) .zigshot { order: 0; }
  .rankrow { grid-template-columns: 40px 74px 1fr; }
  .rankrow .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .bars { max-width: none; }
  .pc { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .grid, .rel4, .methodgrid, .reviews, .feat3, .tempnotes, .quickfacts { grid-template-columns: 1fr; }
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .searchbox { flex-direction: column; }
  .searchbox .btn { width: 100%; }
  .band { padding: 40px 0; }
  .rankrow { grid-template-columns: 34px 1fr; row-gap: 10px; }
  .rankrow .shot { display: none; }
  .bar { grid-template-columns: 66px 1fr 30px; }
  .thumbs button { height: 64px; }
  .ctable tbody th { width: 110px; }
  /* one tray row only: drop the empty placeholders, keep the filled thumbs */
  .tray-in { gap: 8px; padding: 9px 0; flex-wrap: nowrap; }
  .tray .label { display: none; }
  .tray-slots { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .slot { width: 42px; height: 42px; }
  .slot button { width: 24px; height: 24px; line-height: 24px; font-size: 14px; }
  .slot--empty { display: none; }
  .tray .btn { height: 36px; padding: 0 10px; font-size: .76rem; }
  .cmp { height: 38px; padding: 0 12px; }
  .head--split { gap: 12px; }
  .head--split p { flex-basis: 100%; }
  .sitefoot-grid { grid-template-columns: 1fr; gap: 22px; }
  .sitefoot p { max-width: none; }
  .sitefoot ul { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}


/* =====================================================================
   POLISH LAYER — texture, photo plates, medals, micro-interactions
   ===================================================================== */

/* film grain over everything, non-interactive */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* product photography sits on a warm plate and multiplies into it,
   so white studio backgrounds stop punching bright holes in a dark page */
.card .shot, .rankrow .shot, .tile--pick .shot, .qresult .shot, .frame,
.zigshot, .slot, .thumbs button, .sidecard .peer img, .suggest img, .ctable .ph img {
  background: var(--plate);
}
.card .shot img, .rankrow .shot img, .tile--pick .shot img, .qresult .shot img,
.frame img, .zigshot img, .slot img, .thumbs img,
.sidecard .peer img, .suggest img, .ctable .ph img { mix-blend-mode: multiply; }
.card .shot { border-bottom: 1px solid var(--line); }
.frame { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }

/* hero photo: scrim + caption instead of a bare tile */
.tile--shot { position: relative; }
.tile--shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 12, 12, 0) 42%, rgba(16, 12, 12, .82) 100%);
}
.shotcap {
  position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .15em;
  text-transform: uppercase; color: #e9ddcc;
}

/* medals for the top three bench rows */
.rankrow .rk {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto;
  border-radius: 50%; border: 1px solid var(--line); font-size: 1.3rem;
  background: rgba(0, 0, 0, .3);
}
.rows .rankrow:nth-child(1) .rk { background: linear-gradient(150deg, #f0d187, #b3862c); border-color: #e5c377; color: #2a1d06; }
.rows .rankrow:nth-child(2) .rk { background: linear-gradient(150deg, #ddd7ce, #918a80); border-color: #cfc8bd; color: #241f1a; }
.rows .rankrow:nth-child(3) .rk { background: linear-gradient(150deg, #dda876, #8c5a2e); border-color: #d2a072; color: #2a1a0b; }

/* editorial numerals behind each pick */
.zigrow { position: relative; }
.zignum {
  position: absolute; top: -10px; right: 0; z-index: 0; pointer-events: none;
  font-family: var(--font-display); font-size: clamp(3.4rem, 7vw, 6rem); line-height: 1;
  color: rgba(140, 29, 47, .09); font-variation-settings: "WONK" 1;
}
.zigbody { position: relative; z-index: 1; }

/* paper band gets a faint printed texture */
.band--paper {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(90, 60, 40, .045) 1px, transparent 1px);
  background-size: 5px 5px;
}

/* rail nav: brass underline sweep */
.rail-nav a { position: relative; overflow: hidden; }
.rail-nav a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 5px; height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.rail-nav a:hover::after, .rail-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* buttons: inner highlight reads as lit metal / glass */
.btn--wine { box-shadow: 0 10px 22px rgba(140, 29, 47, .34), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--brass { box-shadow: 0 8px 18px rgba(201, 162, 74, .26), inset 0 1px 0 rgba(255, 255, 255, .42); }
.btn--ghost:hover { background: rgba(201, 162, 74, .07); }

/* scores read as instrument readouts */
.gauge .g-val { font-variant-numeric: tabular-nums; }
.bar .val, .scorecard .lbl b, .statgrid b { font-variant-numeric: tabular-nums; }

/* staggered reveal; app.js sets --d per element */
.reveal { transition-delay: var(--d, 0ms); }

/* sticky mobile bar lifts once the page moves */
.topbar { transition: box-shadow .25s var(--ease); }
body.scrolled .topbar { box-shadow: 0 12px 26px rgba(0, 0, 0, .5); }

/* chrome */
::selection { background: rgba(184, 48, 63, .45); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #140f0f; }
::-webkit-scrollbar-thumb { background: #3a2c29; border-radius: 99px; border: 3px solid #140f0f; }
::-webkit-scrollbar-thumb:hover { background: #5b4540; }

@media (max-width: 600px) {
  .zignum { font-size: 3rem; top: -4px; }
  .rankrow .rk { width: 34px; height: 34px; font-size: 1rem; }
}

/* empty tray wells must not read as bright plates */
.slot--empty { background: rgba(0, 0, 0, .32); border-style: dashed; border-color: var(--line); }

/* hero side column fills to the height of the main column */
.bento { align-items: stretch; }
.bento-side > .tile:last-child { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }

/* keep the editorial numeral inside the column it belongs to */
.zigrow { overflow: hidden; }
.zignum { right: 14px; }
.zigrow:nth-child(even) .zignum { right: auto; left: 14px; }

/* the buy box used to be sticky, which let it scroll down over the
   "how it sits in its class" panel that shares its column */
.buybox { position: static; }
.pright { position: sticky; top: 20px; align-self: start; }
@media (max-width: 1040px) { .pright { position: static; } }
