@charset "utf-8";
/* ============================================================================
   AnimalRanking — Tropical Jungle Design System
   ============================================================================ */

:root {
  /* palette */
  --jungle-deep:   #0d1f16;
  --jungle:        #12301f;
  --forest:        #2f6b4a;   /* dark green that stays legible on light cards */
  --forest-deep:   #0d1f16;   /* alias used by inline styles (dark bg) */
  --moss:          #2e6b45;
  --leaf:          #5aa860;
  --leaf-lt:       #8fd18a;
  --amber:         #f2a53c;
  --amber-deep:    #d97a1e;
  --sun:           #ffd97a;
  --paper:         #f7f3e6;
  --card:          #fffdf5;
  --ink:           #1c2a22;
  --ink-soft:      #5d6f62;
  --cream-text:    #f3f7ee;
  --cream-soft:    #b9c9b6;
  --line:          #2f5a40;
  --line-light:    #e3dcc4;
  --radius: 16px;
  --shadow:        0 18px 44px -16px rgba(6, 20, 12, .6);
  --shadow-sm:     0 8px 20px -10px rgba(6, 20, 12, .45);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(255, 217, 122, .18), transparent 60%),
    radial-gradient(900px 560px at 8% 108%, rgba(90, 168, 96, .14), transparent 62%),
    linear-gradient(180deg, #173a22 0%, #12301f 42%, #0f2a1b 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ---------------------------------------------------------------------------
   CANOPY LAYERS
   --------------------------------------------------------------------------- */
.canopy {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(130% 95% at 50% 6%, transparent 42%, rgba(6, 18, 10, .5) 100%),
    linear-gradient(180deg, rgba(23, 58, 34, .30), rgba(13, 31, 22, .5));
}
.canopy-scene { position: absolute; inset: 0; }
.canopy-scene svg { position: absolute; }

/* god rays */
.rays { position: absolute; inset: 0; opacity: .5; mix-blend-mode: screen; }
.ray {
  position: absolute; top: -12%; width: 13vw; height: 130%;
  background: linear-gradient(180deg, rgba(255, 224, 150, .5), rgba(255, 224, 150, 0) 72%);
  filter: blur(22px); transform-origin: top center;
  animation: raySway 9s ease-in-out infinite alternate;
}
.ray:nth-child(1) { left: 12%; transform: rotate(18deg); opacity: .5; }
.ray:nth-child(2) { left: 35%; transform: rotate(22deg); opacity: .34; animation-delay: -3s; width: 9vw; }
.ray:nth-child(3) { left: 58%; transform: rotate(15deg); opacity: .46; animation-delay: -6s; }
.ray:nth-child(4) { left: 81%; transform: rotate(20deg); opacity: .3; animation-delay: -1.5s; width: 8vw; }
@keyframes raySway { 0% { transform: rotate(15deg) translateX(0); opacity: .32; } 100% { transform: rotate(23deg) translateX(18px); opacity: .58; } }

/* tree bands */
.trees-far, .trees-mid, .trees-near { position: absolute; left: 0; right: 0; bottom: 0; }
.trees-far  { height: 58%; opacity: .5; filter: blur(2.4px); }
.trees-mid  { height: 46%; opacity: .82; filter: blur(1px); }
.trees-near { height: 34%; opacity: .95; }
.trees-far svg, .trees-mid svg, .trees-near svg { position: absolute; bottom: 0; }

/* swaying fronds / branches / vines */
.fronds { position: absolute; }
.frond  { position: absolute; transform-origin: var(--o, bottom center); animation: frondSway var(--dur, 7s) ease-in-out infinite alternate; }
@keyframes frondSway { 0% { transform: rotate(var(--r0, -3deg)); } 100% { transform: rotate(var(--r1, 3deg)); } }
.branch { position: absolute; transform-origin: var(--o, left center); animation: branchWave var(--dur, 6s) ease-in-out infinite alternate; }
@keyframes branchWave { 0% { transform: rotate(var(--r0, -2deg)) translateY(0); } 100% { transform: rotate(var(--r1, 2.5deg)) translateY(5px); } }
.vine   { position: absolute; transform-origin: top center; animation: vineSway var(--dur, 8s) ease-in-out infinite alternate; }
@keyframes vineSway { 0% { transform: rotate(var(--r0, -4deg)); } 100% { transform: rotate(var(--r1, 4deg)); } }

/* drifting leaves */
.leaf-particle { position: absolute; top: -6%; animation: leafFall var(--dur, 12s) linear infinite; will-change: transform; }
.leaf-particle svg { display: block; }
@keyframes leafFall {
  0%   { transform: translate3d(0, -8vh, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: var(--op, .8); }
  90%  { opacity: var(--op, .8); }
  100% { transform: translate3d(var(--dx, 40px), 112vh, 0) rotate(var(--spin, 320deg)); opacity: 0; }
}

/* fireflies */
.firefly {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 150, .95), rgba(255, 236, 150, 0));
  box-shadow: 0 0 10px 3px rgba(255, 224, 130, .5);
  animation: fireflyDrift var(--dur, 10s) ease-in-out infinite alternate;
}
@keyframes fireflyDrift {
  0%   { transform: translate(0,0) scale(.8); opacity: .2; }
  50%  { opacity: .95; }
  100% { transform: translate(var(--dx, 30px), var(--dy, -40px)) scale(1.2); opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  .canopy .frond, .canopy .branch, .canopy .vine, .canopy .ray,
  .canopy .leaf-particle, .canopy .firefly,
  .brand .paw, .foot-hop, .leaf-divider span, .bar-fill, .anim { animation: none !important; }
}

/* content layer */
.site-content { position: relative; z-index: 1; }
.page { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 26px 20px 60px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.anim { animation: fadeUp .6s ease both; }
.anim-d1 { animation-delay: .08s; } .anim-d2 { animation-delay: .16s; }
.anim-d3 { animation-delay: .24s; } .anim-d4 { animation-delay: .32s; }

/* ---------------------------------------------------------------------------
   HEADER — frosted glass
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 18px; padding: 14px 24px;
  background: linear-gradient(180deg, rgba(13, 31, 22, .72), rgba(13, 31, 22, .5));
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(143, 209, 138, .18);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 800; letter-spacing: -.3px;
  color: var(--cream-text); text-decoration: none; white-space: nowrap; font-family: var(--serif);
}
.brand .paw {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, #ffd97a, #d97a1e);
  border-radius: 50%; font-size: 22px;
  box-shadow: 0 4px 14px -4px rgba(217, 122, 30, .7), inset 0 -3px 8px rgba(0,0,0,.15);
  animation: pawBreathe 4s ease-in-out infinite;
}
@keyframes pawBreathe { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.06) rotate(-4deg); } }
.brand em { font-style: normal; color: var(--sun); }

.site-search { position: relative; flex: 1; max-width: 460px; }
.site-search input {
  width: 100%; padding: 11px 40px 11px 16px;
  border: 1px solid rgba(143, 209, 138, .3); border-radius: 999px;
  background: rgba(255, 253, 245, .92); font-size: 14px; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.site-search input:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(90, 168, 96, .25); }
.site-search .search-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 18px; pointer-events: none; }
.site-search .search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--line-light); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden; display: none; z-index: 200;
}
.site-search .search-results.open { display: block; }
.search-result { display: flex; align-items: center; gap: 10px; padding: 9px 14px; text-decoration: none; color: var(--ink); font-size: 14px; }
.search-result:hover, .search-result.active { background: #f0ead6; }
.search-result img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; background: #f0ead6; }
.search-result .sr-name { flex: 1; }
.search-result .sr-emoji { color: var(--ink-soft); }

.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a { color: var(--cream-soft); text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; transition: color .18s, background .18s; }
.main-nav a:hover { color: var(--sun); background: rgba(255, 217, 122, .1); }
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 10px; }
  .site-search { order: 3; flex-basis: 100%; max-width: none; }
  .main-nav a { padding: 8px 10px; font-size: 13px; }
}

/* ---------------------------------------------------------------------------
   HERO
   --------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,253,245,.96), rgba(247,243,230,.92));
  border: 1px solid var(--line-light); border-radius: 22px;
  box-shadow: var(--shadow); padding: 30px 32px;
}
.hero-card.hero-featured { color: var(--ink); display: flex; flex-direction: column; justify-content: center; }
.hero-deco { position: absolute; font-size: 64px; opacity: .12; pointer-events: none; }
.hero-deco.d1 { top: 18px; right: 30px; animation: leafBob 5s ease-in-out infinite; }
.hero-deco.d2 { bottom: 22px; right: 90px; font-size: 54px; animation: leafBob 6s ease-in-out infinite .5s; }
.hero-deco.d3 { top: 40%; right: 150px; font-size: 48px; animation: leafBob 5.5s ease-in-out infinite 1s; }
.hero-eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; color: var(--moss); margin-bottom: 10px; }
.hero-card h1 { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 48px); line-height: 1.06; margin: 0 0 14px; color: var(--ink); }
.hero-sub { font-size: 16px; color: var(--ink-soft); line-height: 1.6; max-width: 52ch; margin: 0 0 20px; }

.hero-animal {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: rgba(46, 107, 69, .1); border: 1px solid rgba(46, 107, 69, .2);
  border-radius: 14px; padding: 12px; max-width: 460px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hero-animal:hover { transform: translateY(-3px); border-color: var(--leaf); box-shadow: var(--shadow-sm); }
.hero-animal img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: #dfe8d8; }
.hero-animal .ha-name { font-size: 17px; font-weight: 800; color: var(--ink); display: block; }
.hero-animal .ha-meta { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.hero-animal .ha-cta { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--moss); }

/* secondary (browse) hero card */
.hero-card.hero-browse {
  background: linear-gradient(155deg, var(--moss) 0%, var(--leaf) 100%);
  color: var(--cream-text); border: none; display: flex; flex-direction: column; justify-content: center;
}
.hero-card.hero-browse .hero-eyebrow { color: var(--sun); }
.hero-card.hero-browse h1 { font-size: 40px; color: #fff; }
.hero-card.hero-browse .hero-sub { color: rgba(255,255,255,.85); }
.hero-card.hero-browse .btn-browse { background: var(--sun); color: #3a2508; font-weight: 900; text-decoration: none; padding: 12px 22px; border-radius: 12px; font-size: 14px; align-self: flex-start; transition: transform .2s; }
.hero-card.hero-browse .btn-browse:hover { transform: translateY(-2px); }

/* ---------------------------------------------------------------------------
   SECTION HEADERS
   --------------------------------------------------------------------------- */
.section-head { display: flex; align-items: center; gap: 14px; margin: 42px 0 18px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 34px); margin: 0; color: var(--cream-text); text-shadow: 0 3px 16px rgba(0,0,0,.4); }
.section-head .desc { width: 100%; color: var(--cream-soft); font-size: 15px; margin: 2px 0 0; }
.count-pill { background: rgba(90, 168, 96, .2); color: var(--leaf-lt); border: 1px solid rgba(90, 168, 96, .35); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 700; }
.section-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(143, 209, 138, .5), transparent); }

/* simple page h2 (home rankings) */
.page h2.standalone { font-family: var(--serif); color: var(--cream-text); text-shadow: 0 3px 14px rgba(0,0,0,.4); margin: 30px 0 14px; }

/* ---------------------------------------------------------------------------
   RANKING ICON BAR (horizontal chip strip)
   --------------------------------------------------------------------------- */
.rk-bar { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: thin; }
.rk-bar::-webkit-scrollbar { height: 8px; }
.rk-bar::-webkit-scrollbar-thumb { background: rgba(143,209,138,.3); border-radius: 8px; }
.rk-icon {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 96px; padding: 14px 12px; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, var(--card), #fbf7ec);
  border: 1px solid var(--line-light); border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.rk-icon:hover { transform: translateY(-4px); border-color: var(--leaf); box-shadow: var(--shadow); }
.rk-icon.active { border-color: var(--amber); background: linear-gradient(180deg, #fff6e6, #fdeecf); box-shadow: 0 8px 22px -10px rgba(217,122,30,.5); }
.rk-icon .rk-emoji { font-size: 30px; line-height: 1; }
.rk-icon .rk-label { font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.25; }
.rk-icon .rk-count { font-size: 11px; color: var(--ink-soft); }
/* vertical variant (home grid) */
.rk-bar.grid { flex-wrap: wrap; overflow: visible; }
.rk-bar.grid .rk-icon { flex: 1 1 150px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
.rk-bar.grid .rk-icon .rk-emoji { font-size: 26px; }
.rk-bar.grid .rk-icon .rk-label { flex: 1; text-align: left; }
.rk-bar.grid .rk-icon .rk-count { margin-left: auto; }

/* generic card grid */
.grid, .compare-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 560px) { .grid, .compare-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   CARD (base)
   --------------------------------------------------------------------------- */
.card, .rk-icon, .compare-card, .stat, .fact-card, .tax-cell, .prose-card, .rank-row {
  background: linear-gradient(180deg, var(--card), #fbf7ec);
  border: 1px solid var(--line-light); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------------------
   RANKING PAGE
   --------------------------------------------------------------------------- */
.rank-list { display: flex; flex-direction: column; gap: 9px; }
.rank-row {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px; text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.rank-row:hover { transform: translateX(5px); border-color: var(--leaf); box-shadow: var(--shadow); }
.rank-pos { font-size: 18px; font-weight: 800; color: var(--ink-soft); text-align: center; font-family: var(--serif); }
.rank-row.top1 .rank-pos { color: var(--amber-deep); } .rank-row.top3 .rank-pos { color: #b07a3e; }
/* contained so portrait & landscape photos both show the whole animal, no crop */
.rank-img { width: 44px; height: 56px; object-fit: contain; border-radius: 10px; background: #e8efe4; flex: none; }
.rank-name { font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.rank-bar-wrap { position: relative; flex: 1 1 auto; height: 34px; background: rgba(46, 107, 69, .12); border-radius: 10px; overflow: hidden; min-width: 0; }
.rank-val { flex: none; width: 92px; text-align: right; font-size: 15px; font-weight: 800; color: var(--forest); }
.rank-arrow { flex: none; color: var(--ink-soft); font-size: 16px; }
.rank-bar { position: absolute; inset: 0; }
.rank-bar .fill {
  position: absolute; inset: 3px; border-radius: 9px; transform-origin: left center;
  background: linear-gradient(90deg, var(--moss), var(--leaf));
  animation: barGrow 1s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rank-arrow { opacity: 0; transition: opacity .2s; }
.rank-row:hover .rank-arrow { opacity: 1; }
/* curated (no bars): show the "why" line in place of the bar */
.rank-row.curated .rank-bar-wrap, .rank-row.curated .rank-val, .rank-row.curated .rank-arrow { display: none; }
.rank-why { flex: 1 1 auto; min-width: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 680px) {
  .rank-row { gap: 10px; padding: 9px 14px; }
  .rank-img { width: 38px; height: 48px; }
  .rank-bar-wrap { display: none; }
  .rank-val { display: none; }
  .rank-name { font-size: 15px; }
}

/* ---------------------------------------------------------------------------
   ANIMAL PAGE
   --------------------------------------------------------------------------- */
/* hero: landscape photo card on the left, id card on the right */
.animal-hero {
  display: grid; grid-template-columns: minmax(300px, 46%) 1fr; gap: 24px;
  background: linear-gradient(180deg, rgba(255,253,245,.96), rgba(247,243,230,.93));
  border: 1px solid var(--line-light); border-radius: 22px; box-shadow: var(--shadow);
  overflow: hidden; align-items: stretch; padding: 14px;
}
@media (max-width: 720px) { .animal-hero { grid-template-columns: 1fr; } }
/* fills the left column (height driven by the id-card, not an aspect-ratio that
   the grid's stretch can't honour) — the whole animal shows via contain */
.photo-card { border-radius: 14px; overflow: hidden; background: #dfe8d8; min-height: 260px; }
.photo-card img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.animal-id-card { padding: 12px 16px 6px 4px; display: flex; flex-direction: column; }
@media (max-width: 600px) { .animal-id-card { padding: 12px 12px 4px; } }
.id-emoji { font-size: 34px; }
.animal-id-card h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); margin: 4px 0 2px; max-width: 22ch; }
.animal-id-card .sci { font-style: italic; color: var(--ink-soft); font-size: 15px; margin-bottom: 12px; }
.animal-id-card .summary { font-size: 15px; line-height: 1.65; color: var(--ink); margin: 0 0 8px; max-width: 88ch; }
@media (max-width: 600px) { .animal-id-card { padding: 16px 18px 18px; } }

/* stat grid */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
@media (max-width: 560px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { border-radius: 12px; padding: 12px 14px; }
.stat .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--moss); font-weight: 800; }
.stat .stat-value { font-size: 19px; font-weight: 800; color: var(--ink); margin-top: 3px; }
.stat .stat-bar { height: 6px; border-radius: 6px; background: rgba(46,107,69,.12); margin-top: 8px; overflow: hidden; }
.stat .stat-bar .fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--moss), var(--leaf)); }

/* facts block — frosted panel so its chips/cells always sit on a solid surface */
.facts-block {
  margin: 22px 0; padding: 18px 20px 20px;
  background: linear-gradient(180deg, rgba(20, 44, 30, .78), rgba(13, 31, 22, .62));
  border: 1px solid rgba(143, 209, 138, .16); border-radius: 18px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.facts-block h2 { font-family: var(--serif); font-size: 22px; color: var(--cream-text); text-shadow: 0 2px 12px rgba(0,0,0,.55); margin: 0 0 14px; }
.tax-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tax-cell { border-radius: 12px; padding: 12px 14px; }
.tax-cell .tax-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--moss); font-weight: 800; }
.tax-cell .tax-val { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 3px; }
.tax-cell .tax-sci { font-style: italic; }
.fact-card { border-radius: 12px; padding: 13px 16px; margin-bottom: 10px; display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 253, 245, .55); border: 1px solid rgba(143, 209, 138, .22); }
.fact-card .fact-tick { font-size: 15px; font-weight: 800; color: var(--moss); flex: none; line-height: 1.55; }
.fact-card span:last-child, .fact-card .fact-text { font-size: 14px; line-height: 1.55; color: var(--ink); }

/* chips strip (ranks + traits) */
.ranks-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.rank-chip { font-size: 13px; font-weight: 700; color: var(--ink); background: linear-gradient(180deg, #fbf7ec, var(--paper)); border: 1px solid rgba(46, 107, 69, .3); border-radius: 999px; padding: 7px 13px; text-decoration: none; transition: transform .15s, border-color .2s, box-shadow .2s; box-shadow: var(--shadow-sm); }
a.rank-chip:hover { transform: translateY(-2px); border-color: var(--leaf); }
.rank-chip .pos { color: var(--moss); font-weight: 800; }

/* pager */
.pager-btn { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); background: linear-gradient(180deg, var(--card), #fbf7ec); border: 1px solid var(--line-light); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s; }
.pager-btn:hover { transform: translateY(-2px); border-color: var(--leaf); }
.pager-btn .pg-dir { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--moss); font-weight: 800; }
.pager-btn .pg-name { font-size: 16px; font-weight: 800; }

/* danger card (why dangerous) */
.danger-card {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 12px;
  background: linear-gradient(160deg, rgba(217, 122, 30, .12), rgba(217, 122, 30, .05));
  border: 1px solid rgba(217, 122, 30, .3); border-radius: 12px; padding: 12px 16px;
}
.danger-card .danger-label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; color: var(--amber-deep); flex: none; }
.danger-card .danger-text { font-size: 14px; line-height: 1.55; color: var(--ink); }

/* source note */
.source-note { font-size: 12px; color: var(--ink-soft); border-top: 1px solid var(--line-light); padding-top: 12px; line-height: 1.6; }
.sound-player { margin: 12px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sound-player .sound-label { font-size: 13px; font-weight: 700; color: var(--forest); }

/* ---------------------------------------------------------------------------
   COMPARE PAGE
   --------------------------------------------------------------------------- */
.compare-picker { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; }
@media (max-width: 620px) { .compare-picker { grid-template-columns: 1fr; } .compare-vs { justify-self: center; } }
.compare-picker select { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-light); background: var(--card); font-size: 14px; color: var(--ink); }
.compare-vs { font-family: var(--serif); font-size: 24px; font-weight: 800; color: var(--moss); }
.compare-card { padding: 20px; }
.compare-card .cc-img { border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: #dfe8d8; }
.compare-card .cc-img img { width: 100%; height: 220px; object-fit: cover; display: block; }
.compare-card h2 { font-family: var(--serif); font-size: 24px; margin: 0; }
.compare-card .cc-emoji { font-size: 26px; }

/* ---------------------------------------------------------------------------
   PROSE (about)
   --------------------------------------------------------------------------- */
.prose-card { padding: 30px 34px; }
.prose-card h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); margin: 0 0 8px; }
.prose-card h2 { font-family: var(--serif); font-size: 22px; margin: 26px 0 10px; }
.prose-card p { font-size: 15.5px; line-height: 1.7; }
.prose-card a { color: var(--moss); font-weight: 700; }

/* ---------------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------------- */
.site-footer {
  position: relative; z-index: 1; margin-top: 40px;
  padding: 34px 24px 40px; text-align: center; color: var(--cream-soft);
  background: linear-gradient(180deg, rgba(13, 31, 22, .4), rgba(6, 18, 10, .72));
  border-top: 1px solid rgba(143, 209, 138, .18);
}
.site-footer a { color: var(--sun); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.foot-animals { display: flex; justify-content: center; gap: 18px; margin-bottom: 16px; }
.foot-hop { font-size: 26px; display: inline-block; animation: footHop 2.4s ease-in-out infinite; }
.foot-hop:nth-child(2) { animation-delay: .2s; } .foot-hop:nth-child(3) { animation-delay: .4s; }
.foot-hop:nth-child(4) { animation-delay: .6s; } .foot-hop:nth-child(5) { animation-delay: .8s; }
@keyframes footHop { 0%,100% { transform: translateY(0); } 45% { transform: translateY(-9px) rotate(-6deg); } 60% { transform: translateY(0); } }
@keyframes leafBob { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-6px) rotate(6deg); } }
