/* ============================================================
   LootSignal — hand-written, mobile-first, no frameworks.
   System font stack only (no webfont downloads).
   ============================================================ */
:root {
  --ink: #16191d;
  --ink-soft: #3c434c;
  --muted: #68707b;
  --paper: #fafaf7;
  --card: #ffffff;
  --line: #e9e6df;
  --line-soft: #f1efe9;
  --signal: #2456e6;
  --signal-deep: #173fa8;
  --signal-tint: #eef3ff;
  --loot: #0e9f6e;
  --loot-deep: #0b7d57;
  --amber: #b45309;
  --amber-bg: #fef6e7;
  --purple: #7c3aed;
  --slate: #334155;
  --histlow: #1e40af;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22, 25, 29, .05), 0 8px 24px -12px rgba(22, 25, 29, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- staging banner ---------- */
.staging-banner {
  background: #1a1d21; color: #ffd98a;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  text-align: center; padding: 7px 12px; position: relative; z-index: 60;
}
.staging-banner button {
  background: none; border: 1px solid #4a4f57; color: #c9cdd3;
  border-radius: 999px; font-size: 11px; padding: 1px 10px; margin-left: 10px;
  cursor: pointer; text-transform: uppercase; letter-spacing: .06em;
}
.staging-banner.hidden { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.main-nav { display: none; gap: 4px; margin-left: 8px; }
.main-nav a { color: var(--ink-soft); font-weight: 600; font-size: .92rem; padding: 8px 11px; border-radius: 8px; white-space: nowrap; }
.main-nav a:hover { background: var(--line-soft); text-decoration: none; color: var(--ink); }
.main-nav a.active { color: var(--signal-deep); background: var(--signal-tint); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-search { display: none; }
.header-search input {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-size: .9rem; width: 190px; background: #fff; font-family: var(--font);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-weight: 700; cursor: pointer; border: 1px solid transparent;
  padding: 10px 18px; font-size: .95rem; font-family: var(--font); line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-deep); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-sm { padding: 7px 13px; font-size: .85rem; }
.btn-telegram { background: #229ed9; color: #fff; }
.btn-telegram:hover { background: #1b87b8; }
.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.mobile-nav { display: none; border-bottom: 1px solid var(--line); background: var(--card); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 16px; color: var(--ink); font-weight: 600; border-top: 1px solid var(--line-soft); }
@media (min-width: 860px) {
  .main-nav { display: flex; }
  .header-search { display: block; }
  .nav-toggle { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 44px 0 34px; }
.hero h1 { max-width: 16ch; }
.hero .sub { color: var(--ink-soft); font-size: 1.08rem; max-width: 52ch; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero-stats { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.5rem; font-weight: 800; }
.hero-stats .stat span { color: var(--muted); font-size: .85rem; }

/* ---------- deal cards ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head p { color: var(--muted); margin: 4px 0 0; font-size: .95rem; }
.deal-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .deal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .deal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .deal-grid { grid-template-columns: repeat(4, 1fr); } }

.deal-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.deal-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(22,25,29,.06), 0 14px 32px -12px rgba(22,25,29,.25); }
.deal-card .art { position: relative; aspect-ratio: 460 / 215; background: var(--line-soft); }
.deal-card .art img { width: 100%; height: 100%; object-fit: cover; }
.deal-card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.deal-card .title { font-weight: 750; font-size: 1.02rem; margin: 0; line-height: 1.3; }
.deal-card .title a { color: var(--ink); }
.deal-card .meta-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; flex-wrap: wrap; }
.deal-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.deal-card .price { font-size: 1.45rem; font-weight: 800; font-family: var(--mono); letter-spacing: -0.02em; }
.deal-card .was { color: var(--muted); text-decoration: line-through; font-size: .95rem; font-family: var(--mono); }
.deal-card .pct { color: var(--loot-deep); font-weight: 800; font-size: .95rem; }
.deal-card .free-price { font-size: 1.45rem; font-weight: 800; color: var(--purple); }
.deal-card .score-row { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.score-bar { flex: 1; height: 6px; background: var(--line-soft); border-radius: 999px; overflow: hidden; min-width: 60px; }
.score-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--signal), var(--loot)); border-radius: 999px; }
.score-num { font-weight: 800; color: var(--ink); font-family: var(--mono); }
.deal-card .spark { margin-top: 2px; opacity: .9; }
.deal-card .cta-row { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; }
.deal-card .cta-row .btn { flex: 1; }
.has-tip { border-bottom: 1px dotted var(--muted); cursor: help; }

/* badges */
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 20px); }
.badge {
  font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; color: #fff; line-height: 1.4; white-space: nowrap;
}
.badge.hist-low { background: var(--histlow); }
.badge.excellent { background: var(--loot); }
.badge.great { background: #0d9488; }
.badge.free { background: var(--purple); }
.badge.bundle { background: var(--slate); }
.badge.ending { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber); }

/* ---------- free radar strip ---------- */
.strip { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.strip-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.strip-card img { aspect-ratio: 460 / 215; object-fit: cover; width: 100%; }
.strip-card .body { padding: 12px 14px 14px; }
.strip-card .title { font-weight: 750; margin: 0 0 4px; }
.expiry { color: var(--amber); font-weight: 700; font-size: .85rem; }
.expiry.forever { color: var(--loot-deep); }
.empty-state { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; color: var(--muted); background: #fff; }

/* ---------- why different ---------- */
.why-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.why-card .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--signal-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.why-card h3 { margin-bottom: 6px; }
.why-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0 26px; background: #fff; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.footer-brand img { width: 30px; height: 30px; }
.site-footer nav a { display: block; color: var(--ink-soft); font-size: .92rem; padding: 3px 0; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .82rem; display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }

/* ---------- content pages ---------- */
.prose { max-width: 720px; padding: 34px 0 10px; }
.prose h1 { margin-bottom: 12px; }
.prose .lede { color: var(--ink-soft); font-size: 1.08rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--line-soft); font-weight: 700; }
.callout { background: var(--signal-tint); border-left: 4px solid var(--signal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px; margin: 18px 0; }
.callout.warn { background: var(--amber-bg); border-left-color: var(--amber); }
.callout p { margin: 0; font-size: .95rem; }
.lawyer-flag { border: 1.5px dashed var(--amber); background: var(--amber-bg); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .9rem; margin: 18px 0; }

/* ---------- game page ---------- */
.game-hero { display: grid; gap: 22px; grid-template-columns: 1fr; padding: 30px 0 8px; }
@media (min-width: 800px) { .game-hero { grid-template-columns: 460px 1fr; align-items: start; } }
.game-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; }
.game-art img { width: 100%; }
.game-info .badges { position: static; margin-bottom: 10px; }
.game-info h1 { margin-bottom: 6px; }
.game-meta { color: var(--muted); font-size: .9rem; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.game-desc { color: var(--ink-soft); }
.cheapest-panel { background: var(--card); border: 2px solid var(--loot); border-radius: var(--radius); padding: 18px; margin: 20px 0; box-shadow: var(--shadow); }
.cheapest-panel .label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--loot-deep); }
.cheapest-panel .price { font-size: 2.2rem; font-weight: 800; font-family: var(--mono); }
.cheapest-panel .store-line { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.offers-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .93rem; }
.offers-table th, .offers-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.offers-table th { background: var(--line-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.offers-table tr:last-child td { border-bottom: none; }
.offers-table .best td { background: #f0faf6; }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 20px 0; box-shadow: var(--shadow); }
.chart-card svg { width: 100%; height: auto; }
.similar-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .similar-grid { grid-template-columns: repeat(4, 1fr); } }
.similar-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.similar-card img { aspect-ratio: 460/215; object-fit: cover; width: 100%; }
.similar-card .t { padding: 8px 10px; font-weight: 650; font-size: .85rem; }
.similar-card a { color: var(--ink); }
.track-box { background: var(--signal-tint); border-radius: var(--radius); padding: 24px; margin: 26px 0; text-align: center; }
.track-box h3 { margin-bottom: 6px; }
.track-box p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- filters ---------- */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; box-shadow: var(--shadow); }
.filters-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .filters-grid { grid-template-columns: repeat(4, 1fr); } }
.filter-field label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 5px; }
.filter-field select, .filter-field input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font); font-size: .92rem; background: #fff; }
.check-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.check-row label { display: flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.results-count { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }

/* ---------- search results page ---------- */
.search-page input#site-search { width: 100%; padding: 14px 18px; font-size: 1.05rem; border: 2px solid var(--line); border-radius: 12px; font-family: var(--font); }
.search-page input#site-search:focus { border-color: var(--signal); outline: none; }
.search-hints { color: var(--muted); font-size: .88rem; margin-top: 10px; }

/* ---------- admin ---------- */
.admin-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 20px 0; }
@media (min-width: 700px) { .admin-grid { grid-template-columns: repeat(3, 1fr); } }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.admin-card .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.admin-card .v { font-size: 1.7rem; font-weight: 800; font-family: var(--mono); }
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .93rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.dot.ok { background: var(--loot); }
.dot.warn { background: var(--amber); }
.dot.err { background: #dc2626; }

/* ---------- misc ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99; }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.share-row { display: flex; gap: 8px; margin-top: 10px; }
.share-row a { font-size: .85rem; font-weight: 650; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; color: var(--ink-soft); background: #fff; }
.share-row a:hover { text-decoration: none; border-color: var(--ink-soft); color: var(--ink); }
code.inline { background: var(--line-soft); padding: 2px 7px; border-radius: 6px; font-family: var(--mono); font-size: .85em; }

/* ---------- polish pass: trust, freshness, sharing, alerts, 404 ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 4px; padding: 0; }
.trust-strip span { font-size: .88rem; font-weight: 650; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; }
.trust-strip span::before { content: "✓"; color: var(--loot); font-weight: 800; }
.hero-freshness { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.freshness { font-size: .78rem; color: var(--muted); }
.share-via { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-left: auto; }
.share-via a { border: none; padding: 6px 4px; color: var(--signal); }
.share-box { background: var(--signal-tint); border-radius: var(--radius); padding: 22px; margin: 26px 0; }
.share-box h3 { margin: 0 0 6px; }
.share-box p { margin: 0 0 4px; color: var(--ink-soft); font-size: .95rem; }
.share-box .share-row { margin-top: 12px; }
.channel-grid { display: grid; gap: 14px; margin: 24px 0; }
@media (min-width: 700px) { .channel-grid { grid-template-columns: 1fr 1fr; } }
.channel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.channel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.channel-head h3 { margin: 0; }
.channel-card p { color: var(--ink-soft); font-size: .93rem; margin: 10px 0 14px; }
.status-badge { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.status-badge.live { background: #e5f6ee; color: var(--loot-deep); }
.status-badge.soon { background: var(--amber-bg); color: var(--amber); }
.compare-table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: .92rem; }
.compare-table th, .compare-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare-table tbody th { font-weight: 700; white-space: nowrap; }
.compare-table td:first-of-type { color: var(--loot-deep); }
.notfound-code { font-size: 4.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--line); line-height: 1; margin-bottom: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
/* ---------- reduced motion: kill all motion, force final states ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; translate: none !important; }
  .scroll-progress { display: none; }
  .hero h1 .wi { translate: none !important; }
}

/* ============================================================
   Motion upgrade: vanilla, transform/opacity only (no layout thrash)
   ============================================================ */

/* 1. Reveal-on-scroll. Hidden state gated on html.js so no-JS users always
   see content. --i staggers siblings (capped at 7 in the delay calc).
   transform/box-shadow entries preserve .deal-card's hover lift. */
html.js .reveal {
  opacity: 0; translate: 0 14px;
  --rd: calc(min(var(--i, 0), 7) * 60ms);
  transition: opacity .5s ease, translate .5s ease, transform .12s ease, box-shadow .12s ease;
  transition-delay: var(--rd), var(--rd), 0s, 0s;
}
html.js .reveal.in { opacity: 1; translate: none; }

/* 2. Scroll progress bar. Primary path: scroll-driven animation (no JS);
   main.js sets el.style.scale as fallback where animation-timeline is missing. */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--signal); transform-origin: 0 50%; scale: 0 1;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: ls-progress linear both; animation-timeline: scroll(); }
  @keyframes ls-progress { to { scale: 1 1; } }
}

/* 3. Sticky filter bar on /deals/ (header is 60px sticky). Card background
   keeps text readable over scrolled cards. Static on mobile, where the
   stacked filters would swallow the viewport. */
.filters { position: sticky; top: 60px; z-index: 40; }
@media (max-width: 719px) { .filters { position: static; } }

/* 5. Hero headline word reveal (build-time .w > .wi spans). Words sit 110%
   below their mask until JS adds .headline-in after first paint. */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
html.js .hero h1 .wi { display: inline-block; translate: 0 110%; }
html.js .hero.headline-in h1 .wi {
  translate: 0 0;
  transition: translate .55s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--wi) * 65ms);
}

