/* ==========================================================================
   Naruto Senki APK Web - AMAZING design (style-amazing.css)
   Design language: "Konoha night" - deep black, warm orange fire, gold
   highlights. Pure CSS only: no external fonts, images, or URLs.
   Replaces assets/style.css when applied. Keeps every existing class and
   every UI function (sticky header, progress bar, back-to-top, table
   scroll, FAQ accordion, tier accents, mobile CTA, no horizontal overflow).
   Mobile-first, then desktop. No content changes, no em-dash.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #070707;
  --bg-soft: #0c0c0c;
  --surface: #131313;
  --surface-2: #181818;
  --surface-3: #1f1f1f;
  --line: #262626;
  --line-soft: #1d1d1d;
  --text: #f5f5f5;
  --text-2: #d8d8d8;
  --muted: #a9a9a9;
  --orange: #ff8c2e;
  --orange-bright: #ffa54d;
  --orange-deep: #e56e0a;
  --orange-soft: #ffd9b3;
  --gold: #f5c542;
  --green: #7dd87d;
  --blue: #7db8e8;
  --glow: rgba(255, 140, 46, 0.35);
  --glow-soft: rgba(255, 140, 46, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--orange-bright); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--orange); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: #111; }

/* ---------- Reading progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange) 55%, var(--gold));
  box-shadow: 0 0 10px var(--glow);
  z-index: 100;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(10, 10, 10, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand:hover { color: var(--orange-bright); text-decoration: none; }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  border: 2px solid rgba(255, 140, 46, 0.55);
  box-shadow: 0 0 12px var(--glow-soft);
}
.main-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: #e5e5e5;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--surface-3); color: var(--orange-bright); text-decoration: none; }
.main-nav a.active {
  color: var(--orange-bright);
  background: rgba(255, 140, 46, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 46, 0.35);
}

/* Compact header Download button */
.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--orange-bright), var(--orange) 55%, var(--orange-deep));
  color: #161006;
  font-weight: 800;
  font-size: 15px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  margin-left: auto;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-header:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--glow);
  color: #161006;
  text-decoration: none;
}
.btn-header:active { transform: translateY(0) scale(0.98); }

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 18px; }
main { padding: 28px 0 48px; }
article { max-width: 1200px; margin: 0 auto; }

