/* ==========================================================================
   myslop.shop — site.css (v4). Layer 1: tile catalog structure (v3). Layer 2:
   the "Charts" look (tokens, type, buttons, ticker, app page). Layer 3: the
   two combined (tiles in the charts style, gallery hero).
   ========================================================================== */

/* --- 0. tokens ------------------------------------------------------------ */
:root:root:root {
  color-scheme: dark;
  --ink: #0e0f12; --ink-2: #15171b; --ink-3: #1c1f24; --ink-4: #252930;
  --line: #24272e; --line-2: #343841;
  --bone: #eceef2; --text-2: #b9bec8; --mute: #969ca8; --dim: #737986;
  --lime: #8fb3ff; --lime-2: #a9c4ff; --lime-d: #5a7fd6;            /* the accent (name kept for compatibility) */
  --red: #ff7088; --red-d: #c84a60;                                  /* hearts + destructive */
  --amber: #f3b04c; --amber-2: #ffc670; --amber-soft: rgba(243, 176, 76, .08); --amber-line: rgba(243, 176, 76, .55);
  --up: #6fd19b; --down: #ff8f8f;
  --f-disp: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --spring: cubic-bezier(.3, 1.3, .5, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(16px, 3.2vw, 40px);

  /* app.css tokens */
  --bg: var(--ink); --surface: var(--ink-2); --surface-2: var(--ink-3); --surface-3: var(--ink-4);
  --border: var(--line); --border-strong: var(--line-2);
  --text: var(--bone); --text-3: var(--mute);
  --accent: var(--lime); --accent-hover: var(--lime-2); --on-accent: #0b1122;
  --accent-text: var(--lime); --accent-soft: rgba(143, 179, 255, .09); --accent-soft-border: rgba(143, 179, 255, .32);
  --success: #7dd3a4; --success-soft: rgba(125, 211, 164, .08); --success-border: rgba(125, 211, 164, .3);
  --warning: #f3c37e; --warning-soft: rgba(243, 195, 126, .08); --warning-border: rgba(243, 195, 126, .3);
  --danger: #ff8a9b; --danger-soft: rgba(255, 112, 136, .08); --danger-border: rgba(255, 112, 136, .35);
  --info: #9fbcff; --info-soft: rgba(159, 188, 255, .08); --info-border: rgba(159, 188, 255, .3);
  --sponsored-bg: var(--amber-soft); --sponsored-border: var(--amber-line); --sponsored-text: var(--amber);
  --focus: var(--lime); --overlay: rgba(0, 0, 0, .7); --code-bg: #0a0b0d; --selection: rgba(143, 179, 255, .35);
  --font-sans: var(--f-body); --font-mono: var(--f-mono);
  --shadow-1: none; --shadow-2: 0 10px 30px -12px rgba(0, 0, 0, .7); --shadow-pop: 0 24px 48px -16px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03);
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px;
  --container: 1440px; --gutter: var(--gut); --header-h: 64px;
  --control-h: 40px; --control-h-sm: 32px; --control-h-lg: 44px;
  --ease: var(--out); --dur: 180ms;
}

/* --- 1. base -------------------------------------------------------------- */
html { background: var(--ink); overflow-x: clip; scroll-padding-top: 84px; }
body { background: var(--ink); color: var(--bone); font-family: var(--f-body); font-size: 15px; line-height: 1.55; font-feature-settings: "cv11", "ss01"; overflow-x: clip; -webkit-font-smoothing: antialiased; }
::selection { background: var(--selection); color: #fff; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { letter-spacing: -.01em; font-family: var(--f-body); }
.mono { font-family: var(--f-mono); font-size: .92em; letter-spacing: 0; }
.wrap, .container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gut); }
.container--narrow { max-width: calc(820px + 2 * var(--gut)); }
.link { color: var(--lime); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon { stroke-width: 1.9; }
.show-xs { display: none; }
@media (max-width: 420px) { .hide-xs { display: none; } .show-xs { display: inline; } }
.skip-link { background: var(--lime); color: var(--on-accent); font-weight: 600; }
.kbd, kbd { background: transparent; color: var(--mute); border: 1px solid var(--line-2); border-radius: 5px; font: 500 11px var(--f-mono); height: 20px; }
.announcement { background: var(--ink-3); color: var(--text-2); border-bottom: 1px solid var(--line); font-size: 13.5px; padding: 8px 0; text-align: center; }
.text-xs { font-size: 13px; }
.subtle, .muted { color: var(--mute); }

/* --- 2. small helpers ----------------------------------------------------- */

/* --- 2. small helpers kept from the previous stylesheet -------------------- */
.link-btn { background: none; border: 0; padding: 0; color: var(--lime); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.inline-form { display: inline; }
.tag--more::before { content: none; }
.owner-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; margin: 20px 0 0; background: var(--ink-2); border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14px; }
.owner-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.owner-bar form { margin: 0; }
.like-wrap { position: relative; display: inline-flex; }
.like-pop { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 250px;
  padding: 14px; font-size: 14px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-pop); animation: pop .32s var(--spring); }