/* 6. GlideSelect: custom listbox built FROM the native <select> (which stays
   the data source and the no-JS fallback; hidden only when JS enhances it). */
.gselect { position: relative; }
.gselect select.gselect-native {
  position: absolute !important; width: 1px; height: 1px;
  opacity: 0; pointer-events: none; margin: 0;
}
.gselect-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-family: var(--font); font-size: .92rem; color: var(--ink);
  cursor: pointer; text-align: left; line-height: 1.2;
}
.gselect-btn:hover { border-color: var(--ink-soft); }
.gselect-chev { color: var(--muted); font-size: .75rem; transition: transform .18s ease; }
.gselect.open .gselect-chev { transform: rotate(180deg); }
.gselect-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 45;
  margin: 0; padding: 4px; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); max-height: 248px; overflow: auto; display: none;
}
.gselect.open .gselect-list { display: block; }
.gselect-pill {
  position: absolute; left: 4px; right: 4px; top: 4px; height: 34px;
  background: var(--signal-tint); border-radius: 6px;
  transition: transform .18s ease; pointer-events: none;
}
.gselect-opt {
  position: relative; z-index: 1; display: flex; align-items: center;
  min-height: 34px; padding: 8px 12px; border-radius: 6px;
  font-size: .92rem; color: var(--ink-soft); cursor: pointer;
}
.gselect-opt[aria-selected="true"] { color: var(--signal-deep); font-weight: 700; }