article h1 {
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 6px 0 16px;
  color: #ffffff;
  scroll-margin-top: 96px;
}
article h2 {
  font-size: clamp(24px, 5.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 44px 0 14px;
  padding-top: 4px;
  border-top: none;
  color: #ffffff;
  scroll-margin-top: 96px;
}
article h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  margin-bottom: 12px;
}
article h3 {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 26px 0 8px;
  color: #ffffff;
  scroll-margin-top: 96px;
}
article h4 { font-size: 17px; margin: 20px 0 6px; color: var(--orange-soft); }
article p { margin: 0 0 18px; }
article ul, article ol { margin: 0 0 18px; padding-left: 24px; }
article li { margin-bottom: 8px; }
article li::marker { color: var(--orange); }
article strong { color: #ffffff; }

.lede { font-size: 19px; line-height: 1.7; color: #e9e9e9; }
.hook { font-size: 18px; color: #e6e6e6; }
.small { font-size: 14px; color: var(--muted); }
.note {
  background: linear-gradient(180deg, #1b1b1b, #141414);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 0 0 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.note p { margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 18px 0 8px; }
.hero::before {
  content: "";
  position: absolute;
  top: -28px;
  left: -18px;
  right: -18px;
  height: 300px;
  background:
    radial-gradient(ellipse 62% 55% at 72% 0%, rgba(255, 140, 46, 0.18), transparent 70%),
    radial-gradient(ellipse 42% 42% at 8% 12%, rgba(245, 197, 66, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.12;
  margin-bottom: 18px;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero h1 {
    background: linear-gradient(94deg, #ffffff 25%, #ffcf9e 58%, var(--orange) 88%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ececec;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 6px 13px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.badge.hot {
  background: linear-gradient(180deg, var(--orange-bright), var(--orange));
  border-color: transparent;
  color: #161006;
  box-shadow: 0 4px 14px var(--glow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--orange-bright), var(--orange) 55%, var(--orange-deep));
  color: #161006;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 12px;
  margin: 6px 8px 6px 0;
  box-shadow: 0 8px 24px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #161006;
  text-decoration: none;
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn.ghost {
  background: rgba(255, 140, 46, 0.06);
  color: var(--orange-bright);
  border: 2px solid var(--orange);
  box-shadow: none;
}
.btn.ghost:hover {
  background: rgba(255, 140, 46, 0.14);
  color: var(--orange-bright);
  box-shadow: 0 6px 18px rgba(255, 140, 46, 0.2);
}
.btn-row { margin: 20px 0 10px; }

/* ---------- Cards and grids ---------- */
.card {
  background: linear-gradient(180deg, #1a1a1a, #121212);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: rgba(255, 140, 46, 0.45); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); }
.card h2 { margin-top: 0; }
.card h2::before { margin-bottom: 10px; }
.card h3 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid .card { margin: 0; }
.grid .card:hover { transform: translateY(-3px); }

/* ---------- Tables ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 4px; }
.table-scroll table { margin: 0; min-width: 520px; border: none; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15.5px;
}
th, td {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  vertical-align: top;
}
th {
  background: linear-gradient(180deg, var(--orange-bright), var(--orange) 55%, var(--orange-deep));
  color: #141414;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: center;
}
td { background: #121212; }
tr:nth-child(even) td { background: #161616; }
tbody tr:hover td { background: rgba(255, 140, 46, 0.07); }

/* ---------- Tier lists ---------- */
.tier {
  margin: 0 0 20px;
  background: linear-gradient(180deg, #171717, #121212);
  border: 1px solid var(--line);
  border-left: 4px solid #8a8a8a;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.tier:has(.tier-s) {
  border-left-color: var(--gold);
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.09), #141414 55%);
}
.tier:has(.tier-a) {
  border-left-color: var(--green);
  background: linear-gradient(180deg, rgba(125, 216, 125, 0.08), #141414 55%);
}
.tier:has(.tier-b) {
  border-left-color: var(--blue);
  background: linear-gradient(180deg, rgba(125, 184, 232, 0.08), #141414 55%);
}
.tier h3 { margin-top: 0; margin-bottom: 6px; }
.tier-list { list-style: none; padding: 0; margin: 0; }
.tier-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.tier-list li:hover { border-color: rgba(255, 140, 46, 0.5); background: rgba(255, 140, 46, 0.05); transform: translateX(3px); }
.tier-tag {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 6px;
  margin-right: 8px;
  color: #111;
  vertical-align: 1px;
}
.tier-s { background: linear-gradient(180deg, #ffd94d, var(--gold)); box-shadow: 0 2px 8px rgba(245, 197, 66, 0.35); }
.tier-a { background: linear-gradient(180deg, #93e893, var(--green)); box-shadow: 0 2px 8px rgba(125, 216, 125, 0.3); }
.tier-b { background: linear-gradient(180deg, #93c6f0, var(--blue)); box-shadow: 0 2px 8px rgba(125, 184, 232, 0.3); }

/* Tier headings on the Mod page (class hook only, text unchanged) */
.tier-head {
  border-left: 4px solid #8a8a8a;
  padding-left: 14px;
  border-radius: 2px;
}
.tier-head-s { border-left-color: var(--gold); }
.tier-head-a { border-left-color: var(--green); }
.tier-head-b { border-left-color: var(--blue); }

/* ---------- FAQ accordion (details/summary; question text and answers unchanged) ---------- */
.faq-item {
  background: linear-gradient(180deg, #181818, #131313);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
  margin: 0 0 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(255, 140, 46, 0.55);
  box-shadow: 0 6px 22px rgba(255, 140, 46, 0.12);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 14px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 18px; line-height: 1.35; flex: 1; }
.faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--orange-bright), var(--orange));
  color: #161006;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 3px 10px var(--glow);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq-item p { margin: 0 0 18px; color: var(--text-2); }

/* Plain-div FAQ cards (Storm 4 page, not yet converted to details/summary) */
div.faq-item { padding: 16px 18px; }
div.faq-item h3 { margin: 0 0 8px; font-size: 18px; }
div.faq-item p:last-child { margin-bottom: 0; }

/* ---------- Images ---------- */
figure { margin: 0 0 22px; }
figure img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- Back to Home link (sub-pages) ---------- */
.back-home { margin: 32px 0 0; }
.back-home a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, #1b1b1b, #141414);
  color: #ececec;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.back-home a:hover { border-color: var(--orange); color: var(--orange-bright); text-decoration: none; transform: translateY(-1px); }

/* ---------- Footer ---------- */
/* ---------- Footer: professional, section-wise ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: none;
  padding: 0 0 32px;
  font-size: 14.5px;
  color: var(--muted);
}
.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange) 30%, var(--gold) 70%, transparent);
  margin-bottom: 0;
}
.site-footer .wrap { max-width: 1200px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 36px 0 28px; }
.footer-brand .footer-logo img { width: 56px; height: 56px; border-radius: 12px; border: 1px solid rgba(255, 140, 46, 0.4); }
.footer-brand p { margin: 14px 0; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--text-2); background: #141414; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease; }
.footer-social a:hover { border-color: var(--orange); color: var(--orange-bright); background: rgba(255, 140, 46, 0.08); text-decoration: none; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--text-2); padding: 5px 0; line-height: 1.5; }
.footer-col a:hover { color: var(--orange-bright); text-decoration: none; }
.footer-disclaimer {
  background: linear-gradient(180deg, #1b1b1b, #141414);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  line-height: 1.7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  margin: 0 0 20px;
}
.footer-bottom { border-top: 1px solid var(--line-soft); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ---------- Download page: the star of the site ---------- */
.download-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #1b1b1b, #121212);
  border: 1px solid rgba(255, 140, 46, 0.5);
  border-radius: 20px;
  padding: 38px 22px 30px;
  margin: 24px 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 140, 46, 0.08), 0 0 32px rgba(255, 140, 46, 0.12);
}
.download-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange) 50%, var(--gold));
}
.download-box .btn { font-size: 16px; padding: 11px 22px; min-height: 44px; margin: 6px 0; }
.download-box .btn:hover { box-shadow: 0 14px 34px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.download-box#mod-apk {
  border-color: rgba(245, 197, 66, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 32px rgba(245, 197, 66, 0.1);
}
.download-box#mod-apk::before {
  background: linear-gradient(90deg, var(--orange), var(--gold) 55%, var(--orange-bright));
}
.file-meta {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 16px;
}

/* ---------- Floating mobile download CTA bar ---------- */
.mobile-cta { display: none; }

/* ---------- Back-to-top button ---------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 90;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 140, 46, 0.55);
  background: linear-gradient(180deg, #232323, #161616);
  color: var(--orange-bright);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  transition: opacity 0.2s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover {
  background: linear-gradient(180deg, var(--orange-bright), var(--orange));
  color: #161006;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--glow);
}

/* ---------- Desktop polish ---------- */
@media (min-width: 900px) {
  main { padding-top: 40px; }
  article h1 { font-size: 42px; }
  .hero { padding-top: 26px; }
  .hero h1 { font-size: 48px; }
  .grid { gap: 18px; }
  .download-box { padding: 44px 34px 34px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  body.has-cta { padding-bottom: 68px; }
  .hero-intro { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-intro .hero-img { flex: none; }
  article h1 { font-size: 28px; }
  article h2 { font-size: 22px; }
  .brand { font-size: 17px; }
  .site-header .wrap { gap: 8px 12px; padding: 8px 14px; }
  .btn-header { padding: 8px 14px; font-size: 14px; }
  .main-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    gap: 2px;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 6px 10px; font-size: 14px; flex-shrink: 0; }
  table { font-size: 14px; }
  th, td { padding: 9px 10px; }
  .btn-row .btn { display: flex; width: 100%; margin-right: 0; }
  .download-box { padding: 30px 16px 24px; }
  .download-box .btn { width: auto; font-size: 15px; padding: 11px 16px; min-height: 44px; }
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: rgba(12, 12, 12, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 140, 46, 0.4);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    justify-content: center;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  }
  .mobile-cta .btn { margin: 0; flex: 1; max-width: 420px; min-height: 50px; font-size: 17px; }
  .to-top { bottom: 86px; }
  .faq-item summary h3 { font-size: 17px; }
  .hero::before { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Character portraits (homepage tier list) ---------- */
.char-img {
  float: left;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 140, 46, 0.55);
  margin: 2px 12px 6px 0;
}
.tier-list li::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) {
  .char-img { width: 56px; height: 56px; border-radius: 10px; }
}

/* ---------- Animations (site-wide, subtle, mobile-safe) ---------- */
/* Hero entrance: badges, title, lede and buttons arrive in order */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .badges { animation: heroIn 0.55s ease-out both; }
.hero h1 { animation: heroIn 0.6s ease-out 0.08s both; }
.hero .lede { animation: heroIn 0.6s ease-out 0.16s both; }
.hero .btn-row { animation: heroIn 0.6s ease-out 0.24s both; }
.hero .note { animation: heroIn 0.6s ease-out 0.3s both; }
.hero-img { animation: heroIn 0.7s ease-out 0.32s both; }

/* Hero image: big banner under the buttons */
.hero-img { margin: 26px 0 8px; }
.hero-img img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(255, 140, 46, 0.35); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 140, 46, 0.08); }

/* Hero intro: first paragraph left, image right (stacks on mobile) */
.hero-intro { display: flex; gap: 28px; align-items: center; margin: 0 0 22px; }
.hero-intro .lede { flex: 1 1 auto; margin: 0; }
.hero-intro .hero-img { flex: 0 0 44%; margin: 0; }

/* Table headings: centered above their table */
.table-title { text-align: center; }

/* Screenshots gallery: images only, responsive grid */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 0 0 22px; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255, 140, 46, 0.35); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); }

/* Section images: moderate size, centered, never full-width */
.sec-img { max-width: 560px; margin: 0 auto 22px; }
.sec-img img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(255, 140, 46, 0.35); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }

/* Hero background glow breathes slowly */
@keyframes glowDrift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.hero::before { animation: glowDrift 5s ease-in-out infinite; }

/* Download buttons: slow soft glow so the eye lands on the call to action */
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 140, 46, 0.35); }
  50% { box-shadow: 0 8px 34px rgba(255, 140, 46, 0.6); }
}
.btn-row .btn:not(.ghost), .download-box .btn { animation: ctaGlow 2.8s ease-in-out infinite; }

/* Character portraits: zoom and glow on hover */
.char-img { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.tier-list li:hover .char-img, td:hover .char-img { transform: scale(1.1); border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 140, 46, 0.25); }

/* Scroll reveal: blocks fade up as they enter the viewport.
   Only runs where the browser supports scroll timelines (Chrome, Edge, Safari 26+).
   Older browsers ignore it and show the content normally. */
@supports (animation-timeline: view()) {
  @keyframes riseIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  article .card, article .tier, article .download-box, article .table-scroll,
  article details.faq-item, article figure:not(.hero-img) {
    animation: riseIn 0.6s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }
}

/* Motion off: everything stays fully visible, no animation */
@media (prefers-reduced-motion: reduce) {
  .hero .badges, .hero h1, .hero .lede, .hero .btn-row, .hero .note { opacity: 1 !important; transform: none !important; }
  .hero::before { opacity: 1 !important; }
}

.reviewer-intro{display:flex;gap:28px;align-items:flex-start;margin:24px 0}
.reviewer-intro img{width:280px;max-width:100%;height:auto;border-radius:12px;border:2px solid var(--orange);flex-shrink:0}
.reviewer-intro .reviewer-bio{flex:1}
@media (max-width:640px){.reviewer-intro{flex-direction:column}.reviewer-intro img{width:100%;max-width:320px}}