.tag-input-wrap { position: relative; }
.tag-input__count { margin-left: auto; font-size: 12px; color: var(--mute); align-self: center; padding-right: 4px; }
.tag-input__label { padding: 8px 12px 4px; font: 600 12px var(--f-body); color: var(--dim); list-style: none; }
.tag-input__meta { margin-left: auto; font-size: 12px; color: var(--mute); }
.tag-input__option { display: flex; gap: 12px; }
.tag-input__chip.is-armed { outline: 2px solid var(--red); outline-offset: 1px; }
.import-panel { max-width: 760px; }
.import-steps { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--text-2); }
.import-steps .is-ok { color: var(--lime); }
.import-steps .is-fail { color: var(--mute); }
.field__counter.is-over { color: var(--red); }
.cover-suggest { display: flex; gap: 16px; align-items: center; padding: 12px; border: 1px dashed var(--line-2); border-radius: 12px; }
.cover-suggest img { width: 160px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cover-preview img { width: 100%; max-width: 360px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; margin-bottom: 8px; }
.sticky-aside { display: flex; flex-direction: column; gap: 12px; }
.form-actions--sticky { position: sticky; bottom: 0; z-index: 5; padding-block: 12px; background: rgba(14, 15, 18, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); flex-wrap: wrap; }
.upload-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.upload-item progress { width: 120px; accent-color: var(--lime); }
.md-editor__tool--wide { width: auto; padding-inline: 8px; gap: 4px; display: inline-flex; align-items: center; }
.mermaid-diagram { overflow-x: auto; padding: 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; }
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.choice { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover { border-color: #454a55; }
.choice:has(input:checked) { border-color: var(--lime); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--lime); }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__title { font-weight: 600; }
.choice__meta { font-size: 13px; color: var(--mute); }
.choice__price { font: 600 18px var(--f-mono); margin-top: 6px; }
.summary-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.summary-list dt { color: var(--mute); font-size: 13.5px; align-self: center; }
.summary-list dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.timeline li { display: flex; gap: 12px; color: var(--mute); }
.timeline li.is-done { color: var(--bone); }
.timeline li::before { content: "○"; font-family: var(--f-mono); }
.timeline li.is-done::before { content: "●"; color: var(--lime); }
.legal h2 { margin-top: 32px; }
.dropdown__menu form { margin: 0; }
.dropdown__menu button.dropdown__item { background: none; border: 0; font: inherit; cursor: pointer; }
.flash-container { padding-top: 16px; }
.flash-container .flash { margin-bottom: 0; }
@media (min-width: 900px) { .layout-sidebar__aside .filters-toggle { display: none; } }
.tags-filter { max-width: 420px; margin-top: 8px; }
.pick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pick-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pick-list li:last-child { border-bottom: 0; }
.layout-detail > .panel, .layout-detail > form, .layout-detail > aside { align-self: start; }
.faq details { margin: 0 0 8px; }
fieldset.form-section { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
fieldset.form-section legend { padding: 0; margin-bottom: 12px; }
.md-help { display: flex; flex-direction: column; margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.md-help__row { display: grid; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); background: var(--ink-2); }
.md-help__row:last-child { border-bottom: 0; }
@media (min-width: 760px) { .md-help__row { grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.md-help__label { font-weight: 700; font-size: 14px; }
.md-help__src { margin: 0; padding: 12px; background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; font: 500 12px var(--f-mono); white-space: pre-wrap; word-break: break-word; }
.md-help__out { font-size: 14px; }
.md-help__out > :first-child { margin-top: 0; }
.md-help__out img { max-height: 48px; }
.report-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.report-list p { margin-top: 2px; color: var(--text-2); }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-filters .input { flex: 1; min-width: 200px; }
.inline-actions { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 4px; justify-content: flex-end; }
.inline-actions form { display: contents; }
.table td .input--sm, .input--sm { height: 32px; font-size: 13px; padding: 0 8px; }
.occupancy { display: flex; gap: 20px; font-size: 13px; color: var(--text-2); }
.account-main > * { max-width: 820px; }
input[type=file] { font: inherit; font-size: 13px; color: var(--text-2); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; height: 32px; padding: 0 12px; margin-right: 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--ink-3); color: var(--bone); cursor: pointer; }
.just-published { margin: 20px 0 0; align-items: center; }
.just-published .alert__content { flex: 1; }
.alert > .alert__content:first-child { grid-column: 1 / 3; }
.alert > p:only-child { grid-column: 1 / -1; }
.table__app-thumb { width: 44px; aspect-ratio: 1; border-radius: 7px; }
.table__app-thumb .cover { width: 100%; height: 100%; }
.admin-comments__body { white-space: normal !important; min-width: 280px; max-width: 520px; color: var(--text-2); }
.table tr.is-muted td { opacity: .55; }

/* --- 3. motion primitives (few, short, only on interaction or first view) - */
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
@keyframes fadeUp { from { transform: translateY(6px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(-4px) scale(.98); opacity: 0; } }
@keyframes blkIn { from { transform: scale(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes mvPop { 0% { transform: scale(.4); opacity: 0; } }
@keyframes cmtIn { from { opacity: 0; transform: translateY(-6px); background: rgba(143, 179, 255, .08); } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes barGrow { from { transform: scaleX(0); } }

.js .io { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--out), transform .6s var(--out); transition-delay: calc(var(--i, 0) * 40ms); }
.js .io.in { opacity: 1; transform: none; }

/* --- 4. header + search ---------------------------------------------------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(14, 15, 18, .86); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); }
.hdr__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 700 18px/1 var(--f-body); letter-spacing: -.02em; color: var(--bone); }
.logo--ftr { font-size: 16px; }
.logo__mark { display: grid; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 2px; }
.logo__mark span { background: var(--line-2); border-radius: 2px; transition: transform .4s var(--out), background .3s; }
.logo__mark span:nth-child(1) { background: var(--lime); }
.logo__mark span:nth-child(4) { background: var(--bone); }
.logo:hover .logo__mark span:nth-child(2) { transform: translate(1px, -1px); }
.logo:hover .logo__mark span:nth-child(3) { transform: translate(-1px, 1px); }
.hdr .search { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.hnav { display: flex; gap: 2px; }
.hnav__a { display: inline-flex; align-items: center; height: 36px; padding: 0 11px; font-weight: 500; font-size: 14.5px; color: var(--mute); border-radius: 8px; transition: color .15s, background .15s; }
.hnav__a:hover { color: var(--bone); background: var(--ink-3); }
.hnav__a.is-active { color: var(--bone); background: var(--ink-3); }
.hdr__act { display: flex; align-items: center; gap: 8px; }
.hdr__me { display: block; list-style: none; cursor: pointer; border-radius: 50%; }
.hdr__me::-webkit-details-marker { display: none; }
.hdr__me .avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; transition: box-shadow .2s; }
.hdr__me:hover .avatar { box-shadow: 0 0 0 2px var(--line-2); }

.header-search, .hero-search { position: relative; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; transition: border-color .15s, background .15s, box-shadow .2s; }
.header-search:focus-within, .hero-search:focus-within { border-color: var(--lime); background: var(--ink-3); box-shadow: 0 0 0 3px rgba(143, 179, 255, .14); }
.header-search > .icon, .hero-search > .icon { flex: none; color: var(--mute); width: 17px; height: 17px; }
.header-search__input, .hero-search__input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--bone); font: 400 15px var(--f-body); }
.header-search__input::placeholder, .hero-search__input::placeholder { color: var(--dim); }
.header-search__input::-webkit-search-cancel-button { filter: invert(1) grayscale(1); opacity: .5; }
.hero-search { height: 50px; padding: 0 6px 0 16px; border-radius: 12px; max-width: 680px; }
.hero-search__input { font-size: 16px; }
.hero-search__btn { height: 38px; }
.suggest-host { position: relative; }
.suggest { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); min-width: min(560px, calc(100vw - 2 * var(--gut))); max-height: min(72vh, 600px); overflow: auto;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow-pop); transform-origin: top; animation: pop .18s var(--out); }
.suggest__label { display: flex; justify-content: space-between; align-items: center; font: 600 12px var(--f-body); color: var(--dim); padding: 10px 10px 6px; }
.suggest__clear { color: var(--mute); font: inherit; }
.suggest__clear:hover { color: var(--bone); }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 7px 10px; min-height: 44px; border-radius: 8px; color: var(--bone); }
.suggest__item.is-active { background: var(--ink-3); }
.suggest__item.is-active::after { content: "↵"; margin-left: 4px; color: var(--mute); font-family: var(--f-mono); }
.suggest__item--sponsored { background: var(--amber-soft); box-shadow: inset 0 0 0 1px rgba(243, 176, 76, .3); margin-bottom: 4px; }
.suggest__item--sponsored.is-active { background: rgba(243, 176, 76, .14); }
.suggest__item--all { border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 8px 8px; color: var(--mute); font-size: 14px; }
.suggest__thumb { flex: none; width: 48px; height: 30px; border-radius: 5px; overflow: hidden; background: var(--ink-3) center / cover no-repeat; display: grid; place-items: center; font: 600 13px var(--f-mono); color: var(--mute); border: 1px solid var(--line); }
.suggest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggest__thumb--tag { width: 30px; }
.suggest__thumb--av { width: 30px; height: 30px; border-radius: 50%; }
.suggest__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.suggest__name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; min-width: 0; }
.suggest__name small { font: 400 13px var(--f-mono); color: var(--mute); }
.suggest__tagline { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__meta { margin-left: auto; flex: none; font: 400 12.5px var(--f-mono); color: var(--dim); }
.suggest__icon { color: var(--mute); width: 16px; text-align: center; }
.suggest__all { flex: 1; }
.suggest__state { padding: 16px 12px; color: var(--mute); font-size: 14px; }
.suggest mark, .tile mark { background: none; color: var(--lime); }
.suggest .badge-sponsored { font-size: 11px; }

/* --- 5. buttons, like ---------------------------------------------------- */
.btn { --btn-bg: var(--ink-3); --btn-fg: var(--bone); --btn-bd: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 15px;
  border-radius: 9px; background: var(--btn-bg); color: var(--btn-fg); font: 600 14px var(--f-body); letter-spacing: 0;
  border: 1px solid var(--btn-bd); box-shadow: none; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; user-select: none; }
.btn:hover { --btn-bg: var(--ink-4); }
.btn:active { transform: translateY(1px); }
.btn .icon { margin: 0; width: 16px; height: 16px; }
.btn--primary { --btn-bg: var(--lime); --btn-fg: var(--on-accent); --btn-bd: var(--lime); }
.btn--primary:hover { --btn-bg: var(--lime-2); --btn-bd: var(--lime-2); }
.btn--secondary { --btn-bg: var(--ink-3); }
.btn--ghost { --btn-bg: transparent; --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--ink-3); }
.btn--dark { --btn-bg: var(--bone); --btn-fg: #0e0f12; --btn-bd: var(--bone); }
.btn--dark:hover { --btn-bg: #fff; }
.btn--paper { --btn-bg: var(--ink); --btn-fg: var(--bone); --btn-bd: var(--line-2); }
.btn--sp { --btn-bg: var(--amber); --btn-fg: #1d1305; --btn-bd: var(--amber); }
.btn--sp:hover { --btn-bg: var(--amber-2); --btn-bd: var(--amber-2); }
.btn--danger { --btn-bg: var(--red); --btn-fg: #1a0b0e; --btn-bd: var(--red); }
.btn--danger:hover { --btn-bg: #ff8a9d; }
.btn--danger-outline { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: var(--danger-border); }
.btn--danger-outline:hover { --btn-bg: var(--danger-soft); }
.btn--sm { height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; gap: 6px; }
.btn--lg { height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--icon { width: 40px; padding: 0; }
.btn--icon.btn--sm { width: 32px; }
.btn--icon.btn--lg { width: 44px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn__count { font: 500 12px var(--f-mono); color: inherit; padding-left: 8px; margin-left: 2px; border-left: 1px solid currentColor; opacity: .75; }
.dropdown > summary.btn { list-style: none; }
.theme-toggle { display: none !important; }

.like { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; font: 500 14px var(--f-mono); color: var(--bone); background: var(--ink-2); transition: border-color .15s, background .15s, color .15s; cursor: pointer; }
.like:hover { border-color: rgba(255, 112, 136, .55); }
.like .icon { width: 17px; height: 17px; transition: transform .3s var(--spring); }
.like[aria-pressed="true"] { background: rgba(255, 112, 136, .12); border-color: rgba(255, 112, 136, .5); color: var(--red); }
.like[aria-pressed="true"] .icon { fill: currentColor; stroke: currentColor; }
.like:disabled { opacity: .55; cursor: default; }
.like:disabled:hover { border-color: var(--line-2); }
.like--big { height: 44px; padding: 0 16px; font-size: 15px; border-radius: 9px; }
.like--big .icon { width: 18px; height: 18px; }
.like form, .likec form { margin: 0; }
.burst { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; pointer-events: none; z-index: 5; }
.lc { display: inline-flex; }

/* --- 6. covers, numbers, tags, stars ------------------------------------- */
.cover { position: relative; display: block; overflow: hidden; background: #0b0c0f; width: 100%; height: 100%; }
.cover > svg, .cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover .blk { transform-box: fill-box; transform-origin: center; transition: transform .6s var(--out); animation: blkIn .6s var(--out) both; animation-delay: calc(var(--d, 0) * .6ms); }
.cover.wait .blk { animation: none; transform: scale(0); }
.cover.build .blk { animation: blkIn .6s var(--out) both; animation-delay: calc(var(--d, 0) * .6ms); }
.cover.done .blk { animation: none; }
.vt-nav .cover .blk { animation: none; }

.odo { display: inline-flex; line-height: 1; height: 1em; overflow: hidden; font-variant-numeric: tabular-nums; vertical-align: -.1em; }
.odo .od { display: inline-block; height: 1em; overflow: hidden; position: relative; }
.odo .od > span { display: flex; flex-direction: column; transition: transform .7s var(--out); transition-delay: calc(var(--k, 0) * 30ms); }
.odo .od > span > i { font-style: normal; height: 1em; line-height: 1; text-align: center; }
.odo .sep { display: inline-block; }

.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font: 500 13.5px/1 var(--f-body); color: var(--text-2); white-space: nowrap; transition: color .15s, background .15s, border-color .15s; }
.chip:hover { color: var(--bone); border-color: var(--line-2); background: var(--ink-2); }
.chip.is-on { color: var(--bone); background: var(--ink-3); border-color: var(--line-2); }
.tag { display: inline; height: auto; padding: 0; border: 0; border-radius: 0; background: none; font: 500 14px/1.4 var(--f-body); color: var(--text-2); }
.tag::before { color: var(--dim); }
a.tag:hover { color: var(--bone); }
.tag--lg { font-size: 15px; }
.tag--active, .tag[aria-current="page"] { color: var(--bone); text-decoration: underline 1px var(--lime); text-underline-offset: 4px; }
.tag__count { color: var(--dim); margin-left: 5px; font: 400 12px var(--f-mono); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }

.taglist { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.taglist a { color: var(--text-2); font-size: 14.5px; transition: color .15s; }
.taglist a:hover { color: var(--bone); }
.taglist a span { margin-left: 5px; font: 400 12px var(--f-mono); color: var(--dim); }
.taglist--sm { gap: 4px 14px; }
.taglist--sm a { font-size: 14px; }

.stars { position: relative; display: inline-flex; vertical-align: middle; line-height: 0; }
.stars__bg, .stars__fg { display: inline-flex; gap: 1px; }
.stars svg { width: 13px; height: 13px; flex: none; }
.stars__bg svg { fill: var(--line-2); }
.stars__fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; width: calc(var(--v, 0) / 5 * 100%); transition: width .6s var(--out); }
.stars__fg svg { fill: #e8c46b; }
.stars__t { margin-left: 6px; font: 500 12.5px var(--f-mono); color: var(--bone); vertical-align: middle; }
.stars__t i { font-style: normal; color: var(--dim); margin-left: 3px; }

.tool-icon { display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: -3px; color: currentColor; }
.tool-icon--lg { width: 30px; height: 30px; vertical-align: -6px; }
.tool-icon--md { width: 20px; height: 20px; vertical-align: -4px; }
.tool-icon--txt { display: inline-grid; place-items: center; font: 600 10px/1 var(--f-mono); border: 1px solid currentColor; border-radius: 4px; }
img.tool-img { width: 16px; height: 16px; filter: invert(.9); opacity: .9; vertical-align: -3px; flex: none; }

/* sparklines */
.sparkline { display: block; width: 100%; height: 100%; overflow: visible; color: var(--mute); }
.sparkline__a { fill: currentColor; opacity: .1; }
.sparkline__l { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sparkline__d { fill: currentColor; }
.sparkline.is-up { color: var(--lime); }
.sparkline.is-down { color: var(--mute); }
.js .tile__spk:not(.draw) .sparkline__l { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .tile__spk:not(.draw) .sparkline__d, .js .tile__spk:not(.draw) .sparkline__a { opacity: 0; }
.tile__spk.draw .sparkline__l { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--out) forwards; animation-delay: calc(var(--i, 0) * 40ms); }
.tile__spk.draw .sparkline__d { opacity: 0; animation: fadeIn .3s forwards; animation-delay: calc(var(--i, 0) * 40ms + .8s); }
.tile__spk.draw .sparkline__a { opacity: 0; animation: fadeIn .5s forwards; animation-delay: calc(var(--i, 0) * 40ms + .5s); }
.tile__spk.draw .sparkline__a { animation-name: fadeA; }
@keyframes fadeA { to { opacity: .1; } }

/* --- 7. sections, footer, toasts ------------------------------------------ */
.sec { padding-top: 48px; }
.sec--first { padding-top: 28px; }
.sec--tight { padding-top: 20px; }
.sec__h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 16px; }
.sec__t { min-width: 0; }
.sec__t h2, .sec__h > h2 { margin: 0; font: 600 22px/1.25 var(--f-body); letter-spacing: -.015em; }
.sec__h--sm .sec__t h2, .sec__h--sm > h2 { font-size: 19px; }
.sec__meta { margin: 3px 0 0; font-size: 14px; color: var(--mute); }
.sec__meta a { color: var(--text-2); text-decoration: underline 1px var(--line-2); text-underline-offset: 3px; }
.sec__meta a:hover { color: var(--bone); }
.sec__link { font-size: 14px; color: var(--mute); display: inline-flex; align-items: center; gap: 5px; }
.sec__link:hover { color: var(--bone); }
.sec__link::after { content: "→"; transition: transform .2s var(--out); }
.sec__link:hover::after { transform: translateX(3px); }
.sec__more { display: flex; justify-content: center; margin: 22px 0 0; }

.ftr { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 44px; }
.ftr__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ftr nav a { color: var(--mute); font-size: 14px; transition: color .15s; }
.ftr nav a:hover { color: var(--bone); }
.ftr small { font-size: 13px; color: var(--dim); }

.toast-region { position: fixed; z-index: 100; left: 50%; right: auto; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: block; background: var(--ink-4); color: var(--bone); border: 1px solid var(--line-2); font: 500 14px var(--f-body); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-pop); animation: toastIn .3s var(--out); }
.toast--danger { border-color: var(--danger-border); color: var(--danger); }
.toast--info { color: var(--bone); }
.toast.out { animation: toastOut .25s var(--out) forwards; }
.toast a { text-decoration: underline; text-underline-offset: 2px; }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(8px); opacity: 0; } }

/* --- 8. segmented control (period, sort, tabs) ---------------------------- */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 3px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg > a, .seg > button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 12px; font: 500 13.5px/1 var(--f-body); color: var(--mute); border-radius: 7px; transition: color .2s; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.seg > a:hover, .seg > button:hover { color: var(--bone); }
.seg > [aria-current="true"] { color: var(--bone); }
.seg__thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 7px; background: var(--ink-4); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; transition: transform .35s var(--out), width .35s var(--out); }
.seg:not(.has-thumb) > [aria-current="true"] { background: var(--ink-4); }
.seg--sm > a, .seg--sm > button { height: 28px; padding: 0 10px; font-size: 13px; }
html:not(.js) [data-tabs] { display: none; }
.chart-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.chart-bar .seg { min-width: 0; }

/* --- 9. tiles -------------------------------------------------------------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); gap: 20px 18px; position: relative; }
.tiles__i { display: flex; min-width: 0; }
.tiles.is-busy { opacity: .6; transition: opacity .2s; }
.tile { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
  transition: transform .3s var(--out), border-color .2s, box-shadow .3s var(--out), background .2s; will-change: transform; }
.tile:hover { border-color: var(--line-2); box-shadow: 0 16px 36px -20px rgba(0, 0, 0, .9); }
.tile:has(.tile__link:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }
.tile__link:focus-visible { outline: none; }

.tile__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 11px 11px 0 0; background: #0b0c0f; isolation: isolate; }
.tile__track { position: absolute; inset: 0; }
.tile__track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.tile__track img.on { opacity: 1; }
.tile__media > .cover { position: absolute; inset: 0; }
.tile__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 1; }
.tile__dots { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.tile__dots i { position: relative; flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.tile__dots i.on { background: rgba(255, 255, 255, .95); }
.is-cycling .tile__dots i.on { background: rgba(255, 255, 255, .32); }
.is-cycling .tile__dots i.on::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill 1.2s linear both; }
.tile:hover .tile__media[data-shots]::after, .tile:hover .tile__dots { opacity: 1; }

.tile__rank { position: absolute; z-index: 2; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border-radius: 6px; background: rgba(14, 15, 18, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 600 12px/1 var(--f-mono); color: var(--bone); pointer-events: none; }
.tile__rank b { font-weight: 600; }
.mv { display: inline-block; font: 500 10.5px/1 var(--f-mono); color: var(--dim); }
.mv.up { color: var(--up); }
.mv.dn { color: var(--down); }
.mv.new { color: var(--lime); letter-spacing: .02em; }
.mv.pop { animation: mvPop .4s var(--out); }
.tile__rank .mv:not(.up):not(.dn):not(.new) { display: none; }

.tile__sp, .badge-sp, .badge-sponsored { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--amber); color: #1d1305; font: 600 11.5px/1 var(--f-body); letter-spacing: .01em; white-space: nowrap; border: 0; box-shadow: none; transform: none; }
.tile__sp { position: absolute; z-index: 3; top: 8px; left: 8px; }
.tile__sp:hover { background: var(--amber-2); }
.badge-sp::before, .badge-sponsored::before { content: none; }
.tile--sp { border-color: var(--amber-line); background: linear-gradient(180deg, rgba(243, 176, 76, .09), rgba(243, 176, 76, .025) 60%), var(--ink-2);
  box-shadow: 0 0 0 1px rgba(243, 176, 76, .14), 0 10px 32px -16px rgba(243, 176, 76, .45); }
.tile--sp:hover { border-color: var(--amber); box-shadow: 0 0 0 1px rgba(243, 176, 76, .3), 0 18px 40px -16px rgba(243, 176, 76, .5); }
.tile--sp .tile__media { border-bottom: 1px solid rgba(243, 176, 76, .25); }

.tile__body { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px 12px; flex: 1; min-width: 0; }
.tile__name { margin: 0; font: 600 15px/1.35 var(--f-body); letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__link { color: var(--bone); }
.tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.tile__tl { margin: 0; font-size: 14px; line-height: 1.42; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.84em; overflow-wrap: anywhere; }
.tile__meta { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; margin-top: auto; padding-top: 9px; font: 500 12.5px/1 var(--f-mono); color: var(--mute); pointer-events: none; }
.tile__meta > *, .tile__foot > * { pointer-events: auto; }
.tile__meta form { margin: 0; display: inline-flex; }
.tstat { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0; margin: 0; border: 0; background: none; color: var(--mute); font: inherit; white-space: nowrap; cursor: pointer; transition: color .15s; }
.tstat .icon, .tstat svg { width: 15px; height: 15px; flex: none; }
a.tstat:hover, button.tstat:hover { color: var(--bone); }
.tstat--like:hover, .tstat--like:hover .icon { color: var(--red); }
.tstat--like[aria-pressed="true"] { color: var(--red); }
.tstat--like[aria-pressed="true"] .icon { fill: currentColor; }
.tstat--like:disabled { cursor: default; color: var(--mute); }
.tstat--like { position: relative; }
.tstat--rate { cursor: default; }
.tstat--rate svg { fill: var(--mute); stroke: none; }
.tile__spk { margin-left: auto; flex: none; width: 64px; height: 20px; }
.tile__foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); min-width: 0; pointer-events: none; }
.tile--sp .tile__foot { border-top-color: rgba(243, 176, 76, .18); }
.tile__tools { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.tile__tools a { display: inline-flex; color: var(--text-2); transition: color .15s; }
.tile__tools a:hover { color: var(--bone); }
.tile__tooln { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--mute); pointer-events: none; }
.tile__cc { flex: none; font: 500 11.5px/1 var(--f-mono); letter-spacing: .03em; color: var(--mute); padding: 3px 5px; border: 1px solid var(--line-2); border-radius: 4px; transition: color .15s, border-color .15s; }
.tile__cc:hover { color: var(--bone); border-color: var(--mute); }

/* featured (home, sponsored) row: three larger tiles */
.tiles--feat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tiles--feat .tile__name { font-size: 17px; }
.tiles--feat .tile__body { padding: 13px 16px 14px; }
.tiles--feat .tile__spk { width: 90px; }
.sec--feat .sec__t h2::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-radius: 50%; background: var(--amber); vertical-align: 4px; }

/* tile state changes from charts.js (re-sort) */
.tiles__i.leaving { pointer-events: none; }

/* touch: screenshots swipe inside the tile */
.tiles-touch .tile__media[data-shots] { z-index: 2; }
.tiles-touch .tile__media[data-shots] .tile__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.tiles-touch .tile__media[data-shots] .tile__track::-webkit-scrollbar { display: none; }
.tiles-touch .tile__media[data-shots] .tile__track img { position: static; flex: 0 0 100%; opacity: 1; scroll-snap-align: start; scroll-snap-stop: always; transition: none; }
.tiles-touch .tile__dots { opacity: 1; }
.tiles-touch .tile__media[data-shots]::after { opacity: 1; }

/* --- 10. compact rankings (boards) ---------------------------------------- */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.boards[hidden] { display: none; }
.boards + .boards { margin-top: 28px; }
.tabs-on .boards + .boards { margin-top: 0; }
.boards__nojs { grid-column: 1 / -1; margin: 0; font: 600 15px var(--f-body); color: var(--text-2); }
.tabs-on .boards__nojs { display: none; }
.lb { display: flex; flex-direction: column; min-width: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 12px; }
.lb__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.lb__h h3 { margin: 0; min-width: 0; font: 600 15px/1.3 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__h h3 a { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.lb__h h3 a:hover { color: var(--lime); }
.lb__code { font: 600 12px var(--f-mono); color: var(--mute); padding: 2px 5px; border: 1px solid var(--line-2); border-radius: 4px; }
.lb__hash { color: var(--dim); margin-right: -6px; }
.lb__n { flex: none; font: 400 12.5px var(--f-mono); color: var(--dim); }
.lb__list { list-style: none; margin: 0; padding: 0; }
.lb__row { position: relative; display: grid; grid-template-columns: 18px 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.lb__row:last-child { border-bottom: 0; }
.lb__rank { font: 500 12.5px var(--f-mono); color: var(--dim); text-align: right; }
.lb__cv { width: 56px; height: 35px; border-radius: 5px; overflow: hidden; background: #0b0c0f; border: 1px solid var(--line); }
.lb__cv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb__t { min-width: 0; font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--bone); }
.lb__t::after { content: ""; position: absolute; inset: 0; }
.lb__row:hover .lb__t { color: var(--lime); }
.lb__v { display: inline-flex; align-items: center; gap: 4px; font: 500 12.5px var(--f-mono); color: var(--mute); }
.lb__v .icon { width: 13px; height: 13px; }
.lb__more { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13.5px; color: var(--mute); align-self: flex-start; }
.lb__more::after { content: "→"; transition: transform .2s var(--out); }
.lb__more:hover { color: var(--bone); }
.lb__more:hover::after { transform: translateX(3px); }
.boards--sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

/* --- 11. page heads, filters, pagers ---------------------------------------- */
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 20px 0 0; font-size: 13px; color: var(--dim); min-width: 0; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--bone); }
.crumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 0 20px; border-bottom: 1px solid var(--line); }
.phead h1 { margin: 0; font: 700 30px/1.2 var(--f-body); letter-spacing: -.02em; overflow-wrap: anywhere; }
.phead__tool { display: inline-flex; align-items: center; gap: 12px; }
.phead__sub { margin: 4px 0 0; font-size: 16px; color: var(--text-2); }
.phead__lead { margin: 8px 0 0; color: var(--text-2); font-size: 16px; max-width: 64ch; }
.phead__meta { margin: 8px 0 0; color: var(--mute); font-size: 13px; }
.phead__meta b { color: var(--text-2); font-weight: 500; }
.phead__act { display: flex; gap: 8px; flex-wrap: wrap; }
.phead__code { font: 600 12px var(--f-mono); color: var(--text-2); padding: 2px 5px; border: 1px solid var(--line-2); border-radius: 4px; margin-right: 4px; }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 0 0; }
.filterbar__l { font-size: 13.5px; color: var(--mute); margin-right: 4px; }
.filterbar--form { gap: 8px 12px; }
.chart-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
.pager { display: flex; gap: 16px; font-size: 13.5px; color: var(--mute); }
.pager a:hover { color: var(--bone); }
.js .pager { display: none; }
.load-more { display: flex; justify-content: center; margin-top: 24px; }
.select-line { position: relative; display: inline-flex; align-items: center; }
.select-line select { appearance: none; -webkit-appearance: none; height: 32px; padding: 0 30px 0 11px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; color: var(--bone); font: 500 13.5px var(--f-body); cursor: pointer; max-width: 100%; transition: border-color .15s; }
.select-line select:hover { border-color: var(--line-2); }
.select-line select:focus-visible { outline: none; border-color: var(--lime); }
.select-line select option { background: var(--ink-2); color: var(--bone); }
.select-line::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.filters-panel .select-line, .filters-panel .select-line select { width: 100%; }
.flink { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--mute); transition: color .15s; }
.flink:hover { color: var(--bone); }
.flink--tool { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text-2); }
.flink--tool:hover { border-color: var(--line-2); background: var(--ink-2); }

/* --- 12. app page ------------------------------------------------------------ */
.ahead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; padding: 12px 0 24px; }
.ahead__main { min-width: 0; flex: 1 1 520px; }
.ahead h1 { margin: 0; font: 700 32px/1.15 var(--f-body); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ahead__tl { margin: 6px 0 0; font-size: 17px; line-height: 1.45; color: var(--text-2); max-width: 62ch; }
.ahead__by { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin: 12px 0 0; font-size: 14px; color: var(--mute); }
.ahead__by a { color: var(--text-2); }
.ahead__by a:hover { color: var(--bone); }
.ahead__by .avatar { width: 22px; height: 22px; border-radius: 50%; }
.ahead__rating { display: inline-flex; align-items: center; padding-left: 10px; border-left: 1px solid var(--line-2); }
.ahead__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ahead__acts form { margin: 0; }

.alayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.alayout__main { min-width: 0; }
.alayout__side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.gal { margin: 0 0 36px; }
.gal__main { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #0b0c0f; border: 1px solid var(--line); }
.gal__main > .cover { position: absolute; inset: 0; }
.gal__open { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gal__open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal__nav { position: absolute; z-index: 2; top: 50%; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border-radius: 50%; background: rgba(14, 15, 18, .72); border: 1px solid rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s, background .15s; cursor: pointer; }
.gal__nav .icon { width: 18px; height: 18px; }
.gal__nav--prev { left: 12px; }
.gal__nav--prev .icon { transform: rotate(180deg); }
.gal__nav--next { right: 12px; }
.gal__nav:hover { background: rgba(30, 33, 40, .9); }
.gal:hover .gal__nav, .gal__nav:focus-visible { opacity: 1; }
.gal__count { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(14, 15, 18, .72); font-size: 12px; color: var(--bone); pointer-events: none; }
.gal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gal__th { flex: none; width: 112px; aspect-ratio: 16 / 10; border-radius: 7px; overflow: hidden; border: 1px solid var(--line); opacity: .6; transition: opacity .2s, border-color .2s; }
.gal__th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__th:hover { opacity: .9; }
.gal__th.is-on { opacity: 1; border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
@media (hover: none) { .gal__nav { opacity: .9; } }

.lbx { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lbx::backdrop { background: rgba(5, 6, 8, .92); }
.lbx[open] { display: grid; place-items: center; animation: fadeIn .2s ease-out; }
.lbx__fig { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 72px; box-sizing: border-box; }
.lbx__fig img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px -20px #000; }
.lbx__close { position: fixed; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 26px; line-height: 1; border: 0; cursor: pointer; }
.lbx__nav { position: fixed; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 0; color: #fff; cursor: pointer; }
.lbx__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lbx__nav--prev { left: 16px; }
.lbx__nav--next { right: 16px; }
.lbx__close:hover, .lbx__nav:hover { background: rgba(255, 255, 255, .16); }
.lbx__count { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; font: 500 13px var(--f-mono); color: var(--text-2); }

.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; overflow: visible; }
.alayout__side .panel { padding: 16px 18px; }
.panel__k { margin: 0 0 10px; font: 600 13px var(--f-body); color: var(--mute); }
.facts__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0 0 14px; }
.facts__stats > div { min-width: 0; }
.facts__stats dt { font-size: 13px; color: var(--mute); }
.facts__stats dd { margin: 2px 0 0; font: 500 19px/1.2 var(--f-mono); color: var(--bone); }
.facts__spark { padding: 12px 0; border-top: 1px solid var(--line); }
.facts__spark .sparkline { height: 56px; color: var(--lime); }
.facts__k { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--mute); }
.facts__k b { font: 500 13px var(--f-mono); color: var(--text-2); }
.facts__row { padding: 12px 0 0; border-top: 1px solid var(--line); margin-top: 12px; }
.facts__row--inline { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.facts__row .facts__k { margin: 0 0 6px; }
.facts__row--inline .facts__k { margin: 0; }
.credits { list-style: none; margin: 0; padding: 0; }
.credits li + li { border-top: 1px solid var(--line); }
.credits a { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; color: var(--text-2); }
.credits b { font-weight: 500; font-size: 14.5px; color: var(--bone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credits span { font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.credits a:hover b { color: var(--lime); }
.links { display: flex; flex-direction: column; }
.links a, .links__row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); min-width: 0; }
.links > :last-child { border: 0; }
.links a:hover { color: var(--bone); }
.links a span:last-child, .links__row span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font: 400 12.5px var(--f-mono); }
.maker { display: flex; align-items: center; gap: 12px; }
.maker .avatar { border-radius: 50%; }
.maker > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.maker small { font-size: 13px; color: var(--mute); }
.maker .icon { color: var(--mute); transition: transform .2s var(--out), color .15s; }
.maker:hover .icon { color: var(--bone); transform: translateX(3px); }
.maker:hover b { color: var(--lime); }
.side-report { margin: 0; padding-left: 4px; }
.report-link { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 13px; }
.report-link:hover { color: var(--danger); }
.ctry { display: inline-flex; align-items: baseline; gap: 6px; color: var(--text-2); white-space: nowrap; transition: color .15s; }
.ctry b { font: 600 11.5px/1 var(--f-mono); letter-spacing: .03em; color: var(--mute); padding: 2px 4px; border: 1px solid var(--line-2); border-radius: 4px; }
.ctry span { font-size: 14px; }
.ctry:hover { color: var(--bone); }
.ctry--bar { height: 30px; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; }
.ctry--bar:hover { background: var(--ink-2); border-color: var(--line-2); }
.bw { display: inline; color: var(--mute); font-size: 13.5px; }
.bw i { font-style: normal; color: var(--dim); }
.bw a { color: var(--text-2); }
.bw a:hover { color: var(--bone); }

/* markdown */
.prose { font-size: 16px; line-height: 1.7; color: #d4d8df; max-width: 760px; }
.prose > * + * { margin-top: 18px; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--bone); margin-bottom: 0; font-family: var(--f-body); letter-spacing: -.01em; }
.prose h1, .prose h2 { font-size: 22px; font-weight: 600; line-height: 1.3; margin-top: 36px; padding: 0; border: 0; }
.prose h3 { font-size: 18px; font-weight: 600; margin-top: 28px; }
.prose h4 { font-size: 16px; font-weight: 600; margin-top: 24px; }
.prose h5, .prose h6 { font-size: 14px; font-weight: 600; color: var(--mute); margin-top: 22px; }
.prose > :first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 10px; }
.prose a { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(143, 179, 255, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--bone); font-weight: 600; }
.prose ul { padding-left: 1.3em; list-style: disc; }
.prose ul > li::marker { color: var(--dim); }
.prose ul > li.task-list-item, .prose ul > li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.3em; }
.prose ol { padding-left: 1.5em; list-style: decimal; }
.prose ol li::marker { color: var(--mute); font: 500 .9em var(--f-mono); }
.prose li + li { margin-top: 6px; }
.prose .task-list-item input, .prose li > input[type="checkbox"] { accent-color: var(--lime); width: 16px; height: 16px; }
.prose code { font: 400 .87em var(--f-mono); background: var(--ink-3); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; color: var(--bone); }
.prose pre { position: relative; background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 38px 18px 18px; overflow: auto; font: 400 13.5px / 1.65 var(--f-mono); color: #cfd4dc; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.prose pre::before, .prose pre[data-lang]::before { content: attr(data-lang); position: absolute; top: 12px; left: 18px; font: 500 11px var(--f-mono); color: var(--dim); }
.prose .tok-k, .prose .hl-k, .hl-k { color: #a9c4ff; font-style: normal; }
.prose .tok-s, .prose .hl-s, .hl-s { color: #b9e3a0; }
.prose .tok-c, .prose .hl-c, .hl-c { color: var(--dim); font-style: italic; }
.prose .tok-n, .prose .hl-n, .hl-n { color: #f3c37e; }
.copy { position: absolute; top: 7px; right: 7px; height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line-2); font: 500 12px var(--f-body); color: var(--mute); background: var(--ink-2); transition: .15s; }
.copy:hover { color: var(--bone); background: var(--ink-3); }
.copy.ok { color: var(--success); border-color: var(--success-border); }
.prose .table-wrap { background: transparent; border: 0; border-radius: 0; overflow-x: auto; }
.prose table { display: table; width: 100%; max-width: 100%; font-size: 14.5px; border: 0; border-collapse: collapse; }
.prose th { text-align: left; font: 600 13px var(--f-body); color: var(--mute); padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line-2); background: none; }
.prose td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); }
.prose th + th, .prose td + td { border-left: 0; }
.prose img, .prose video, .prose picture { border-radius: 10px; border: 1px solid var(--line); background: var(--ink-2); }
.prose p > img:only-child, .prose > img { width: 100%; }
.prose figcaption { margin-top: 6px; font-size: 13px; color: var(--mute); }
.prose blockquote { padding: 2px 0 2px 16px; border-left: 3px solid var(--line-2); color: var(--text-2); }
.prose .callout { border-left-width: 3px; padding: 12px 16px; background: var(--ink-2); border-radius: 0 10px 10px 0; }
.callout__title { font: 600 13px var(--f-body); margin-bottom: 4px !important; }
.callout--note { border-left-color: var(--info); } .callout--note .callout__title { color: var(--info); }
.callout--tip { border-left-color: var(--success); } .callout--tip .callout__title { color: var(--success); }
.callout--important { border-left-color: var(--lime); } .callout--important .callout__title { color: var(--lime); }
.callout--warning, .callout--caution { border-left-color: var(--warning); } .callout--warning .callout__title, .callout--caution .callout__title { color: var(--warning); }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin-block: 32px; }
.prose details { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: var(--ink-2); }
.prose summary { font-weight: 600; padding: 10px 0; }
.prose .embed, .embed { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.prose iframe { border-color: var(--line); border-radius: 10px; }
.embed--lite .embed__poster { position: absolute; inset: 0; display: grid; place-items: center; background: #111 center / cover no-repeat; text-decoration: none; color: inherit; }
.embed--lite .embed__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .75)); }
.embed__play { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 12px; background: rgba(14, 15, 18, .85); color: #fff; font: 600 15px var(--f-body); border: 1px solid rgba(255, 255, 255, .15); transition: background .15s, transform .2s var(--out); }
.embed__poster:hover .embed__play { background: rgba(30, 33, 40, .95); transform: scale(1.03); }
.embed__provider { font-size: 12.5px; opacity: .8; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.embed--file { aspect-ratio: auto; background: none; border: 0; }
.embed--file video { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.prose img.is-zoomable { cursor: zoom-in; }
.prose mark { background: rgba(143, 179, 255, .25); color: #fff; }
.readme-note { margin-top: 20px; font-size: 13px; color: var(--mute); }

/* ratings */
.rate { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.rate__grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 240px); gap: 28px; align-items: center; }
.rate__sum { display: flex; flex-direction: column; gap: 6px; }
.rate__avg { font: 600 44px/1 var(--f-mono); letter-spacing: -.02em; display: flex; }
.rate__meter .stars svg { width: 18px; height: 18px; }
.rate__count { font-size: 13px; color: var(--mute); }
.rate__hist { display: flex; flex-direction: column; gap: 6px; }
.hbar { display: grid; grid-template-columns: 36px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font: 500 12.5px var(--f-mono); color: var(--mute); }
.hbar__k { display: inline-flex; align-items: center; gap: 4px; }
.hbar__k svg { width: 11px; height: 11px; fill: var(--dim); }
.hbar__t { height: 8px; background: var(--ink-3); border-radius: 4px; overflow: hidden; }
.hbar__t i { display: block; height: 100%; width: var(--w, 0%); background: var(--text-2); border-radius: 4px; transition: width .7s var(--out), background .2s; }
.js .rate:not(.in) .hbar__t i { width: 0; }
.hbar.mine .hbar__t i { background: var(--lime); }
.hbar.mine .hbar__k, .hbar.mine .hbar__n { color: var(--lime); }
.hbar.mine .hbar__k svg { fill: var(--lime); }
.hbar__n { text-align: right; }
.rate__mine { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rate__form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.rate__l { margin: 0; font: 600 13px var(--f-body); color: var(--mute); }
.rate__note { margin: 0; color: var(--mute); font-size: 14px; }
.rstars { display: inline-flex; gap: 2px; }
.rstar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 0; background: none; transition: background .15s, transform .2s var(--out); cursor: pointer; }
.rstar svg { width: 26px; height: 26px; fill: transparent; stroke: var(--mute); stroke-width: 1.6; stroke-linejoin: round; transition: fill .15s, stroke .15s, transform .25s var(--spring); }
.rstar.on svg { fill: #e8c46b; stroke: #e8c46b; }
.rstars.preview .rstar svg { fill: transparent; stroke: var(--mute); }
.rstars.preview .rstar.hv svg { fill: #e8c46b; stroke: #e8c46b; transform: scale(1.1); }
.rstar:hover { background: var(--ink-3); }
.rstars.pulse-in .rstar.on svg { animation: starPop .4s var(--spring) both; animation-delay: calc(var(--s, 0) * 40ms); }
@keyframes starPop { 0% { transform: scale(.5); } }
.rate__clear { font-size: 13px; color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
.rate__clear:hover { color: var(--danger); }

/* comments */
.cmts { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.cmts h2 { display: flex; align-items: center; gap: 10px; }
.cmts__n { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 7px; font: 500 12.5px/1 var(--f-mono); background: var(--ink-3); color: var(--text-2); border-radius: 6px; border: 1px solid var(--line-2); }
.cmts__note { color: var(--mute); margin: 0 0 16px; font-size: 14px; }
.cmts__empty { color: var(--mute); font-size: 14px; padding: 20px; border: 1px dashed var(--line-2); border-radius: 10px; text-align: center; margin: 12px 0 0; }
.cform { margin: 0 0 16px; }
.cform__row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.cform__row > .avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.cform__in { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cform .textarea { min-height: 88px; font-size: 15px; }
.cform--reply .textarea { min-height: 64px; }
.cform__f { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.cform__n { font-size: 12px; color: var(--dim); }
.cform__n.low { color: var(--danger); }
.cform.err .textarea { border-color: var(--danger); animation: shake .35s; }
.cmts__list, .cmt__replies { list-style: none; margin: 0; padding: 0; }
.cmt { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.cmts__list > .cmt:first-child { border-top: 0; }
.cmt.fresh { animation: cmtIn .6s var(--out) both; }
.cmt.pending { opacity: .6; }
.cmt.pending .cmt__time::after { content: " · posting…"; color: var(--mute); }
.cmt__av .avatar { width: 36px; height: 36px; border-radius: 50%; }
.cmt--reply { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 12px 0 4px; border-top: 0; }
.cmt--reply .cmt__av .avatar { width: 28px; height: 28px; }
.cmt__replies { margin-top: 6px; padding-left: 14px; border-left: 2px solid var(--line); }
.cmt__replies:empty { display: none; }
.cmt__main { min-width: 0; }
.cmt__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--mute); }
.cmt__who { font-weight: 600; font-size: 14.5px; color: var(--bone); }
.cmt__who:hover { color: var(--lime); }
.cmt__maker { font-size: 12px; font-weight: 600; color: var(--lime); padding: 1px 6px; border: 1px solid var(--accent-soft-border); border-radius: 5px; }
.cmt__stars { color: #e8c46b; letter-spacing: 1px; font-size: 12px; }
.cmt__stars i { font-style: normal; color: var(--line-2); }
.cmt__time { color: var(--dim); }
.cmt__time:hover { color: var(--bone); }
.cmt__body { margin-top: 4px; color: #d4d8df; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.cmt__body p + p { margin-top: 8px; }
.cmt__body a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
.cmt__act { position: relative; display: flex; align-items: flex-start; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.cmt__act form { margin: 0; }
.cmt__act > form { order: 1; }
.cmt__act > .cmt__reply { order: 0; flex: 0 1 auto; }
.cmt__act > .cmt__reply[open] { flex: 1 1 100%; }
.cmt__reply > summary, .cmt__del { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); cursor: pointer; list-style: none; background: none; border: 0; padding: 0; }
.cmt__reply > summary::-webkit-details-marker { display: none; }
.cmt__reply > summary:hover, .cmt__reply[open] > summary { color: var(--bone); }
.cmt__reply[open] .cform { margin: 10px 0 4px; animation: rise .25s var(--out); }
.cmt__del:hover { color: var(--danger); }

/* --- 13. generic app.css components in the dark system --------------------- */
.page { padding-block: 24px 0; }
.page-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; gap: 10px; }
.page-head__eyebrow, .section-head__eyebrow { display: none; }
.mini-h { margin: 0; font: 600 16px/1.3 var(--f-body); color: var(--bone); }
.page-head__title, .auth__title, .profile-head__name { font: 700 30px/1.2 var(--f-body); letter-spacing: -.02em; overflow-wrap: anywhere; }
.page-head__lead, .auth__lead { color: var(--text-2); font-size: 15.5px; }
.page-head__meta { font-size: 13.5px; color: var(--mute); }
.section { padding-block: 32px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head__title, .panel__title, .form-section__title, .modal__title, .plan__name, .filter__title { font-family: var(--f-body); font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.section-head__title { font-size: 22px; line-height: 1.25; }
.panel__title { font-size: 16px; line-height: 1.3; }
.form-section__title { font-size: 18px; line-height: 1.3; }
.modal__title { font-size: 19px; line-height: 1.3; }
.filter__title { font-size: 14px; margin-bottom: 8px; color: var(--text-2); }
.section-head__link { color: var(--mute); font-size: 14px; }
.section-head__link:hover { color: var(--bone); }
.panel__head { border-bottom: 1px solid var(--line); }
.panel--flush .panel__body { padding: 0; }
a.panel:hover { border-color: var(--line-2); }
.field__label { font-weight: 600; font-size: 14px; }
.field__hint { color: var(--mute); font-size: 13.5px; }
.field__error { color: var(--danger); }
.input, .textarea, .select { height: 40px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 9px; font-size: 15px; color: var(--bone); box-shadow: none; }
.textarea { height: auto; padding: 10px 12px; }
.input:hover, .textarea:hover, .select:hover { border-color: #454a55; }
.input:focus, .textarea:focus, .select:focus, .tag-input:focus-within { border-color: var(--lime); background: var(--ink-2); box-shadow: 0 0 0 3px rgba(143, 179, 255, .14); }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23969ca8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.select option { background: var(--ink-2); color: var(--bone); }
.input-group__addon { background: var(--ink-3); border: 1px solid var(--line-2); color: var(--mute); }
.input-group > .input { border-radius: 0; }
.check input { accent-color: var(--lime); width: 16px; height: 16px; }
.check__count { color: var(--dim); font: 400 12px var(--f-mono); margin-left: 2px; }
.tag-input { min-height: 40px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 9px; }
.tag-input__chip { background: var(--ink-4); color: var(--bone); border: 1px solid var(--line-2); border-radius: 6px; height: 26px; font-weight: 500; animation: pop .2s var(--out); }
.tag-input__chip::before { color: var(--dim); }
.tag-input__remove { color: var(--mute); }
.tag-input__remove:hover { background: var(--ink-3); color: var(--bone); }
.tag-input__suggestions { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; animation: pop .18s var(--out); }
.tag-input__option:hover, .tag-input__option[aria-selected="true"] { background: var(--ink-3); }
.tag-input__option mark { color: var(--lime); background: none; }
.segmented { background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.segmented__item { height: 30px; padding: 0 12px; font: 500 13.5px var(--f-body); color: var(--mute); border-radius: 7px; transition: color .15s, background .15s; }
.segmented__item[aria-pressed="true"], .segmented__item[aria-current="true"], .segmented__item[aria-current="page"], .segmented__item.is-active { background: var(--ink-4); color: var(--bone); box-shadow: none; }
.tabs { border-bottom: 1px solid var(--line); }
.tabs__tab { font-weight: 500; color: var(--mute); }
.tabs__tab[aria-selected="true"]::after, .tabs__tab.is-active::after { background: var(--lime); height: 2px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--b-bd, var(--line-2)) !important; border-radius: 6px; background: var(--b-bg, transparent) !important; box-shadow: none; font: 500 12.5px var(--f-body); color: var(--b-fg, var(--text-2)); }
.badge::before { content: none !important; }
.badge--success { --b-fg: var(--success); --b-bd: var(--success-border); --b-bg: var(--success-soft); }
.badge--danger { --b-fg: var(--danger); --b-bd: var(--danger-border); --b-bg: var(--danger-soft); }
.badge--warning { --b-fg: var(--warning); --b-bd: var(--warning-border); --b-bg: var(--warning-soft); }
.badge--info { --b-fg: var(--info); --b-bd: var(--info-border); --b-bg: var(--info-soft); }
.badge--outline { --b-fg: var(--text-2); }
.badge--accent { --b-fg: var(--amber); --b-bd: rgba(243, 176, 76, .4); --b-bg: var(--amber-soft); }
a.badge:hover { --b-bd: var(--mute); color: var(--bone); }
.avatar { box-shadow: none; border-radius: 50%; background: var(--ink-3); }
.avatar--gen { position: relative; overflow: hidden; flex: none; display: inline-block; aspect-ratio: 1; }
.avatar--gen svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.dropdown__menu { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow-pop); transform-origin: top right; }
.dropdown[open] > .dropdown__menu { animation: pop .16s var(--out); }
.dropdown__item { border-radius: 7px; padding: 8px 10px; font-weight: 500; font-size: 14px; }
.dropdown__item:hover, .dropdown__item:focus-visible { background: var(--ink-3); color: var(--bone); }
.dropdown__item--danger:hover, .dropdown__item--danger:hover .icon { color: var(--danger); }
.dropdown__sep { background: var(--line); }
.pagination__item[aria-current="page"] { background: var(--ink-4); color: var(--bone); border-color: var(--line-2); }
.alert { border-radius: 10px; border-width: 1px; font-size: 14.5px; }
.flash .alert { animation: rise .3s var(--out); }
.empty { border: 1px dashed var(--line-2); border-radius: 12px; padding: 44px 20px; background: transparent; }
.empty__title { font: 600 19px/1.3 var(--f-body); }
.empty__text { color: var(--mute); }
.modal { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-pop); color: var(--bone); }
.modal[open] { animation: pop .2s var(--out); }
.modal::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.modal__footer { background: var(--ink-3); border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.table-wrap { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; }
.table th { background: var(--ink-3); color: var(--mute); font: 600 12.5px var(--f-body); letter-spacing: 0; text-transform: none; }
.table td { border-bottom-color: var(--line); }
.table tbody tr:hover { background: var(--ink-3); }
.table__num { font-family: var(--f-mono); }
.stat { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; }
.stat__value { font: 600 28px/1.1 var(--f-mono); letter-spacing: -.02em; }
.stat__label { font: 500 13px var(--f-body); letter-spacing: 0; text-transform: none; color: var(--mute); }
.spark > i { background: var(--line-2); }
.spark > i:last-child { background: var(--lime); }
.plan { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, transform .25s var(--out); }
.plan:hover { border-color: var(--line-2); transform: translateY(-2px); }
.plan--featured { border-color: var(--amber-line); box-shadow: 0 0 0 1px rgba(243, 176, 76, .2), 0 14px 36px -20px rgba(243, 176, 76, .45); }
.plan__ribbon { background: var(--amber); color: #1d1305; font-weight: 600; }
.plan__amount { font: 600 36px/1.1 var(--f-mono); letter-spacing: -.02em; }
.plan__features .icon { color: var(--success); }
.plan__diagram { background: var(--ink); border-color: var(--line); }
.plan__diagram > i { background: var(--line); }
.plan__diagram > i.is-bar { background: var(--line-2); }
.plan__diagram > i.is-hit { background: var(--amber); }
.admin__sidebar .side-nav__link { border-radius: 8px; font-weight: 500; }
.side-nav__link:hover { background: var(--ink-2); color: var(--bone); }
.side-nav__link.is-active, .side-nav__link[aria-current="page"] { background: var(--ink-3); color: var(--bone); box-shadow: inset 2px 0 0 var(--lime); }
.side-nav__link[aria-current="page"] .icon, .side-nav__link.is-active .icon { color: var(--lime); }
.side-nav__heading { color: var(--dim); font: 600 12.5px var(--f-body); letter-spacing: 0; text-transform: none; }
.auth__aside { background: var(--ink-2); border-left: 1px solid var(--line); padding: 0 !important; }
.auth__art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.auth__stats { position: absolute; left: 24px; bottom: 24px; z-index: 2; background: rgba(14, 15, 18, .85); color: var(--mute); padding: 10px 14px; border-radius: 10px; font-size: 13.5px; border: 1px solid var(--line); }
.auth__stats b { color: var(--bone); }
.or-sep { color: var(--dim); }
.or-sep::before, .or-sep::after { background: var(--line); }
.profile-head { border-bottom: 1px solid var(--line); }
.md-editor { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; }
.md-editor:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(143, 179, 255, .14); }
.md-editor__head, .md-editor__foot { border-color: var(--line) !important; background: var(--ink-3); }
.md-editor__head { border-radius: 9px 9px 0 0; }
.md-editor__input { background: transparent; color: var(--bone); font-family: var(--f-mono); }
.md-editor__tool { color: var(--mute); border-radius: 6px; }
.md-editor__tool:hover { background: var(--ink-4); color: var(--bone); }
.md-editor__preview { background: var(--ink); }
.dropzone { background: var(--ink-2); border: 1px dashed var(--line-2); border-radius: 12px; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-dragover { border-color: var(--lime); background: rgba(143, 179, 255, .05); }
.dropzone__icon { color: var(--mute); }
.filter { padding-block: 14px; border-color: var(--line); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(5, 6, 8, .9); }
.lightbox img { display: block; max-width: 96vw; max-height: 90vh; object-fit: contain; border-radius: 8px; cursor: zoom-out; }
.lightbox__close { position: fixed; top: 16px; right: 16px; }

/* search page */
.search-page .hero-search, .page-head .hero-search { max-width: 680px; margin-top: 4px; }
.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.result-bar__n { margin: 0; font-size: 14px; color: var(--mute); }
.sortsel { display: inline-flex; align-items: center; gap: 8px; }
.sortsel label { font-size: 13px; color: var(--mute); }
.sortsel .select { height: 36px; width: auto; min-width: 170px; }
.layout-sidebar__main .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); }

/* profile + tags pages */
.profile-head .avatar--xl { width: 88px; height: 88px; }
.ptabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tag-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tag-tile { position: relative; display: flex; flex-direction: column; color: var(--bone); padding: 0; overflow: hidden; transition: border-color .15s, background .15s; }
.tag-tile:hover { border-color: var(--line-2); background: var(--ink-3); }
.tag-tile__name { font: 600 17px/1.3 var(--f-body); }
.tag-tile__meta { font-size: 13px; color: var(--mute); }
.tag-tile .panel__body { padding: 16px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.tag-cloud .tag::before { content: "#"; }

/* /countries index */
.cidx { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.cidx li { border-bottom: 1px solid var(--line); }
.cidx__a { display: grid; grid-template-columns: 28px 44px minmax(0, 1fr) 120px 64px; align-items: center; gap: 12px; padding: 11px 4px; color: var(--bone); transition: background .15s; border-radius: 6px; }
.cidx__a:hover { background: var(--ink-2); }
.cidx__r { font: 400 12.5px var(--f-mono); color: var(--dim); text-align: right; }
.cidx__c { font: 600 12.5px var(--f-mono); color: var(--text-2); justify-self: start; padding: 2px 5px; border: 1px solid var(--line-2); border-radius: 4px; }
.cidx__n { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cidx__bar { height: 4px; background: var(--ink-3); border-radius: 2px; overflow: hidden; }
.cidx__bar i { display: block; height: 100%; width: var(--w); background: var(--mute); border-radius: 2px; transform-origin: left; animation: barGrow .7s var(--out) both; }
.cidx__a:hover .cidx__bar i { background: var(--lime); }
.cidx__v { font: 400 12.5px var(--f-mono); color: var(--mute); text-align: right; white-space: nowrap; }
@media (max-width: 960px) { .cidx { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cidx__a { grid-template-columns: 22px 40px minmax(0, 1fr) 56px; gap: 10px; } .cidx__bar { display: none; } }

/* country combobox (submit form) */
.csel { position: relative; }
.csel__input { width: 100%; }
.csel__code { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font: 600 12.5px/1 var(--f-mono); color: var(--text-2); pointer-events: none; }
.csel__code ~ .csel__input { padding-left: 42px; }
.csel__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; color: var(--mute); font-size: 20px; line-height: 1; }
.csel__clear:hover { color: var(--bone); }
.csel__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-pop); }
.csel__opt { display: grid; grid-template-columns: 36px 1fr; align-items: baseline; gap: 8px; padding: 7px 10px; cursor: pointer; color: var(--text-2); border-radius: 6px; }
.csel__opt b { font: 600 12.5px var(--f-mono); color: var(--mute); }
.csel__opt[aria-selected="true"] { background: var(--ink-3); color: var(--bone); }
.csel__opt.is-current span { color: var(--lime); }
.csel__none { padding: 10px 14px; color: var(--dim); }

/* built with: credits + /built-with index */
.tcat { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 32px 40px; }
.tcat__h { margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); font: 600 17px/1.3 var(--f-body); }
.tcat__h span { font: 400 12.5px var(--f-mono); color: var(--dim); margin-left: 6px; }
.tcat__list { list-style: none; margin: 0; padding: 0; }
.tcat__list li { border-bottom: 1px solid var(--line); }
.tcat__list a { display: grid; grid-template-columns: minmax(0, 1fr) auto 56px 28px; align-items: center; gap: 12px; padding: 8px 4px; border-radius: 6px; transition: background .15s; }
.tcat__list a:hover { background: var(--ink-2); }
.tcat__n { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; color: var(--bone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tcat__n .tool-icon { color: var(--text-2); }
.tcat__list a:hover .tcat__n { color: var(--lime); }
.tcat__v { font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.tcat__bar { height: 4px; background: var(--ink-3); border-radius: 2px; overflow: hidden; }
.tcat__bar i { display: block; height: 100%; width: var(--w); background: var(--mute); transform-origin: left; animation: barGrow .7s var(--out) both; }
.tcat__c { font: 500 13px var(--f-mono); text-align: right; color: var(--text-2); }
.tcat__list li.is-empty .tcat__n { color: var(--mute); font-weight: 400; }
.tcat__list li.is-empty .tcat__c { color: var(--dim); }
@media (max-width: 420px) { .tcat__v { display: none; } .tcat__list a { grid-template-columns: minmax(0, 1fr) 44px 26px; } }

/* built-with picker (submit form) */
.tpick__sel { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--line); }
.tpick__sel li { display: grid; grid-template-columns: 24px 1fr 32px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); animation: rise .25s var(--out) both; }
.tpick__i { font: 500 12.5px var(--f-mono); color: var(--dim); display: inline-flex; align-items: center; }
.tpick__sel b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.tpick__x { width: 32px; height: 32px; font-size: 20px; color: var(--mute); border-radius: 6px; }
.tpick__x:hover { color: var(--bone); background: var(--ink-3); }
.tpick__bar { display: flex; align-items: center; gap: 12px; }
.tpick__bar .input { flex: 1; }
.tpick__n { color: var(--mute); font-size: 13px; }
.tpick__list { margin-top: 10px; max-height: 320px; overflow: auto; padding: 4px 14px 12px 0; overscroll-behavior: contain; }
.tpick__g h4 { margin: 14px 0 6px; font: 600 13px var(--f-body); color: var(--mute); }
.tpick__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tpick__o { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; font: 500 13.5px var(--f-body); color: var(--text-2); border: 1px solid var(--line); border-radius: 8px; background: none; transition: color .15s, background .15s, border-color .15s; cursor: pointer; }
.tpick__o:hover:not(:disabled) { color: var(--bone); border-color: var(--line-2); background: var(--ink-2); }
.tpick__o[aria-pressed="true"] { color: var(--bone); border-color: var(--lime); background: var(--accent-soft); }
.tpick__o:disabled { opacity: .35; cursor: not-allowed; }
.tpick__none { color: var(--dim); margin: 12px 0 0; }
.toolpick-nojs { border: 0; padding: 0; margin: 0; }
.toolpick-nojs__g { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.toolpick-nojs__h { flex-basis: 100%; margin: 6px 0 0; color: var(--mute); font-size: 13px; }

/* discount codes, prices */
.promo-code { max-width: 460px; }
.promo-code__row { display: flex; gap: 8px; }
.promo-code__row .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .05em; font-family: var(--f-mono); }
.promo-code__ok { margin: 6px 0 0; font-size: 14px; font-weight: 500; color: var(--success); }
.promo-list { color: var(--mute); text-decoration: line-through 1.5px; margin-right: 4px; }
[data-promo-total].is-discounted { color: var(--success); }
.shake { animation: shake .35s; }
.price-lines { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 24px; margin: 0; }
.price-lines dt { color: var(--mute); }
.price-lines dd { margin: 0; font-family: var(--f-mono); text-align: right; }
.price-lines .is-total dt, .price-lines .is-total dd { color: var(--bone); font-weight: 600; padding-top: 6px; border-top: 1px solid var(--line-2); }
.price-lines .is-off dd { color: var(--success); }
.promo-cell { display: inline-grid; justify-items: end; gap: 2px; }
.promo-cell b { color: var(--success); font-weight: 600; }
.promo-cell small { color: var(--dim); font-size: 12px; }
.code-tt { font: 600 14px/1 var(--f-mono); letter-spacing: .04em; color: var(--bone); user-select: all; }
.code-pct { font: 600 14px/1 var(--f-mono); color: var(--success); }
.cstate { font-size: 13px; font-weight: 500; margin-left: 6px; color: var(--dim); }
.cstate--live { color: var(--success); }
.cstate--expired, .cstate--used-up { color: var(--danger); }
tr.is-muted .code-tt, tr.is-muted .code-pct { color: var(--mute); }
.form-actions__note { font-size: 14px; color: var(--mute); display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.form-actions__note [data-promo-total] { font: 600 24px/1 var(--f-mono); color: var(--bone); }
.form-actions__note [data-promo-total].is-discounted { color: var(--success); }
.form-actions__note .promo-list { font: 500 16px var(--f-mono); }

/* --- 20. responsive ------------------------------------------------------- */
@media (max-width: 1180px) {
  .alayout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .rate__grid { grid-template-columns: 140px minmax(0, 1fr); }
  .rate__mine { grid-column: 1 / -1; }
  .hdr__in { gap: 14px; }
}
@media (max-width: 1040px) {
  .hnav { display: none; }
  .hdr__in { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (max-width: 860px) {
  .hdr__in { grid-template-columns: auto 1fr; grid-template-areas: "logo act" "search search"; height: auto; padding-block: 10px; gap: 10px; }
  .hdr .logo { grid-area: logo; }
  .hdr__act { grid-area: act; justify-self: end; gap: 6px; }
  .hdr .search { grid-area: search; max-width: none; }
  .header-search .kbd { display: none; }
  .ftr { margin-top: 64px; }
  .sec { padding-top: 36px; }
  .sec--first { padding-top: 20px; }
  .alayout { grid-template-columns: 1fr; gap: 32px; }
  .alayout__side { position: static; }
  .ahead h1 { font-size: 26px; }
  .ahead__tl { font-size: 16px; }
  .ahead__acts { width: 100%; }
  .ahead__acts .btn--primary { flex: 1 1 auto; }
  .gal { margin-bottom: 28px; }
  .gal__th { width: 88px; }
  .lbx__fig { padding: 56px 8px; }
  .lbx__nav { top: auto; bottom: 10px; margin-top: 0; }
  .prose { font-size: 16px; }
  .rate, .cmts { margin-top: 40px; }
  .rate__grid { grid-template-columns: 1fr; gap: 20px; }
  .rate__sum { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
  .phead h1, .page-head__title, .auth__title, .profile-head__name { font-size: 24px; }
  .tiles--feat { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 10px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .tiles--feat::-webkit-scrollbar { display: none; }
  .tiles--feat > .tiles__i { scroll-snap-align: start; }
  .boards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 8px; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .boards::-webkit-scrollbar { display: none; }
  .boards > .lb { scroll-snap-align: start; }
  .boards__nojs { grid-column: auto; grid-row: 1; }
  html:not(.js) .boards { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; margin-inline: 0; padding: 0; }
  .sec__h .seg, .chart-bar .seg { max-width: 100%; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .layout-sidebar__main .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--feat { grid-template-columns: none; }
  .tile { border-radius: 10px; }
  .tile__media { border-radius: 9px 9px 0 0; }
  .tile__link::after { border-radius: 10px; }
  .tile__body { padding: 8px 10px 10px; }
  .tile__name { font-size: 14.5px; }
  .tile__tl { font-size: 14px; line-height: 1.38; min-height: 2.76em; }
  .tile__meta { gap: 10px; padding-top: 7px; font-size: 12px; }
  .tstat .icon, .tstat svg { width: 14px; height: 14px; }
  .tile__spk { display: none; }
  .tiles--feat .tile__spk { display: block; width: 64px; }
  .tile__foot { margin-top: 7px; padding-top: 7px; }
  .tile__tooln { display: none; }
  .tiles--feat .tile__tooln { display: inline; }
  .tile__rank, .tile__sp { top: 6px; left: 6px; height: 20px; padding: 0 6px; font-size: 11px; }
  .tile__dots { left: 8px; right: 8px; bottom: 6px; }
  .btn--lg { height: 42px; padding: 0 14px; }
  .ahead__acts .btn--lg:not(.btn--primary):not(.btn--icon) { padding: 0 12px; }
}
@media (max-width: 380px) {
  .tile__meta .tstat--rate { display: none; }
}

/* --- 21. view transitions (tile media -> app gallery) ---------------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .42s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  ::view-transition-old(root) { animation: vtOut .2s ease-out both; }
  ::view-transition-new(root) { animation: vtIn .3s .08s ease-out both; }
  ::view-transition-old(*):only-child, ::view-transition-new(*):only-child { animation-duration: .25s; }
  ::view-transition-image-pair(*) { isolation: isolate; }
  ::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: cover; overflow: clip; }
}
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(6px); } }

/* --- 22. reduced motion: fades only ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .2s !important; transition-property: opacity, color, background-color, border-color !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js .io { transform: none; }
  .odo .od > span { transition: none !important; }
  .js .tile__spk:not(.draw) .sparkline__l, .tile__spk .sparkline__l { stroke-dashoffset: 0 !important; stroke-dasharray: none !important; }
  .js .tile__spk .sparkline__d { opacity: 1 !important; }
  .js .tile__spk .sparkline__a { opacity: .1 !important; }
  .js .rate:not(.in) .hbar__t i { width: var(--w, 0%); }
  .cover.wait .blk { transform: none; }
  .tile { transform: none !important; }
  .cidx__bar i, .tcat__bar i { animation: none; }
}

/* open featured slot (home): real availability, links to pricing */
.fslot { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 100%; min-height: 100%; padding: 24px; border: 1px dashed rgba(243, 176, 76, .4); border-radius: 12px; color: var(--mute); background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(243, 176, 76, .03) 12px 13px); transition: border-color .2s, color .2s, background-color .2s; }
.fslot:hover { border-color: var(--amber); color: var(--text-2); background-color: var(--amber-soft); }
.fslot__t { font: 600 16px var(--f-body); color: var(--bone); }
.fslot__l { font-size: 14px; max-width: 30ch; }
.fslot__cta { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--amber); }
@media (max-width: 860px) { .tiles__i--slot { display: none; } }

/* --- 23. promotions: configurator quote, nudges, results -------------------- */
.promo-side { display: flex; flex-direction: column; gap: 12px; align-self: start; position: sticky; top: 84px; min-width: 0; }
.quote { padding: 18px 20px; border-color: var(--amber-line); background: linear-gradient(180deg, rgba(243, 176, 76, .07), transparent 55%), var(--ink-2); }
.quote__h { margin: 0; font: 600 13px var(--f-body); color: var(--amber); }
.quote__opt { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.quote__price { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.quote__price strong { font: 600 32px/1.1 var(--f-mono); letter-spacing: -.02em; color: var(--bone); }
.quote__list { font: 500 16px var(--f-mono); color: var(--mute); text-decoration: line-through 1.5px; }
.quote__why { display: inline-flex; margin: 6px 0 0; padding: 3px 8px; border-radius: 6px; background: var(--success-soft); border: 1px solid var(--success-border); color: var(--success); font-size: 13px; font-weight: 500; }
.quote__fc { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.quote__big { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 15px; color: var(--text-2); }
.quote__big b { font: 600 17px var(--f-mono); color: var(--bone); }
.quote__note { margin: 6px 0 0; font-size: 14px; color: var(--text-2); }
.quote__slots { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 0; font-size: 14px; color: var(--text-2); }
.quote__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warning); transform: translateY(-1px); }
.quote__dot.is-free { background: var(--success); }
.quote__fine { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--mute); }

/* placement map inside each placement card */
.pmap { display: flex; flex-direction: column; gap: 3px; width: 96px; padding: 6px; margin-bottom: 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--ink); }
.pmap__bar { height: 4px; width: 60%; border-radius: 2px; background: var(--line-2); }
.pmap__bar--q { width: 100%; height: 6px; }
.pmap__feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.pmap__feat i { height: 12px; }
.pmap__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.pmap__grid--side { grid-template-columns: repeat(3, 1fr); margin-left: 18px; }
.pmap i { display: block; height: 8px; border-radius: 2px; background: var(--ink-4); }
.pmap i.on { background: var(--amber); }
.choice:has(input:checked) .pmap { border-color: rgba(143, 179, 255, .4); }

/* owner nudge + live campaign (app page sidebar) */
.pnudge { border-color: var(--amber-line) !important; background: linear-gradient(180deg, rgba(243, 176, 76, .07), transparent 60%), var(--ink-2); }
.pnudge__h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 15px var(--f-body); color: var(--bone); }
.pnudge__sub { margin: -6px 0 10px; font-size: 13.5px; color: var(--mute); }
.pnudge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.pnudge__cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.pnudge__cmp > div { padding: 10px; border-radius: 8px; background: var(--ink); border: 1px solid var(--line); min-width: 0; }
.pnudge__cmp > div.is-hi { border-color: rgba(243, 176, 76, .4); }
.pnudge__cmp dt { font-size: 12.5px; color: var(--mute); }
.pnudge__cmp dd { margin: 4px 0 0; font: 600 18px/1.1 var(--f-mono); color: var(--bone); }
.pnudge__cmp dd.pnudge__u { margin-top: 3px; font: 400 12.5px var(--f-body); color: var(--mute); }
.pnudge__price { margin: 0 0 12px; font-size: 14px; color: var(--text-2); }
.pnudge__price s { color: var(--mute); font-family: var(--f-mono); }
.pnudge__price b { font: 600 15px var(--f-mono); color: var(--bone); }
.pnudge__off { display: inline-block; margin-left: 4px; font-size: 12.5px; font-weight: 500; color: var(--success); }
.pnudge__fine { margin: 10px 0 0; font-size: 12.5px; color: var(--mute); line-height: 1.5; }
.pnudge__more { display: inline-block; margin-top: 10px; font-size: 13.5px; color: var(--text-2); }
.pnudge__more:hover { color: var(--bone); }

/* campaign results */
.cstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.cstats > div { padding: 10px 12px; border-radius: 8px; background: var(--ink); border: 1px solid var(--line); min-width: 0; }
.cstats dt { font-size: 12.5px; color: var(--mute); }
.cstats dd { margin: 4px 0 0; font: 600 18px/1.15 var(--f-mono); color: var(--bone); white-space: nowrap; }
.cstats__d { font: 500 12.5px var(--f-mono); }
.cstats__d--up { color: var(--success); }
.cstats__d--dn { color: var(--danger); }
.cstats--sm { grid-template-columns: 1fr 1fr; gap: 8px; }
.cstats--sm > div { padding: 8px 10px; }
.cstats--sm dd { font-size: 16px; }
.cstats__note { margin: 8px 0 0; font-size: 13px; color: var(--mute); line-height: 1.5; }
.camps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.camp { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.camp--live { border-color: var(--amber-line); }
.camp__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 20px; flex-wrap: wrap; }
.camp__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.camp__app { font: 600 16px var(--f-body); color: var(--bone); }
.camp__app:hover { color: var(--lime); }
.camp__where { font-size: 13.5px; color: var(--mute); }
.camp__s { display: flex; align-items: center; gap: 12px; }
.camp__price { font-size: 14px; }
.camp__state { margin: 8px 0 12px; font-size: 13.5px; color: var(--text-2); }
.camp__acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.camp__acts:empty { display: none; }

/* pricing + My apps */
.pfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 0 0 28px; }
.pfacts__i { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); font-size: 14px; color: var(--text-2); }
.pfacts__i b { font-size: 15px; font-weight: 600; color: var(--bone); }
.pfacts__i--off { border-color: var(--success-border); }
.pfacts__i--off b { color: var(--success); }
.pbanner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--amber-line); border-radius: 10px; background: var(--amber-soft); font-size: 14px; color: var(--text-2); }
.pbanner p { margin: 0; }
.pbanner b { color: var(--bone); font-weight: 600; }
.pbanner__off { color: var(--success); font-weight: 500; }
@media (max-width: 860px) { .promo-side { position: static; } .cstats { grid-template-columns: 1fr 1fr; } }
.badge-sp, .badge-sponsored { text-transform: none; }
.table__app-thumb { width: 64px; height: 40px; aspect-ratio: auto; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); flex: none; }
.table__app-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan__index { text-transform: none; letter-spacing: 0; }
.header-search__input:focus-visible, .hero-search__input:focus-visible { outline: none; }

/* screenshots field (submit / edit form) */
.shots { display: flex; flex-direction: column; gap: 10px; border-radius: 12px; transition: box-shadow .15s; }
.shots.is-over { box-shadow: 0 0 0 2px var(--lime); }
.shots__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shots__i { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); background: var(--ink); cursor: grab; transition: opacity .15s, box-shadow .15s, transform .15s; }
.shots__i img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.shots__i.is-drag { opacity: .4; }
.shots__i.is-target { box-shadow: 0 0 0 2px var(--lime); transform: scale(1.02); }
.shots__n { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 5px; background: rgba(14, 15, 18, .8); font-size: 12px; color: var(--bone); }
.shots__acts { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 3px; }
.shots__b { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: rgba(14, 15, 18, .82); color: var(--bone); font-size: 15px; line-height: 1; cursor: pointer; }
.shots__b:hover:not(:disabled) { background: var(--ink-4); }
.shots__b:disabled { opacity: .35; cursor: default; }
.shots__b--x:hover { color: var(--danger); }
.shots__i--up { display: grid; place-items: center; cursor: default; }
.shots__p { position: absolute; left: 10px; right: 10px; bottom: 12px; height: 4px; border-radius: 2px; background: var(--ink-3); overflow: hidden; }
.shots__p i { display: block; height: 100%; background: var(--lime); transition: width .2s; }
.shots__i--up .shots__n { position: static; background: none; color: var(--mute); }
.shots__add { width: 100%; }
.shots-nojs { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.shots-nojs li { display: flex; flex-direction: column; gap: 4px; }
.shots-nojs img { width: 160px; height: 100px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); }
.shots__add.dropzone { padding: 18px 16px; min-height: 0; }
.shots__b { width: 24px; height: 24px; font-size: 13px; }
.lbx__fig img { border: 1px solid rgba(255, 255, 255, .08); }
.prose ul:has(> li > input[type="checkbox"]) { list-style: disc; padding-left: 1.3em; }
.prose ul > li.task-list-item, .prose ul > li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.3em; }
.prose li > input[type="checkbox"] { margin-right: 6px; vertical-align: -2px; }
.ahead__rating { padding-left: 0; border-left: 0; }

/* ==== Layer 2: the Charts look ==== */

/* --- 0. tokens ------------------------------------------------------------ */
:root:root:root {
  color-scheme: dark;
  --ink: #0A0A09; --ink-2: #121210; --ink-3: #1B1B18; --ink-4: #24231F;
  --line: #2A2925; --line-2: #3A3934;
  --bone: #EFEADF; --mute: #8D8A80; --dim: #5E5C55;
  --lime: #C6FF1A; --lime-2: #D8FF5C; --lime-d: #6E9400; --red: #FF3D1F; --red-d: #8A1C08;
  --paper: #EFEADF; --paper-2: #E2DCCD;
  --f-disp: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --spring: cubic-bezier(.2, 1.45, .35, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(16px, 3.4vw, 48px);

  /* app.css tokens */
  --bg: var(--ink); --surface: var(--ink-2); --surface-2: var(--ink-3); --surface-3: var(--ink-4);
  --border: var(--line); --border-strong: var(--line-2);
  --text: var(--bone); --text-2: #B3AFA4; --text-3: var(--mute);
  --accent: var(--lime); --accent-hover: var(--lime-2); --on-accent: #0A0A09;
  --accent-text: var(--lime); --accent-soft: rgba(198, 255, 26, .09); --accent-soft-border: rgba(198, 255, 26, .32);
  --success: #A6E35A; --success-soft: rgba(166, 227, 90, .08); --success-border: rgba(166, 227, 90, .3);
  --warning: #F4C78F; --warning-soft: rgba(244, 199, 143, .08); --warning-border: rgba(244, 199, 143, .3);
  --danger: #FF6A4F; --danger-soft: rgba(255, 61, 31, .09); --danger-border: rgba(255, 61, 31, .38);
  --info: #9DB8FF; --info-soft: rgba(157, 184, 255, .08); --info-border: rgba(157, 184, 255, .3);
  --sponsored-bg: var(--paper); --sponsored-border: #0A0A09; --sponsored-text: #0A0A09;
  --focus: var(--lime); --overlay: rgba(0, 0, 0, .72); --code-bg: #050505; --selection: var(--lime);
  --font-sans: var(--f-body); --font-mono: var(--f-mono);
  --shadow-1: none; --shadow-2: 0 10px 30px -12px #000; --shadow-pop: 0 30px 60px -20px #000, 0 0 0 1px rgba(255, 255, 255, .03);
  --r-xs: 4px; --r-sm: 7px; --r-md: 11px; --r-lg: 18px;
  --container: 1440px; --gutter: var(--gut); --header-h: 72px;
  --control-h: 42px; --control-h-sm: 34px; --control-h-lg: 52px;
  --ease: var(--out); --dur: 200ms;
}

/* --- 1. base -------------------------------------------------------------- */
html { background: var(--ink); overflow-x: clip; scroll-padding-top: 96px; }
body { background: var(--ink); color: var(--bone); font-family: var(--f-body); font-size: 15px; line-height: 1.5; font-feature-settings: normal; overflow-x: clip; }
::selection { background: var(--lime); color: #000; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { letter-spacing: 0; }
.mono { font-family: var(--f-mono); font-size: .9em; letter-spacing: 0; }
.wrap, .container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gut); }
.container--narrow { max-width: calc(820px + 2 * var(--gut)); }
.link { color: var(--lime); }
.icon { stroke-width: 2; }
.show-xs { display: none; }
@media (max-width: 420px) { .hide-xs { display: none; } .show-xs { display: inline; } }
.skip-link { background: var(--lime); color: #000; font-weight: 700; }
.kbd, kbd { background: transparent; color: var(--mute); border: 1px solid var(--line-2); border-radius: 5px; font: 600 11px var(--f-mono); height: 20px; }
.announcement { background: var(--lime); color: #000; font: 600 13px var(--f-mono); padding: 8px 0; text-align: center; }

/* --- 2. small helpers kept from the previous stylesheet -------------------- */
.link-btn { background: none; border: 0; padding: 0; color: var(--lime); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.inline-form { display: inline; }
.tag--more::before { content: none; }
.owner-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; margin: 20px 0 0; background: var(--ink-2); border: 1.5px dashed var(--line-2); border-radius: 14px; font-size: 14px; }
.owner-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.owner-bar form { margin: 0; }
.load-more { display: flex; justify-content: center; margin-top: 32px; }
.like-wrap { position: relative; display: inline-flex; }
.like-pop { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 250px;
  padding: 14px; font-size: 14px; background: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-pop); animation: pop .32s var(--spring); }
.tag-input-wrap { position: relative; }
.tag-input__count { margin-left: auto; font-size: 12px; color: var(--mute); align-self: center; padding-right: 4px; }
.tag-input__label { padding: 8px 12px 4px; font: 600 10.5px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); list-style: none; }
.tag-input__meta { margin-left: auto; font-size: 12px; color: var(--mute); }
.tag-input__option { display: flex; gap: 12px; }
.tag-input__chip.is-armed { outline: 2px solid var(--red); outline-offset: 1px; }
.import-panel { max-width: 760px; }
.import-steps { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 0; font: 500 12px var(--f-mono); color: var(--text-2); }
.import-steps .is-ok { color: var(--lime); }
.import-steps .is-fail { color: var(--mute); }
.field__counter.is-over { color: var(--red); }
.cover-suggest { display: flex; gap: 16px; align-items: center; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 12px; }
.cover-suggest img { width: 160px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cover-preview img { width: 100%; max-width: 360px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; margin-bottom: 8px; }
.sticky-aside { display: flex; flex-direction: column; gap: 12px; }
.form-actions--sticky { position: sticky; bottom: 0; z-index: 5; padding-block: 12px; background: rgba(10, 10, 9, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); flex-wrap: wrap; }
.upload-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.upload-item progress { width: 120px; accent-color: var(--lime); }
.md-editor__tool--wide { width: auto; padding-inline: 8px; gap: 4px; display: inline-flex; align-items: center; }
.mermaid-diagram { overflow-x: auto; padding: 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .86); backdrop-filter: blur(6px); }
.lightbox[open] { animation: pop .4s var(--spring); }
.lightbox img { display: block; max-width: 96vw; max-height: 90vh; object-fit: contain; border-radius: 14px; cursor: zoom-out; }
.lightbox__close { position: fixed; top: 16px; right: 16px; }
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.choice { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--ink-2); cursor: pointer; transition: border-color .2s, transform .35s var(--spring), box-shadow .35s var(--spring); }
.choice:hover { border-color: var(--mute); transform: translateY(-2px); }
.choice:has(input:checked) { border-color: var(--lime); box-shadow: 4px 4px 0 var(--lime); transform: translate(-2px, -2px); }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__title { font-weight: 700; }
.choice__meta { font: 500 12px var(--f-mono); color: var(--mute); }
.choice__price { font-family: var(--f-disp); font-weight: 800; font-size: 28px; margin-top: 8px; }
.summary-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.summary-list dt { color: var(--mute); font: 600 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; align-self: center; }
.summary-list dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.timeline li { display: flex; gap: 12px; color: var(--mute); }
.timeline li.is-done { color: var(--bone); }
.timeline li::before { content: "○"; font-family: var(--f-mono); }
.timeline li.is-done::before { content: "●"; color: var(--lime); }
.legal h2 { margin-top: 32px; }
.dropdown__menu form { margin: 0; }
.dropdown__menu button.dropdown__item { background: none; border: 0; font: inherit; cursor: pointer; }
.flash-container { padding-top: 16px; }
.flash-container .flash { margin-bottom: 0; }
@media (min-width: 900px) { .layout-sidebar__aside .filters-toggle { display: none; } }
.prose ul { list-style: none; }
.prose ol { list-style: decimal; }
.tags-filter { max-width: 420px; margin-top: 8px; }
.pick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pick-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pick-list li:last-child { border-bottom: 0; }
.layout-detail > .panel, .layout-detail > form, .layout-detail > aside { align-self: start; }
.faq details { margin: 0 0 8px; }
fieldset.form-section { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
fieldset.form-section legend { padding: 0; margin-bottom: 12px; }
.md-help { display: flex; flex-direction: column; margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.md-help__row { display: grid; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); background: var(--ink-2); }
.md-help__row:last-child { border-bottom: 0; }
@media (min-width: 760px) { .md-help__row { grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.md-help__label { font-weight: 700; font-size: 14px; }
.md-help__src { margin: 0; padding: 12px; background: #050505; border: 1px solid var(--line); border-radius: 8px; font: 500 12px var(--f-mono); white-space: pre-wrap; word-break: break-word; }
.md-help__out { font-size: 14px; }
.md-help__out > :first-child { margin-top: 0; }
.md-help__out img { max-height: 48px; }
.report-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.report-list p { margin-top: 2px; color: var(--text-2); }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-filters .input { flex: 1; min-width: 200px; }
.inline-actions { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 4px; justify-content: flex-end; }
.inline-actions form { display: contents; }
.table td .input--sm, .input--sm { height: 32px; font-size: 13px; padding: 0 8px; }
.occupancy { display: flex; gap: 20px; font: 500 12px var(--f-mono); color: var(--text-2); }
.account-main > * { max-width: 820px; }
input[type=file] { font: inherit; font-size: 13px; color: var(--text-2); }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; height: 34px; padding: 0 12px; margin-right: 10px; border: 1.5px solid var(--line-2); border-radius: 9px; background: var(--ink-3); color: var(--bone); cursor: pointer; }
.just-published { margin: 20px 0 0; align-items: center; }
.just-published .alert__content { flex: 1; }
.report-link { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font: 500 12.5px var(--f-mono); }
.report-link:hover { color: var(--red); }
.alert > .alert__content:first-child { grid-column: 1 / 3; }
.alert > p:only-child { grid-column: 1 / -1; }
.table__app-thumb { width: 44px; aspect-ratio: 1; border-radius: 7px; }
.table__app-thumb .cover { width: 100%; height: 100%; }
.admin-comments__body { white-space: normal !important; min-width: 280px; max-width: 520px; color: var(--text-2); }
.table tr.is-muted td { opacity: .55; }

/* --- 3. motion primitives ------------------------------------------------- */
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
@keyframes fadeUp { from { transform: translateY(8px); opacity: 0; } }
@keyframes pop { from { transform: scaleY(.85) translateY(-6px); opacity: 0; } }
@keyframes dropIn { from { transform: translateY(-100%); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .15; } }
@keyframes chUp { from { transform: translateY(.7em) rotate(6deg); opacity: 0; } }
@keyframes blkIn { from { transform: scale(0) rotate(-90deg); } }
@keyframes barUp { from { transform: scaleY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rowIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes mvPop { 0% { transform: scale(.3); opacity: 0; } }
@keyframes flashUp { 0%, 30% { box-shadow: inset 0 0 0 999px rgba(198, 255, 26, .12); } }
@keyframes flashDn { 0%, 30% { box-shadow: inset 0 0 0 999px rgba(255, 61, 31, .1); } }
@keyframes cvIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes cmtIn { from { opacity: 0; transform: translateY(-10px) scale(.98); background: rgba(198, 255, 26, .14); } 60% { background: rgba(198, 255, 26, .1); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.js .io { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--out), transform .9s var(--out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .io.in { opacity: 1; transform: none; }
[data-split] .w { display: inline-block; white-space: nowrap; }
[data-split] .ch { display: inline-block; }
.js [data-split].reveal-wait .ch { opacity: 0; }
[data-split].reveal .ch { animation: chUp .8s var(--spring) both; animation-delay: calc(var(--c) * 28ms); }

/* --- 4. ticker ------------------------------------------------------------ */
.ticker { display: flex; align-items: stretch; height: 34px; border-bottom: 1px solid var(--line); background: var(--ink); font: 500 12px var(--f-mono); overflow: hidden; position: relative; animation: dropIn .6s var(--out) both; }
.ticker__label { flex: none; display: flex; align-items: center; padding: 0 14px 0 16px; background: var(--lime); color: #000; font: 900 17px/1 var(--f-disp); letter-spacing: .02em; text-transform: uppercase; z-index: 2; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding-right: 20px; }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; position: relative; -webkit-mask: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker__track { display: flex; width: max-content; height: 100%; align-items: center; animation: marquee var(--dur, 60s) linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.tk { display: flex; align-items: center; gap: 9px; padding: 0 22px; white-space: nowrap; color: var(--mute); transition: color .2s; }
.tk:hover { color: var(--bone); }
.tk b { color: var(--bone); font-weight: 600; text-transform: uppercase; }
.tk .up { color: var(--lime); }
.tk em { font-style: normal; color: var(--dim); }
.tk::after { content: ""; width: 6px; height: 6px; background: var(--line-2); margin-left: 22px; transform: rotate(45deg); }
.ticker__stats { flex: none; display: flex; align-items: center; gap: 18px; padding: 0 16px; border-left: 1px solid var(--line); color: var(--mute); z-index: 2; background: var(--ink); font-size: 12px; }
.ticker__stats b { color: var(--bone); }

/* --- 5. header ------------------------------------------------------------ */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 9, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-disp); font-weight: 900; font-size: 34px; letter-spacing: -.01em; line-height: 1; text-transform: lowercase; color: var(--bone); animation: rise .7s .1s var(--out) both; }
.logo--ftr { font-size: 28px; animation: none; }
.logo__mark { display: grid; grid-template-columns: repeat(2, 11px); grid-template-rows: repeat(2, 11px); gap: 2px; }
.logo__mark span { background: var(--bone); transition: transform .5s var(--spring), background .3s; }
.logo__mark span:nth-child(1) { background: var(--lime); border-radius: 11px 0 0 0; }
.logo__mark span:nth-child(4) { background: var(--red); border-radius: 0 0 11px 0; }
.logo:hover .logo__mark span:nth-child(1) { transform: translate(-3px, -3px); }
.logo:hover .logo__mark span:nth-child(4) { transform: translate(3px, 3px); }
.logo:hover .logo__mark span:nth-child(2) { transform: rotate(90deg); }
.logo:hover .logo__mark span:nth-child(3) { transform: rotate(-90deg); }
.hdr .search { position: relative; max-width: 560px; width: 100%; justify-self: center; animation: rise .7s .18s var(--out) both; }
.hnav { display: flex; gap: 4px; animation: rise .7s .22s var(--out) both; }
.hnav__a { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 12px; font-weight: 700; font-size: 14.5px; color: var(--mute); border-radius: 9px; transition: color .2s, background .2s; }
.hnav__a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--out); }
.hnav__a:hover { color: var(--bone); }
.hnav__a:hover::after, .hnav__a.is-active::after { transform: none; }
.hnav__a.is-active { color: var(--bone); }
.hdr__act { display: flex; align-items: center; gap: 10px; animation: rise .7s .26s var(--out) both; }
.hdr__me { display: block; list-style: none; cursor: pointer; border-radius: 9px; }
.hdr__me::-webkit-details-marker { display: none; }
.hdr__me .avatar { width: 40px; height: 40px; flex: none; border-radius: 10px; transition: transform .35s var(--spring), box-shadow .3s; }
.hdr__me:hover .avatar { transform: rotate(-6deg) scale(1.05); box-shadow: 0 0 0 2px var(--lime); }

/* search box (InstantSearch island + no-JS form) */
.header-search, .hero-search { position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 12px; transition: border-color .2s, background .2s, box-shadow .3s; }
.header-search:focus-within, .hero-search:focus-within { border-color: var(--lime); background: var(--ink-3); box-shadow: 0 0 0 4px rgba(198, 255, 26, .12); }
.header-search > .icon, .hero-search > .icon { flex: none; color: var(--mute); width: 18px; height: 18px; }
.header-search__input, .hero-search__input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--bone); font: 500 15px var(--f-body); }
.header-search__input::placeholder, .hero-search__input::placeholder { color: var(--dim); }
.header-search__input::-webkit-search-cancel-button { filter: invert(1) grayscale(1); opacity: .5; }
.hero-search { height: 60px; padding: 0 8px 0 18px; border-radius: 14px; }
.hero-search__input { font-size: 17px; }
.hero-search__btn { height: 44px; }
.suggest-host { position: relative; }
.suggest { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 8px); min-width: min(560px, calc(100vw - 2 * var(--gut))); max-height: min(70vh, 560px); overflow: auto;
  background: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: 0 30px 60px -20px #000; transform-origin: top; animation: pop .32s var(--spring); }
.suggest__label { display: flex; justify-content: space-between; align-items: center; font: 600 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 10px 10px 6px; }
.suggest__clear { color: var(--mute); font: inherit; letter-spacing: 0; text-transform: none; }
.suggest__clear:hover { color: var(--lime); }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; min-height: 44px; border-radius: 10px; color: var(--bone); animation: fadeUp .35s var(--out) both; }
.suggest__item:nth-child(2) { animation-delay: 35ms; } .suggest__item:nth-child(3) { animation-delay: 70ms; } .suggest__item:nth-child(4) { animation-delay: 105ms; }
.suggest__item:nth-child(5) { animation-delay: 140ms; } .suggest__item:nth-child(6) { animation-delay: 175ms; } .suggest__item:nth-child(n+7) { animation-delay: 210ms; }
.suggest__item.is-active { background: var(--ink-3); }
.suggest__item.is-active::after { content: "↵"; margin-left: 4px; color: var(--lime); font-family: var(--f-mono); }
.suggest__item--sponsored { background: var(--paper); color: #0A0A09; margin-bottom: 4px; }
.suggest__item--sponsored.is-active { background: var(--paper-2); }
.suggest__item--sponsored .suggest__tagline, .suggest__item--sponsored .suggest__meta { color: #4b4a44; }
.suggest__item--sponsored mark { background: var(--lime); color: #0A0A09; }
.suggest__item--sponsored.is-active::after { color: #000; }
.suggest__item--all { border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 10px 10px; color: var(--mute); font-size: 13px; }
.suggest__thumb { flex: none; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--ink-3) center / cover no-repeat; display: grid; place-items: center; font: 700 12px var(--f-mono); color: var(--lime); border: 0; }
.suggest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggest__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.suggest__name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.suggest__tagline { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__meta { margin-left: auto; flex: none; font: 500 12px var(--f-mono); color: var(--dim); }
.suggest__icon { color: var(--mute); width: 16px; text-align: center; }
.suggest__all { flex: 1; }
.suggest__state { padding: 18px 12px; color: var(--mute); font-size: 14px; }
.suggest mark, .card mark, .arow mark { background: none; color: var(--lime); }
.suggest .tag { height: 26px; }

/* --- 6. buttons ----------------------------------------------------------- */
.btn { --btn-bg: var(--ink-3); --btn-fg: var(--bone); --btn-bd: var(--line-2); --btn-sh: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 11px; background: var(--btn-bg); color: var(--btn-fg); font: 700 14.5px var(--f-body); letter-spacing: .01em;
  border: 1.5px solid var(--btn-bd); box-shadow: 0 4px 0 var(--btn-sh); transform: translateY(0);
  transition: transform .25s var(--spring), box-shadow .25s var(--spring), background .2s, color .2s, border-color .2s; white-space: nowrap; user-select: none; }
.btn:hover { --btn-bg: var(--ink-4); transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-sh); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--btn-sh); transition-duration: .06s; }
.btn .icon { margin: 0; }
.btn--primary { --btn-bg: var(--lime); --btn-fg: #0A0A09; --btn-bd: var(--lime); --btn-sh: var(--lime-d); }
.btn--primary:hover { --btn-bg: var(--lime-2); }
.btn--secondary { --btn-bg: var(--ink-3); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--bone); --btn-bd: var(--line-2); box-shadow: 0 4px 0 var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--ink-3); --btn-fg: var(--bone); }
.btn--dark { --btn-bg: var(--bone); --btn-fg: #0A0A09; --btn-bd: var(--bone); --btn-sh: #8D8A80; }
.btn--dark:hover { --btn-bg: #fff; }
.btn--paper { --btn-bg: #0A0A09; --btn-fg: var(--paper); --btn-bd: #0A0A09; --btn-sh: #000; }
.btn--paper:hover { --btn-bg: #000; }
.btn--danger { --btn-bg: var(--red); --btn-fg: #0A0A09; --btn-bd: var(--red); --btn-sh: var(--red-d); }
.btn--danger:hover { --btn-bg: #ff5a40; }
.btn--danger-outline { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: var(--danger-border); --btn-sh: rgba(255, 61, 31, .25); }
.btn--danger-outline:hover { --btn-bg: var(--danger-soft); }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; gap: 6px; box-shadow: 0 3px 0 var(--btn-sh); }
.btn--sm:hover { box-shadow: 0 4px 0 var(--btn-sh); }
.btn--lg { height: 52px; padding: 0 22px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; padding: 0; }
.btn--icon.btn--sm { width: 34px; }
.btn--icon.btn--lg { width: 52px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .38; pointer-events: none; box-shadow: none; }
.btn__count { font: 600 12px var(--f-mono); color: inherit; padding-left: 8px; margin-left: 2px; border-left: 1px solid currentColor; opacity: .8; }
.btn--magnetic { will-change: transform; }
.dropdown > summary.btn { list-style: none; }
.theme-toggle { display: none !important; }

/* like */
.like { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 10px; font: 700 15px var(--f-mono); color: var(--bone); background: var(--ink-2); box-shadow: 0 3px 0 var(--line-2); transition: transform .25s var(--spring), box-shadow .25s var(--spring), border-color .2s, background .2s, color .2s; cursor: pointer; }
.like:hover { border-color: var(--red); }
.like:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line-2); }
.like .icon { width: 17px; height: 17px; stroke-width: 2.2; transition: transform .4s var(--spring); }
.like[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #0A0A09; box-shadow: 0 3px 0 var(--red-d); }
.like[aria-pressed="true"] .icon { fill: #0A0A09; stroke: #0A0A09; }
.like:disabled { opacity: .55; cursor: default; }
.like:disabled:hover { border-color: var(--line-2); }
.like--big { height: 52px; padding: 0 18px; font-size: 18px; border-radius: 11px; box-shadow: 0 4px 0 var(--line-2); }
.like--big .icon { width: 20px; height: 20px; }
.like form, .likec form { margin: 0; }
.burst { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; pointer-events: none; z-index: 5; }
.lc { display: inline-flex; }

/* --- 7. covers, odometers, chips ------------------------------------------ */
.cover { position: relative; display: block; overflow: hidden; background: #0A0A09; width: 100%; height: 100%; }
.cover > svg, .cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover .blk { transform-box: fill-box; transform-origin: center; transition: transform .7s var(--spring); animation: blkIn .7s var(--spring) both; animation-delay: calc(var(--d, 0) * 1ms); }
.cover.wait .blk { animation: none; transform: scale(0); }
.cover.build .blk { animation: blkIn .7s var(--spring) both; animation-delay: calc(var(--d, 0) * 1ms); }
.cover.done .blk { animation: none; }
.hov:hover .cover .blk.r1, .cover:hover .blk.r1 { transform: rotate(90deg); }
.hov:hover .cover .blk.r2, .cover:hover .blk.r2 { transform: rotate(-90deg); }
.hov:hover .cover .blk.r3, .cover:hover .blk.r3 { transform: scale(.6); }
.cover--img img { transition: transform 1.2s var(--out); }
.hov:hover .cover--img img { transform: scale(1.06); }

.odo { display: inline-flex; line-height: 1; height: 1em; overflow: hidden; font-variant-numeric: tabular-nums; vertical-align: top; }
.odo .od { display: inline-block; height: 1em; overflow: hidden; position: relative; }
.odo .od > span { display: flex; flex-direction: column; transition: transform 1.1s var(--spring); transition-delay: calc(var(--k, 0) * 60ms); }
.odo .od > span > i { font-style: normal; height: 1em; line-height: 1; text-align: center; }
.odo .sep { display: inline-block; }

.chip { display: inline; padding: 0; border: 0; background: none; font: 600 13px/1.3 var(--f-body); color: var(--mute); text-transform: lowercase; white-space: nowrap; text-decoration: underline 1.5px transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.chip::before { content: "#"; color: var(--lime); opacity: .75; margin-right: 1px; }
.chip:hover { color: var(--bone); text-decoration-color: var(--lime); }
.chip.is-on { color: var(--bone); text-decoration: underline 3px var(--lime); text-underline-offset: 6px; }
.chip--all::before { content: none; }
.tag { display: inline; height: auto; padding: 0; border: 0; border-radius: 0; background: none; font: 600 13px/1.3 var(--f-body); color: var(--mute); text-transform: lowercase; text-decoration: underline 1.5px transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.tag::before { color: var(--lime); opacity: .75; }
a.tag:hover { color: var(--bone); text-decoration-color: var(--lime); }
.tag--lg { font: 800 24px/1.1 var(--f-disp); text-transform: uppercase; color: var(--bone); }
.tag--lg::before { opacity: 1; }
.tag--active, .tag[aria-current="page"] { color: var(--bone); text-decoration: underline 3px var(--lime); }
.tag__count { color: var(--dim); margin-left: 4px; font: 600 12px var(--f-mono); vertical-align: super; }
a.tag:hover .tag__count { color: #3b4a00; }

/* stars meter */
.stars { position: relative; display: inline-flex; vertical-align: middle; line-height: 0; }
.stars__bg, .stars__fg { display: inline-flex; gap: 1px; }
.stars svg { width: 13px; height: 13px; flex: none; }
.stars__bg svg { fill: var(--line-2); }
.stars__fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; width: calc(var(--v, 0) / 5 * 100%); transition: width .9s var(--spring); }
.stars__fg svg { fill: var(--lime); }
.stars__t { margin-left: 6px; font: 600 12px var(--f-mono); color: var(--bone); vertical-align: middle; }
.stars__t i { font-style: normal; color: var(--dim); margin-left: 3px; }

/* --- 8. section heads, footer, toasts --------------------------------------- */
.sec { padding-top: 84px; }
.sec--tight { padding-top: 28px; }
.sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.sh h2 { margin: 0; font-family: var(--f-disp); font-weight: 900; font-size: clamp(44px, 6.4vw, 92px); line-height: .84; text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sh--sm h2 { font-size: clamp(36px, 4.4vw, 56px); }
.sh__meta { font: 500 12px var(--f-mono); color: var(--mute); letter-spacing: .03em; }
a.sh__meta:hover, .sh__meta a:hover { color: var(--lime); }
.sh__meta--sub { margin-top: 12px; }

.ftr { border-top: 1px solid var(--line); margin-top: 120px; padding: 44px 0 56px; }
.ftr__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.ftr nav a { color: var(--mute); font-weight: 600; font-size: 14px; position: relative; transition: color .2s; }
.ftr nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--out); }
.ftr nav a:hover { color: var(--bone); }
.ftr nav a:hover::after { transform: none; }
.ftr small { font: 500 12px var(--f-mono); color: var(--dim); }

.toast-region { position: fixed; z-index: 100; left: 50%; right: auto; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: block; background: var(--lime); color: #0A0A09; font: 700 13px var(--f-mono); padding: 11px 16px; border-radius: 10px; box-shadow: 0 4px 0 var(--lime-d), 0 20px 40px -10px #000; animation: toastIn .5s var(--spring); }
.toast--danger { background: var(--red); box-shadow: 0 4px 0 var(--red-d), 0 20px 40px -10px #000; }
.toast--info { background: var(--bone); box-shadow: 0 4px 0 #8D8A80, 0 20px 40px -10px #000; }
.toast.out { animation: toastOut .3s var(--out) forwards; }
.toast a { text-decoration: underline; text-underline-offset: 2px; }
@keyframes toastIn { from { transform: translateY(160%) scale(.9); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(40%); opacity: 0; } }

/* --- 9. home: stats board ------------------------------------------------- */
.board { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; border-bottom: 1px solid var(--line); }
.board__c { padding: 30px 0 26px 28px; border-right: 1px solid var(--line); animation: rise .8s var(--out) both; animation-delay: calc(.25s + var(--i) * 90ms); min-width: 0; }
.board__c:first-child { padding-left: 0; }
.board__n { font-family: var(--f-disp); font-weight: 900; font-size: clamp(56px, 8vw, 118px); line-height: .86; letter-spacing: -.01em; }
.board__l { margin-top: 12px; font: 600 15px/1.25 var(--f-body); color: var(--mute); }
.board__c--live { border-right: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.board__c--live .board__l { margin: 0; }
.pulse { display: flex; align-items: flex-end; gap: 3px; height: 74px; }
.pulse i { position: relative; flex: 1; background: var(--bone); border-radius: 2px 2px 0 0; transform-origin: bottom; animation: barUp .9s var(--spring) both; animation-delay: calc(.5s + var(--j) * 30ms); transition: background .2s; }
.pulse i.hot { background: repeating-linear-gradient(-45deg, var(--lime) 0 4px, #7a9c10 4px 8px); }
.pulse i:hover { background: var(--lime); }
.tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translate(-50%, 4px); background: var(--bone); color: #0A0A09; font: 700 11px var(--f-mono); font-style: normal; padding: 4px 7px; border-radius: 5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .2s; z-index: 3; }
.pulse i:hover .tip, .bar:hover .tip { opacity: 1; transform: translate(-50%, 0); }
.pulse i:nth-child(-n+3) .tip, .bar:nth-child(-n+4) .tip { left: 0; transform: translate(0, 4px); }
.pulse i:nth-child(-n+3):hover .tip, .bar:nth-child(-n+4):hover .tip { transform: none; }
.pulse i:nth-last-child(-n+3) .tip, .bar:nth-last-child(-n+4) .tip { left: auto; right: 0; transform: translate(0, 4px); }
.pulse i:nth-last-child(-n+3):hover .tip, .bar:nth-last-child(-n+4):hover .tip { transform: none; }

/* sponsored (inverted cards) */
.spons__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.spons__grid--tag { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.sp { position: relative; display: grid; grid-template-columns: 42% minmax(0, 1fr); min-height: 236px; background: var(--paper); color: #0A0A09; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 0 var(--lime); transition: transform .45s var(--spring), box-shadow .45s var(--spring), opacity .8s var(--out); }
.sp:hover { transform: translate(-4px, -4px) rotate(-.4deg); box-shadow: 8px 8px 0 0 var(--lime); }
.js .sp.io.in:hover { transform: translate(-4px, -4px) rotate(-.4deg); }
.sp__cv { display: block; height: 100%; border-right: 3px solid #0A0A09; }
.sp__b { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 22px; min-width: 0; }
.sp__lab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge-sp, .badge-sponsored { display: inline-block; flex: none; padding: 4px 9px 3px; background: var(--red); color: var(--paper); font: 900 17px/1 var(--f-disp); letter-spacing: .03em; text-transform: uppercase; border: 0; border-radius: 0; white-space: nowrap; transform: rotate(-4deg); transform-origin: left center; box-shadow: 3px 3px 0 #0A0A09; transition: transform .35s var(--spring); }
.badge-sp:hover, .badge-sponsored:hover { transform: rotate(0deg) scale(1.04); }
.badge-sp::before, .badge-sponsored::before { content: none; }
.sp__slot { font: 600 12.5px var(--f-body); color: #6c6a62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp h3 { margin: 6px 0 0; font-family: var(--f-disp); font-weight: 900; font-size: 36px; line-height: .9; text-transform: uppercase; overflow-wrap: anywhere; }
.sp h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.sp p { margin: 0; font-size: 14px; color: #3b3a35; line-height: 1.4; }
.sp__f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; }
.sp__f small { font: 500 12px var(--f-mono); color: #6c6a62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp .btn { height: 38px; font-size: 13.5px; padding: 0 14px; }
.sp__stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(-45deg, #0A0A09 0 6px, var(--lime) 6px 12px); }

/* --- 10. charts (leaderboards) --------------------------------------------- */
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: auto; padding: 0 0 0; border-bottom: 2px solid var(--line-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg > a, .seg > button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 16px; font: 800 19px/1 var(--f-disp); letter-spacing: .02em; text-transform: uppercase; color: var(--mute); border-radius: 0; transition: color .3s; white-space: nowrap; }
.seg > a:hover { color: var(--bone); }
.seg > a[aria-current="true"] { color: #0A0A09; }
.seg__thumb { position: absolute; z-index: 0; top: 0; bottom: -2px; left: 0; width: 0; border-radius: 0; background: var(--lime); transition: transform .55s var(--spring), width .55s var(--spring); }
.no-thumb .seg > a[aria-current="true"], .seg:not(.has-thumb) > a[aria-current="true"] { background: var(--lime); }
.seg.has-thumb > a[aria-current="true"] { background: none; }
.seg--sm > a { height: 34px; padding: 0 11px; font-size: 16px; }
.seg--sort > a { padding: 0 13px; font-size: 18px; }
.chart-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; }
.chart-bar__t { margin: 0; font-family: var(--f-disp); font-weight: 900; font-size: 40px; line-height: .9; text-transform: uppercase; }
.chart-bar .seg { min-width: 0; }

.chart-head, .row { display: grid; grid-template-columns: 150px 64px minmax(0, 1fr) 180px 150px 96px; gap: 22px; align-items: center; }
.chart-head { padding: 0 18px 10px; border-bottom: 1px solid var(--line); font: 600 13px var(--f-body); color: var(--dim); }
.chart-head span:nth-child(5), .chart-head span:nth-child(6) { text-align: right; }
.chart { list-style: none; margin: 0; padding: 0; position: relative; }
.row { position: relative; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--ink); transition: background .25s; }
.row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; background: var(--lime); transform: scaleY(0); transition: transform .4s var(--spring); border-radius: 0 3px 3px 0; }
.row:hover { background: var(--ink-2); }
.row:hover::before { transform: none; }
.js .chart.pre .row { opacity: 0; }
.js .chart.cascade .row { animation: rowIn .7s var(--out) both; animation-delay: calc(var(--i, 0) * 55ms); }
.row.leaving { pointer-events: none; }
.rank { display: flex; align-items: center; gap: 14px; }
.rank__n { width: 86px; flex: none; display: flex; justify-content: flex-end; text-align: right; font-family: var(--f-disp); font-weight: 900; font-size: 80px; line-height: 1; letter-spacing: -.02em; color: var(--bone); transition: transform .4s var(--spring), color .3s; }
.row:hover .rank__n { transform: skewX(-8deg) translateX(-4px); }
.row[data-r="1"] .rank__n { color: var(--lime); }
.mv { display: inline-block; min-width: 40px; font: 800 20px/1 var(--f-disp); letter-spacing: .01em; color: var(--dim); text-align: left; }
.mv.up { color: var(--lime); }
.mv.dn { color: var(--red); }
.mv.new { color: var(--bone); text-transform: uppercase; font-style: italic; text-decoration: underline 3px var(--lime); text-underline-offset: 4px; }
.mv.pop { animation: mvPop .6s var(--spring); }
.row .thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: block; transition: transform .45s var(--spring); }
.row:hover .thumb { transform: rotate(-4deg) scale(1.06); }
.row__meta { min-width: 0; }
.row__meta .nm { display: inline-block; max-width: 100%; font-family: var(--f-disp); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: .005em; transition: color .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__meta .nm:hover { color: var(--lime); }
.row__meta p { margin: 5px 0 7px; color: var(--mute); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__facts, .arow__meta { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
.row__facts .chip { margin-right: 2px; }
.fact { display: inline-flex; align-items: center; gap: 4px; font: 600 12px var(--f-mono); color: var(--mute); white-space: nowrap; }
.fact .icon, .fact svg { width: 13px; height: 13px; flex: none; }
.fact--rate > svg { fill: var(--lime); stroke: none; }
.fact i { font-style: normal; color: var(--dim); }
a.fact:hover { color: var(--lime); }
.fact--by { color: var(--dim); font-weight: 500; }
.fact--by a { color: var(--mute); }
.fact--by a:hover { color: var(--lime); }
.fact--mob { display: none; }
.spk { height: 44px; min-width: 0; }
.sparkline { display: block; width: 100%; height: 100%; overflow: visible; }
.spk .sparkline { height: 44px; }
.sparkline__a { fill: currentColor; opacity: .1; transition: opacity .6s .6s; }
.sparkline__l { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sparkline__d { fill: currentColor; }
.sparkline.is-up { color: var(--lime); }
.sparkline.is-down { color: var(--red); }
.js .spk:not(.draw) .sparkline__l, .js .lb:not(.in) .sparkline__l { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .spk:not(.draw) .sparkline__d, .js .spk:not(.draw) .sparkline__a { opacity: 0; }
.spk.draw .sparkline__l { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--out) forwards; animation-delay: calc(var(--i, 0) * 50ms + .1s); }
.spk.draw .sparkline__d { opacity: 0; animation: fadeUp .4s forwards; animation-delay: calc(var(--i, 0) * 50ms + 1s); }
.vw { text-align: right; min-width: 0; }
.vw__n { display: flex; justify-content: flex-end; font-family: var(--f-disp); font-weight: 800; font-size: 34px; line-height: 1; }
.vw__d { display: block; margin-top: 5px; font: 600 11.5px var(--f-mono); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.likec { display: flex; justify-content: flex-end; }
.chart-more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 26px; }
.pager { display: flex; gap: 18px; font: 600 12.5px var(--f-mono); color: var(--mute); }
.pager a:hover { color: var(--lime); }
.js .pager { display: none; }
.mv-flash-up { animation: flashUp 1s ease-out; }
.mv-flash-dn { animation: flashDn 1s ease-out; }
.chart.is-busy { opacity: .6; transition: opacity .2s; }

/* category boards */
.boards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lb { display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 14px; min-width: 0; transition: border-color .25s, transform .5s var(--spring), box-shadow .5s var(--spring); }
.lb:hover { border-color: var(--line-2); }
.lb__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.lb__h h3 { margin: 0; min-width: 0; font-family: var(--f-disp); font-weight: 900; font-size: 34px; line-height: .95; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__h h3 span { color: var(--lime); }
.lb__h h3 a:hover { color: var(--lime); }
.lb__n { flex: none; font: 600 11.5px var(--f-mono); color: var(--mute); }
.lb__list { list-style: none; margin: 0; padding: 0; }
.lb__row { display: grid; grid-template-columns: 30px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lb__row:last-child { border-bottom: 0; }
.lb__rank { font-family: var(--f-disp); font-weight: 900; font-size: 32px; line-height: 1; text-align: right; color: var(--mute); transition: color .2s, transform .4s var(--spring); }
.lb__row:first-child .lb__rank { color: var(--lime); }
.lb__row:hover .lb__rank { color: var(--bone); transform: skewX(-8deg); }
.lb__row:first-child:hover .lb__rank { color: var(--lime); }
.lb__cv { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; transition: transform .4s var(--spring); }
.lb__row:hover .lb__cv { transform: rotate(-5deg) scale(1.08); }
.lb__t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lb__t > a { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__t > a:hover { color: var(--lime); }
.lb__s .stars svg { width: 11px; height: 11px; }
.lb__s .stars__t { font-size: 11px; }
.lb__v { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font: 600 12px var(--f-mono); color: var(--mute); }
.lb__v b { color: var(--bone); font-weight: 600; }
.sparkline--mini { width: 60px; height: 22px; }
.lb .sparkline__l { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--out) .3s; }
.js .lb:not(.in) .sparkline__l { stroke-dashoffset: 1; }
.lb__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 600 12.5px var(--f-mono); color: var(--mute); align-self: flex-start; transition: color .2s, gap .3s var(--spring); }
.lb__more:hover { color: var(--lime); gap: 10px; }
.boards--sm .lb__h h3 { font-size: 28px; }
.boards--sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* cards */
.cards, .grid--cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transform-style: preserve-3d; transition: transform .5s var(--spring), border-color .25s, box-shadow .5s var(--spring), opacity .8s var(--out); will-change: transform; }
.card:hover { border-color: var(--line-2); box-shadow: 0 24px 50px -24px #000; }
.card__cv { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__age { color: var(--dim); }
.card__age::before { content: "· "; }
.card__age.fresh { color: var(--lime); }
.card__b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.card h3 { margin: 0; font-family: var(--f-disp); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover h3 { color: var(--lime); }
.card p { margin: 0; color: var(--mute); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__tags { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.card__tags .chip { font-size: 12.5px; }
.card__f { position: relative; z-index: 2; margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 500 12px var(--f-mono); color: var(--dim); }
.card__f b { color: var(--bone); font-weight: 600; }
.card__f a:hover b { color: var(--lime); }
.card__nums { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.card__nums .fact { color: var(--bone); }
.card__glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(239, 234, 223, .1), transparent 45%); opacity: 0; transition: opacity .3s; mix-blend-mode: screen; }
.card:hover .card__glare { opacity: 1; }

/* tags cloud */
.cloud { position: relative; height: 420px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; touch-action: pan-y; user-select: none;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px, var(--ink); }
.cloud::after { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, transparent 30%, var(--ink) 100%); pointer-events: none; }
.tg { position: absolute; left: 0; top: 0; z-index: 1; display: inline-flex; align-items: baseline; gap: 6px; padding: .32em .62em .36em; border-radius: .42em; background: var(--ink-3); border: 1.5px solid var(--line-2); font-family: var(--f-disp); font-weight: 800; font-size: var(--fs, 18px); text-transform: uppercase; line-height: 1; white-space: nowrap; cursor: grab; color: var(--bone); box-shadow: 0 .14em 0 var(--line-2); transition: background .2s, color .2s, border-color .2s, box-shadow .2s; will-change: transform; }
.tg sup { font: 700 .5em var(--f-mono); color: var(--mute); vertical-align: 0; }
.tg:hover { background: var(--lime); color: #0A0A09; border-color: var(--lime); box-shadow: 0 .14em 0 var(--lime-d); }
.tg:hover sup { color: #0A0A09; }
.tg.big { background: var(--bone); color: #0A0A09; border-color: var(--bone); box-shadow: 0 .14em 0 #8D8A80; }
.tg.big sup { color: #5E5C55; }
.tg.hot { background: var(--red); color: #0A0A09; border-color: var(--red); box-shadow: 0 .14em 0 var(--red-d); }
.tg.hot sup { color: #0A0A09; }
.tg.drag { cursor: grabbing; z-index: 3; }
.cloud:not(.live) { height: auto; display: flex; flex-wrap: wrap; gap: 10px; padding: 22px; }
.cloud:not(.live) .tg { position: static; }
.cloud:not(.live)::after { display: none; }
.cloud__hint { margin-top: 12px; font: 500 12px var(--f-mono); color: var(--dim); }

/* --- 11. top / tag pages --------------------------------------------------- */
.crumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 22px 0 0; font: 500 12px var(--f-mono); color: var(--dim); animation: rise .6s .2s var(--out) both; min-width: 0; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--lime); }
.crumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.phead h1 { margin: 0; font-family: var(--f-disp); font-weight: 900; font-size: clamp(60px, 9vw, 150px); line-height: .82; text-transform: uppercase; letter-spacing: -.015em; overflow-wrap: anywhere; }
.phead__sub { margin: 10px 0 0; font-family: var(--f-disp); font-weight: 800; font-size: 28px; text-transform: uppercase; color: var(--text-2); }
.phead__lead { margin: 10px 0 0; color: var(--text-2); font-size: 17px; max-width: 60ch; }
.phead__meta { margin: 14px 0 0; color: var(--mute); font-size: 12.5px; }
.phead__meta b { color: var(--lime); font-weight: 600; }
.phead__act { display: flex; gap: 10px; flex-wrap: wrap; }
.filterbar { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 20px 0 0; }
.filterbar .chip { font-size: 15px; }
.filterbar__l { font: 600 15px var(--f-body); color: var(--dim); margin-right: 2px; }

/* search rows (list results) */
.app-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.arow { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px; gap: 18px; align-items: center; padding: 16px 16px 16px 18px; border-bottom: 1px solid var(--line); transition: background .25s; }
.arow::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; background: var(--lime); transform: scaleY(0); transition: transform .4s var(--spring); border-radius: 0 3px 3px 0; }
.arow:hover { background: var(--ink-2); }
.arow:hover::before { transform: none; }
.arow__thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; transition: transform .45s var(--spring); }
.arow:hover .arow__thumb { transform: rotate(-4deg) scale(1.06); }
.arow__body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.arow__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.arow__title { margin: 0; font-family: var(--f-disp); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow__link:hover { color: var(--lime); }
.arow__tagline { margin: 0; color: var(--mute); font-size: 14px; }
.arow__spk { height: 40px; }
.arow--sp { background: var(--paper); color: #0A0A09; border-radius: 14px; border: 0; margin: 8px 0; }
.arow--sp:hover { background: var(--paper-2); }
.arow--sp::before { display: none; }
.arow--sp .arow__tagline, .arow--sp .fact, .arow--sp .fact--by a { color: #4b4a44; }
.arow--sp .chip { color: #4b4a44; }
.arow--sp .chip::before, .sp .chip::before { color: #0A0A09; }
.arow--sp .chip::before { color: #8d887c; }
.arow--sp .stars__t { color: #0A0A09; }
.arow--sp .stars__bg svg { fill: #c9c3b4; }
.arow--sp .stars__fg svg { fill: #0A0A09; }
.arow--sp mark { background: var(--lime); color: #000; }
.arow--sp .arow__link:hover { color: #0A0A09; text-decoration: underline; }

/* --- 12. app page --------------------------------------------------------- */
.ahero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: stretch; padding-top: 22px; }
.ahero__cv { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 5 / 4; transform-style: preserve-3d; transition: transform .5s var(--spring); animation: cvIn 1s var(--out) both; }
.vt-nav .ahero__cv { animation: none; }
.vt-nav .ahero__cv .blk { animation: none; }
.ahero__cv .cover { position: absolute; inset: 0; }
.ahero__cv .cover .blk { transition-duration: 1s; }
.ahero__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 45%); opacity: 0; transition: opacity .3s; mix-blend-mode: screen; }
.ahero__cv:hover .ahero__glare { opacity: 1; }
.ahero__rank { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: stretch; background: #0A0A09; border-radius: 0; overflow: hidden; border: 0; box-shadow: 4px 4px 0 var(--lime); animation: rise .7s .8s var(--spring) both; }
.ahero__rank b { display: flex; align-items: center; padding: 0 12px; font-family: var(--f-disp); font-weight: 900; font-size: 40px; line-height: 1; color: var(--lime); }
.ahero__rank span { display: flex; flex-direction: column; justify-content: center; padding: 6px 14px 6px 0; font: 600 13px/1.2 var(--f-body); color: var(--mute); }
.ahero__b { display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; min-width: 0; }
.ahero__tags { display: flex; flex-wrap: wrap; gap: 6px; animation: rise .6s .3s var(--out) both; }
.ahero h1 { margin: 0; font-family: var(--f-disp); font-weight: 900; font-size: clamp(60px, 8.6vw, 148px); line-height: .82; text-transform: uppercase; letter-spacing: -.015em; overflow-wrap: anywhere; }
.ahero h1 .ch { animation: chUp .9s var(--spring) both; animation-delay: calc(.25s + var(--c) * 32ms); }
.ahero__tl { margin: 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; color: #cfcabf; max-width: 34em; animation: rise .7s .45s var(--out) both; }
.ahero__by { display: flex; align-items: center; gap: 10px; font: 500 13px var(--f-mono); color: var(--mute); animation: rise .7s .5s var(--out) both; flex-wrap: wrap; }
.ahero__by b { color: var(--bone); }
.ahero__by a:hover b { color: var(--lime); }
.ahero__rating { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; align-self: flex-start; padding: 0; animation: rise .7s .54s var(--out) both; }
.ahero__rating:hover .stars__t, .ahero__rating:hover .ahero__cc { color: var(--lime); }
.ahero__rating .stars svg { width: 22px; height: 22px; }
.ahero__rating .stars__t { font: 900 26px/1 var(--f-disp); color: var(--bone); }
.ahero__rating .stars__t i { font: 600 13px var(--f-mono); color: var(--dim); margin-left: 4px; }
.ahero__cc { font: 600 14px var(--f-body); color: var(--mute); text-decoration: underline 1.5px var(--line-2); text-underline-offset: 4px; }
.ahero__cc { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--f-mono); color: var(--mute); }
.ahero__cc .icon { width: 14px; height: 14px; }
.ahero__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; animation: rise .7s .58s var(--out) both; }
.ahero__acts form { margin: 0; }

.alayout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; padding-top: 72px; align-items: start; }
.alayout__main { min-width: 0; }
.alayout__side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: none; overflow: visible; }
.alayout__side .panel { padding: 20px; }
.panel__k { margin: 0 0 14px; font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.hstats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.hstat { background: var(--ink-2); padding: 12px 4px 14px 14px; }
.hstat:nth-child(odd) { padding-left: 0; }
.hstat__n { font-family: var(--f-disp); font-weight: 900; font-size: 50px; line-height: .9; display: flex; }
.hstat__l { font: 600 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-top: 6px; }
.bars { position: relative; display: grid; grid-template-columns: repeat(var(--n, 30), 1fr); align-items: end; gap: 2px; height: 150px; border-bottom: 1px solid var(--line-2); }
.bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.bar i { display: block; width: 100%; background: var(--bone); border-radius: 2px 2px 0 0; transform-origin: bottom; transition: transform .9s var(--spring), background .2s; transition-delay: calc(var(--j) * 25ms); }
.js .bars:not(.in) .bar i { transform: scaleY(0); }
.bar.today i { background: repeating-linear-gradient(-45deg, var(--lime) 0 4px, #7a9c10 4px 8px); }
.bar:hover i { background: var(--lime); }
.bars__x { display: flex; justify-content: space-between; margin-top: 7px; font-size: 10.5px; color: var(--dim); }
.bars__sum { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12px; color: var(--mute); }
.bars__sum b { color: var(--lime); }
.links { display: flex; flex-direction: column; }
.links a, .links__row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font: 500 13px var(--f-mono); color: var(--mute); transition: color .2s, padding .3s var(--spring); min-width: 0; }
.links > :last-child { border: 0; }
.links a:hover { color: var(--lime); padding-left: 6px; }
.links a span:last-child, .links__row span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }
.maker { display: flex; align-items: center; gap: 12px; }
.maker > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.maker small { font: 500 12px var(--f-mono); color: var(--mute); }
.maker .icon { color: var(--mute); transition: transform .3s var(--spring), color .2s; }
.maker:hover .icon { color: var(--lime); transform: translateX(4px); }
.maker:hover b { color: var(--lime); }
.side-report { margin: 0; padding-left: 4px; }

/* markdown */
.prose { font-size: 17px; line-height: 1.65; color: #d9d4c8; max-width: 780px; }
.prose > * + * { margin-top: 20px; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--bone); margin-bottom: 0; }
.prose h1, .prose h2 { font-family: var(--f-disp); font-weight: 900; font-size: 46px; line-height: .95; text-transform: uppercase; letter-spacing: -.005em; margin-top: 44px; padding: 0; border: 0; }
.prose h3 { font-family: var(--f-disp); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; margin-top: 32px; }
.prose h4 { font-size: 18px; font-weight: 700; margin-top: 26px; }
.prose h5, .prose h6 { font: 600 12px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-top: 24px; }
.prose > :first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 12px; }
.prose a { color: var(--lime); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { background: var(--lime); color: #000; text-decoration: none; }
.prose strong { color: var(--bone); font-weight: 700; }
.prose ul { padding: 0; }
.prose ul > li { position: relative; padding-left: 28px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; background: var(--lime); border-radius: 0 10px 0 0; }
.prose ul > li:nth-child(even)::before { background: var(--red); border-radius: 50%; }
.prose ul > li.task-list-item, .prose ul > li:has(> input[type="checkbox"]) { padding-left: 0; }
.prose ul > li.task-list-item::before, .prose ul > li:has(> input[type="checkbox"])::before { content: none; }
.prose ol { padding-left: 1.6em; }
.prose ol li::marker { color: var(--lime); font: 700 .9em var(--f-mono); }
.prose li + li { margin-top: 8px; }
.prose .task-list-item input, .prose li > input[type="checkbox"] { background: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 5px; width: 18px; height: 18px; }
.prose .task-list-item input:checked, .prose li > input[type="checkbox"]:checked { border-color: var(--lime); background-color: var(--lime); }
.prose code { font: 500 .86em var(--f-mono); background: var(--ink-3); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 5px; color: var(--bone); }
.prose pre { position: relative; background: #050505; border: 1px solid var(--line-2); border-radius: 14px; padding: 44px 20px 20px; overflow: auto; font: 500 13.5px / 1.65 var(--f-mono); color: #cfcabf; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.prose pre::before, .prose pre[data-lang]::before { content: attr(data-lang); position: absolute; top: 14px; left: 20px; right: auto; font: 700 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.prose .tok-k, .prose .hl-k, .hl-k { color: var(--lime); font-style: normal; }
.prose .tok-s, .prose .hl-s, .hl-s { color: #F4C78F; }
.prose .tok-c, .prose .hl-c, .hl-c { color: var(--dim); font-style: italic; }
.prose .tok-n, .prose .hl-n, .hl-n { color: var(--red); }
.copy { position: absolute; top: 8px; right: 8px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); font: 700 11px var(--f-mono); color: var(--mute); background: var(--ink-2); transition: .2s; }
.copy:hover { color: #0A0A09; background: var(--lime); border-color: var(--lime); }
.copy.ok { color: #0A0A09; background: var(--lime); border-color: var(--lime); }
.prose .table-wrap { background: transparent; border: 0; border-radius: 0; overflow-x: auto; }
.prose table { display: table; width: 100%; max-width: 100%; font-size: 15px; border: 0; border-collapse: collapse; border-radius: 0; }
.prose .table-wrap table { width: 100%; }
.prose th { text-align: left; font: 600 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 10px 12px; border: 0; border-bottom: 2px solid var(--bone); background: none; }
.prose td { padding: 12px; border: 0; border-bottom: 1px solid var(--line); }
.prose th + th, .prose td + td { border-left: 0; }
.prose tbody tr { transition: background .2s; }
.prose tbody tr:hover { background: var(--ink-2); }
.prose tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.prose img, .prose video, .prose picture { border-radius: 14px; border: 1px solid var(--line); background: var(--ink-2); }
.prose p > img:only-child, .prose > img { width: 100%; }
.prose figcaption { margin-top: 8px; font: 500 12px var(--f-mono); color: var(--dim); text-align: left; }
.prose blockquote { padding: 4px 0 4px 18px; border-left: 4px solid var(--lime); color: var(--text-2); }
.prose .callout { border-left-width: 4px; padding: 14px 18px; background: var(--ink-2); border-radius: 0 12px 12px 0; }
.callout__title { font: 700 11px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px !important; }
.callout--note { border-left-color: var(--info); } .callout--note .callout__title { color: var(--info); }
.callout--tip { border-left-color: var(--lime); } .callout--tip .callout__title { color: var(--lime); }
.callout--important { border-left-color: var(--bone); } .callout--important .callout__title { color: var(--bone); }
.callout--warning, .callout--caution { border-left-color: var(--red); } .callout--warning .callout__title, .callout--caution .callout__title { color: var(--red); }
.prose hr { border: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--line-2) 0 6px, transparent 6px 12px); margin-block: 40px; }
.prose details { border: 1px solid var(--line-2); border-radius: 12px; padding: 0 16px; background: var(--ink-2); }
.prose summary { font-weight: 700; }
.prose summary::marker { color: var(--lime); }
.prose .embed, .embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.prose iframe { border-color: var(--line); border-radius: 14px; }
.embed--lite .embed__poster { position: absolute; inset: 0; display: grid; place-items: center; background: #111 center / cover no-repeat; text-decoration: none; color: inherit; }
.prose a.embed__poster:hover { background-color: #111; }
.embed--lite .embed__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .8)); }
.embed__play { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 22px; border-radius: 16px; background: var(--red); color: #0A0A09; font: 800 15px var(--f-body); box-shadow: 0 6px 0 var(--red-d); transition: transform .35s var(--spring), box-shadow .35s var(--spring); }
.embed__poster:hover .embed__play { transform: translateY(-3px) scale(1.06); box-shadow: 0 9px 0 var(--red-d); }
.embed__provider { font: 500 12px var(--f-mono); opacity: .8; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.embed--file { aspect-ratio: auto; background: none; border: 0; }
.embed--file video { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.prose img.is-zoomable { cursor: zoom-in; transition: transform .5s var(--spring), box-shadow .5s var(--spring); }
.prose img.is-zoomable:hover { transform: translateY(-3px); box-shadow: 6px 8px 0 var(--lime); }
.prose mark { background: var(--lime); color: #000; }
.readme-note { margin-top: 24px; font: 500 12.5px var(--f-mono); color: var(--mute); }

/* ratings */
.rate { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.rate__grid { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 240px); gap: 32px; align-items: center; }
.rate__sum { display: flex; flex-direction: column; gap: 8px; }
.rate__avg { font-family: var(--f-disp); font-weight: 900; font-size: 104px; line-height: .82; display: flex; }
.rate__meter .stars svg { width: 22px; height: 22px; }
.rate__count { font-size: 12px; color: var(--mute); }
.rate__hist { display: flex; flex-direction: column; gap: 7px; }
.hbar { display: grid; grid-template-columns: 40px minmax(0, 1fr) 38px; gap: 10px; align-items: center; font: 600 12px var(--f-mono); color: var(--mute); }
.hbar__k { display: inline-flex; align-items: center; gap: 4px; }
.hbar__k svg { width: 12px; height: 12px; fill: var(--mute); }
.hbar__t { height: 12px; background: var(--ink-3); border-radius: 3px; overflow: hidden; }
.hbar__t i { display: block; height: 100%; width: var(--w, 0%); background: var(--bone); border-radius: 3px; transform-origin: left; transition: width .9s var(--spring), background .3s; }
.js .rate:not(.in) .hbar__t i { width: 0; }
.hbar.mine .hbar__t i { background: var(--lime); }
.hbar.mine .hbar__k, .hbar.mine .hbar__n { color: var(--lime); }
.hbar.mine .hbar__k svg { fill: var(--lime); }
.hbar__n { text-align: right; }
.rate__mine { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rate__form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.rate__l { margin: 0; font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.rate__note { margin: 0; color: var(--mute); font-size: 14px; }
.rstars { display: inline-flex; gap: 4px; }
.rstar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--ink-2); box-shadow: 0 3px 0 var(--line-2); transition: transform .3s var(--spring), border-color .2s, background .2s, box-shadow .3s var(--spring); }
.rstar svg { width: 24px; height: 24px; fill: transparent; stroke: var(--mute); stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s, stroke .2s, transform .45s var(--spring); }
.rstar.on svg { fill: var(--lime); stroke: var(--lime); }
.rstar.on { border-color: rgba(198, 255, 26, .45); }
.rstars.preview .rstar svg { fill: transparent; stroke: var(--mute); }
.rstars.preview .rstar.hv svg { fill: var(--lime); stroke: var(--lime); transform: scale(1.18) rotate(-8deg); }
.rstars.preview .rstar.hv { border-color: var(--lime); background: rgba(198, 255, 26, .08); transform: translateY(-3px); box-shadow: 0 6px 0 var(--lime-d); }
.rstar:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line-2); }
.rstars.pulse-in .rstar.on svg { animation: starPop .6s var(--spring) both; animation-delay: calc(var(--s, 0) * 60ms); }
@keyframes starPop { 0% { transform: scale(.2) rotate(-90deg); } }
.rate__clear { font: 500 12px var(--f-mono); color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
.rate__clear:hover { color: var(--red); }

/* comments */
.cmts { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.cmts h2 { display: flex; align-items: center; gap: 14px; }
.cmts__n { display: inline-flex; align-items: center; justify-content: center; align-self: center; min-width: 40px; height: 40px; padding: 0 10px; font: 800 26px/1 var(--f-disp); background: var(--lime); color: #0A0A09; border-radius: 8px; transform: rotate(-4deg); }
.cmts__note { color: var(--mute); margin: 0 0 18px; }
.cmts__empty { color: var(--mute); font: 500 13px var(--f-mono); padding: 22px; border: 1px dashed var(--line-2); border-radius: 14px; text-align: center; margin: 14px 0 0; }
.cform { margin: 0 0 18px; }
.cform__row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.cform__row > .avatar { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.cform__in { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cform .textarea { min-height: 96px; font-size: 15px; background: var(--ink-2); }
.cform--reply .textarea { min-height: 70px; }
.cform__f { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.cform__n { font-size: 11.5px; color: var(--dim); }
.cform__n.low { color: var(--red); }
.cform.err .textarea { border-color: var(--red); animation: shake .4s; }
.cmts__list, .cmt__replies { list-style: none; margin: 0; padding: 0; }
.cmt { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-radius: 12px; }
.cmts__list > .cmt:first-child { border-top: 0; }
.cmt.fresh { animation: cmtIn .9s var(--spring) both; }
.cmt.pending { opacity: .6; }
.cmt.pending .cmt__time::after { content: " · posting…"; color: var(--lime); }
.cmt__av .avatar { width: 40px; height: 40px; border-radius: 10px; }
.cmt--reply { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 0 4px; border-top: 0; }
.cmt--reply .cmt__av .avatar { width: 30px; height: 30px; border-radius: 8px; }
.cmt__replies { margin-top: 6px; padding-left: 16px; border-left: 2px solid var(--line-2); }
.cmt__replies:empty { display: none; }
.cmt__main { min-width: 0; }
.cmt__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 500 12px var(--f-mono); color: var(--mute); }
.cmt__who { font: 700 15px var(--f-body); color: var(--bone); }
.cmt__who:hover { color: var(--lime); }
.cmt__maker { font: italic 700 13px var(--f-body); color: var(--lime); }
.cmt__stars { color: var(--lime); letter-spacing: 1px; }
.cmt__stars i { font-style: normal; color: var(--line-2); }
.cmt__time { color: var(--dim); }
.cmt__time:hover { color: var(--lime); }
.cmt__body { margin-top: 6px; color: #d9d4c8; font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.cmt__body p + p { margin-top: 10px; }
.cmt__body a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
.cmt__act { display: flex; align-items: flex-start; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.cmt__act form { margin: 0; }
.cmt__reply { flex: 1 1 100%; order: 2; }
.cmt__reply > summary, .cmt__del { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--f-mono); color: var(--mute); cursor: pointer; list-style: none; }
.cmt__reply > summary::-webkit-details-marker { display: none; }
.cmt__reply > summary:hover { color: var(--lime); }
.cmt__reply[open] > summary { color: var(--lime); }
.cmt__reply[open] .cform { margin: 10px 0 4px; animation: rise .4s var(--out); }
.cmt__del:hover { color: var(--red); }
.cmt__act { position: relative; }
.cmt__act > form { order: 1; }
.cmt__act > .cmt__reply { order: 0; flex: 0 1 auto; }
.cmt__act > .cmt__reply[open] { flex: 1 1 100%; }

/* --- 13. generic app.css components in the dark system --------------------- */
.page { padding-block: 28px 0; }
.page-head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 26px; gap: 10px; }
.page-head__eyebrow, .section-head__eyebrow { display: none; }
.mini-h { margin: 0; font: 900 24px/1 var(--f-disp); text-transform: uppercase; color: var(--bone); }
.page-head__title, .auth__title, .profile-head__name { font-family: var(--f-disp); font-weight: 900; font-size: clamp(44px, 6vw, 84px); line-height: .86; text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: anywhere; }
.page-head__lead, .auth__lead { color: var(--text-2); font-size: 15.5px; }
.page-head__meta { font: 500 12px var(--f-mono); color: var(--mute); }
.section { padding-block: 40px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head__title, .panel__title, .form-section__title, .modal__title, .plan__name, .filter__title { font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.section-head__title { font-size: 36px; line-height: .95; }
.panel__title { font-size: 22px; line-height: 1; }
.form-section__title { font-size: 26px; line-height: 1; }
.modal__title { font-size: 30px; line-height: 1; }
.filter__title { font-size: 20px; margin-bottom: 10px; }
.section-head__link { color: var(--mute); font: 500 12.5px var(--f-mono); }
.section-head__link:hover { color: var(--lime); }
.panel__head { border-bottom: 1px solid var(--line); }
.panel--flush .panel__body { padding: 0; }
a.panel:hover { border-color: var(--line-2); }
.field__label { font-weight: 700; font-size: 14px; }
.field__hint { color: var(--mute); }
.field__error { color: var(--danger); }
.input, .textarea, .select { height: 44px; background: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 11px; font-size: 15px; color: var(--bone); box-shadow: none; }
.textarea { height: auto; padding: 11px 13px; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--mute); }
.input:focus, .textarea:focus, .select:focus, .tag-input:focus-within { border-color: var(--lime); background: var(--ink-3); box-shadow: 0 0 0 4px rgba(198, 255, 26, .12); }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6FF1A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.select option { background: var(--ink-2); color: var(--bone); }
.input-group__addon { background: var(--ink-3); border: 1.5px solid var(--line-2); color: var(--mute); }
.input-group > .input { border-radius: 0; }
.check input { accent-color: var(--lime); width: 17px; height: 17px; }
.tag-input { min-height: 44px; background: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 11px; }
.tag-input__chip { background: var(--lime); color: #0A0A09; border: 0; border-radius: 6px; height: 26px; font-weight: 700; animation: pop .35s var(--spring); }
.tag-input__chip::before { color: #3b4a00; }
.tag-input__remove { color: #3b4a00; }
.tag-input__remove:hover { background: #0A0A09; color: var(--lime); }
.tag-input__suggestions { background: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 12px; animation: pop .3s var(--spring); }
.tag-input__option:hover, .tag-input__option[aria-selected="true"] { background: var(--ink-3); }
.tag-input__option mark { color: var(--lime); }
.segmented { background: none; border: 0; border-bottom: 2px solid var(--line-2); border-radius: 0; padding: 0; }
.segmented__item { height: 34px; padding: 0 12px; font: 800 16px var(--f-disp); text-transform: uppercase; color: var(--mute); border-radius: 0; transition: color .2s, background .25s; }
.segmented__item[aria-pressed="true"], .segmented__item[aria-current="true"], .segmented__item[aria-current="page"], .segmented__item.is-active { background: var(--lime); color: #0A0A09; box-shadow: none; }
.tabs { border-bottom: 1px solid var(--line); }
.tabs__tab { font-weight: 700; color: var(--mute); }
.tabs__tab[aria-selected="true"]::after, .tabs__tab.is-active::after { background: var(--lime); height: 3px; }
.badge { height: auto; padding: 0; border: 0 !important; border-radius: 0; background: none !important; box-shadow: none; font: 700 13px var(--f-body); color: var(--b-fg, var(--mute)); }
.badge::before { content: none !important; }
.badge--success { --b-fg: var(--lime); }
.badge--danger { --b-fg: var(--red); }
.badge--warning { --b-fg: #FFB21A; }
.badge--outline { --b-fg: var(--mute); }
a.badge { text-decoration: underline 1.5px var(--line-2); text-underline-offset: 4px; }
.badge--accent { --b-fg: var(--lime); }
.avatar { box-shadow: none; border-radius: 8px; background: var(--ink-3); }
.avatar--gen { position: relative; overflow: hidden; flex: none; display: inline-block; aspect-ratio: 1; }
.avatar--gen svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.avatar--xl { border-radius: 18px; }
.avatar--lg { border-radius: 10px; }
.avatar--xs { border-radius: 4px; }
.dropdown__menu { background: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: 0 30px 60px -20px #000; transform-origin: top right; }
.dropdown[open] > .dropdown__menu { animation: pop .3s var(--spring); }
.dropdown__item { border-radius: 9px; padding: 9px 10px; font-weight: 600; }
.dropdown__item:hover, .dropdown__item:focus-visible { background: var(--ink-3); color: var(--lime); }
.dropdown__item:hover .icon { color: var(--lime); }
.dropdown__item--danger:hover, .dropdown__item--danger:hover .icon { color: var(--red); }
.dropdown__sep { background: var(--line); }
.pagination__item[aria-current="page"] { background: var(--lime); color: #000; border-color: var(--lime); }
.alert { border-radius: 12px; border-width: 1.5px; font-size: 14px; }
.alert--success { --a-fg: var(--bone); }
.flash .alert { animation: rise .5s var(--spring); }
.empty { border: 1.5px dashed var(--line-2); border-radius: 18px; padding: 56px 20px; background: transparent; }
.empty__title { font-family: var(--f-disp); font-weight: 900; font-size: 40px; line-height: .95; text-transform: uppercase; }
.empty__text { color: var(--mute); }
.modal { background: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 18px; box-shadow: 0 40px 80px -20px #000; color: var(--bone); }
.modal[open] { animation: pop .4s var(--spring); }
.modal::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.modal__footer { background: var(--ink-3); border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; }
.table-wrap { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; }
.table th { background: var(--ink-3); color: var(--mute); font: 600 10.5px var(--f-mono); letter-spacing: .1em; }
.table td { border-bottom-color: var(--line); }
.table tbody tr:hover { background: var(--ink-3); }
.stat { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; }
.stat__value { font-family: var(--f-disp); font-weight: 900; font-size: 46px; line-height: .9; letter-spacing: 0; }
.stat__label { font: 600 10.5px var(--f-mono); letter-spacing: .1em; color: var(--mute); }
.spark > i { background: var(--line-2); }
.spark > i:last-child { background: var(--lime); }
.plan { background: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 18px; transition: transform .45s var(--spring), box-shadow .45s var(--spring), border-color .2s; }
.plan:hover { transform: translate(-3px, -4px); box-shadow: 6px 8px 0 var(--lime); border-color: var(--lime); }
.plan--featured { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.plan__ribbon { background: var(--lime); color: #000; font-weight: 700; }
.plan__amount { font-family: var(--f-disp); font-weight: 900; font-size: 64px; }
.plan__features .icon { color: var(--lime); }
.plan__diagram { background: var(--ink); border-color: var(--line); }
.plan__diagram > i { background: var(--line); }
.plan__diagram > i.is-bar { background: var(--line-2); }
.plan__diagram > i.is-hit { background: var(--lime); }
.admin__sidebar .side-nav__link { border-radius: 9px; font-weight: 600; }
.side-nav__link:hover { background: var(--ink-2); color: var(--bone); }
.side-nav__link.is-active, .side-nav__link[aria-current="page"] { background: var(--lime); color: #0A0A09; box-shadow: none; }
.side-nav__link[aria-current="page"] .icon, .side-nav__link.is-active .icon { color: #0A0A09; }
.side-nav__link[aria-current="page"] .side-nav__count { color: #0A0A09; }
.side-nav__heading { color: var(--dim); font: 600 13px var(--f-body); letter-spacing: 0; text-transform: none; }
.auth__aside { background: var(--ink-2); border-left: 1px solid var(--line); }
.auth__card { animation: rise .7s var(--out) both; }
.or-sep { color: var(--dim); }
.or-sep::before, .or-sep::after { background: var(--line); }
.profile-head { border-bottom: 1px solid var(--line); }
.md-editor { background: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 12px; }
.md-editor:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(198, 255, 26, .12); }
.md-editor__head, .md-editor__foot { border-color: var(--line) !important; background: var(--ink-3); }
.md-editor__head { border-radius: 11px 11px 0 0; }
.md-editor__input { background: transparent; color: var(--bone); font-family: var(--f-mono); }
.md-editor__tool { color: var(--mute); border-radius: 7px; }
.md-editor__tool:hover { background: var(--ink-4); color: var(--lime); }
.md-editor__preview { background: var(--ink); }
.dropzone { background: var(--ink-2); border: 1.5px dashed var(--line-2); border-radius: 14px; transition: border-color .2s, background .2s, transform .35s var(--spring); }
.dropzone:hover, .dropzone.is-dragover { border-color: var(--lime); background: rgba(198, 255, 26, .05); transform: scale(1.01); }
.dropzone__icon { color: var(--lime); }
.filter { padding-block: 14px; border-color: var(--line); }

/* search page */
.search-page .hero-search { max-width: 760px; margin-top: 8px; }
.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.result-bar__n { font: 500 12.5px var(--f-mono); color: var(--mute); }
.sortsel { display: inline-flex; align-items: center; gap: 8px; }
.sortsel label { font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.sortsel .select { height: 40px; width: auto; min-width: 180px; font-weight: 600; }

/* profile + tags pages */
.profile-head .avatar--xl { width: 104px; height: 104px; }
.ptabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tag-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.tag-tile { position: relative; display: flex; flex-direction: column; color: var(--bone); padding: 0; overflow: hidden; transition: transform .45s var(--spring), box-shadow .45s var(--spring), border-color .2s; }
.tag-tile:hover { transform: translate(-3px, -4px); box-shadow: 6px 8px 0 var(--lime); border-color: var(--lime); }
.tag-tile__name { font-family: var(--f-disp); font-weight: 900; font-size: 34px; line-height: .95; text-transform: uppercase; }
.tag-tile__meta { font: 500 12px var(--f-mono); color: var(--mute); }
.tag-tile .panel__body { padding: 18px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* --- 14. responsive ------------------------------------------------------- */
@media (max-width: 1180px) {
  .chart-head, .row { grid-template-columns: 120px 56px minmax(0, 1fr) 130px 120px 86px; gap: 16px; }
  .rank__n { width: 64px; font-size: 64px; }
  .spons__grid { grid-template-columns: 1fr 1fr; }
  .cards, .grid--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .boards { grid-template-columns: 1fr 1fr; }
  .boards--sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .alayout { grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; }
  .rate__grid { grid-template-columns: 150px minmax(0, 1fr); }
  .rate__mine { grid-column: 1 / -1; }
  .hdr__in { gap: 16px; }
}
@media (max-width: 960px) {
  .hnav { display: none; }
  .hdr__in { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (max-width: 860px) {
  .hdr__in { grid-template-columns: auto 1fr; grid-template-areas: "logo act" "search search"; height: auto; padding-block: 12px; gap: 12px; }
  .hdr .logo { grid-area: logo; font-size: 30px; }
  .hdr__act { grid-area: act; justify-self: end; gap: 8px; }
  .hdr .search { grid-area: search; max-width: none; }
  .header-search .kbd { display: none; }
  .ticker__stats { display: none; }
  .btn { height: 40px; padding: 0 13px; font-size: 13.5px; }
  .btn--icon { width: 40px; padding: 0; }
  .btn--lg { height: 46px; padding: 0 16px; font-size: 15px; }
  .btn--icon.btn--lg { width: 46px; }
  .ftr { margin-top: 80px; }
  .sec { padding-top: 56px; }
  .board { grid-template-columns: repeat(3, 1fr); }
  .board__c { padding: 20px 0 18px 14px; }
  .board__c--live { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 16px 0 18px; }
  .pulse { height: 54px; }
  .board__l { font-size: 10.5px; letter-spacing: .08em; }
  .spons__grid { grid-template-columns: 1fr; }
  .sp { grid-template-columns: 38% minmax(0, 1fr); min-height: 200px; }
  .sp h3 { font-size: 30px; }
  .sp__slot { display: none; }
  .sh .seg, .chart-bar .seg { width: 100%; }
  .seg:not(.seg--sort) { grid-auto-columns: 1fr; }
  .seg > a { padding: 0 10px; }
  .chart-head { display: none; }
  .row { grid-template-columns: 46px 52px minmax(0, 1fr) auto; grid-template-areas: "rank thumb meta like"; gap: 12px; padding: 14px 4px 14px 8px; }
  .rank { grid-area: rank; flex-direction: column; align-items: center; gap: 4px; }
  .rank__n { width: auto; font-size: 44px; justify-content: center; }
  .mv { min-width: 30px; font-size: 16px; }
  .row .thumb { grid-area: thumb; width: 52px; height: 52px; }
  .row__meta { grid-area: meta; }
  .row__meta .nm { font-size: 22px; white-space: normal; }
  .row__meta p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; margin: 3px 0 6px; }
  .row__facts .chip, .row__facts .fact--by { display: none; }
  .row__facts .bw { display: none; }
  .row__facts .ctry span { display: none; }
  .fact--mob { display: inline-flex; }
  .spk, .vw { display: none; }
  .likec { grid-area: like; }
  .like { height: 34px; padding: 0 9px; font-size: 13.5px; }
  .like--big { height: 46px; padding: 0 14px; font-size: 16px; }
  .cards, .grid--cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card h3 { font-size: 20px; }
  .card p { font-size: 12.5px; }
  .card__b { padding: 10px 12px 12px; }
  .card__tags { display: none; }
  .card__f { font-size: 10.5px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .boards, .boards--sm { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: -16px; padding: 0 16px 8px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .boards::-webkit-scrollbar { display: none; }
  .boards > .lb { scroll-snap-align: start; }
  .cloud { height: 460px; }
  .phead h1 { font-size: clamp(52px, 15vw, 90px); }
  .ahero { grid-template-columns: 1fr; gap: 24px; }
  .ahero__cv { aspect-ratio: 4 / 3; border-radius: 16px; }
  .ahero__acts .btn--primary { flex-basis: 100%; }
  .ahero__acts .btn:not(.btn--icon) { flex: 1 1 auto; }
  .alayout { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; }
  .alayout__side { position: static; }
  .prose { font-size: 16px; }
  .prose h1, .prose h2 { font-size: 36px; }
  .prose table { font-size: 13.5px; }
  .prose th, .prose td { padding: 9px 6px; }
  .rate, .cmts { margin-top: 56px; }
  .rate__grid { grid-template-columns: 1fr; gap: 22px; }
  .rate__sum { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px; }
  .rate__avg { font-size: 80px; }
  .arow { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px 6px 14px 8px; }
  .arow__thumb { width: 52px; height: 52px; }
  .arow__spk { display: none; }
  .arow__title { font-size: 21px; white-space: normal; }
  .arow__meta .chip { display: none; }
  .arow--sp { padding: 14px 12px; }
  .page-head__title, .auth__title, .profile-head__name { font-size: clamp(40px, 12vw, 64px); }
}
@media (max-width: 420px) {
  .hdr__act .btn { padding: 0 11px; }
  .hdr .logo { font-size: 27px; }
  .logo__mark { grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 9px); }
  .sp { grid-template-columns: 34% minmax(0, 1fr); }
  .sp h3 { font-size: 26px; }
  .sp__b { padding: 12px 14px 18px; }
  .sp .btn { padding: 0 10px; font-size: 12.5px; }
  .board__n { font-size: 52px; }
  .rstar { width: 46px; height: 46px; }
}

/* --- 15. view transitions (card cover -> app hero) ------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.7, 0, .2, 1); }
  ::view-transition-old(root) { animation: vtOut .3s var(--out) both; }
  ::view-transition-new(root) { animation: vtIn .45s .1s var(--out) both; }
  ::view-transition-old(*):only-child, ::view-transition-new(*):only-child { animation-duration: .3s; }
  ::view-transition-image-pair(*) { isolation: isolate; }
  ::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: cover; overflow: clip; }
}
@keyframes vtOut { to { opacity: 0; transform: scale(.985); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* --- 16. reduced motion: fades only --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .25s !important; transition-property: opacity, color, background-color, border-color !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none !important; }
  .ticker__viewport { overflow-x: auto; }
  .js .io { transform: none; }
  .odo .od > span { transition: none !important; }
  .js .spk:not(.draw) .sparkline__l, .spk .sparkline__l, .lb .sparkline__l { stroke-dashoffset: 0 !important; stroke-dasharray: none !important; }
  .js .spk:not(.draw) .sparkline__d, .js .spk:not(.draw) .sparkline__a { opacity: 1; }
  .js .spk .sparkline__a { opacity: .1; }
  .js .bars:not(.in) .bar i, .bar i { transform: none !important; }
  .js .rate:not(.in) .hbar__t i { width: var(--w, 0%); }
  .cover.wait .blk { transform: none; }
  .ahero__cv { animation: none; }
}

/* auth aside art */
.auth__aside { padding: 0 !important; }
.auth__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth__stats { position: absolute; left: 24px; bottom: 24px; z-index: 2; background: #0A0A09; color: var(--mute); padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.auth__stats b { color: var(--lime); }
.suggest__thumb--tag { font: 800 18px var(--f-disp); background: var(--ink-3); border: 1px solid var(--line-2); }

/* Empty sponsored slot: hatched paper outline, no fake content */
.sp-open { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 236px; padding: 22px; border-radius: 16px; color: var(--mute); background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(239, 234, 223, .05) 10px 12px); border: 2px dashed var(--line-2); transition: border-color .25s, color .25s, transform .45s var(--spring); }
.sp-open:hover { border-color: var(--lime); color: var(--bone); transform: translateY(-4px); }
.sp-open__t { font: 900 36px/.9 var(--f-disp); text-transform: uppercase; color: var(--line-2); transition: color .25s; }
.sp-open:hover .sp-open__t { color: var(--bone); }
.sp-open__l { font: 600 14px var(--f-body); }
@media (max-width: 1180px) { .sp-open:nth-child(n+3) { display: none; } }
@media (max-width: 860px) { .sp-open { display: none; } }
.search-page .hero-search, .page-head .hero-search { height: 50px; max-width: 640px; border-radius: 0; border-width: 0 0 2px; background: none; padding: 0 0 0 2px; box-shadow: none; }
.page-head .hero-search:focus-within { background: none; box-shadow: none; }
.page-head .hero-search__input { font: 700 20px var(--f-body); }
.page-head .hero-search__btn { height: 40px; }

/* ---------- Countries: typographic code + name, no flags, no chips ---------- */
.ctry { display: inline-flex; align-items: baseline; gap: 5px; color: var(--mute); white-space: nowrap; text-decoration: underline 1.5px transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.ctry b { font: 800 14px/1 var(--f-disp); letter-spacing: .04em; color: var(--bone); }
.ctry span { font: 600 13px var(--f-body); }
.ctry:hover { color: var(--bone); text-decoration-color: var(--lime); }
.ctry:hover b { color: var(--lime); }
.row__facts .ctry, .arow__meta .ctry { font: inherit; }
.ctry--card b { font-size: 13px; color: var(--mute); }
.ctry--card::before { content: "· "; color: var(--dim); }
.ctry--hero b { font-size: 16px; color: var(--lime); }
.ctry--hero span { font-size: inherit; color: var(--bone); }
.ctry--bar b { font-size: 20px; }
.ctry--bar span { font-size: 15px; }
.arow--sp .ctry, .arow--sp .ctry b { color: #4b4a44; }
.lb__code { display: inline-block; margin-right: 10px; color: var(--lime); }
.lb--country .lb__h h3 span.lb__code { color: var(--lime); }
.phead__code { font: 900 22px/1 var(--f-disp); color: var(--lime); letter-spacing: .04em; margin-right: 6px; vertical-align: -2px; }

/* Native select set as an underlined line, used by filter forms */
.select-line { position: relative; display: inline-flex; align-items: center; }
.select-line select { appearance: none; -webkit-appearance: none; height: 38px; padding: 0 28px 0 2px; background: none; border: 0; border-bottom: 2px solid var(--line-2); border-radius: 0; color: var(--bone); font: 700 16px var(--f-body); cursor: pointer; max-width: 100%; }
.select-line select:focus-visible { outline: none; border-bottom-color: var(--lime); }
.select-line select option { background: var(--ink-2); color: var(--bone); }
.select-line::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.filters-panel .select-line, .filters-panel .select-line select { width: 100%; }
.filterbar--form { align-items: center; }

/* /countries index: a printed table of counts with bar rules */
.cidx { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 2px solid var(--bone); }
.cidx li { border-bottom: 1px solid var(--line); }
.cidx__a { display: grid; grid-template-columns: 36px 52px minmax(0, 1fr) 120px 70px; align-items: center; gap: 14px; padding: 14px 4px; color: var(--bone); transition: background .2s, padding .35s var(--spring); }
.cidx__a:hover { background: var(--ink-2); padding-left: 12px; }
.cidx__r { font: 800 18px var(--f-disp); color: var(--dim); text-align: right; }
.cidx__c { font: 900 30px/1 var(--f-disp); color: var(--lime); letter-spacing: .02em; }
.cidx__n { font: 700 17px var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cidx__bar { height: 8px; background: var(--ink-3); }
.cidx__bar i { display: block; height: 100%; width: var(--w); background: var(--bone); transform-origin: left; animation: barGrow .9s var(--out) both; }
.cidx__a:hover .cidx__bar i { background: var(--lime); }
.cidx__v { font: 600 13px var(--f-mono); color: var(--mute); text-align: right; white-space: nowrap; }
@keyframes barGrow { from { transform: scaleX(0); } }
@media (max-width: 960px) { .cidx { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cidx__a { grid-template-columns: 26px 40px minmax(0, 1fr) 56px; gap: 10px; } .cidx__bar { display: none; } .cidx__c { font-size: 24px; } .cidx__n { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .cidx__bar i { animation: none; } }

/* Country combobox (submit form) */
.csel { position: relative; }
.csel__input { width: 100%; }
.csel__code { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font: 900 18px/1 var(--f-disp); color: var(--lime); pointer-events: none; }
.csel__code ~ .csel__input { padding-left: 44px; }
.csel__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; color: var(--mute); font-size: 20px; line-height: 1; }
.csel__clear:hover { color: var(--red); }
.csel__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow: auto; margin: 0; padding: 6px 0; list-style: none; background: var(--ink-2); border: 1.5px solid var(--line-2); box-shadow: 6px 6px 0 #000; }
.csel__opt { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; gap: 8px; padding: 8px 14px; cursor: pointer; color: var(--mute); }
.csel__opt b { font: 800 16px var(--f-disp); color: var(--bone); }
.csel__opt[aria-selected="true"] { background: var(--lime); color: #0A0A09; }
.csel__opt[aria-selected="true"] b { color: #0A0A09; }
.csel__opt.is-current span { text-decoration: underline 2px; text-underline-offset: 3px; }
.csel__none { padding: 10px 14px; color: var(--dim); }
.flink { font: 600 14px var(--f-body); color: var(--mute); text-decoration: underline 1.5px var(--line-2); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.flink:hover { color: var(--bone); text-decoration-color: var(--lime); }

/* ---------- Built with: plain credit text, no chips ---------- */
.bw { display: inline; color: var(--mute); font: 600 13px var(--f-body); }
.bw i { font-style: normal; color: var(--dim); font-weight: 500; }
.bw a { color: var(--bone); text-decoration: underline 1.5px transparent; text-underline-offset: 4px; transition: text-decoration-color .2s, color .2s; }
.bw a:hover { color: var(--lime); text-decoration-color: var(--lime); }
.row__facts .bw, .arow__meta .bw { white-space: nowrap; }
.card__bw { position: relative; z-index: 2; margin: 2px 0 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp__bw { margin: 0; }
.sp__bw .bw, .sp__bw .bw a, .arow--sp .bw a { color: #0A0A09; }
.sp__bw .bw i, .arow--sp .bw i { color: #6c6a62; }
.ahero__bw { margin: 14px 0 0; font: 800 22px/1.15 var(--f-disp); text-transform: uppercase; color: var(--bone); }
.ahero__bw > span { font: 600 14px var(--f-body); text-transform: none; color: var(--mute); margin-right: 6px; }
.ahero__bw i { font-style: normal; color: var(--lime); margin: 0 8px; }
.ahero__bw a:hover { color: var(--lime); }
.credits { list-style: none; margin: 0; padding: 0; }
.credits li + li { border-top: 1px solid var(--line); }
.credits a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; }
.credits b { font: 900 22px/1 var(--f-disp); text-transform: uppercase; color: var(--bone); transition: color .2s; }
.credits span { font: 500 12px var(--f-mono); color: var(--dim); white-space: nowrap; }
.credits a:hover b { color: var(--lime); }

/* /built-with: tool index by category */
.tcat { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 40px 48px; }
.tcat__h { margin: 0 0 6px; padding-bottom: 10px; border-bottom: 2px solid var(--bone); font: 900 30px/1 var(--f-disp); text-transform: uppercase; }
.tcat__h span { font: 600 14px var(--f-mono); color: var(--dim); vertical-align: super; }
.tcat__list { list-style: none; margin: 0; padding: 0; }
.tcat__list li { border-bottom: 1px solid var(--line); }
.tcat__list a { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px 30px; align-items: center; gap: 12px; padding: 9px 2px; transition: background .2s, padding .35s var(--spring); }
.tcat__list a:hover { background: var(--ink-2); padding-left: 10px; }
.tcat__n { font: 700 16px var(--f-body); color: var(--bone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcat__list a:hover .tcat__n { color: var(--lime); }
.tcat__v { font: 500 12px var(--f-mono); color: var(--dim); white-space: nowrap; }
.tcat__bar { height: 6px; background: var(--ink-3); }
.tcat__bar i { display: block; height: 100%; width: var(--w); background: var(--lime); transform-origin: left; animation: barGrow .9s var(--out) both; }
.tcat__c { font: 800 18px var(--f-disp); text-align: right; color: var(--bone); }
.tcat__list li.is-empty .tcat__n { color: var(--mute); font-weight: 500; }
.tcat__list li.is-empty .tcat__c { color: var(--dim); }
@media (max-width: 420px) { .tcat__v { display: none; } .tcat__list a { grid-template-columns: minmax(0, 1fr) 48px 26px; } }

/* Built-with picker (submit form) */
.tpick__sel { list-style: none; margin: 0 0 10px; padding: 0; border-top: 2px solid var(--bone); }
.tpick__sel li { display: grid; grid-template-columns: 28px 1fr 32px; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); animation: rise .4s var(--spring) both; }
.tpick__i { font: 800 18px var(--f-disp); color: var(--lime); }
.tpick__sel b { font: 900 22px/1 var(--f-disp); text-transform: uppercase; }
.tpick__x { width: 32px; height: 32px; font-size: 20px; color: var(--mute); }
.tpick__x:hover { color: var(--red); }
.tpick__bar { display: flex; align-items: center; gap: 12px; }
.tpick__bar .input { flex: 1; }
.tpick__n { color: var(--mute); font-size: 13px; }
.tpick__list { margin-top: 10px; max-height: 320px; overflow: auto; padding: 4px 14px 12px 0; overscroll-behavior: contain; }
.tpick__g h4 { margin: 14px 0 6px; font: 600 13px var(--f-body); color: var(--dim); }
.tpick__opts { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tpick__o { padding: 3px 0; font: 700 15px var(--f-body); color: var(--mute); text-decoration: underline 2px transparent; text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
.tpick__o:hover:not(:disabled) { color: var(--bone); text-decoration-color: var(--line-2); }
.tpick__o[aria-pressed="true"] { color: var(--lime); text-decoration-color: var(--lime); }
.tpick__o:disabled { opacity: .35; cursor: not-allowed; }
.tpick__none { color: var(--dim); margin: 12px 0 0; }
.toolpick-nojs { border: 0; padding: 0; margin: 0; }
.toolpick-nojs__g { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.toolpick-nojs__h { flex-basis: 100%; margin: 6px 0 0; color: var(--dim); font-size: 13px; }
.table-wrap { position: relative; }

/* Discount code on the promotion configurator */
.promo-code { max-width: 460px; }
.promo-code__row { display: flex; gap: 10px; }
.promo-code__row .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.promo-code__ok { margin: 6px 0 0; font: 700 14px var(--f-body); color: var(--lime); }
.promo-list { color: var(--mute); text-decoration: line-through 2px var(--red); margin-right: 4px; }
[data-promo-total].is-discounted { color: var(--lime); }
.shake { animation: shake .4s; }
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } }
.price-lines { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 24px; margin: 0; }
.price-lines dt { color: var(--mute); }
.price-lines dd { margin: 0; font-family: var(--f-mono); text-align: right; }
.price-lines .is-total dt, .price-lines .is-total dd { color: var(--bone); font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line-2); }
.price-lines .is-off dd { color: var(--lime); }
.promo-cell { display: inline-grid; justify-items: end; gap: 2px; }
.promo-cell b { color: var(--lime); }
.promo-cell small { color: var(--dim); font-size: 11px; }
.code-tt { font: 900 20px/1 var(--f-disp); letter-spacing: .04em; color: var(--bone); user-select: all; }
.code-pct { font: 900 22px/1 var(--f-disp); color: var(--lime); }
.cstate { font: italic 700 13px var(--f-body); margin-left: 6px; color: var(--dim); }
.cstate--live { color: var(--lime); }
.cstate--expired, .cstate--used-up { color: var(--red); }
tr.is-muted .code-tt, tr.is-muted .code-pct { color: var(--mute); }
.form-actions__note { font: 600 14px var(--f-body); color: var(--mute); display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.form-actions__note [data-promo-total] { font: 900 34px/1 var(--f-disp); color: var(--bone); }
.form-actions__note [data-promo-total].is-discounted { color: var(--lime); }
.form-actions__note .promo-list { font: 800 20px var(--f-disp); }

/* ==========================================================================
   v4: the "Charts" look (above) applied to the tile catalog.
   Tiles carry the screenshot gallery; sponsored tiles are inverted (paper)
   with the red sticker; the app page hero is a big gallery + display name.
   ========================================================================== */
:root:root:root {
  --amber: var(--red); --amber-2: #ff5a40; --amber-soft: rgba(255, 61, 31, .08); --amber-line: rgba(255, 61, 31, .5);
  --up: var(--lime); --down: #FF6A4F;
  --sponsored-bg: var(--paper); --sponsored-border: #0A0A09; --sponsored-text: #0A0A09;
  --selection: var(--lime);
}

/* section heads: display type, as in the charts design */
.sec { padding-top: 76px; }
.sec--first { padding-top: 40px; }
.sec__h { margin: 0 0 22px; gap: 14px 24px; }
.sec__t h2, .sec__h > h2 { margin: 0; font-family: var(--f-disp); font-weight: 900; font-size: clamp(42px, 5.6vw, 84px); line-height: .86; text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sec__h--sm .sec__t h2, .sec__h--sm > h2 { font-size: clamp(34px, 4vw, 52px); }
.sec__meta { margin: 12px 0 0; font: 500 12px var(--f-mono); color: var(--mute); letter-spacing: .03em; }
.sec__meta a { color: var(--mute); text-decoration: underline 1px var(--line-2); text-underline-offset: 3px; }
.sec__meta a:hover { color: var(--lime); }
.sec__link { font: 500 12px var(--f-mono); color: var(--mute); letter-spacing: .03em; }
.sec__link:hover { color: var(--lime); }
.sec--feat .sec__t h2::after { content: none; }
.sec__more { margin-top: 28px; }
.board { margin-bottom: 4px; }

/* page heads */
.phead h1 { font-family: var(--f-disp); font-weight: 900; font-size: clamp(56px, 8vw, 132px); line-height: .84; text-transform: uppercase; letter-spacing: -.015em; }
.phead__sub { font-family: var(--f-disp); font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--text-2); }

/* ---- tiles ---- */
.tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px 18px; }
.tile { background: var(--ink-2); border: 1.5px solid var(--line); border-radius: 16px; transition: transform .4s var(--spring), box-shadow .4s var(--spring), border-color .2s; will-change: auto; }
.tile:hover { transform: translate(-4px, -4px); border-color: var(--line-2); box-shadow: 8px 8px 0 0 var(--lime); }
.tile__media { border-radius: 14px 14px 0 0; background: #0A0A09; border-bottom: 1.5px solid var(--line); }
.tile__link::after { border-radius: 16px; }
.tile__body { gap: 6px; padding: 14px 16px 14px; }
.tile__name { font: 900 27px/.92 var(--f-disp); text-transform: uppercase; letter-spacing: -.005em; padding-top: 1px; }
.tile__link:hover { color: var(--lime); }
.tile__tl { font-size: 14px; line-height: 1.42; color: #b3afa4; }
.tile__meta { gap: 14px; padding-top: 10px; font: 600 12.5px/1 var(--f-mono); }
.tstat { color: var(--mute); }
a.tstat:hover, button.tstat:hover { color: var(--bone); }
.tstat--like:hover, .tstat--like:hover .icon, .tstat--like[aria-pressed="true"] { color: var(--red); }
.tstat--rate svg { fill: var(--lime); }
.tile__spk { width: 70px; height: 22px; }
.tile .sparkline { color: var(--bone); }
.tile .sparkline.is-up { color: var(--lime); }
.tile__foot { border-top: 1px solid var(--line); font-size: 13px; }
.tile__tooln { font-weight: 600; color: var(--text-2); }
.tile__cc { padding: 0; border: 0; font: 700 13px/1 var(--f-mono); color: var(--lime); letter-spacing: .04em; }
.tile__cc:hover { color: var(--bone); }

/* rank: a solid block in the corner, display figures */
.tile__rank { top: 0; left: 0; height: auto; padding: 6px 10px 5px 9px; gap: 7px; border-radius: 14px 0 12px 0; background: var(--lime); color: #0A0A09; backdrop-filter: none; -webkit-backdrop-filter: none; font: 900 21px/1 var(--f-disp); }
.tile__rank b { font-weight: 900; }
.tile__rank .mv { font: 700 11px/1 var(--f-mono); color: #0A0A09; opacity: .75; }
.tile__rank .mv.up, .tile__rank .mv.dn, .tile__rank .mv.new { color: #0A0A09; opacity: 1; }
.tile__rank .mv.dn { color: var(--red-d); }
.tiles__i:nth-child(n+4) .tile__rank { background: var(--bone); }
.tile__dots i.on, .is-cycling .tile__dots i.on::after { background: var(--lime); }

/* sponsored: inverted paper tile + the red sticker */
.tile--sp { background: var(--paper); color: #0A0A09; border-color: var(--paper); box-shadow: none; }
.tile--sp:hover { border-color: var(--paper); box-shadow: 8px 8px 0 0 var(--red); }
.tile--sp .tile__media { border-bottom: 3px solid #0A0A09; }
.tile--sp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 0 0 14px 14px; background: repeating-linear-gradient(-45deg, #0A0A09 0 6px, var(--lime) 6px 12px); pointer-events: none; }
.tile--sp .tile__body { padding-bottom: 18px; }
.tile--sp .tile__link, .tile--sp .tile__link:hover { color: #0A0A09; }
.tile--sp .tile__link:hover { text-decoration: underline 3px; text-underline-offset: 4px; }
.tile--sp .tile__tl { color: #3b3a35; }
.tile--sp .tstat, .tile--sp .tile__tooln, .tile--sp .tile__tools a { color: #4b4a44; }
.tile--sp a.tstat:hover, .tile--sp .tile__tools a:hover { color: #0A0A09; }
.tile--sp .tstat--rate svg { fill: #0A0A09; }
.tile--sp .sparkline, .tile--sp .sparkline.is-up { color: #0A0A09; }
.tile--sp .tile__foot { border-top-color: #cfc8b8; }
.tile--sp .tile__cc { color: #0A0A09; }
.tile--sp img.tool-img { filter: none; }
.tile__sp, .badge-sp, .badge-sponsored { display: inline-block; height: auto; padding: 5px 10px 4px; border-radius: 0; background: var(--red); color: var(--paper); font: 900 18px/1 var(--f-disp); letter-spacing: .03em; text-transform: uppercase; transform: rotate(-4deg); transform-origin: left center; box-shadow: 3px 3px 0 #0A0A09; transition: transform .3s var(--spring); }
.tile__sp { top: 12px; left: 10px; }
.tile__sp:hover, .badge-sp:hover { background: var(--red); transform: rotate(0deg) scale(1.04); }

/* featured row (home) */
.tiles--feat { gap: 20px; }
.tiles--feat .tile__name { font-size: 38px; }
.tiles--feat .tile__body { padding: 16px 18px 20px; }
.tiles--feat .tile__tl { font-size: 15px; }
.tiles--feat .tile__spk { width: 96px; }
.fslot { justify-content: flex-end; gap: 6px; padding: 22px; border: 1.5px dashed var(--line-2); border-radius: 16px; color: var(--mute); background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 255, 255, .02) 10px 20px); transition: border-color .2s, color .2s, transform .35s var(--spring); }
.fslot:hover { border-color: var(--lime); color: var(--bone); background-color: transparent; transform: translateY(-4px); }
.fslot__t { font: 900 38px/.9 var(--f-disp); text-transform: uppercase; color: var(--line-2); transition: color .2s; }
.fslot:hover .fslot__t { color: var(--bone); }
.fslot__l { font: 600 14px var(--f-body); }
.fslot__cta { color: var(--lime); font: 600 13px var(--f-mono); }

/* compact rankings in the charts style */
.lb { background: var(--ink-2); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px 14px; }
.lb__h h3 { font: 900 26px/1 var(--f-disp); text-transform: uppercase; }
.lb__h h3 a:hover { color: var(--lime); }
.lb__hash { color: var(--lime); margin-right: 0; }
.lb__row { grid-template-columns: 22px 56px minmax(0, 1fr) auto; }
.lb__rank { font: 900 20px var(--f-disp); color: var(--mute); }
.lb__row:first-child .lb__rank { color: var(--lime); }
.lb__t { font-weight: 700; }
.lb__more { font: 600 12px var(--f-mono); }
.lb__more:hover { color: var(--lime); }

/* tags */
.taglist { gap: 10px 26px; }
.taglist a { font: 800 26px/1 var(--f-disp); text-transform: uppercase; color: var(--bone); }
.taglist a:hover { color: var(--lime); }
.taglist a span { font: 600 12px var(--f-mono); vertical-align: super; }

/* segmented control: lime thumb, display caps */
.seg > button { font: 800 19px/1 var(--f-disp); letter-spacing: .02em; text-transform: uppercase; height: 42px; padding: 0 16px; background: none; border: 0; cursor: pointer; color: var(--mute); }
.seg > button[aria-current="true"] { color: #0A0A09; }
.seg.has-thumb > [aria-current="true"] { background: none; }
.seg--sm > button { height: 34px; padding: 0 11px; font-size: 16px; }

/* ---- app page hero: gallery left, display name right ---- */
.ahero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.ahero__media { margin: 0; min-width: 0; animation: cvIn 1s var(--out) both; }
.vt-nav .ahero__media { animation: none; }
.ahero__media .gal__main { aspect-ratio: 16 / 10; border-radius: 22px; border: 0; background: #0A0A09; }
.ahero__media .gal__open img { transition: transform 1.2s var(--out); }
.ahero__media .gal__main:hover .gal__open img { transform: scale(1.025); }
.ahero__media .ahero__rank { z-index: 2; pointer-events: none; }
.gal__count { top: 16px; bottom: auto; right: 16px; padding: 5px 9px; border-radius: 0; background: #0A0A09; color: var(--bone); font: 700 12px var(--f-mono); box-shadow: 3px 3px 0 var(--lime); }
.gal__nav { width: 48px; height: 48px; margin-top: -24px; border-radius: 12px; background: var(--lime); border: 0; color: #0A0A09; box-shadow: 0 4px 0 var(--lime-d); backdrop-filter: none; -webkit-backdrop-filter: none; transition: opacity .2s, transform .25s var(--spring), box-shadow .25s var(--spring); }
.gal__nav .icon { width: 20px; height: 20px; stroke-width: 2.6; }
.gal__nav:hover { background: var(--lime-2); transform: translateY(-2px); box-shadow: 0 6px 0 var(--lime-d); }
.gal__nav--prev { left: 16px; }
.gal__nav--next { right: 16px; }
.gal__thumbs { gap: 10px; margin-top: 14px; padding: 4px 4px 8px 0; }
.gal__th { width: 120px; border-radius: 10px; border: 1.5px solid var(--line-2); opacity: .55; transition: opacity .2s, transform .3s var(--spring), box-shadow .3s var(--spring), border-color .2s; }
.gal__th:hover { opacity: .9; transform: translateY(-2px); }
.gal__th.is-on { opacity: 1; border-color: var(--lime); box-shadow: 4px 4px 0 var(--lime); transform: translate(-2px, -2px); }
.ahero__b { justify-content: flex-end; padding-bottom: 6px; }
.ahero h1 { font-size: clamp(56px, 7.6vw, 132px); }
.ahero__bw a { display: inline-flex; align-items: center; gap: 8px; }
.ahero__bw .tool-icon { width: 20px; height: 20px; }
.ahero__bw img.tool-img { width: 20px; height: 20px; }
.alayout { padding-top: 64px; }
.lbx__nav, .lbx__close { background: var(--lime); color: #0A0A09; border-radius: 12px; }
.lbx__close:hover, .lbx__nav:hover { background: var(--lime-2); }
.lbx__count { font-weight: 700; color: var(--bone); }

/* sidebar facts: big display figures */
.panel { border-radius: 18px; }
.panel__k { font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.facts__stats dt { font: 600 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.facts__stats dd { font: 900 44px/.9 var(--f-disp); margin-top: 6px; }
.facts__k { font: 600 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.facts__k b { color: var(--lime); }
.credits b { font: 800 20px/1.1 var(--f-disp); text-transform: uppercase; }

/* promotion UI accents in the red/paper sponsored language */
.btn--sp { --btn-bg: var(--red); --btn-fg: #0A0A09; --btn-bd: var(--red); --btn-sh: var(--red-d); }
.btn--sp:hover { --btn-bg: #ff5a40; --btn-bd: #ff5a40; }
.quote__price strong { font: 900 48px/1 var(--f-disp); }
.pnudge__cmp dd, .cstats dd { font: 900 28px/1 var(--f-disp); }
.suggest__item--sponsored { box-shadow: none; }

@media (max-width: 1180px) {
  .ahero { gap: 32px; }
}
@media (max-width: 860px) {
  .sec { padding-top: 52px; }
  .ahero { grid-template-columns: 1fr; gap: 24px; }
  .ahero__media .gal__main { border-radius: 16px; }
  .gal__th { width: 92px; }
  .ahero h1 { font-size: clamp(52px, 14vw, 88px); }
}
@media (max-width: 560px) {
  .tile { border-radius: 12px; }
  .tile__media { border-radius: 10px 10px 0 0; }
  .tile__link::after { border-radius: 12px; }
  .tile__name { font-size: 21px; }
  .tiles--feat .tile__name { font-size: 28px; }
  .tile__rank { font-size: 17px; padding: 5px 8px 4px 7px; border-radius: 10px 0 10px 0; }
  .tile__sp { top: 8px; left: 6px; font-size: 14px; padding: 4px 7px 3px; }
  .tile:hover { transform: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none !important; }
  .tile:hover { transform: none; }
}
.sparkline__l { vector-effect: non-scaling-stroke; stroke-width: 1.8; }
.tiles--feat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lb__v { flex-direction: row; align-items: center; gap: 5px; }
@media (max-width: 860px) {
  .tiles--feat { grid-template-columns: none; }
}
@media (max-width: 860px) {
  .tiles--feat { grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 14px; scrollbar-width: none; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .tiles--feat { grid-template-columns: none; grid-auto-columns: 84%; }
  .tile__body { padding: 10px 11px 11px; gap: 4px; }
  .tile__tl { font-size: 13px; }
  .tile__meta { gap: 9px; font-size: 11.5px; }
  .tile__spk { display: none; }
  .tile__tooln { display: none; }
}
@media (max-width: 560px) {
  .ahero__media .ahero__rank { left: 10px; bottom: 10px; }
  .ahero__media .ahero__rank b { font-size: 26px; padding: 0 8px; }
  .ahero__media .ahero__rank span { font-size: 11px; padding-right: 10px; }
  .gal__count { top: 10px; right: 10px; }
}
.lbx::backdrop { background: rgba(5, 5, 4, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.credits a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.credits b { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* hero menus (More, like popover) open above the sticky sidebar */
.ahero { position: relative; z-index: 6; }
.ahero .dropdown__menu, .ahero .like-pop { z-index: 70; }
/* video posters: link hover styles must not touch the poster image */
.prose a.embed__poster, .prose a.embed__poster:hover { background-color: #111; background-size: cover; background-position: center; background-repeat: no-repeat; color: inherit; }
.embed__poster:hover .embed__play { background: #ff5a40; color: #0A0A09; }
.prose a:has(> img):hover, .prose a:has(> picture):hover { background: none; }
/* tool name on tiles is a link too (bigger target than the icon) */
.tile__tools a.tile__tooln { display: block; pointer-events: auto; padding: 4px 0; color: var(--text-2); }
.tile__tools a.tile__tooln:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.tile--sp .tile__tools a.tile__tooln:hover { color: #0A0A09; }
.tile__tools a { padding: 3px 0; }
/* flags (flag-icons, MIT) */
.flag { display: inline-block; flex: none; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.flag--txt { width: auto; height: auto; box-shadow: none; font: 700 12px var(--f-mono); color: var(--lime); }
.tile__cc { display: inline-flex; padding: 4px 0; transition: transform .2s var(--spring); }
.tile__cc:hover { transform: scale(1.15); }
.tile__cc .flag { width: 22px; height: 16.5px; }
.tile--sp .tile__cc .flag { box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.ctry { align-items: center; }
.ctry .flag { margin-right: 2px; }
.ctry--hero .flag { width: 24px; height: 18px; }
.lb__flag { margin-right: 8px; vertical-align: -1px; }
.cidx__flag { width: 32px; height: 24px; } .phead__flag { width: 24px; height: 18px; margin-right: 6px; }
/* tile screenshot progress, story style: seen = filled, current = filling, next = empty */
.tile__dots { gap: 3px; }
.tile__dots i, .is-cycling .tile__dots i.on { background: rgba(255, 255, 255, .35); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25); }
.tile__dots i.on, .tile__dots i.done, .is-cycling .tile__dots i.done { background: var(--lime); }
.is-cycling .tile__dots i.on { background: rgba(255, 255, 255, .35); }
.is-cycling .tile__dots i.on::after { background: var(--lime); animation: fill var(--tile-step, 2.6s) linear both; }
