/* ==========================================================================
   FreeJSQ — editorial review stylesheet
   Warm paper base, serif display type, quiet motion.
   ========================================================================== */

:root {
    --bg: #F5F1E8;
    --bg-soft: #EBE5D7;
    --bg-card: #FFFCF7;
    --bg-muted: #F0EBDE;

    --border: rgba(38, 32, 24, 0.11);
    --border-strong: rgba(38, 32, 24, 0.18);

    --text: #1A1712;
    --text-dim: #6B6357;
    --text-faint: #938A7C;

    --accent: #2F6B5F;
    --accent-hover: #225147;
    --accent-soft: rgba(47, 107, 95, 0.09);

    --gold: #B08641;
    --gold-soft: rgba(176, 134, 65, 0.12);
    --silver: #8E8B84;
    --bronze: #A9713F;

    --good: #2F7A5C;
    --warn: #A9713F;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(38, 32, 24, 0.05);
    --shadow: 0 14px 36px rgba(38, 32, 24, 0.08);
    --shadow-lg: 0 24px 60px rgba(38, 32, 24, 0.12);

    --serif: "Iowan Old Style", Palatino, "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
    --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei",
        -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 68px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse 60% 40% at 10% -5%, rgba(176, 134, 65, 0.13), transparent 70%),
        radial-gradient(ellipse 50% 40% at 92% 4%, rgba(47, 107, 95, 0.11), transparent 70%),
        linear-gradient(180deg, #FAF7F0 0%, var(--bg) 38%, #EFE9DC 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-hover); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent); }

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

h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.015em; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.site-main { position: relative; z-index: 1; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--accent); color: #fff; padding: 10px 18px;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Reveal on scroll.
   Scoped to .js (set by an inline snippet in <head>) so a failed or blocked
   site.js can never leave the page invisible.
   -------------------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    border-bottom: 1px solid transparent;
    background: rgba(250, 247, 240, 0.72);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--border);
    background: rgba(250, 247, 240, 0.93);
    box-shadow: 0 6px 28px rgba(38, 32, 24, 0.06);
}

.header-inner {
    display: flex; align-items: center; gap: 24px;
    min-height: var(--header-h); flex-wrap: wrap;
}

.brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text);
    font-family: var(--serif);
    font-size: 21px; font-weight: 700; letter-spacing: 0.04em;
}
.brand__mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 9px;
    background: linear-gradient(140deg, var(--accent), #3F8476);
    color: #fff; font-size: 17px; line-height: 1;
    box-shadow: 0 6px 16px rgba(47, 107, 95, 0.28);
    transition: transform 0.35s var(--ease);
}
.brand:hover { color: var(--accent); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }

.main-nav { display: flex; flex: 1; flex-wrap: wrap; gap: 2px; }
.main-nav a {
    position: relative;
    padding: 8px 13px;
    color: var(--text-dim);
    font-size: 15px; font-weight: 600;
    transition: color 0.2s ease;
}
.main-nav a::after {
    content: "";
    position: absolute; left: 13px; right: 13px; bottom: 3px;
    height: 2px; border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    opacity: 0; transform: scaleX(0.4);
    transition: opacity 0.24s ease, transform 0.24s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a.is-active { color: var(--accent); }
.main-nav a:hover::after,
.main-nav a.is-active::after { opacity: 1; transform: scaleX(1); }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.header-cta {
    display: inline-flex; align-items: center;
    padding: 9px 18px; border-radius: 999px;
    background: var(--accent); color: #fff !important;
    font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em;
    box-shadow: 0 8px 20px rgba(47, 107, 95, 0.22);
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.2s ease;
}
.header-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(47, 107, 95, 0.3);
}