/* 7. Warm tooltip: one shared element, positioned by JS. */
.ls-tip {
  position: fixed; z-index: 95; max-width: 240px; background: #1a1d21; color: #fff;
  font-size: .8rem; line-height: 1.45; padding: 8px 12px; border-radius: 8px;
  opacity: 0; translate: 0 4px; transition: opacity .14s ease, translate .14s ease;
  pointer-events: none;
}
.ls-tip.show { opacity: 1; translate: none; }

/* 8. Toast: single aria-live region, quiet dark-ink pill. */
.ls-toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  translate: -50% 12px; opacity: 0; z-index: 90; max-width: min(92vw, 420px);
  background: #1a1d21; color: #fff; font-size: .88rem; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; text-align: center;
  pointer-events: none; transition: opacity .18s ease, translate .18s ease;
}
.ls-toast.show { opacity: 1; translate: -50% 0; pointer-events: auto; }

/* 9. CTA micro-polish: sheen sweep on primary hover (motion-safe only);
   press state on all buttons. :focus-visible outline already exists above. */
.btn { position: relative; }
.btn-primary { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .btn-primary::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%);
    translate: -150% 0;
  }
  .btn-primary:hover::after { translate: 150% 0; transition: translate .7s ease; }
}
.btn:active { scale: .985; }
