/* SweepstakeReport — dark luxury editorial magazine, static file:// site */
:root {
  --ink: #0c0b09;
  --ink-2: #12110e;
  --ink-3: #161412;
  --ink-4: #1c1915;
  --ink-5: #241f1a;
  --cream: #f3ead8;
  --cream-soft: #e8dcc8;
  --stone: #a89f91;
  --stone-2: #7d766b;
  --gold: #c9a56a;
  --gold-2: #e0c48a;
  --gold-dim: rgba(201, 165, 106, 0.14);
  --gold-line: rgba(201, 165, 106, 0.32);
  --forest: #1e3d32;
  --forest-2: #2a5646;
  --forest-3: #3d7a62;
  --oxblood: #4a1c22;
  --oxblood-2: #6b2a32;
  --steel: #8ea0b5;
  --steel-2: #6d7f94;
  --amber: #c4923a;
  --amber-2: #a8782c;
  --paper: var(--ink);
  --paper-2: var(--ink-4);
  --paper-3: var(--ink-3);
  --rule: rgba(232, 220, 200, 0.1);
  --rule-strong: rgba(232, 220, 200, 0.18);
  --grade-a: #e0c48a;
  --grade-a-bg: rgba(201, 165, 106, 0.12);
  --grade-b: #9aacbe;
  --grade-b-bg: rgba(142, 160, 181, 0.12);
  --grade-c: #d4a24a;
  --grade-c-bg: rgba(196, 146, 58, 0.12);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --max: 72rem;
  --tracking: 0.22em;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-modal: 0 40px 90px -24px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(201, 165, 106, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--cream-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01" on, "kern" on;
}

/* Paper grain + faint ink wash */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.9 0 0 0 0 0.78 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(201, 165, 106, 0.07), transparent 50%),
    radial-gradient(ellipse 60% 40% at -10% 110%, rgba(74, 28, 34, 0.28), transparent 55%);
}

body > * { position: relative; z-index: 1; }

main { flex: 1; }

::selection { background: var(--gold); color: var(--ink); }

a { color: inherit; }

img { max-width: 100%; }

button, input, select { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 80;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
}

.focus-ring:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
@media (min-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 3rem)); }
}

.wrap-narrow {
  width: min(42rem, calc(100% - 2rem));
  margin-inline: auto;
}
@media (min-width: 640px) {
  .wrap-narrow { width: min(42rem, calc(100% - 3rem)); }
}

.mast-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.muted { color: var(--stone); }
.faint { color: var(--stone-2); }

.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--cream);
}

.rank-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" on;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(12, 11, 9, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(12, 11, 9, 0.82);
  border-bottom-color: var(--gold-line);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}
.brand-name {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--cream);
}
.brand-tag {
  display: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.15rem;
}
@media (min-width: 640px) {
  .brand-tag { display: block; }
}
.logo {
  width: 36px;
  height: 36px;
  color: var(--gold);
  flex-shrink: 0;
}

.nav-desk {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
@media (min-width: 768px) {
  .nav-desk { display: flex; }
}
.nav-desk a {
  position: relative;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--stone);
  transition: color 0.3s var(--ease);
}
.nav-desk a::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-desk a:hover { color: var(--cream); }
.nav-desk a:hover::after { transform: scaleX(1); }
.nav-desk a.is-active {
  color: var(--cream);
}
.nav-desk a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--rule-strong);
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--cream-soft);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold-2); }
@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--rule);
  padding: 0.75rem 1rem 1rem;
  background: rgba(12, 11, 9, 0.92);
}
.nav-mobile.is-open { display: block; }
@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}
.nav-mobile a {
  display: block;
  padding: 0.55rem 0;
  text-decoration: none;
  font-size: 1.05rem;
  color: var(--cream-soft);
}

