/* gta6mods.lol v16 (v8 base): flat neutral charcoal surfaces, the same pink accent, the GTA 6 skyline fixed behind the page
   (lightly softened, flat charcoal-pink tint), v8 wordmark, signed-in Settings, ad placeholders, Mod Loader section on home,
   borderless cards whose category/size line sits at one height per row. */
@font-face { font-family: 'Chillax'; src: url('/assets/fonts/chillax-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Chillax'; src: url('/assets/fonts/chillax-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Chillax'; src: url('/assets/fonts/chillax-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/assets/fonts/satoshi-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --bg: #161616; --panel: #1f1f1f; --panel-solid: #1f1f1f; --raise: #2a2a2a; --field: #141414; --header: #1a1a1a; --footer: #121212; --disabled: #3a3a3a; --disabled-text: #9a9a9a;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.15);
  --text: #f2f2f2; --text-2: #a8a8a8; --soft: #9c9c9c; --hero-text: #e4e4e4;
  --accent: #ff6b8b; --accent-hi: #ff8aa3; --on-accent: #2b0710; --danger: #ff6b6b; --ok: #8fd6a6;
  --font: 'Satoshi', system-ui, sans-serif; --display: 'Chillax', 'Satoshi', sans-serif;
  --r: 10px; --dim: 0.7; --overlay: 12, 12, 12; --tint: 34, 12, 20;
}
/* Surface choices from /settings/ (Charcoal is the default above). */
html[data-surface='graphite'] { --bg: #232323; --panel: #2b2b2b; --panel-solid: #2b2b2b; --raise: #363636; --field: #202020; --header: #262626; --footer: #1e1e1e; --disabled: #454545; --overlay: 24, 24, 24; }
html[data-surface='ink'] { --bg: #0b0b0b; --panel: #141414; --panel-solid: #141414; --raise: #1d1d1d; --field: #0e0e0e; --header: #101010; --footer: #080808; --disabled: #2c2c2c; --overlay: 4, 4, 4; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
/* footer stays at the bottom of the window on short pages */
body > .main { flex: 1 0 auto; width: 100%; }
body > .footer { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 200; padding: 8px 12px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; flex: none; }
.wrap { max-width: 1600px; margin: 0 auto; padding: 0 40px; }
.muted { color: var(--text-2); }
.linklike { padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; font-weight: 600; }
.linklike:hover, .footer__links a:hover { color: var(--accent-hi); }
code { padding: 2px 6px; border-radius: 6px; background: var(--raise); font-size: 14px; }

/* background: official GTA 6 screenshot (Rockstar), darkened */
/* v11: the v8 skyline, lightly softened in the file (no CSS filter), under one flat charcoal-pink tint that matches the pink */
.bg { position: fixed; inset: 0; z-index: -1; background: var(--bg) url('/assets/gta/skyline-bay-1920.jpg') center 40% / cover no-repeat; }
.bg::after { content: ''; position: absolute; inset: 0; background: rgba(var(--tint), var(--dim)); }
html[data-bg='off'] .bg { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn .ic { width: 20px; height: 20px; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hi); }
.btn--ghost { background: var(--raise); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text-2); }
.btn--danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn--danger:hover { background: rgba(255, 107, 107, 0.12); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 15px; }
.btn--lg { height: 52px; padding: 0 24px; font-size: 17px; }
.btn--block { width: 100%; }
.btn:disabled { background: var(--disabled); border-color: var(--disabled); color: var(--disabled-text); cursor: not-allowed; }

/* notice */
.announce { background: var(--header); border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-2); overflow: hidden; transition: height 0.25s ease, opacity 0.2s; }
.announce.is-closing { opacity: 0; }
.ann-closed .announce { display: none; }
.announce__inner { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.announce__icon { color: var(--accent); }
.announce p { flex: 1; min-width: 0; padding: 8px 0; }
.announce strong { color: var(--text); }
.announce__close { display: grid; place-items: center; width: 34px; height: 34px; margin-right: -8px; border: 0; border-radius: 8px; background: none; color: var(--text-2); cursor: pointer; flex: none; }
.announce__close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: var(--header); border-bottom: 1px solid var(--line); transition: background-color 0.2s, box-shadow 0.2s; }
.header.is-scrolled { border-bottom-color: var(--line-2); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { font: 600 27px/1 var(--display); letter-spacing: -0.02em; color: #fff; white-space: nowrap; }
.logo b { color: var(--accent); font-weight: 700; }
.logo i { font-style: normal; color: var(--soft); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 16px; font-weight: 700; white-space: nowrap; }
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__link[aria-current] { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.nav__btn { border: 0; background: none; cursor: pointer; text-align: left; }
.nav__auth-mobile { display: none; }
.header__search { flex: 1; max-width: 520px; margin-left: auto; }
.auth { display: flex; align-items: center; }
.auth__out, .auth__in { display: flex; align-items: center; gap: 14px; position: relative; }
.auth__login { color: var(--text); font-weight: 700; }
.auth__login:hover { color: var(--accent-hi); }
.user-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raise); font-weight: 700; cursor: pointer; }
.user-btn .ic:first-child { width: 24px; height: 24px; color: var(--accent); }
.user-btn .ic:last-child { width: 14px; height: 14px; color: var(--text-2); }
.user-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: flex; flex-direction: column; min-width: 210px; padding: 6px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-solid); }
.user-menu a, .user-menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 8px; background: none; font-weight: 600; text-align: left; cursor: pointer; }
.user-menu a:hover, .user-menu button:hover { background: var(--raise); }
.user-menu .ic { color: var(--soft); }
.menu-btn { display: none; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: none; color: var(--text); cursor: pointer; }

/* search + suggestions */
.search { position: relative; }
.search__form { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--field); border: 1px solid var(--line-2); color: var(--text-2); }
.search:focus-within .search__form { border-color: var(--accent); }
.search__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: #fff; font-size: 16px; }
.search__input::placeholder { color: var(--text-2); }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search--big .search__form { height: 56px; }
.search--big .search__input { font-size: 18px; }
.suggest { position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + 6px); max-height: min(460px, 70vh); overflow-y: auto; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-solid); text-align: left; }
.suggest__count { padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.suggest__count b { color: #fff; font-size: 15px; }
.suggest__item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 10px 14px; }
.suggest__item .ic { width: 22px; height: 22px; color: var(--soft); grid-row: 1 / span 2; }
.suggest__item[aria-selected='true'] { background: var(--raise); }
.suggest__title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__title mark { background: none; color: var(--accent-hi); }
.suggest__cat { grid-column: 2; font-size: 13.5px; color: var(--text-2); }
.suggest__cat .ver { display: none; }
.suggest__size { grid-column: 3; grid-row: 1 / span 2; font-size: 16px; font-weight: 900; white-space: nowrap; }
.suggest__all { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-top: 1px solid var(--line); color: var(--accent-hi); font-weight: 700; }
.suggest__all .ic { width: 18px; height: 18px; }
.suggest__all[aria-selected='true'] { background: var(--raise); }
.suggest__empty { padding: 12px 14px; color: var(--text-2); }

/* home + loader hero */
.hero { padding: 72px 0 64px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero__product { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--accent-hi); font-weight: 700; font-size: 17px; }
.hero__product .ic { width: 22px; height: 22px; }
.hero h1 { font: 700 clamp(42px, 4.6vw, 68px)/1.02 var(--display); letter-spacing: -0.02em; color: #fff; }
.hero__lede { max-width: 34em; margin-top: 18px; font-size: 19px; color: var(--hero-text); }
.hero__price { margin-top: 18px; font-size: 18px; color: var(--text-2); }
.hero__price b { color: #fff; font-size: 22px; font-weight: 900; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__note { margin-top: 12px; font-size: 14px; color: var(--text-2); }
.hero__shot .slot { border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); }

/* other page heroes */
.page-hero { padding: 48px 0 32px; }
.page-hero h1 { font: 700 clamp(38px, 4vw, 56px)/1.05 var(--display); letter-spacing: -0.02em; color: #fff; }
.page-hero p { margin-top: 10px; max-width: 46em; font-size: 18px; color: var(--hero-text); }
.back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-2); font-weight: 700; }
.back:hover { border-color: var(--accent); }
.back-row { padding-top: 28px; margin-bottom: 22px; }

/* sections */
.main { padding-bottom: 56px; }
.sec { margin-top: 48px; }
.sec:first-child { margin-top: 0; }
.sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.sec__title { font: 600 28px/1.1 var(--display); letter-spacing: -0.01em; }
.sec__more { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 700; color: var(--accent-hi); }
.sec__more .ic { width: 16px; height: 16px; }
.box { padding: 26px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.box h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 600 22px/1.2 var(--display); }
.box h2 .ic { width: 26px; height: 26px; color: var(--accent); }
.box p + p { margin-top: 10px; }
.box__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px !important; }
.box--soft { background: var(--panel); }
.box--danger { border-color: rgba(255, 107, 107, 0.35); }
.box--danger h2 .ic { color: var(--danger); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.two-col--form { grid-template-columns: minmax(0, 560px) minmax(0, 420px); }
.two-col--wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }

