/* 0.2.0 — motion, loading feedback, and a more comfortable responsive UI. */
:root { --surface: #fcfcf8; --radius: 12px; }
html { scrollbar-gutter: stable; scroll-padding-top: 120px; }
body { -webkit-font-smoothing: antialiased; }
header { position: sticky; top: 0; z-index: 10; background: #f3f4edf5; backdrop-filter: blur(12px); }
nav { gap: 22px; }
nav a, nav button { min-height: 44px; display: inline-flex; align-items: center; position: relative; transition: color .18s, opacity .18s; }
nav a:hover, nav button:hover { color: #547a19; }
.edition { border: 1px solid var(--line); padding: 5px 7px; border-radius: 4px; letter-spacing: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--acid); padding: 14px 20px; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
#main:focus { outline: none; }
.hero { padding-top: 62px; }
.hero-grid { animation: arrive .5s ease-out both; }
.hero .pill { transition: background .18s, transform .18s; }
.hero .pill:hover { background: #2b3a24; transform: translateY(-2px); }
.pill { min-height: 44px; }
.collection-switch { gap: 8px; padding-bottom: 18px; margin-bottom: 24px; }
.collection-switch button { border-radius: 8px; min-height: 44px; transition: background .18s, color .18s; }
.collection-switch button:not(.selected):hover { background: #e5eadb; color: var(--ink); }
.spotlight { border-radius: var(--radius); box-shadow: 0 12px 28px #1520190d; }
.spotlight-placeholder { grid-column: 1 / -1; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.spotlight-placeholder .eyebrow { color: var(--acid); }
.spotlight-placeholder .skeleton { background: #334030; }
.feature-actions button, .feature-actions a { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
.feature-actions button:hover, .feature-actions a:hover { text-decoration: underline; text-underline-offset: 4px; }
.review-notice, .unrated-note, .unrated-source-note, .method-teaser { border-radius: var(--radius); }
.review-notice { border-left: 3px solid #8aa257; }
.deep-dive-featured { gap: 8px; }
.deep-dive-featured button { min-height: 44px; border-radius: 7px; transition: background .18s; }
.toolbar { padding: 16px 0; align-items: center; }
.tabs { gap: 6px; flex-wrap: wrap; }
.tabs button { min-height: 44px; transition: background .18s, color .18s; }
.tabs button:not(.selected):hover { background: #e4e9dc; color: var(--ink); }
.search-wrap { min-height: 44px; border-radius: 8px; transition: border-color .18s, box-shadow .18s; }
.search-wrap:focus-within { border-color: #69862a; box-shadow: 0 0 0 3px #789c2226; }
.search-wrap input { font-size: 12px; min-width: 0; }
.search-wrap input:focus-visible { outline: none; }
.subtoolbar { line-height: 1.6; padding: 2px 0; }
.subtoolbar > span { flex: 1 1 100%; font-size: 11px; }
.review-filter { min-height: 44px; cursor: pointer; margin: 0; font-size: 11px; }
.review-filter input { width: 17px; height: 17px; margin: 0; }
.subtoolbar > div { margin-left: auto; }
.subtoolbar select { border: 1px solid var(--line); padding: 10px; min-height: 44px; border-radius: 7px; background: var(--surface); font-size: 11px; max-width: 100%; }
.list-head { background: #e8edde; border-radius: 8px 8px 0 0; padding-top: 14px; padding-bottom: 14px; }
.row { transition: background .18s, box-shadow .18s; }
.row:hover { box-shadow: inset 3px 0 #8aa257; }
.row:focus-visible { position: relative; z-index: 1; outline-offset: -3px; border-radius: 4px; }
.row .name { line-height: 1.35; overflow-wrap: anywhere; }
.row .author { line-height: 1.5; }
.row .rank { font-variant-numeric: tabular-nums; }
.case-label { font-size: 9px; }
.deep-dive-badge { padding: 5px 9px; }
#empty, #unratedEmpty { border: 1px dashed var(--line); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
#empty h3, #unratedEmpty h3 { font-size: 22px; }
#empty p, #unratedEmpty p { color: var(--muted); line-height: 1.7; }
#empty button { min-height: 44px; }
.unrated-banner { border-radius: var(--radius); }
dialog { border-radius: 16px; box-shadow: 0 24px 90px #0005; overscroll-behavior: contain; }
dialog[open] { animation: dialog-arrive .22s ease-out both; }
dialog[open]::backdrop { animation: backdrop-arrive .22s ease-out both; }
.close { width: 44px; height: 44px; top: 10px; right: 10px; z-index: 2; transition: background .18s; }
.close:hover { background: #d5ddc9; }
dialog h2 { overflow-wrap: anywhere; }
.compare-pickers select { min-height: 44px; }
.compare-pickers label, .compare-card { min-width: 0; }
.compare-card { border-radius: 10px; }
.compare-card a, .detail-links a { display: inline-flex; align-items: center; min-height: 44px; }
.detail-links { gap: 8px 22px; }
.video-box { border-radius: 8px; }
.video-box button { min-height: 44px; }
.placement-band, .reference-note { overflow-wrap: anywhere; }
.release-label { white-space: nowrap; }
.release-label > span { color: #547a19; }
#ratedPlusPanel { scroll-margin-top: 120px; }
.plus-empty { text-align: center; padding: 45px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.plus-empty p { color: var(--muted); line-height: 1.8; }
.plus-pagination { display: flex; justify-content: center; padding: 24px 0 0; }
.plus-pagination:has(button[hidden]) { display: none; }
.plus-video-note { background: #e8edde; border-radius: 8px; padding: 12px 20px; margin: 20px 0; }
#ratedPlusDetailContent > .deep-dive-badge { margin-bottom: 20px; }
.plus-row .status-chip small { white-space: nowrap; }
.noscript-note { padding: 20px; background: var(--acid); text-align: center; line-height: 1.7; }
.load-state { display: flex; align-items: center; gap: 18px; padding: 28px; border: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.load-state h3 { font-size: 18px; letter-spacing: -.4px; }
.load-state p { color: var(--muted); font-size: 12px; line-height: 1.7; margin-bottom: 0; }
.state-icon { font-size: 32px; color: #6b8b29; }
.retry-button { border: 0; border-radius: 24px; padding: 12px 20px; min-height: 44px; background: var(--ink); color: var(--bg); white-space: nowrap; margin-left: auto; }
button:disabled, input:disabled, select:disabled { opacity: .45; cursor: not-allowed; }
.skeleton { display: block; border-radius: 5px; background: #dce3d4; animation: breathe 1.4s ease-in-out infinite alternate; }
.skeleton-row { display: grid; grid-template-columns: 52px 1fr 52px; gap: 30px; align-items: center; padding: 24px 20px; border-bottom: 1px solid var(--line); }
.skeleton-rank { height: 28px; width: 32px; }
.skeleton-title { height: 50px; width: min(260px, 80%); }
.skeleton-name { height: 18px; width: min(230px, 85%); margin-bottom: 10px; }
.skeleton-text { height: 10px; width: min(340px, 90%); }
.skeleton-text.short { width: min(160px, 65%); }
.site-loader { position: fixed; z-index: 30; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px; background: #111a14f5; color: var(--bg); pointer-events: none; transition: opacity .22s ease; padding: 24px; }
.site-loader.is-leaving { opacity: 0; }
.loader-emblem { position: relative; width: 70px; height: 70px; background: var(--acid); color: var(--dark); display: grid; place-items: center; font: 58px 'Barlow Condensed', Impact, sans-serif; }
.loader-emblem > span { position: absolute; font: 24px Arial, sans-serif; top: 4px; right: 5px; }
.loader-label { display: block; font-size: 10px; letter-spacing: 2px; color: var(--acid); margin-bottom: 10px; }
.site-loader strong { font-size: 17px; font-weight: 500; }
.loader-track { display: block; height: 3px; width: 240px; max-width: 100%; background: #3b4636; overflow: hidden; margin-top: 18px; border-radius: 3px; }
.loader-track::after { content: ''; display: block; width: 40%; height: 100%; background: var(--acid); animation: load-progress 1.3s ease-in-out infinite; }
@keyframes load-progress { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
@keyframes breathe { from { opacity: .5; } to { opacity: 1; } }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdrop-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 800px) {
  .toolbar { align-items: stretch; }
  .subtoolbar > div { margin-left: 0; }
  .subtoolbar { gap: 4px 18px; }
  .feature-actions { flex-wrap: wrap; gap: 4px 20px; }
}
@media (max-width: 520px) {
  html { scroll-padding-top: 125px; }
  .hero { padding-top: 32px; }
  header { gap: 0; padding-top: 10px; padding-bottom: 0; }
  header nav { gap: 8px; }
  nav a, nav button { font-size: 11px; }
  .edition { display: inline-flex; font-size: 9px; margin-left: 4px; padding: 3px 5px; }
  .brand { font-size: 11px; }
  h1 { font-size: clamp(58px, 16vw, 72px); }
  .collection-switch button { flex: 1; }
  .tabs { justify-content: flex-start; gap: 3px; }
  .tabs button { padding: 10px 12px; }
  .subtoolbar > div { width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .review-filter { font-size: 11px; }
  .row .author { font-size: 11px; }
  .row .deep-dive-badge { display: inline-flex; }
  .row { min-height: 88px; }
  .plus-row .rank { font-size: 23px; }
  .list-head { font-size: 8px; }
  .deep-dive-featured button { flex: 1 1 45%; text-align: left; font-size: 10px; }
  .deep-dive-featured > span { width: 100%; margin-bottom: 4px; }
  .compare-pickers, .compare-cards { grid-template-columns: 1fr; }
  .compare-pickers select { margin-bottom: 8px; font-size: 13px; }
  dialog { max-height: 92dvh; padding-top: 42px; }
  .search-wrap input, .subtoolbar select { font-size: 16px; }
  footer { flex-wrap: wrap; }
  footer > .release-label { display: block; width: 100%; font-size: 9px; }
  .load-state { flex-wrap: wrap; padding: 22px; }
  .load-state > div { flex: 1; }
  .retry-button { margin-left: 0; }
  .skeleton-row { grid-template-columns: 32px 1fr 32px; gap: 16px; padding: 24px 10px; }
  .site-loader { gap: 16px; }
  .loader-emblem { width: 50px; height: 50px; flex: 0 0 50px; font-size: 44px; }
  .loader-emblem > span { font-size: 19px; }
  .site-loader strong { font-size: 14px; }
  .loader-track { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