/* NPN badge */
.npn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(61, 122, 98, 0.45);
  background: rgba(30, 61, 50, 0.4);
  color: #b7d4c6;
  font-family: var(--mono);
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  font-size: 11px;
}
.npn.compact {
  padding: 0.15rem 0.5rem;
  font-size: 10px;
}
.npn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest-3);
  box-shadow: 0 0 8px rgba(61, 122, 98, 0.7);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-forest {
  background: var(--forest);
  color: var(--cream);
  border-color: rgba(201, 165, 106, 0.35);
}
.btn-forest:hover {
  background: var(--forest-2);
  box-shadow: 0 0 24px rgba(201, 165, 106, 0.18);
}
.btn-ghost {
  border-color: var(--gold-line);
  color: var(--cream);
}
.btn-ghost:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}
.btn-paper {
  background: var(--cream);
  color: var(--ink);
}
.btn-paper:hover { background: var(--gold-2); }
.btn-line {
  border-color: rgba(243, 234, 216, 0.28);
  color: var(--cream);
}
.btn-line:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--gold); }
.link-oe {
  font-size: 0.9rem;
  color: var(--gold-2);
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.3s var(--ease), background-size 0.35s var(--ease);
}
.link-oe:hover {
  color: var(--cream);
  background-size: 100% 1.5px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 70% 80% at 85% 10%, rgba(201, 165, 106, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(74, 28, 34, 0.35), transparent 50%),
    var(--ink-2);
  background-size: 120% 120%, 140% 140%, auto;
  animation: hero-wash 22s ease-in-out infinite alternate;
}
@keyframes hero-wash {
  from { background-position: 0% 40%, 10% 100%, 0 0; }
  to { background-position: 100% 60%, 0% 80%, 0 0; }
}
.hero-rings {
  pointer-events: none;
  position: absolute;
  right: -4rem;
  top: -4rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  border: 1px solid rgba(201, 165, 106, 0.22);
}
.hero-rings::after {
  content: "";
  position: absolute;
  right: 2rem;
  top: 7rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  border: 1px solid rgba(201, 165, 106, 0.14);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    padding: 4.5rem 0;
  }
}
.hero h1 {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--cream);
}
.lede {
  margin: 1.4rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--stone);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.why-card {
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(28, 25, 21, 0.92), rgba(18, 17, 14, 0.92));
  padding: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(243, 234, 216, 0.08), 0 24px 48px -28px rgba(0, 0, 0, 0.7);
}
.why-card h2 {
  margin: 0.7rem 0 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 560;
  line-height: 1.25;
  color: var(--cream);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.stat-row dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--stone-2);
}
.stat-row dd {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-size: 1.85rem;
  color: var(--gold-2);
}

.disclaimer {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(74, 28, 34, 0.28);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: var(--stone);
}

.section {
  padding: 3.5rem 0;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.section-head h2 {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--cream);
}

/* Ranking rows — scoreboard magazine spread */
.rank-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 -1px 0 var(--rule), 0 1px 0 var(--rule);
}
.rank-list li {
  border-bottom: 1px solid var(--rule);
}
.rank-list li:last-child { border-bottom: 0; }

.rank-row {
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 1rem;
  padding: 1.05rem 0.5rem;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.rank-row:hover {
  background: linear-gradient(90deg, rgba(201, 165, 106, 0.07), rgba(201, 165, 106, 0.02) 42%, transparent);
  transform: translateY(-2px);
  box-shadow: inset 3px 0 0 var(--gold), 0 18px 36px -24px rgba(0, 0, 0, 0.7);
}
@media (min-width: 640px) {
  .rank-row { gap: 1.5rem; padding: 1.15rem 0.65rem; }
}
.rank-idx {
  width: 2.5rem;
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  font-style: italic;
}
@media (min-width: 640px) {
  .rank-idx { width: 3.5rem; font-size: 2.25rem; }
}
.rank-body { min-width: 0; flex: 1; }
.rank-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.rank-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--cream);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease);
}
@media (min-width: 640px) {
  .rank-title { font-size: 1.5rem; }
}
.rank-row:hover .rank-title {
  background-size: 100% 1px;
}
.featured-flag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid var(--gold-line);
  padding: 0.1rem 0.4rem;
}
.rank-row:has(.featured-flag) {
  background: linear-gradient(90deg, rgba(201, 165, 106, 0.06), transparent 55%);
}
.rank-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--stone);
}
.rank-sum {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--stone);
}
@media (min-width: 640px) {
  .rank-sum { display: block; }
}
.rank-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.chip-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--stone-2);
}
.rank-side {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
}
@media (min-width: 640px) {
  .rank-side { display: flex; }
}
.rank-score {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  color: var(--cream);
}
.rank-score-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-2);
  white-space: nowrap;
}