.lang-dropdown { position: relative; }
.lang-dropdown__summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-dim); font-size: 13px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-dropdown__summary::-webkit-details-marker { display: none; }
.lang-dropdown__summary::after {
    content: ""; width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid currentColor; opacity: 0.65;
    transition: transform 0.24s var(--ease);
}
.lang-dropdown[open] .lang-dropdown__summary { color: var(--text); border-color: var(--border-strong); }
.lang-dropdown[open] .lang-dropdown__summary::after { transform: rotate(180deg); }
.lang-dropdown__menu {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 70;
    min-width: 150px; padding: 8px;
    border: 1px solid var(--border); border-radius: 14px;
    background: var(--bg-card); box-shadow: var(--shadow);
    display: grid; gap: 2px;
    animation: dropIn 0.22s var(--ease);
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
.lang-dropdown__menu a {
    display: block; padding: 8px 11px; border-radius: 9px;
    color: var(--text-dim); font-size: 13.5px;
}
.lang-dropdown__menu a:hover,
.lang-dropdown__menu a.is-active { color: var(--accent); background: var(--accent-soft); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 26px; border-radius: 11px;
    font-size: 15px; font-weight: 650; white-space: nowrap;
    border: 1px solid transparent; cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease,
        background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 10px 24px rgba(47, 107, 95, 0.2);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 16px 32px rgba(47, 107, 95, 0.27); }

.btn-secondary { border-color: var(--border-strong); color: var(--text); background: rgba(255, 252, 247, 0.6); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn-ghost { border-color: var(--border); color: var(--text-dim); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 9px 17px; font-size: 13.5px; border-radius: 9px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative; isolation: isolate;
    padding: 84px 0 64px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 16px max(20px, calc((100vw - 1160px) / 2)) 0;
    z-index: -2;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 14% 16%, rgba(176, 134, 65, 0.15), transparent 42%),
        radial-gradient(circle at 88% 22%, rgba(47, 107, 95, 0.13), transparent 40%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.86), rgba(255, 252, 247, 0.4));
    box-shadow: var(--shadow);
}
.hero__aurora {
    position: absolute; z-index: -1; inset: 0;
    background:
        radial-gradient(closest-side, rgba(47, 107, 95, 0.16), transparent) 18% 26% / 46% 62% no-repeat,
        radial-gradient(closest-side, rgba(176, 134, 65, 0.16), transparent) 82% 18% / 42% 58% no-repeat;
    filter: blur(18px);
    animation: auroraDrift 18s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes auroraDrift {
    from { transform: translate3d(-2%, -1%, 0) scale(1); opacity: 0.85; }
    to { transform: translate3d(3%, 2%, 0) scale(1.08); opacity: 1; }
}

.hero-home-panel { max-width: 820px; padding-top: 8px; padding-bottom: 8px; }

.eyebrow {
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 12px; font-weight: 750;
    letter-spacing: 0.2em; text-transform: uppercase;
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.14; font-weight: 700;
    letter-spacing: -0.025em;
}
.hero-sub {
    max-width: 660px; margin: 0;
    color: var(--text-dim);
    font-size: clamp(16px, 1.7vw, 19px);
}

.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-stats {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin: 40px 0 0; padding: 0;
}
.hero-stat {
    padding: 16px 18px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: rgba(255, 252, 247, 0.72);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.hero-stat:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.hero-stat dt {
    margin: 0 0 4px;
    color: var(--text-faint);
    font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.hero-stat dd {
    margin: 0;
    font-family: var(--serif);
    font-size: 30px; font-weight: 700; line-height: 1.1;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.hero-stat dd.hero-stat__text { font-size: 20px; color: var(--text); }

/* --------------------------------------------------------------------------
   Page head
   -------------------------------------------------------------------------- */
.page-head { padding: 52px 0 12px; }
.page-head h1 {
    max-width: 860px; margin: 16px 0 10px;
    font-size: clamp(30px, 4.4vw, 46px);
    line-height: 1.16; letter-spacing: -0.025em;
}
.page-lead, .page-sub, .page-head__desc {
    max-width: 760px; margin: 0;
    color: var(--text-dim);
    font-size: 16px;
}
.page-head--rank { padding-bottom: 4px; }

.page-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.meta-chip {
    display: inline-flex; align-items: center;
    padding: 5px 13px; border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 252, 247, 0.72);
    color: var(--text-dim); font-size: 12.5px; font-weight: 600;
}
.meta-chip--link { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.meta-chip--link:hover { border-color: var(--accent); }

.breadcrumb {
    display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
    color: var(--text-faint); font-size: 13px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 60px 0; }
.section--tight { padding-top: 34px; }
.section--muted {
    position: relative;
    background: linear-gradient(180deg, rgba(240, 235, 222, 0), rgba(238, 232, 218, 0.75), rgba(240, 235, 222, 0));
}

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; margin-bottom: 26px;
}
.section-title {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25;
}
.section-desc {
    max-width: 640px; margin: 10px 0 0;
    color: var(--text-dim); font-size: 14.5px;
}
.section-more {
    flex: 0 0 auto;
    color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.section-more:hover { color: var(--accent-hover); }

/* --------------------------------------------------------------------------
   Ranking cards
   -------------------------------------------------------------------------- */
.rank-summary-grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rank-summary-grid--wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.rank-summary-card {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    padding: 24px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}
.rank-summary-card::before {
    content: "";
    position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--border-strong), transparent);
}
.rank-summary-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}
.rank-summary-card.is-gold::before { background: linear-gradient(90deg, var(--gold), #E3C27E, transparent); }
.rank-summary-card.is-silver::before { background: linear-gradient(90deg, var(--silver), #C9C6BE, transparent); }
.rank-summary-card.is-bronze::before { background: linear-gradient(90deg, var(--bronze), #D5A57C, transparent); }
.rank-summary-card.is-gold { border-color: rgba(176, 134, 65, 0.35); }

.rank-summary-card__top {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap; margin-bottom: 14px;
}
.rank-summary-card h2,
.rank-summary-card h3 { margin: 0 0 6px; font-size: 23px; }
.rank-summary-card > p {
    margin: 0; color: var(--text-dim); font-size: 14.5px;
}
.rank-summary-card__meta {
    margin: 12px 0 18px !important;
    font-size: 13px; color: var(--text-faint) !important;
}
.rank-summary-card__actions {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto;
}

.rank-medal {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 30px; padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-soft); color: var(--accent);
    font-family: var(--serif); font-weight: 700; font-size: 14px;
}
.is-gold .rank-medal { background: var(--gold-soft); color: #8A6425; }
.is-silver .rank-medal { background: rgba(142, 139, 132, 0.14); color: #605D57; }
.is-bronze .rank-medal { background: rgba(169, 113, 63, 0.13); color: #86532A; }

.rank-medal--lg {
    min-width: 66px; height: 66px; padding: 0;
    border-radius: 20px; font-size: 22px;
}

.rank-score-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.rank-score {
    font-family: var(--serif);
    font-size: 34px; font-weight: 700; line-height: 1;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.rank-score__unit { color: var(--text-faint); font-size: 13px; }

.rank-pill {
    display: inline-flex; padding: 4px 11px; border-radius: 999px;
    background: var(--gold-soft); color: #7E5B22;
    font-size: 12px; font-weight: 650;
}

.rank-list { display: grid; gap: 24px; }
.rank-card {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 26px;
    padding: 28px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--header-h) + 24px);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.rank-card::before {
    content: "";
    position: absolute; inset: 0 auto 0 0; width: 4px;
    background: var(--border-strong);
}
.rank-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.rank-card.is-gold::before { background: linear-gradient(180deg, var(--gold), #E3C27E); }
.rank-card.is-silver::before { background: linear-gradient(180deg, var(--silver), #C9C6BE); }
.rank-card.is-bronze::before { background: linear-gradient(180deg, var(--bronze), #D5A57C); }
.rank-card.is-featured { border-color: rgba(176, 134, 65, 0.34); }
.rank-card:target { box-shadow: 0 0 0 3px var(--gold-soft), var(--shadow); }

.rank-card__aside {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.rank-score-block { text-align: center; }
.rank-score-block strong {
    display: block;
    font-family: var(--serif);
    font-size: 38px; font-weight: 700; line-height: 1.05;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.rank-score-block__label {
    display: block; margin-top: 2px;
    color: var(--text-faint); font-size: 11.5px; letter-spacing: 0.04em;
}

.rank-card__main { min-width: 0; }
.rank-card__head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px; flex-wrap: wrap;
}
.rank-card__head > div:first-child {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.rank-card h2 { margin: 0; font-size: 25px; }
.rank-card__tagline { margin: 10px 0 0; color: var(--text-dim); }

.rank-card__facts {
    display: flex; flex-wrap: wrap; gap: 8px 10px;
    margin: 16px 0 20px;
}
.rank-card__facts span {
    padding: 4px 11px; border-radius: 8px;
    background: var(--bg-muted);
    color: var(--text-dim); font-size: 12.5px;
}

.rank-meters {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px; margin-bottom: 20px;
}
.rank-meter__label {
    display: flex; justify-content: space-between; gap: 8px;
    margin-bottom: 6px;
    color: var(--text-dim); font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}
.rank-meter__track {
    height: 8px; border-radius: 999px;
    background: rgba(38, 32, 24, 0.07);
    overflow: hidden;
}
.rank-meter__track span {
    display: block; height: 100%; border-radius: inherit;
    width: var(--meter-width, 0%);
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transition: width 1.1s var(--ease);
}
.js .rank-meter__track span { width: 0; }
.js .rank-meter__track span.is-filled { width: var(--meter-width, 0%); }

.rank-card__verdict {
    margin: 0 0 20px; padding: 14px 18px;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--accent-soft);
    font-size: 14.5px;
}
.rank-card__verdict strong { display: block; margin-bottom: 4px; color: var(--accent-hover); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }

.rank-pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rank-pros-cons h3 {
    margin: 0 0 10px;
    font-family: var(--sans);
    font-size: 13px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase;
}
.rank-pros h3 { color: var(--good); }
.rank-cons h3 { color: var(--warn); }
.rank-pros-cons ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.rank-pros-cons li {
    position: relative; padding-left: 20px;
    color: var(--text-dim); font-size: 13.5px; line-height: 1.6;
}
.rank-pros-cons li::before {
    position: absolute; left: 0; top: 0;
    font-weight: 700;
}
.rank-pros li::before { content: "+"; color: var(--good); }
.rank-cons li::before { content: "−"; color: var(--warn); }

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}
.compare-table {
    width: 100%; border-collapse: collapse;
    font-size: 14px;
}
.compare-table th, .compare-table td {
    padding: 13px 14px; text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.compare-table thead th {
    position: sticky; top: 0; z-index: 1;
    background: var(--bg-muted);
    color: var(--text-dim);
    font-family: var(--sans);
    font-size: 12.5px; font-weight: 700; letter-spacing: 0.03em;
}
.compare-table tbody tr { transition: background 0.2s ease; }
.compare-table tbody tr:hover { background: rgba(47, 107, 95, 0.045); }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr.is-featured { background: var(--gold-soft); }
.compare-table tbody tr.is-featured:hover { background: rgba(176, 134, 65, 0.18); }
.compare-table tbody th {
    font-family: var(--serif); font-size: 16px; font-weight: 700;
}
.compare-table tbody th a { color: var(--text); }
.compare-table tbody th a:hover { color: var(--accent); }
.compare-table__rank { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.compare-table__score {
    font-family: var(--serif); font-size: 18px; color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.compare-table__note { color: var(--text-dim); font-size: 13px; white-space: normal; min-width: 150px; }

.score-chip {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; padding: 3px 9px; border-radius: 7px;
    font-size: 13px; font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.score-chip--high { background: rgba(47, 122, 92, 0.14); color: #1F5B43; }
.score-chip--mid { background: rgba(176, 134, 65, 0.14); color: #7E5B22; }
.score-chip--low { background: rgba(38, 32, 24, 0.07); color: var(--text-dim); }

.table-note {
    margin: 14px 0 0;
    color: var(--text-faint); font-size: 13px;
}

/* --------------------------------------------------------------------------
   Methodology / weights / disclosure
   -------------------------------------------------------------------------- */
.method-grid {
    display: grid; gap: 18px; margin: 0; padding: 0; list-style: none;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    counter-reset: method;
}
.method-card {
    position: relative;
    padding: 26px 24px 24px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.method-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.method-card__num {
    display: block; margin-bottom: 10px;
    font-family: var(--serif); font-size: 15px; font-weight: 700;
    color: var(--gold); letter-spacing: 0.1em;
}
.method-card h3 { margin: 0 0 8px; font-size: 17px; }
.method-card p { margin: 0; color: var(--text-dim); font-size: 14px; }

.weight-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.weight-card {
    padding: 20px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}
.weight-card__label { margin: 0 0 6px; color: var(--text-dim); font-size: 13.5px; font-weight: 600; }
.weight-card__value {
    margin: 0 0 12px;
    font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1;
    color: var(--accent); font-variant-numeric: tabular-nums;
}
.weight-card__track { height: 6px; border-radius: 999px; background: rgba(38, 32, 24, 0.07); overflow: hidden; }
.weight-card__track span {
    display: block; height: 100%; border-radius: inherit;
    width: var(--meter-width, 0%);
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transition: width 1.1s var(--ease);
}
.js .weight-card__track span { width: 0; }
.js .weight-card__track span.is-filled { width: var(--meter-width, 0%); }

.disclosure {
    margin: 26px 0 0; padding: 18px 22px;
    border: 1px dashed var(--border-strong); border-radius: var(--radius);
    background: rgba(255, 252, 247, 0.6);
    color: var(--text-dim); font-size: 13.5px; line-height: 1.7;
}
.disclosure strong {
    display: block; margin-bottom: 4px;
    color: var(--text); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Cards, news rows, tags
   -------------------------------------------------------------------------- */
.feature-grid, .card-grid {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.feature-card, .article-card {
    overflow: hidden;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card); padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.32s var(--ease), border-color 0.32s ease, box-shadow 0.32s ease;
}
.feature-card:hover, .article-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 14px; }

.article-card h2, .article-card h3 { margin: 0 0 10px; font-size: 17.5px; line-height: 1.5; }
.article-card h2 a, .article-card h3 a { color: var(--text); }
.article-card h2 a:hover, .article-card h3 a:hover { color: var(--accent); }
.article-card p {
    margin: 0 0 12px; color: var(--text-dim); font-size: 14px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card time { color: var(--text-faint); font-size: 12px; }
.article-card__thumb {
    display: block; margin: -24px -24px 16px;
    aspect-ratio: 4 / 3; min-height: 170px;
    overflow: hidden; background: var(--bg-muted);
}
.article-card__thumb img {
    display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transition: transform 0.5s var(--ease);
}
.article-card:hover .article-card__thumb img { transform: scale(1.05); }
.article-card__content { display: flex; flex-direction: column; }

.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.news-list { display: grid; gap: 14px; }
.news-row {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px;
    padding: 20px 22px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s var(--ease), border-color 0.28s ease, box-shadow 0.28s ease;
}
.news-row:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}
.news-row__date { text-align: center; padding-top: 4px; }
.news-row__day {
    display: block;
    font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1;
    color: var(--accent);
}
.news-row__month { display: block; margin-top: 4px; color: var(--text-faint); font-size: 12px; }
.news-row__label {
    margin: 0 0 6px;
    color: var(--gold); font-size: 12px; font-weight: 650; letter-spacing: 0.05em;
}
.news-row__body h2, .news-row__body h3 {
    margin: 0 0 8px; font-size: clamp(17px, 2vw, 20px); line-height: 1.4;
}
.news-row__body h2 a, .news-row__body h3 a { color: var(--text); }
.news-row__body h2 a:hover, .news-row__body h3 a:hover { color: var(--accent); }
.news-row__body > p { margin: 0; color: var(--text-dim); font-size: 14px; }
.news-row__body .card-meta { margin-top: 12px; }
.news-row__more { margin-left: auto; color: var(--accent); font-size: 13px; font-weight: 600; }

.tag-cloud, .filter-bar { display: flex; gap: 9px; flex-wrap: wrap; }
.filter-bar { margin-bottom: 26px; }
.tag {
    display: inline-block; padding: 6px 15px; border-radius: 999px;
    border: 1px solid var(--border); background: rgba(255, 252, 247, 0.75);
    color: var(--text-dim); font-size: 13px;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.tag:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.tag.is-active {
    background: linear-gradient(135deg, var(--accent), #3F8476);
    border-color: transparent; color: #fff;
}
.tag.is-active:hover { color: #fff; }
.tag-sm { padding: 2px 11px; font-size: 12px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 12px; margin: 0; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow); }
.faq-item summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 22px;
    font-family: var(--serif); font-size: 17px; font-weight: 700;
    color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ""; flex: 0 0 auto; margin-left: auto; margin-top: 9px;
    width: 9px; height: 9px;
    border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
    transform: rotate(45deg);
    transition: transform 0.28s var(--ease), border-color 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); border-color: var(--accent); }
.faq-item summary:hover { color: var(--accent); }
.faq-item__body { padding: 0 22px 20px; animation: faqOpen 0.32s var(--ease); }
.faq-item__body p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Article detail
   -------------------------------------------------------------------------- */
.article-detail { padding-top: 20px; }
.article-layout {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(230px, 1fr);
    align-items: start; gap: clamp(24px, 3.5vw, 40px);
}
.article-main { min-width: 0; }
.article-header h1 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.3; margin: 0 0 14px; }
.article-meta {
    display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
    color: var(--text-faint); font-size: 13px; margin-bottom: 10px;
}
.article-hierarchy {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin: -4px 0 16px; color: var(--text-faint); font-size: 13px;
}
.article-hierarchy a { color: var(--accent); }
.article-translations { font-size: 13px; color: var(--text-dim); }
.article-translations a { margin-left: 8px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }

.article-summary {
    margin: 22px 0; padding: 16px 20px;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--accent-soft);
}
.article-summary p { margin: 0; }

.article-toc {
    margin: 24px 0 30px; padding: 20px 24px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card);
}
.article-toc__title {
    margin: 0 0 12px;
    color: var(--text-dim); font-size: 12.5px; font-weight: 750;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.article-toc ol { margin: 0; padding-left: 22px; display: grid; gap: 7px; }
.article-toc li { color: var(--text-faint); }
.article-toc li.is-sub { margin-left: 16px; font-size: 14px; }
.article-toc a { color: var(--text-dim); }
.article-toc a:hover { color: var(--accent); }

.article-body { font-size: 16.5px; }
.article-body h2, .article-body h3 { scroll-margin-top: calc(var(--header-h) + 20px); }
.article-body h2 { font-size: 24px; margin: 38px 0 14px; }
.article-body h3 { font-size: 19px; margin: 28px 0 12px; }
.article-body p { margin: 0 0 16px; }
.article-body img { border-radius: var(--radius-sm); }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 6px; }
.article-body code {
    background: var(--bg-muted); padding: 2px 6px; border-radius: 4px; font-size: 14px;
}
.article-body pre {
    background: var(--bg-muted); padding: 16px; border-radius: var(--radius-sm); overflow-x: auto;
}
.article-body table { border-collapse: collapse; width: 100%; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 9px 12px; }

.article-footer {
    margin-top: 36px; padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-faint); font-size: 13px;
}

.article-sidebar {
    position: sticky; top: calc(var(--header-h) + 20px);
    display: grid; gap: 16px; min-width: 0;
}
.article-sidebar__panel {
    padding: 20px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card); box-shadow: var(--shadow-sm);
}
.article-sidebar__title {
    margin: 0 0 14px;
    color: var(--text-dim); font-size: 12px; font-weight: 750;
    letter-spacing: 0.08em; text-transform: uppercase;
}

.aside-rank-list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.aside-rank-item a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--radius-sm);
    background: var(--bg-muted); color: var(--text);
    font-size: 14px;
    transition: background 0.22s ease, transform 0.22s var(--ease);
}
.aside-rank-item a:hover { background: var(--accent-soft); transform: translateX(3px); }
.aside-rank-item__pos { color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 13px; }
.aside-rank-item__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aside-rank-item__score {
    margin-left: auto; color: var(--accent);
    font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums;
}
.aside-rank-cta { width: 100%; }

.article-recommend-list { display: grid; gap: 8px; }
.article-recommend-link {
    position: relative; display: block;
    padding: 10px 12px 10px 15px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: rgba(255, 252, 247, 0.6);
    color: var(--text-dim); font-size: 13.5px; line-height: 1.5;
    transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s var(--ease);
}
.article-recommend-link::before {
    content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px;
    width: 2px; border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--gold));
    opacity: 0.6;
}
.article-recommend-link:hover {
    color: var(--text); border-color: var(--border-strong);
    background: var(--accent-soft); transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Pager, notices
   -------------------------------------------------------------------------- */
.pager { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 40px 0 0; }
.pager-link {
    display: inline-block; min-width: 40px; text-align: center; padding: 8px 11px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-dim); font-size: 14px;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.pager-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.pager .active .pager-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager-link.is-disabled { opacity: 0.4; pointer-events: none; }

.empty-tip { color: var(--text-faint); text-align: center; padding: 52px 0; }

.fallback-notice {
    margin: 0 0 26px; padding: 14px 18px;
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--gold-soft);
    color: var(--text-dim); font-size: 14px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    margin-top: 100px;
    padding: 0 0 28px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, #EDE7DA, #E8E1D2);
}
.footer-cta {
    transform: translateY(-52px);
    padding: 40px 44px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    text-align: center;
}
.footer-cta .eyebrow { margin-bottom: 12px; }
.footer-cta h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: -0.025em;
}
.footer-cta > p { max-width: 620px; margin: 0 auto; color: var(--text-dim); font-size: 15px; }
.footer-cta .hero-cta-group { justify-content: center; }
.footer-cta__meta { margin: 18px 0 0; color: var(--text-faint); font-size: 12.5px; }

.footer-inner {
    display: grid; gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: -26px; padding-bottom: 46px;
}
.footer-brand { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; font-weight: 700; }
.footer-desc { margin: 0; color: var(--text-dim); font-size: 13px; }
.footer-title { margin: 0 0 10px; color: var(--text); font-size: 13.5px; font-weight: 700; }
.footer-col a {
    display: block; padding: 3px 0;
    color: var(--text-dim); font-size: 13px;
    transition: color 0.18s ease, transform 0.18s var(--ease);
}
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }

.footer-copy {
    padding: 26px 24px 4px;
    border-top: 1px solid var(--border);
    color: var(--text-faint); font-size: 12px; text-align: center;
}
.footer-copy p { margin: 0; }
.footer-licenses {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 6px 20px; margin-top: 8px;
}
.footer-licenses a { color: var(--text-dim); }
.footer-licenses a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */
.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 55;
    width: 44px; height: 44px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 50%;
    background: var(--bg-card); color: var(--accent);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease), background 0.2s ease;
}
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* --------------------------------------------------------------------------
   Supported games & apps
   -------------------------------------------------------------------------- */
.support-page { position: relative; }

.support-search {
    display: flex; gap: 10px; margin-bottom: 10px; max-width: 580px;
}
.support-search input[type="search"] {
    flex: 1; min-width: 0;
    padding: 12px 18px;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--bg-card); color: var(--text);
    font-size: 14px; outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.support-search input[type="search"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.support-search button {
    padding: 12px 24px; border: 0; border-radius: 999px;
    background: var(--accent); color: #fff;
    font-size: 14px; font-weight: 650; cursor: pointer;
    transition: background 0.2s ease, transform 0.22s var(--ease);
}
.support-search button:hover { background: var(--accent-hover); transform: translateY(-2px); }
.support-search button:disabled { opacity: 0.6; cursor: wait; transform: none; }

.support-search__hint, .support-search__status {
    margin: 0 0 18px; color: var(--text-faint); font-size: 13px;
}
.support-search__status { color: var(--accent); }

.support-section { margin-top: 42px; }
.support-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 28px; padding: 0 11px;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--accent-soft); color: var(--accent);
    font-size: 13px; font-weight: 650;
}

.support-carousel {
    position: relative; margin: 0 -8px; overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.support-carousel__track {
    display: flex; gap: 16px; width: max-content;
    padding: 18px 8px 10px;
    animation: supportMarquee var(--support-duration, 48s) linear infinite;
    will-change: transform;
}
.support-carousel--apps .support-carousel__track {
    --support-duration: 42s;
    animation-direction: reverse;
}
.support-carousel.is-paused .support-carousel__track { animation-play-state: paused; }
@keyframes supportMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.support-carousel .support-card { flex: 0 0 auto; width: 128px; }
.support-carousel--apps .support-card { width: 112px; }
.support-carousel__fade { display: none; }

.support-grid { display: grid; gap: 14px; }
.support-grid--windows { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.support-grid--apps { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }

.support-card {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 16px 10px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card); text-align: center;
    box-shadow: var(--shadow-sm);
    opacity: 0; transform: translateY(16px) scale(0.95);
    animation: supportCardIn 0.55s var(--ease) forwards;
    animation-delay: var(--card-delay, 0s);
    transition: border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.support-card.is-enter { animation-name: supportCardPop; }
@keyframes supportCardIn { to { opacity: 1; transform: none; } }
@keyframes supportCardPop {
    0% { opacity: 0; transform: translateY(14px) scale(0.9); }
    70% { opacity: 1; transform: translateY(-3px) scale(1.03); }
    100% { opacity: 1; transform: none; }
}
.support-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    z-index: 2;
}
.support-card__glow {
    position: absolute; inset: auto 18% -40% 18%; height: 70%; z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 107, 95, 0.2), transparent 70%);
    filter: blur(14px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.support-card:hover .support-card__glow { opacity: 1; }
.support-card__icon {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; border-radius: 12px;
    background: var(--bg-muted);
    box-shadow: var(--shadow-sm);
}
.support-card--windows .support-card__icon { width: 92px; height: 134px; }
.support-card--app .support-card__icon { width: 72px; height: 72px; border-radius: 18px; }
.support-card__icon img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.45s var(--ease);
}
.support-card:hover .support-card__icon img { transform: scale(1.07); }
.support-card__shine {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 48%, transparent 62%);
    transform: translateX(-120%);
}
.support-card:hover .support-card__shine { animation: supportShine 0.85s ease; }
@keyframes supportShine { to { transform: translateX(120%); } }
.support-card__placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #fff; font-size: 28px; font-weight: 700;
}
.support-card__name {
    position: relative; z-index: 1; margin: 0;
    font-size: 13px; font-weight: 600; line-height: 1.35;
    color: var(--text); word-break: break-word;
}

.support-empty { display: none; margin-top: 12px; }
.support-empty.is-visible { display: block; }
.support-results__meta { margin: 10px 0 0; color: var(--text-faint); font-size: 12px; }
.support-page.is-searching .support-carousel__track { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .rank-summary-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 960px) {
    .rank-card { grid-template-columns: 1fr; gap: 20px; }
    .rank-card__aside { flex-direction: row; justify-content: flex-start; gap: 18px; }
    .rank-meters, .rank-pros-cons { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 760px) {
    .container { padding-left: 16px; padding-right: 16px; }

    .header-inner { gap: 12px; padding: 10px 0; min-height: 0; }
    .brand { flex: 0 0 auto; font-size: 18px; }
    .header-tools { margin-left: auto; gap: 8px; }
    .header-cta { padding: 8px 14px; font-size: 12.5px; }
    .main-nav {
        order: 3; width: 100%; flex: 0 0 100%;
        flex-wrap: nowrap; gap: 2px;
        overflow-x: auto; padding-bottom: 4px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .main-nav::-webkit-scrollbar { display: none; }
    .main-nav a { flex: 0 0 auto; min-width: max-content; padding: 7px 11px; font-size: 14px; }

    .hero { padding: 52px 0 44px; }
    .hero::before { inset: 8px 10px 0; border-radius: var(--radius); }
    .hero-title { font-size: clamp(28px, 8.5vw, 40px); }
    .hero-cta-group .btn { flex: 1 1 160px; }
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; }
    .hero-stat { padding: 13px 15px; }
    .hero-stat dd { font-size: 25px; }
    .hero-stat dd.hero-stat__text { font-size: 16px; }

    .page-head { padding: 34px 0 8px; }
    .section { padding: 42px 0; }
    .section--tight { padding-top: 26px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }

    .rank-summary-grid { grid-template-columns: 1fr; }
    .rank-card { padding: 22px 18px; }
    .rank-card__head { flex-direction: column; align-items: stretch; }
    .rank-card__head .btn { width: 100%; }
    .rank-medal--lg { min-width: 54px; height: 54px; font-size: 18px; }
    .rank-score-block strong { font-size: 32px; }

    .compare-table { font-size: 13px; }
    .compare-table th, .compare-table td { padding: 10px 11px; }

    .news-row { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 16px; }
    .news-row__day { font-size: 25px; }

    .faq-item summary { padding: 15px 18px; font-size: 16px; }
    .faq-item__body { padding: 0 18px 18px; }

    .footer-cta { transform: translateY(-30px); padding: 30px 22px; border-radius: var(--radius); }
    .footer-inner { margin-top: -10px; padding-bottom: 34px; }
    .footer-licenses { display: grid; gap: 6px; }

    .to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }

    .support-search { flex-direction: column; max-width: none; }
    .support-search button { width: 100%; }
    .support-grid--windows { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .support-grid--apps { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
    .support-carousel .support-card { width: 110px; }
    .support-carousel--apps .support-card { width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
    .support-card { opacity: 1; transform: none; }
    .js .rank-meter__track span,
    .js .weight-card__track span { width: var(--meter-width, 0%); }
}
