/* NTE A6 Tier List — unofficial fan guide styles */
:root {
  --bg: #0e1017;
  --bg2: #151926;
  --card: #1c2133;
  --card-hover: #242b42;
  --border: #2c3450;
  --text: #e8ecf5;
  --muted: #9aa5bf;
  --accent: #6f7cf7;
  --accent2: #3ecfa3;
  --radius: 12px;
  --maxw: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; /* anchors never hide behind the sticky header */ }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header / nav ---------- */
.site-header {
  background: linear-gradient(135deg, #171c2e 0%, #1a1430 100%);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.logo {
  font-weight: 800; font-size: 1.05rem; letter-spacing: .5px;
  background: linear-gradient(90deg, #8f9bff, #3ecfa3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.logo small { display: block; font-size: .6rem; font-weight: 500; color: var(--muted); -webkit-text-fill-color: var(--muted); letter-spacing: 1.5px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); padding: 7px 12px; border-radius: 8px;
  font-size: .88rem; font-weight: 600; text-decoration: none;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav a.active { color: #fff; background: var(--accent); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px 16px 60px; }
.page-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.page-sub { color: var(--muted); margin-bottom: 22px; max-width: 720px; }

.notice {
  background: rgba(111,124,247,.1); border: 1px solid rgba(111,124,247,.35);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 22px;
  font-size: .9rem; color: #c6cdf5;
}
.notice strong { color: #fff; }

/* ---------- hero (home) ---------- */
.hero {
  text-align: center; padding: 76px 16px 44px; /* generous top clearance below the sticky header */
  background:
    radial-gradient(ellipse 60% 80% at 30% 10%, rgba(111,124,247,.18), transparent),
    radial-gradient(ellipse 50% 70% at 75% 20%, rgba(62,207,163,.12), transparent);
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.hero h1 span { background: linear-gradient(90deg, #8f9bff, #3ecfa3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700;
  font-size: .95rem; text-decoration: none; transition: transform .12s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.info-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.info-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.info-card .tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: 1px; padding: 3px 9px; border-radius: 20px; margin-bottom: 10px; }
.tag-a0 { background: rgba(62,207,163,.15); color: #3ecfa3; border: 1px solid rgba(62,207,163,.4); }
.tag-a6 { background: rgba(232,179,75,.15); color: #e8b34b; border: 1px solid rgba(232,179,75,.4); }
.info-card p { color: var(--muted); font-size: .92rem; }

.fact-list { list-style: none; margin: 14px 0; }
.fact-list li {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; margin-bottom: 10px; font-size: .92rem; color: var(--muted);
}
.fact-list li::before { content: "◆ "; color: var(--accent2); }

/* ---------- filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; align-items: center;
}
.filters .flabel { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .5px; margin-right: 2px; }
.chip {
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
  padding: 6px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all .12s ease;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.el.on { color: #0e1017; }
.filters .reset { margin-left: auto; background: none; border: none; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; }

/* ---------- tier rows ---------- */
.tier-row {
  display: flex; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; background: var(--bg2);
}
.tier-label {
  flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 900; color: #10131c; padding: 10px 0;
}
.tier-cards { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; align-items: flex-start; }
.tier-empty { color: var(--muted); font-size: .85rem; align-self: center; padding: 4px; }
@media (max-width: 560px) {
  .tier-row { flex-direction: column; }
  .tier-label { flex-direction: row; gap: 8px; padding: 6px; font-size: 1.2rem; flex-basis: auto; }
}

/* ---------- character card ---------- */
.char-card {
  display: block; width: 132px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 0 0 10px; text-align: center; cursor: pointer;
  transition: all .12s ease; position: relative; overflow: visible;
  color: var(--text); text-decoration: none;
}
.char-card:hover { text-decoration: none; }
.cscore { font-size: .72rem; color: var(--accent2); font-weight: 700; margin-top: 4px; }

/* portrait area (3:4) — replace the letter placeholder with a real
   thumbnail later by setting `portrait: "img/name.webp"` in data.js */
.cportrait {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 3 / 4; border-radius: 11px 11px 0 0;
  font-weight: 800; font-size: 2.1rem; letter-spacing: 1px;
  border-bottom: 2px solid; /* element color inline */
  margin-bottom: 8px;
}
img.cportrait { object-fit: cover; background: #10131c; }
.char-card:hover { background: var(--card-hover); transform: translateY(-2px); border-color: var(--accent); }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; color: #0e1017;
  border: 3px solid; /* element color set inline */
}
img.avatar { object-fit: cover; background: #10131c; } /* portrait slot — used once thumbnails are added */
.char-card .cname { font-size: .92rem; font-weight: 700; line-height: 1.2; margin-bottom: 4px; padding: 0 6px; }
.char-card .cmeta { font-size: .72rem; color: var(--muted); padding: 0 6px; }
.badge {
  position: absolute; top: -7px; right: -7px; font-size: .6rem; font-weight: 800;
  padding: 2px 7px; border-radius: 10px; background: #10131c; border: 1px solid var(--border);
}
.badge.rank-S { color: #e8b34b; border-color: #e8b34b66; }
.badge.rank-A { color: #b78bf5; border-color: #b78bf566; }
.badge.free { top: auto; bottom: -7px; right: 50%; transform: translateX(50%); color: #3ecfa3; border-color: #3ecfa366; }
.delta { position: absolute; top: -7px; left: -7px; font-size: .62rem; font-weight: 800; padding: 2px 6px; border-radius: 10px; background: #10131c; }
.delta.up { color: #3ecfa3; border: 1px solid #3ecfa366; }
.delta.down { color: #ff5d5d; border: 1px solid #ff5d5d66; }
.delta.adj { color: #e8b34b; border: 1px solid #e8b34b66; top: auto; bottom: -7px; left: -7px; }
.tier-row.drop-hint { outline: 2px dashed var(--accent2); outline-offset: 2px; }
.char-card[draggable="true"] { cursor: grab; touch-action: none; }
.char-card[draggable="true"]:active { cursor: grabbing; }
.drag-ghost {
  position: fixed; z-index: 999; pointer-events: none;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem;
  padding: 6px 14px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.5);
}

/* ---------- editor page ---------- */
.ed-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ed-row .ed-name { flex: 0 0 130px; font-weight: 700; font-size: .9rem; }
.ed-group { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.ed-tier { font-weight: 900; font-size: 1.05rem; width: 22px; text-align: center; }
.ed-btn {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 2px 9px; cursor: pointer; font-size: .85rem;
}
.ed-btn:hover { border-color: var(--accent); }
.ed-btn.reset { font-size: .7rem; color: var(--muted); }
.ed-note { font-size: .74rem; color: #e8b34b; }
.crop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.crop-cell { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px; text-align: center; }
.crop-cell img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; }
.crop-cell select, .crop-cell input {
  width: 100%; margin-top: 6px; background: #10131c; color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; padding: 5px; font-size: .8rem;
}
.ed-export {
  width: 100%; min-height: 130px; background: #10131c; color: #c9d1e6;
  border: 1px solid var(--border); border-radius: 8px; padding: 10px;
  font-family: Consolas, monospace; font-size: .75rem; margin-top: 8px;
}

/* larger cards on characters page */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.char-grid .char-card { width: auto; }
@media (max-width: 480px) {
  .char-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .char-card { width: 116px; }
  .cportrait { font-size: 1.7rem; }
}

/* ---------- modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(5,7,12,.75); z-index: 100;
  display: none; align-items: flex-start; justify-content: center; padding: 30px 14px; overflow-y: auto;
}
.modal-back.open { display: flex; }
.modal {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  max-width: 620px; width: 100%; padding: 24px; position: relative;
}
.modal .close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal .close:hover { color: #fff; }
.modal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.modal-head .avatar { margin: 0; width: 62px; height: 62px; }
.modal-head h2 { font-size: 1.3rem; }
.modal-head .sub { color: var(--muted); font-size: .85rem; }
.pill { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin: 2px 4px 2px 0; border: 1px solid var(--border); color: var(--muted); }
.tier-pills { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.tier-pill { flex: 1; min-width: 130px; border-radius: 10px; padding: 10px 14px; border: 1px solid var(--border); background: var(--card); }
.tier-pill .tp-label { font-size: .68rem; font-weight: 800; letter-spacing: 1px; color: var(--muted); }
.tier-pill .tp-tier { font-size: 1.5rem; font-weight: 900; }
.modal h4 { margin: 14px 0 4px; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--accent2); }
.modal p { font-size: .92rem; color: #c9d1e6; }
.modal .todo { color: #e8b34b; font-size: .82rem; }
.scorebars { margin-top: 6px; }
.scorebar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .78rem; }
.scorebar .sb-name { flex: 0 0 110px; color: var(--muted); }
.scorebar .sb-track { display: block; flex: 1; height: 8px; background: #10131c; border-radius: 6px; overflow: hidden; }
.scorebar .sb-fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6f7cf7, #3ecfa3); }
.score-note { font-size: .72rem; color: var(--muted); margin-top: 8px; font-style: italic; }

/* ---------- legend / footer ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.legend .lg { font-size: .74rem; color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; }
.legend .lg b { font-size: .8rem; }

.site-footer {
  border-top: 1px solid var(--border); background: var(--bg2);
  padding: 26px 16px; margin-top: 40px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.disclaimer { font-size: .78rem; color: var(--muted); max-width: 800px; }
.disclaimer strong { color: #c9d1e6; }
.footer-links { margin-top: 10px; font-size: .8rem; }
.footer-links a { margin-right: 14px; color: var(--muted); }

/* ---------- character detail page ---------- */
.detail-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.portrait-lg {
  display: flex; align-items: center; justify-content: center; flex: 0 0 132px;
  width: 132px; aspect-ratio: 3 / 4; border-radius: 14px;
  font-weight: 800; font-size: 2.6rem; letter-spacing: 1px;
  border: 2px solid; /* element color inline */
}
img.portrait-lg { object-fit: cover; background: #10131c; }
.detail-head h1 { font-size: 1.7rem; margin-bottom: 2px; }
.detail-head .sub { color: var(--muted); font-size: .92rem; margin-bottom: 6px; }
.head-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.head-chip {
  font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
}
.head-chip b { font-size: .82rem; }
@media (max-width: 520px) {
  .portrait-lg { flex-basis: 104px; width: 104px; font-size: 2rem; }
}
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin: 3px 5px 0 0; border: 1px solid var(--border); color: var(--muted); }
.tier-pills { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.tier-pill { flex: 1; min-width: 150px; border-radius: 12px; padding: 12px 16px; border: 1px solid var(--border); background: var(--card); }
.tier-pill .tp-label { font-size: .68rem; font-weight: 800; letter-spacing: 1px; color: var(--muted); }
.tier-pill .tp-tier { font-size: 1.9rem; font-weight: 900; line-height: 1.1; }
.tier-pill .tp-score { font-size: .78rem; color: var(--muted); }
.section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.section h3 { font-size: .82rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent2); margin-bottom: 10px; }
.section p { font-size: .93rem; color: #c9d1e6; margin-bottom: 8px; }
.section ul { margin: 4px 0 4px 20px; font-size: .9rem; color: #c9d1e6; }
.section li { margin-bottom: 5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.sw-list li::marker { color: var(--accent2); }
.wk-list li::marker { color: #ff5d5d; }
.todo { color: #e8b34b; }
.scorebar { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; font-size: .8rem; }
.scorebar .sb-name { flex: 0 0 175px; color: var(--muted); }
@media (max-width: 480px) { .scorebar .sb-name { flex-basis: 120px; font-size: .72rem; } }
.scorebar .sb-track { display: block; flex: 1; height: 8px; background: #10131c; border-radius: 6px; overflow: hidden; }
.scorebar .sb-fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6f7cf7, #3ecfa3); }
.scorebar .sb-val { flex: 0 0 38px; text-align: right; }
.score-note { font-size: .74rem; color: var(--muted); margin-top: 10px; font-style: italic; }
.formula-line { font-size: .8rem; color: var(--muted); background: #10131c; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-family: Consolas, monospace; }
.awk-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.awk-table td { border-bottom: 1px solid var(--border); padding: 8px 8px; vertical-align: top; color: #c9d1e6; }
.awk-table td:first-child { white-space: nowrap; font-weight: 800; color: var(--accent); width: 90px; }
.awk-table .awk-name { color: #fff; font-weight: 600; }
.crit-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; font-size: .8rem; }
.stance { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .5px; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.stance.agree { background: rgba(62,207,163,.15); color: #3ecfa3; border: 1px solid rgba(62,207,163,.4); }
.stance.partial { background: rgba(232,179,75,.15); color: #e8b34b; border: 1px solid rgba(232,179,75,.4); }
.stance.disagree { background: rgba(255,93,93,.15); color: #ff5d5d; border: 1px solid rgba(255,93,93,.4); }
.src-list { font-size: .8rem; }
.src-list li { margin-bottom: 6px; word-break: break-all; }
.back-link { display: inline-block; margin-bottom: 14px; font-size: .85rem; color: var(--muted); }

/* ---------- confidence badges ---------- */
.conf {
  display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; padding: 2px 9px; border-radius: 20px; vertical-align: middle;
  margin-left: 8px; border: 1px solid;
}
.conf-verified  { color: #3ecfa3; border-color: #3ecfa366; background: #3ecfa314; }
.conf-estimated { color: #8f9bff; border-color: #6f7cf766; background: #6f7cf714; }
.conf-reported  { color: #e8b34b; border-color: #e8b34b66; background: #e8b34b14; }
.conf-todo      { color: #ff9b45; border-color: #ff9b4566; background: #ff9b4514; }
.conf-disputed  { color: #ff5d5d; border-color: #ff5d5d66; background: #ff5d5d14; }
.conf-list { list-style: none; margin: 4px 0 12px 0 !important; }
.conf-list li { margin-bottom: 7px; font-size: .86rem; color: #c9d1e6; padding-left: 0; }
.conf-list li a { font-size: .78rem; }
.score-warning {
  font-size: .78rem; color: #e8b34b; background: #e8b34b12; border: 1px solid #e8b34b40;
  border-radius: 8px; padding: 7px 12px; margin: 10px 0 4px;
}
.audit-chip {
  display: inline-block; font-size: .74rem; color: var(--muted); background: var(--card);
  border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; margin-bottom: 16px;
}
.audit-chip a { color: var(--accent2); }

/* ============================================================
   LIGHT ANIMATIONS — professional, subtle, performance-friendly.
   Everything motion-related lives inside the no-preference media
   query; reduced-motion users get an instant, static site.
   ============================================================ */

/* hero canvas layer (homepage only) */
.hero { position: relative; overflow: hidden; }
#hero-fx {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero > *:not(#hero-fx) { position: relative; z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  /* hero title reveal — enters as the golden "NTE" hands off (~2.7s) */
  .hero h1 { animation: heroReveal .8s cubic-bezier(.2,.7,.3,1) 2.7s backwards; }
  .hero p, .hero .hero-btns, .hero .audit-chip { animation: heroReveal .7s ease 3.0s backwards; }
  @keyframes heroReveal {
    from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(3px); }
    to   { opacity: 1; transform: none; filter: none; }
  }

  /* card hover lift + glow */
  .char-card { transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease; }
  .char-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 14px rgba(111,124,247,.18);
  }

  /* fade / slide-in when tier lists & grids (re)render, gentle stagger */
  .tier-cards .char-card, .char-grid .char-card { animation: cardIn .34s ease backwards; }
  .tier-cards .char-card:nth-child(2), .char-grid .char-card:nth-child(2) { animation-delay: .03s; }
  .tier-cards .char-card:nth-child(3), .char-grid .char-card:nth-child(3) { animation-delay: .06s; }
  .tier-cards .char-card:nth-child(4), .char-grid .char-card:nth-child(4) { animation-delay: .09s; }
  .tier-cards .char-card:nth-child(5), .char-grid .char-card:nth-child(5) { animation-delay: .12s; }
  .tier-cards .char-card:nth-child(6), .char-grid .char-card:nth-child(6) { animation-delay: .15s; }
  .tier-cards .char-card:nth-child(7), .char-grid .char-card:nth-child(7) { animation-delay: .18s; }
  .tier-cards .char-card:nth-child(8), .char-grid .char-card:nth-child(8) { animation-delay: .21s; }
  .tier-cards .char-card:nth-child(n+9), .char-grid .char-card:nth-child(n+9) { animation-delay: .24s; }
  @keyframes cardIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }

  /* portrait fade-in on load (JS adds .img-in when each image loads) */
  img.cportrait, img.portrait-lg { opacity: 0; transition: opacity .45s ease; }
  img.cportrait.img-in, img.portrait-lg.img-in { opacity: 1; }

  /* drag-and-drop target row: gentle pulsing highlight */
  .tier-row { transition: outline-color .2s ease, background-color .2s ease; }
  .tier-row.drop-hint { animation: dropPulse 1.1s ease-in-out infinite; background: rgba(111,124,247,.05); }
  @keyframes dropPulse {
    0%, 100% { outline-color: rgba(62,207,163,.9); }
    50%      { outline-color: rgba(62,207,163,.35); }
  }

  /* section reveal on scroll (JS adds .rv then .rv-in when visible) */
  .rv { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.3,1); }
  .rv-in { opacity: 1; transform: none; }

  /* confidence badges: tiny pop when their section appears */
  .rv-in .conf { animation: badgeIn .32s cubic-bezier(.3,1.4,.5,1) backwards .12s; }
  @keyframes badgeIn {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: none; }
  }

  /* smooth interactive elements */
  .chip, .btn, .ed-btn, .nav a { transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .15s ease; }
  .chip:active, .btn:active, .ed-btn:active { transform: scale(.96); }
  .scorebar .sb-fill { transition: width .6s cubic-bezier(.2,.7,.3,1); }
}

/* reduced motion: kill all animation & transitions site-wide, and make
   any JS-revealed / image-fade elements fully visible immediately */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  img.cportrait, img.portrait-lg, .rv { opacity: 1 !important; transform: none !important; }
}

/* methodology page */
.method h2 { font-size: 1.15rem; margin: 26px 0 8px; color: #fff; }
.method p, .method li { color: var(--muted); font-size: .93rem; }
.method ul { margin: 8px 0 8px 22px; }
.method table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .88rem; }
.method th, .method td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.method th { background: var(--card); }