/* Letter grades */
.grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.15rem 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  border: 1.5px solid currentColor;
  transition: box-shadow 0.4s var(--ease);
}
.grade-lg {
  min-width: 3.1rem;
  padding: 0.35rem 0.55rem;
  font-size: 1.65rem;
}
.grade-a {
  color: var(--grade-a);
  background-color: var(--grade-a-bg);
  background-image: linear-gradient(115deg, transparent 32%, rgba(255, 244, 214, 0.28) 50%, transparent 68%);
  background-size: 220% 100%;
  animation: foil 4.2s var(--ease) 0.9s 2;
}
.grade-b { color: var(--grade-b); background: var(--grade-b-bg); }
.grade-c { color: var(--grade-c); background: var(--grade-c-bg); }
@keyframes foil {
  0% { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}
.rank-row:hover .grade-a,
.rank-row:focus-visible .grade-a {
  box-shadow: 0 0 22px rgba(201, 165, 106, 0.38);
}
.rank-row:hover .grade-b,
.rank-row:focus-visible .grade-b {
  box-shadow: 0 0 18px rgba(142, 160, 181, 0.32);
}
.rank-row:hover .grade-c,
.rank-row:focus-visible .grade-c {
  box-shadow: 0 0 18px rgba(212, 160, 72, 0.3);
}

.grade-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--gold-line);
  background: var(--ink-4);
  padding: 1rem 1.15rem;
  box-shadow: inset 0 1px 0 rgba(243, 234, 216, 0.06);
}
.grade-box h3 {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.grade-box p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--cream-soft);
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .filters {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.filters label { display: block; flex: 1; }
.filters .grow { flex: 1.4; }
.field-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--stone);
}
.filters input,
.filters select {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid var(--rule-strong);
  background: var(--ink-4);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--cream-soft);
  transition: border-color 0.3s var(--ease);
}
.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: var(--gold);
}
.filters input::placeholder { color: var(--stone-2); }
@media (min-width: 640px) {
  .filters select { width: 11.5rem; }
}

.empty-msg {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--stone);
}

/* Featured Chance Infinite band */
.feature-band {
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  background:
    radial-gradient(ellipse 80% 80% at 90% 0%, rgba(201, 165, 106, 0.1), transparent 50%),
    linear-gradient(180deg, #3a161b 0%, #2a1014 100%);
  color: var(--cream);
}
.feature-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
}
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: 4fr 8fr; }
}
.feature-band .mast-kicker { color: var(--gold-2); }
.feature-band h2 {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 600;
  font-style: italic;
  color: var(--cream);
}
.feature-facts {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .feature-facts { grid-template-columns: 1fr 1fr; }
}
.feature-facts li {
  border: 1px solid rgba(201, 165, 106, 0.22);
  background: rgba(12, 11, 9, 0.22);
  padding: 0.75rem;
  font-size: 0.9rem;
}
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  border: 1px solid var(--rule-strong);
  background: var(--ink-3);
  padding: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(243, 234, 216, 0.06);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: inset 0 1px 0 rgba(243, 234, 216, 0.1), 0 20px 40px -28px rgba(0, 0, 0, 0.65);
}
.card h3 {
  margin: 0.5rem 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cream);
}
.card h3 a {
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease);
}
.card h3 a:hover { background-size: 100% 1px; }

.npn-panel {
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(30, 61, 50, 0.28), rgba(18, 17, 14, 0.6));
  padding: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(243, 234, 216, 0.06);
}
@media (min-width: 640px) {
  .npn-panel { padding: 2rem; }
}
.npn-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
}

.page-hero {
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(201, 165, 106, 0.08), transparent 55%),
    var(--ink-2);
  padding: 2.5rem 0;
}
.page-hero h1 {
  margin: 0.5rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--cream);
}
.weight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--stone);
}
.weight-row span { color: var(--cream-soft); }

/* Prose */
.prose { font-size: 1.0625rem; line-height: 1.7; color: var(--cream-soft); }
.prose p + p { margin-top: 1.15em; }
.prose h2 {
  font-family: var(--display);
  font-weight: 560;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  margin: 2.2rem 0 0.7rem;
  color: var(--cream);
}
.prose ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}
.prose li + li { margin-top: 0.5rem; }
.prose a {
  color: var(--gold-2);
  text-decoration-color: var(--gold-line);
  text-underline-offset: 3px;
}

.verdict {
  margin: 0;
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--cream);
}