/* categories */
.cats__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color 0.15s, background-color 0.15s; }
.cat__icon { color: var(--soft); transition: color 0.15s; }
.cat__icon .ic { width: 32px; height: 32px; }
.cat__text { display: flex; flex-direction: column; min-width: 0; }
.cat__name { font-size: 16px; font-weight: 700; line-height: 1.25; }
.cat__n { font-size: 14px; color: var(--text-2); }
.cat:hover { border-color: var(--line-2); }
.cat:hover .cat__icon { color: var(--accent); }
.cat.is-active { border-color: var(--accent); background: var(--raise); }
.cat.is-active .cat__icon { color: var(--accent); }
body[data-page='browse'] .cats { margin-bottom: 28px; }

/* cards */
.grid { display: grid; gap: 24px 20px; align-items: stretch; }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid--browse { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 22px; }
/* every card in a row has the same (invisible) height; the category/size line is pinned to the bottom, titles stay free */
.card { min-width: 0; display: flex; flex-direction: column; }
.card__link { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card__row { margin-top: auto; }
.slot { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--raise); color: var(--text-2); font-size: 13.5px; font-weight: 600; text-align: center; }
.slot > span { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; }
.slot .ic { width: 18px; height: 18px; color: var(--soft); }
.slot--app { aspect-ratio: 16 / 10; font-size: 16px; }
.slot--app .ic, .slot--big .ic { width: 24px; height: 24px; }
.slot--big { border: 1px solid var(--line); font-size: 15px; }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.25; color: #fff; transition: color 0.15s; }
.card__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mcat { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text-2); min-width: 0; }
.mcat .ic { width: 18px; height: 18px; color: var(--soft); }
.size { font-size: 18px; font-weight: 900; color: #fff; white-space: nowrap; }
.card__link:hover .card__title { color: var(--accent-hi); }
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.strip p { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.strip .ic { width: 28px; height: 28px; color: var(--accent); }

/* loader page */
.features { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.feature .ic { width: 34px; height: 34px; color: var(--accent); }
.feature h3 { margin: 12px 0 6px; font-size: 19px; font-weight: 700; }
.feature p { color: var(--text-2); font-size: 15.5px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shots .slot { border: 1px solid var(--line); }
.sec--split { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: start; }
.price { padding: 28px; border: 1px solid var(--accent); border-radius: 16px; background: var(--panel); }
.price h2, .faq h2 { margin-bottom: 14px; font: 600 26px/1.1 var(--display); }
.price__big { font: 700 56px/1 var(--display); color: #fff; }
.price__big small { font: 600 18px var(--font); color: var(--text-2); }
.price__trial { margin: 8px 0 18px; font-size: 18px; font-weight: 700; color: var(--accent-hi); }
.price .checks { margin-bottom: 20px; }
.price__note { margin-top: 10px; font-size: 14px; color: var(--text-2); text-align: center; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: 10px; padding: 16px 0; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--soft); }
.faq__caret { margin-left: auto; transition: transform 0.2s; }
.faq details[open] .faq__caret { transform: rotate(180deg); }
.faq details p { padding: 0 0 16px 30px; color: var(--text-2); max-width: 52em; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.checks .ic { color: var(--accent); }

/* tools page */
.tools-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.tool { display: grid; grid-template-columns: 44px 220px minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.tool__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 22px; font-weight: 900; }
.tool__text h2 { font-size: 22px; font-weight: 700; }
.tool__text h2 a:hover { color: var(--accent-hi); }
.tool__text p { margin-top: 6px; color: var(--text-2); }
.tool__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.tool__meta .size { font-size: 20px; }
.tools-aside { position: sticky; top: 96px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.tools-aside h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font: 600 21px/1.2 var(--display); }
.tools-aside .ic { width: 26px; height: 26px; color: var(--accent); }
.tools-aside p { margin-bottom: 16px; color: var(--text-2); }

/* browse */
.browse { padding: 22px 24px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.toolbar { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.toolbar__count { font-size: 17px; color: var(--text-2); white-space: nowrap; }
.toolbar__count .ic { display: none; }
.toolbar__count b { font-size: 26px; font-weight: 900; color: #fff; }
.toolbar__search { flex: 1; max-width: 480px; margin-left: auto; }
.select { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 6px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--field); color: var(--soft); }
.select select { height: 100%; padding: 0 6px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; font-weight: 700; }
.select select option { background: var(--panel-solid); }
.tagrow { display: flex; align-items: baseline; gap: 12px; padding: 14px 0 4px; }
.tagrow__label { font-size: 14px; font-weight: 700; color: var(--text-2); flex: none; }
.tagrow__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color 0.15s, color 0.15s, background-color 0.15s; }
.tag:hover { border-color: var(--soft); color: var(--text); }
.tag[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.active { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.active:empty { display: none; }
.active__x { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--accent); border-radius: 999px; background: none; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
.active__x .ic { width: 14px; height: 14px; }
.empty { padding: 36px 0 16px; text-align: center; }
.empty h2 { margin-bottom: 6px; font-size: 22px; }
.empty p { color: var(--text-2); }

/* mod page */
.mod { padding: 26px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.mod__head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.mod__title { font: 700 clamp(32px, 3.6vw, 46px)/1.1 var(--display); letter-spacing: -0.02em; }
.mod__ver { font-weight: 500; color: var(--soft); }
.mod__labels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lbl { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--raise); color: var(--text-2); font-size: 14px; font-weight: 700; }
.lbl--sp { color: var(--ok); }
.lbl .ic { width: 16px; height: 16px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 20px; }
.stat { display: flex; align-items: center; gap: 12px; }
.stat .ic { width: 30px; height: 30px; color: var(--soft); }
.stat > span { display: flex; flex-direction: column; line-height: 1.15; }
.stat b { font-size: 24px; font-weight: 900; color: #fff; }
.stat small { font-size: 13.5px; color: var(--text-2); }
.mod__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; margin-top: 24px; align-items: start; }
.sub { margin-top: 28px; }
.sub h2 { margin-bottom: 10px; font: 600 22px/1.2 var(--display); }
.desc { max-width: 50em; font-size: 17px; line-height: 1.65; }
.reqs { display: flex; flex-direction: column; gap: 8px; }
.reqs li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.req { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raise); font-weight: 700; }
.req:hover { border-color: var(--accent); }
.req .ic { width: 22px; height: 22px; color: var(--soft); }
.req b { font-size: 16px; font-weight: 900; white-space: nowrap; }
.req--ext { color: var(--text-2); }
.req__or { font-size: 13px; font-weight: 700; color: var(--text-2); text-transform: uppercase; }
.reqs__by { margin-top: 10px; color: var(--text-2); }
.reqs__by b { color: #fff; font-size: 17px; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: 16px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--raise); color: #fff; font-weight: 900; }
.loader-tip { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--text-2); }
.loader-tip .ic { color: var(--accent); }
.loader-tip a { color: var(--accent-hi); font-weight: 700; }
.mod__side { display: flex; flex-direction: column; gap: 12px; }
.dl { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 80px; border: 0; border-radius: 12px; background: var(--disabled); color: var(--disabled-text); font: 700 30px/1 var(--display); cursor: not-allowed; }
.dl .ic { width: 34px; height: 34px; }
.dl__note { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--text-2); }
.side-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--raise); }
.side-box > .ic { width: 40px; height: 40px; color: var(--soft); }
.side-box > span { display: flex; flex-direction: column; }
.side-box b { font-size: 16px; }
.side-box small { color: var(--text-2); font-size: 14px; }
.side-box--ver { flex-direction: column; align-items: stretch; gap: 8px; }
.side-box--ver > .side-box__h { flex-direction: row; align-items: center; }
.side-box__h { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.side-box__h .ic { color: var(--soft); }
.side-box__row { display: flex !important; flex-direction: row !important; align-items: baseline; gap: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.side-box__row b { font-size: 20px; font-weight: 900; color: #fff; }
.side-box__row span { font-size: 17px; font-weight: 900; }
.side-box__row small { margin-left: auto; }
[data-share].is-done { border-color: var(--ok); color: var(--ok); }

/* forms + account */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.field input { height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--field); color: #fff; font-size: 16px; font-weight: 500; }
.field input:focus { outline: 0; border-color: var(--accent); }
.field__hint { margin-top: -8px; font-size: 14px; color: var(--text-2); }
.form__error { padding: 10px 12px; border-radius: 10px; background: rgba(255, 107, 107, 0.12); color: #ffb0b0; font-weight: 600; }
.form__ok { padding: 10px 12px; border-radius: 10px; background: rgba(143, 214, 166, 0.12); color: var(--ok); font-weight: 600; }
.form__alt { color: var(--text-2); text-align: center; }
.form__alt a { color: var(--accent-hi); font-weight: 700; }
.form .btn { align-self: flex-start; }
.form .btn--block { align-self: stretch; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--danger); }
.account { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.account--settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gsigned { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 8px; padding: 6px 12px; border: 1px solid #8e918f; border-radius: 999px; background: #131314; color: #e3e3e3; font: 500 14px/20px Roboto, Arial, sans-serif; }
.gsigned .gbtn__g { width: 18px; height: 18px; }
.gsigned[hidden] { display: none; }
[data-username-box].is-pick { border-color: var(--accent); }
.profile div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.profile dt { color: var(--text-2); }
.profile dd { font-weight: 700; text-align: right; word-break: break-all; }

/* privacy */
.ctable { width: 100%; border-collapse: collapse; margin: 4px 0 16px; font-size: 15px; }
.ctable th { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-2); text-align: left; color: var(--text-2); font-size: 14px; }
.ctable td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.nf .search { max-width: 640px; margin-top: 14px; }

/* footer */
.footer { padding: 28px 0 32px; border-top: 1px solid var(--line); background: var(--footer); color: var(--text-2); font-size: 15px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer__links a { color: var(--text); font-weight: 600; }

/* cookie banner */
.consent { position: fixed; z-index: 90; left: 20px; bottom: 20px; width: min(420px, calc(100vw - 40px)); padding: 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel-solid); opacity: 0; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease; }
.consent.is-shown { opacity: 1; transform: none; }
.consent p { font-size: 15px; color: var(--text-2); }
.consent p strong { font-size: 17px; color: #fff; }
.consent p + p { margin-top: 4px; }
.consent a { color: var(--accent-hi); font-weight: 700; }
.consent__actions { display: flex; gap: 8px; margin-top: 14px; }
.consent__actions .btn { flex: 1; }

/* ---------- v8 additions ---------- */

.cat--soon { position: relative; opacity: 0.55; cursor: default; }
.cat--soon .cat__n { font-size: 13px; white-space: nowrap; }
.cat--soon .cat__n .ic { position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; }
.cat--soon:hover { border-color: var(--line); }
.cat--soon:hover .cat__icon { color: var(--soft); }

.tools__h { margin: 6px 0 14px; font: 600 22px/1.2 var(--display); }
.tools + .tools__h { margin-top: 30px; }
.tool__n--icon { background: var(--raise); color: var(--soft); }
.tool__n--icon .ic { width: 22px; height: 22px; }
.box__h3 { margin: 20px 0 6px; font-size: 17px; font-weight: 700; }

/* settings page */
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.settings .box { display: flex; flex-direction: column; gap: 14px; }
.settings .box h2 { margin-bottom: 0; }
.settings .box__actions { margin-top: 0 !important; }
.settings__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.settings__saved { color: var(--ok); font-weight: 700; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.swatch { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 2px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.swatch input, .seg input, .toggle input { position: absolute; opacity: 0; pointer-events: none; }
.swatch__chip { position: relative; height: 56px; border-radius: 8px; border: 1px solid var(--line-2); overflow: hidden; }
.swatch__chip::before { content: ''; position: absolute; left: 10px; right: 10px; top: 10px; bottom: 10px; border-radius: 5px; background: var(--chip-panel); }
.swatch__chip::after { content: ''; position: absolute; left: 18px; top: 18px; width: 30px; height: 8px; border-radius: 4px; background: var(--accent); }
.swatch--charcoal .swatch__chip { background: #161616; --chip-panel: #262626; }
.swatch--graphite .swatch__chip { background: #232323; --chip-panel: #333333; }
.swatch--ink .swatch__chip { background: #0b0b0b; --chip-panel: #1a1a1a; }
.settings .muted a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.swatch__text { display: flex; flex-direction: column; }
.swatch__text small { color: var(--text-2); }
.swatch:has(input:checked) { border-color: var(--accent); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.toggle { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.toggle__ui { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line-2); flex: none; transition: background-color 0.15s; }
.toggle__ui::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-2); transition: transform 0.15s, background-color 0.15s; }
.toggle input:checked + .toggle__ui { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle__ui::after { transform: translateX(20px); background: #fff; }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.range { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.range b { color: #fff; font-weight: 900; }
.range input { width: 100%; accent-color: var(--accent); }
.range input:disabled { opacity: 0.4; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--field); width: max-content; }
.seg label { cursor: pointer; }
.seg span { display: block; padding: 8px 16px; border-radius: 8px; font-weight: 700; color: var(--text-2); }
.seg input:checked + span { background: var(--accent); color: var(--on-accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

/* compact list density */
html[data-density='compact'] .grid { gap: 14px 14px; }
html[data-density='compact'] .grid--browse { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
html[data-density='compact'] .grid--6 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
html[data-density='compact'] .card__link { gap: 6px; }
html[data-density='compact'] .slot { aspect-ratio: 16 / 7; font-size: 12.5px; }
html[data-density='compact'] .card__title { font-size: 15.5px; }
html[data-density='compact'] .size { font-size: 16px; }
html[data-density='compact'] .tool { padding: 14px; gap: 16px; grid-template-columns: 40px 160px minmax(0, 1fr); }
html[data-density='compact'] .tool__text p { font-size: 15px; }
html[data-density='compact'] .cat { padding: 12px; }

/* reduce motion (setting) */
html[data-motion='reduce'] *, html[data-motion='reduce'] *::before, html[data-motion='reduce'] *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }

@media (max-width: 1100px) { .settings { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  body[data-page='home'] .cats__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  body[data-page='home'] .cat { padding: 12px; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatch { padding: 8px; }
  .swatch__chip { height: 40px; }
  .tools + .tools__h { margin-top: 22px; }
  html[data-density='compact'] .grid--browse, html[data-density='compact'] .grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-density='compact'] .tool { grid-template-columns: 40px minmax(0, 1fr); }
}

/* ---------- v10 additions ---------- */
.intro { padding: 72px 0 56px; }
.intro__inner { max-width: 1600px; }
.intro h1 { font: 700 clamp(40px, 4.4vw, 64px)/1.05 var(--display); letter-spacing: -0.02em; color: #fff; }
.intro__lede { max-width: 40em; margin: 14px 0 26px; font-size: 19px; color: var(--hero-text); }
.intro .search { max-width: 760px; }
.intro .search__form { background: var(--panel); }


/* home: Mod Loader section, right after the intro (part of the page, no panel) */
.ml__lede { max-width: 60em; margin: -6px 0 22px; font-size: 18px; color: var(--hero-text); }
.ml__feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ml__feats li { display: flex; align-items: flex-start; gap: 14px; }
.ml__feats .ic { width: 34px; height: 34px; color: var(--accent); flex: none; margin-top: 2px; }
.ml__feats li > span { display: flex; flex-direction: column; gap: 4px; }
.ml__feats b { font-size: 18px; color: #fff; }
.ml__feats li > span > span { font-size: 15.5px; color: var(--text-2); }
.ml__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 26px; }
.ml__price { margin-right: 8px; font-size: 19px; font-weight: 900; color: #fff; }
.main > .ml + .ad { margin-top: 48px; }

/* Mod Loader pricing (v13): monthly or yearly */
.save { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.72em; font-weight: 900; vertical-align: 0.12em; white-space: nowrap; }
.plans { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--raise); }
.plan--year { border-color: var(--accent); }
.plan__name { font-weight: 700; color: #fff; }
.plan .price__big { grid-column: 2; grid-row: 1 / span 2; font-size: 34px; white-space: nowrap; text-align: right; }
.plan .price__big small { font-size: 15px; }
.plan__note { font-size: 13.5px; color: var(--text-2); }

/* Continue with Google: Google's dark-theme sign-in button (standard G, Roboto Medium 14px, 40px tall, pill) */
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid #8e918f; border-radius: 20px; background: #131314; color: #e3e3e3; font: 500 14px/20px Roboto, Arial, sans-serif; letter-spacing: 0.25px; }
.gbtn:hover { background: #1f2020; }
.gbtn__g { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.form__notice { padding: 10px 12px; border-radius: 10px; background: rgba(255, 107, 139, 0.12); color: #ffc2cf; font-weight: 600; }

/* Terms of Service (v15): readable legal text */
.legal { max-width: 880px; padding: 30px 36px 34px; }
.legal__sec + .legal__sec { margin-top: 30px; }
.legal > p:first-child { margin-bottom: 18px; }
.legal h2 { margin-bottom: 12px; font: 600 23px/1.25 var(--display); letter-spacing: -0.01em; color: #fff; scroll-margin-top: 96px; }
.legal p { font-size: 16.5px; line-height: 1.7; color: var(--hero-text); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 10px; }
.legal ul { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; list-style: disc; }
.legal li { font-size: 16.5px; line-height: 1.65; color: var(--hero-text); }
.legal li::marker { color: var(--accent); }
.legal strong { color: #fff; }
.legal a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal__n { margin-right: 4px; font-weight: 700; color: #fff; }
.legal__short { padding: 18px 22px 20px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--raise); }
.legal__short h2 { font-size: 20px; }
.form__legal { font-size: 13.5px; color: var(--text-2); text-align: center; }
.form__legal a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.form__legal a:hover { color: var(--accent-hi); }

/* v16: author byline, Official team badge, avatars, author page */
.mod__by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 16px; color: var(--text-2); }
.mod__by a { color: #fff; font-weight: 700; }
.mod__by a:hover { color: var(--accent-hi); }
.badge-team { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent-hi); font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge-team .ic { width: 16px; height: 16px; color: var(--accent); }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 20px/1 var(--display); }
.avatar--lg { width: 96px; height: 96px; font-size: 46px; }
.side-box--author { transition: background-color 0.15s; }
.side-box > span.avatar { display: grid; }
.side-box--author:hover { background: var(--panel); }
.side-box--author b { color: #fff; }
.author { display: flex; align-items: center; gap: 24px; }
.author__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.author__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--text-2); font-size: 16px; }
.author__bio { max-width: 46em; font-size: 17px; color: var(--hero-text); }
.author__stats { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--text-2); font-size: 16px; }
.author__stats b { color: #fff; font-size: 22px; font-weight: 900; }

/* v16: download version picker */
.vpick { display: flex; flex-direction: column; gap: 6px; }
.vpick__h { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.vpick__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--raise); color: var(--text); cursor: pointer; text-align: left; transition: border-color 0.15s; }
.vpick__btn:hover, .vpick.is-open .vpick__btn { border-color: var(--accent); }
.vpick__sum { display: flex; flex-direction: column; line-height: 1.25; }
.vpick__sum b { font-size: 18px; font-weight: 900; color: #fff; }
.vpick__sum span { font-size: 15px; font-weight: 700; color: var(--text-2); }
.vpick__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.vpick__more .ic { width: 16px; height: 16px; transition: transform 0.2s; }
.vpick.is-open .vpick__more .ic { transform: rotate(180deg); }
.vpick__list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 6px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-solid); min-width: 0; }
.js .vpick:not(.is-open) .vpick__list { display: none; }
.vopt { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 56px; padding: 10px 12px 10px 40px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.vopt:hover { background: var(--raise); }
.vopt input { position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.vopt:has(input:checked) { border-color: var(--accent); background: var(--raise); }
.vopt input:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.vopt__main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vopt__main b { display: flex; align-items: center; gap: 8px; font-size: 16px; color: #fff; }
.vopt__main small { font-size: 13.5px; color: var(--text-2); }
.vopt__new { padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 900; }
.vopt__size { font-size: 17px; font-weight: 900; color: #fff; white-space: nowrap; }
.vpick__foot { padding: 2px 12px 4px; font-size: 13px; color: var(--text-2); }
.dl__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.dl__text small { font: 700 14px/1.3 var(--font); }

/* mod images (v16.3): same 16:9 box as the placeholder, so nothing moves when an image loads */
.shot { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--raise); }
.shot__img { display: block; width: 100%; height: 100%; object-fit: cover; }
html[data-density='compact'] .shot { aspect-ratio: 16 / 7; }
.concept { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; background: rgba(22, 22, 22, 0.86); border: 1px solid var(--line-2); color: var(--text); font-size: 11.5px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.3; pointer-events: none; }
.concept[hidden] { display: none; }
.gallery__main { position: relative; margin: 0; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--raise); }
.gallery__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery__main .concept { top: 12px; left: 12px; }
.gallery__thumbs { display: flex; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; overflow-x: auto; }
.gallery__thumb { display: block; width: 128px; aspect-ratio: 16 / 9; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--raise); opacity: 0.72; transition: opacity 0.15s, border-color 0.15s; }
.gallery__thumb:hover, .gallery__thumb:focus-visible, .gallery__thumb[aria-current='true'] { opacity: 1; }
.gallery__thumb[aria-current='true'] { border-color: var(--accent); }
.gallery__timg { display: block; width: 100%; height: 100%; object-fit: cover; }
/* v16.8: the Mod Loader screenshots on /loader/ (hero column): 5 thumbnails share the width; captions under them */
.hero__shot .gallery__main { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.gallery--app .gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
.gallery--app .gallery__thumb { width: auto; }
.gallery__cap { margin: 12px 0 0; color: var(--text); font-size: 15px; font-weight: 700; }
.gallery__note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.gallery__note .concept { position: static; }
/* before/after slider: the "after" image sets the size (width/height attributes, so no shift); the "before" image sits on
   top, cut at --pos from the left. JS sets --pos; the range input is the real control for keyboard and screen readers. */
.ba { --pos: 50%; margin: 0; }
.compare .ba + .ba { margin-top: 22px; }
.ba__frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.ba__frame img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__before img { height: 100%; object-fit: cover; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #fff; color: #161616; }
.ba__knob .ic { width: 22px; height: 22px; }
.ba__tag { position: absolute; top: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(22, 22, 22, 0.86); color: #fff; font-size: 12.5px; font-weight: 700; pointer-events: none; transition: opacity 0.15s; }
.ba__tag--before { left: 10px; }
.ba__tag--after { right: 10px; }
.ba--lo .ba__tag--before, .ba--hi .ba__tag--after { opacity: 0; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ba:has(.ba__range:focus-visible) .ba__knob, .ba.is-kbd .ba__knob { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba.is-smooth .ba__before { transition: clip-path 0.22s ease; }
.ba.is-smooth .ba__line { transition: left 0.22s ease; }
.ba.is-dragging .ba__before, .ba.is-dragging .ba__line { transition: none; }
.ba__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; color: var(--text-2); font-size: 14px; }
.ba__cap .concept { position: static; }
html[data-motion='reduce'] .ba__before, html[data-motion='reduce'] .ba__line, html[data-motion='reduce'] .ba__tag { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .ba__before, .ba__line, .ba__tag, .gallery__thumb { transition: none !important; } }
@media (max-width: 700px) { .gallery__thumb { width: 96px; } .gallery--app .gallery__thumbs { display: flex; overflow-x: auto; } .gallery--app .gallery__thumb { width: 96px; flex: none; } .ba__knob { width: 38px; height: 38px; margin: -19px 0 0 -19px; } }

/* ads: labelled placeholders in standard sizes; no ad code yet */
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad__label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.ad__box { display: grid; place-items: center; width: 100%; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--panel); color: var(--soft); font-size: 13px; font-weight: 600; }
.ad__size--narrow { display: none; }
.ad--leader { margin: 0 auto; }
.ad--leader .ad__box { max-width: 728px; height: 90px; }
/* in-feed: one grid cell; its box is the same 16:9 as the card images so the row still lines up */
.ad--feed { position: relative; align-items: stretch; align-self: start; }
.ad--feed .ad__label { position: absolute; top: 8px; left: 10px; z-index: 1; }
.ad--feed .ad__box { aspect-ratio: 16 / 9; }
.ad--rect .ad__box { width: 300px; max-width: 100%; height: 250px; }
.mod__side .ad { margin-top: 6px; }


/* settings (signed in): account + site */
.settings-page .sec:first-child { margin-top: 0; }
.sec__head .muted { margin-left: 16px; margin-right: auto; }

/* responsive */
@media (max-width: 1400px) {
  .grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--6 > :nth-child(n+5) { display: none; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ml__feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .header__inner { gap: 16px; }
  .nav__link { padding: 8px 8px; font-size: 15px; }
  .mod__side .ad { display: none; }
  .hero__grid, .sec--split, .tools-layout, .mod__grid, .two-col, .two-col--form, .two-col--wide { grid-template-columns: minmax(0, 1fr); }
  .tools-aside { position: static; }
  .mod__side { order: -1; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .header__inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .menu-btn { display: grid; }
  .auth { margin-left: auto; }
  .user-btn { height: 40px; padding: 0 8px; max-width: 128px; gap: 6px; }
  .header__inner { gap: 8px; }
  .header .logo { font-size: 23px; }
  .user-btn [data-username] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .user-btn .ic:last-child { display: none; }
  .auth__login { display: none; }
  .header__search { order: 4; flex: 1 0 100%; max-width: none; margin: 0; }
  .nav { order: 5; display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 4px; }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 10px; font-size: 17px; }
  .nav__auth-mobile { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
  .nav__auth-mobile[hidden] { display: none !important; }
  .hero { padding: 40px 0 36px; }
  .hero__grid { gap: 28px; }
  .hero__lede { font-size: 17px; }
  .page-hero { padding: 32px 0 22px; }
  .grid--6, .grid--browse { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .grid--6 > :nth-child(n+5) { display: block; }
  .cats__inner { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .cats__inner::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 auto; flex-direction: row; align-items: center; padding: 10px 14px 10px 12px; gap: 10px; }
  .cat__icon .ic { width: 28px; height: 28px; }
  .cat--soon .cat__n .ic { display: none; }
  .card__title { font-size: 16px; }
  .card__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .size { font-size: 17px; }
  .features, .shots, .account { grid-template-columns: minmax(0, 1fr); }
  .tool { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .tool__slot { display: none; }
  .tool__n { width: 40px; height: 40px; font-size: 19px; }
  .browse, .mod, .box { padding: 18px 16px; }
  .toolbar { flex-wrap: wrap; gap: 10px; }
  .toolbar__search { order: 3; flex: 1 0 100%; max-width: none; }
  .select { margin-left: auto; }
  .tagrow { flex-direction: column; align-items: stretch; gap: 8px; }
  .tagrow__tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .tagrow__tags::-webkit-scrollbar { display: none; }
  .tag { flex: none; }
  .stats { gap: 12px 24px; }
  .stat b { font-size: 20px; }
  .dl { height: 70px; font-size: 26px; }
  .strip { padding: 16px; }
  .ctable th:nth-child(4), .ctable td:nth-child(4) { display: none; }
  .consent { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .intro { padding: 40px 0 34px; }
  .intro__lede { font-size: 17px; }
  .ml__lede { font-size: 16.5px; margin-bottom: 18px; }
  .ml__feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .ml__feats li { flex-direction: column; gap: 8px; }
  .ml__feats b { font-size: 16.5px; }
  .ml__feats li > span > span { font-size: 14.5px; }
  .ml__foot .btn { flex: 1 1 100%; }
  .ml__price { flex: 1 1 100%; font-size: 17px; }
  .author { flex-direction: column; align-items: flex-start; gap: 14px; }
  .avatar--lg { width: 68px; height: 68px; font-size: 32px; }
  .author__bio { font-size: 16px; }
  .legal { padding: 20px 16px 24px; }
  .legal h2 { font-size: 20px; }
  .legal p, .legal li { font-size: 16px; }
  .legal__short { padding: 14px 14px 16px; }
  .ad__size--wide { display: none; }
  .ad__size--narrow { display: inline; }
  .ad--leader .ad__box { max-width: 320px; height: 50px; }
  .sec__head .muted { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }

/* v17: Mod Loader accounts (staging only): /device/ approval, Settings → Subscription and Signed-in apps */
.device { max-width: 680px; }
.device__box { display: flex; flex-direction: column; gap: 12px; }
.device__box > * { margin: 0; }
.device__box h2 { margin-bottom: 2px; }
.device__signin { display: flex; flex-direction: column; gap: 4px; max-width: 420px; }
.device__signin .box__actions { margin-top: 8px !important; }
.code { font: 700 1.05em/1 var(--display); letter-spacing: 0.08em; color: #fff; white-space: nowrap; }
.code--big { font-size: 34px; letter-spacing: 0.12em; }
.device__code { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--raise); }
.device__facts dd { word-break: normal; }
.codein { font: 700 26px/1 var(--display) !important; letter-spacing: 0.14em; text-transform: uppercase; max-width: 320px; }
.codein::placeholder { color: var(--disabled); }
.device__box .btn--lg { align-self: flex-start; }
.warn { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid rgba(255, 107, 107, 0.45); border-left: 4px solid var(--danger); border-radius: 10px; background: rgba(255, 107, 107, 0.08); }
.warn .ic { flex: none; width: 24px; height: 24px; color: var(--danger); margin-top: 1px; }
.warn p { margin: 0; color: var(--text); }
.device__done h2 .ic { color: var(--ok); }
.sub__now { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 4px; }
.sub__plan { font: 600 24px/1.2 var(--display); color: #fff; }
.sub__badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(143, 214, 166, 0.14); color: var(--ok); font-size: 14px; font-weight: 700; }
.sub__badge.is-off { background: rgba(255, 107, 107, 0.12); color: var(--danger); }
.sub__when { margin: 0 0 16px; color: var(--text-2); }
.sub__plans { margin-bottom: 14px; }
.sub__plans .price__big { font-size: 28px; }
.sub__plans .btn { grid-column: 1 / -1; margin-top: 10px; }
.sub__cancel { margin-bottom: 14px; }
.sub__confirm { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--raise); }
.sub__confirm p { margin: 0; }
.sub__confirm .box__actions { margin-top: 12px !important; }
.sub__note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; color: var(--text-2); font-size: 14.5px; }
.sub__note .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--soft); }
.sub__note b { color: var(--text); }
.apps__list { margin: 0 0 16px; padding: 0; list-style: none; }
.apps__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.apps__row:first-child { border-top: 1px solid var(--line); }
.apps__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.apps__text b { color: #fff; }
.apps__text .muted { font-size: 14px; }
.apps__row .btn { flex: none; }
@media (max-width: 860px) {
  .code--big { font-size: 28px; }
  .apps__row { align-items: flex-start; }
}

/* v17.1: real Stripe on staging: the real-money note, the demo option, Manage or cancel plan, the post-checkout wait */
.sub__upgrade { margin-bottom: 14px; }
.sub__upgrade .sub__plans { margin-bottom: 10px; }
.sub__real { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raise); font-size: 14.5px; color: var(--text); }
.sub__real .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.sub__demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--text-2); font-size: 14px; }
.sub__demo > span { flex: 1 0 100%; }
.sub__manage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 4px; }
.sub__manage .muted { font-size: 14px; }
.sub__confirming { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--raise); font-weight: 600; }
.sub__spin { flex: none; width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: sub-spin 0.9s linear infinite; }
@keyframes sub-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sub__spin { animation: none; } }
html[data-motion='reduce'] .sub__spin { animation: none; }

/* v17.3: /loader/download/ (early-access Mod Loader download) and the small link on /loader/ */
.hero__dl { margin-top: 10px; font-size: 14.5px; }
.hero__dl a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.hero__dl a:hover { text-decoration-color: var(--accent); }
.hero__dl .ic { width: 16px; height: 16px; color: var(--accent); }
.dlp { display: flex; flex-direction: column; gap: 20px; }
.dlp__box, .dlp__lock { max-width: 620px; }
.dlp__lock { display: flex; flex-direction: column; gap: 12px; }
.dlp__lock > * { margin: 0; }
.dlp__lock .btn--lg { align-self: flex-start; }
.dlp__fine { font-size: 14px; }
.pw { display: flex; align-items: stretch; gap: 8px; }
.pw input { flex: 1; min-width: 0; }
.pw__toggle { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raise); color: var(--text); font-weight: 700; cursor: pointer; }
.pw__toggle:hover { border-color: var(--text-2); }
.pw__toggle .ic { width: 18px; height: 18px; }
.dlp__head h2 { flex-wrap: wrap; }
.dlp__ver { padding: 2px 10px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line-2); font: 700 15px/1.4 var(--font); color: var(--text); }
.dlp__head p { margin: 0 0 8px; }
.dlp__until { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; }
.dlp__files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dlp__file { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dlp__file > * { margin: 0; }
.dlp__os { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 600 24px/1.2 var(--display); color: #fff; }
.dlp__os .muted { font: 500 14px var(--font); }
.dlp__btn { justify-content: space-between; }
.dlp__btn small { font-weight: 600; opacity: 0.8; }
.dlp__btn[aria-disabled='true'] { pointer-events: none; opacity: 0.5; }
.dlp__name { font-size: 13.5px; overflow-wrap: anywhere; }
.dlp__sha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); }
.dlp__shalab { font-size: 12.5px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; }
.dlp__hash { flex: 1 1 100%; order: 3; font: 500 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); word-break: break-all; user-select: all; }
.dlp__sha .btn { margin-left: auto; }
.dlp__unlocked:not([hidden]) { display: flex; flex-direction: column; gap: 20px; }
.dlp__steps { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; color: var(--text); list-style: decimal; }
.dlp__steps li { padding-left: 4px; }
.dlp__steps li::marker { color: var(--accent); font-weight: 700; }
.dlp__steps code { padding: 1px 6px; border-radius: 6px; background: var(--field); border: 1px solid var(--line); font: 500 13.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.dlp__signin p { margin: 0; }
@media (max-width: 860px) { .dlp__files { grid-template-columns: minmax(0, 1fr); } .dlp__os { font-size: 21px; } }