.score-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .score-grid { grid-template-columns: 1fr 1fr; }
}
.score-cell {
  border: 1px solid var(--rule-strong);
  background: var(--ink-4);
  padding: 0.75rem;
}
.score-cell header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--cream-soft);
}
.score-cell .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--stone);
  white-space: nowrap;
}
.bar {
  margin-top: 0.5rem;
  height: 6px;
  background: rgba(232, 220, 200, 0.1);
}
.bar > span {
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.index-list li {
  border-bottom: 1px solid var(--rule);
  padding: 2rem 0;
  transition: padding-left 0.35s var(--ease);
}
.index-list li:hover { padding-left: 0.35rem; }
.index-list h2 {
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.index-list h2 a {
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease);
}
.index-list h2 a:hover { background-size: 100% 1px; }

.sources {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.sources h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
}
.sources ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}
.sources a {
  color: var(--gold-2);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 4px;
}
.sources a:hover { text-decoration-color: var(--gold); }

.caveats {
  margin: 2rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--stone);
}

.rubric {
  border: 1px solid var(--rule-strong);
  background: var(--ink-4);
  margin: 1.25rem 0 0;
}
.rubric dt {
  padding: 0.85rem 1rem 0.15rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
}
.rubric dd {
  margin: 0;
  padding: 0 1rem 0.9rem;
  color: var(--stone);
  border-bottom: 1px solid var(--rule);
}
.rubric div:last-child dd { border-bottom: 0; }

/* Modal — spotlighted card */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-root.is-open { display: flex; }
@media (min-width: 640px) {
  .modal-root {
    align-items: center;
    padding: 1.5rem;
  }
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 4, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.modal-root.is-visible .modal-overlay { opacity: 1; }
.modal-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 42rem;
  max-height: 92vh;
  overflow: auto;
  background: var(--ink-3);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-modal), inset 0 1px 0 rgba(243, 234, 216, 0.08);
  color: var(--cream-soft);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.modal-root.is-visible .modal-panel {
  opacity: 1;
  transform: none;
}
.modal-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  background: rgba(22, 20, 18, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  z-index: 1;
}
@media (min-width: 640px) {
  .modal-head { padding: 1rem 1.75rem; }
}
.modal-head h2 {
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.modal-close {
  flex-shrink: 0;
  border: 1px solid var(--rule-strong);
  background: transparent;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--cream-soft);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.modal-close:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--cream);
}
.modal-body {
  padding: 1.5rem 1.25rem 2rem;
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 640px) {
  .modal-body { padding: 1.5rem 1.75rem 2rem; }
}
.modal-dl {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .modal-dl { grid-template-columns: 1fr 1fr; }
}
.modal-dl .span-2 { grid-column: 1 / -1; }
.modal-dl dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--gold);
}
.modal-dl dd { margin: 0.3rem 0 0; }
.score-lines { list-style: none; margin: 1rem 0 0; padding: 0; }
.score-lines li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.score-lines .lab { width: 9.5rem; flex-shrink: 0; color: var(--stone); }
.score-lines .bar { flex: 1; }
.score-lines .n {
  width: 2rem;
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold-2);
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}
@media (min-width: 640px) {
  .modal-actions { flex-direction: row; }
}
body.modal-open { overflow: hidden; }

/* Footer */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--gold-line);
  background:
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(74, 28, 34, 0.45), transparent 50%),
    var(--ink-2);
  color: var(--cream-soft);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--cream);
}
.site-footer .logo { width: 24px; height: 24px; color: var(--gold); }
.footer-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.site-footer ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.site-footer li + li { margin-top: 0.5rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-fine {
  border-top: 1px solid var(--rule);
  padding: 1rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--stone-2);
}

/* Page-load reveals */
.hero-grid > *,
.page-hero .wrap > *,
.page-hero .wrap-narrow > *,
.rank-list li,
.card,
.index-list li {
  animation: rise 0.55s var(--ease) both;
  animation-delay: var(--reveal-delay, 0s);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero { animation: none; }
  .rank-row:hover,
  .card:hover,
  .index-list li:hover {
    transform: none;
  }
  .modal-panel { transform: none; }
}

.sort-inline {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 12rem;
}
.sort-inline .field-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--stone-2);
}
.sort-inline select {
  background: var(--ink-4);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  color: var(--cream);
}
