/* ══════════════════════════════════════════════════════════════════════════
   HejMap — Home (home-*) — catalogue-style landing
   Uses global tokens from styles.css: --ink --ink-soft --ink-faint --paper
   --rule --accent --bg --bg-warm
════════════════════════════════════════════════════════════════════════════ */

:root {
  --home-hero-bg1: #e8f2fb;
  --home-hero-bg2: #dbeafc;
  --home-shadow:   0 18px 44px -22px rgba(16, 42, 67, 0.4);
}
html[data-theme="dark"] {
  --home-hero-bg1: #0c1f34;
  --home-hero-bg2: #0a1a2c;
  --home-shadow:   0 18px 44px -18px rgba(0, 0, 0, 0.6);
}

body.home-page { background: var(--bg); }

/* Undo the map-app grid styles.css puts on <main> */
.home-main {
  display: block;
  grid-column: auto;
  grid-template-columns: none;
  padding: 0;
  max-width: none;
  overflow-x: clip;   /* contain globe/card bleed without clipping the dropdown vertically */
}

/* The hero search owns search — hide the header's */
.home-page .nav-search,
.home-page .mobile-search-btn { display: none !important; }

.home-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 44px);
}

/* ── Section scaffolding ─────────────────────────────────────────────────── */
.home-section { padding: 30px 0; }
.home-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.home-sec-title {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.home-sec-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.home-sec-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   Hero
══════════════════════════════════════════════ */
.home-hero {
  padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 7vw, 88px);
  position: relative;
  /* No overflow:hidden here — it would clip the search suggestions. Stray
     horizontal bleed is contained by overflow-x:clip on .home-main. */
}
/* Hero tint lives on a pseudo-element so it can fade out at the bottom (masked)
   and melt into the section below instead of ending on a hard horizontal edge.
   Content sits above it via .home-hero-grid's z-index:1. */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(160deg,
              color-mix(in srgb, var(--home-hero-bg1) 80%, transparent),
              color-mix(in srgb, var(--home-hero-bg2) 80%, transparent));
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, transparent 97%);
          mask-image: linear-gradient(to bottom, #000 42%, transparent 97%);
}
.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

/* One continuous, viewport-fixed world map behind the whole page so the
   sections read as a single canvas instead of separate tinted bands.
   JS injects the SVG (slice-scaled to fill) and drives --px/--py for a
   subtle pointer drift. Sits at z-index:0 with main + footer raised above it
   (position:relative) — a negative z-index would hide behind the body's opaque
   background. The header is already sticky/z-index:100 so it stays on top.
   Section tints are translucent so the map bleeds through evenly. */
.home-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: var(--ink);
  opacity: 0.1;
  overflow: hidden;
}
.home-main,
.home-page > .site-footer { position: relative; z-index: 1; }
html[data-theme="dark"] .home-page-bg { opacity: 0.16; }
.home-page-bg svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 116%;
  height: 116%;
  transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px)));
  will-change: transform;   /* keep the parallax drift on the GPU, no repaint */
}
.home-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.home-hero-title {
  font-size: clamp(32px, 5.2vw, 58px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.home-hero-title em { font-style: normal; color: var(--accent); }
.home-hero-keep { white-space: nowrap; }
.home-hero-sub {
  margin-top: 16px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-soft);
  max-width: 42ch;
}

/* Search (reuses lv-* ids from the shared search JS) */
.lv-search-wrap { position: relative; margin-top: 26px; max-width: 520px; }
.lv-search-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 19px; height: 19px;
  color: var(--ink-faint);
  pointer-events: none;
}
.lv-search-input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 15px 18px 15px 46px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: 0 8px 24px -14px rgba(16, 42, 67, 0.4);
}
.lv-search-input::placeholder { color: var(--ink-faint); }
.lv-search-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.lv-suggest {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--home-shadow);
  overflow: hidden;
  z-index: 40;
}
.lv-suggest.open { display: block; }
.lv-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  text-decoration: none;
  border-top: 1px solid var(--rule);
}
.lv-suggest-item:first-child { border-top: none; }
.lv-suggest-item:hover,
.lv-suggest-item[aria-selected="true"] { background: var(--bg-warm); }
.lv-suggest-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.lv-suggest-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.lv-suggest-badge--country  { background: rgba(8,145,178,0.12);  color: #0891b2; }
.lv-suggest-badge--worldcup { background: rgba(220,38,38,0.12);  color: #dc2626; }
.lv-suggest-badge--gdp      { background: rgba(124,58,237,0.12); color: #7c3aed; }
.lv-suggest-badge--language { background: rgba(59,130,246,0.12); color: #3b82f6; }
.lv-suggest-badge--currency { background: rgba(217,119,6,0.12);  color: #d97706; }
html[data-theme="dark"] .lv-suggest-badge--country  { background: rgba(8,145,178,0.22); }
html[data-theme="dark"] .lv-suggest-badge--worldcup { background: rgba(220,38,38,0.22); }
html[data-theme="dark"] .lv-suggest-badge--gdp      { background: rgba(124,58,237,0.22); }
html[data-theme="dark"] .lv-suggest-badge--language { background: rgba(59,130,246,0.22); }
html[data-theme="dark"] .lv-suggest-badge--currency { background: rgba(217,119,6,0.22); }

.home-trending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.home-trending-label { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.home-chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: border-color 0.12s, color 0.12s;
}
.home-chip:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); }

/* Proof strip — concrete scale under the search box. */
.home-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 22px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.home-proof-item { display: flex; flex-direction: column; gap: 1px; }
.home-proof-item b {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.home-proof-item span { font-size: 12px; font-weight: 600; color: var(--ink-faint); }

/* ── Hero carousel — the featured-map coverflow ──────────────────────────── */
.home-carousel { position: relative; }
.home-stage {
  position: relative;
  height: clamp(300px, 33vw, 420px);
  perspective: 1400px;
  touch-action: pan-y;   /* let vertical scroll pass; horizontal = our swipe */
}
.home-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(64%, 460px);
  height: 100%;
  margin-left: calc(min(64%, 460px) / -2);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--home-shadow);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  will-change: transform, opacity;
  background: #0a1626;
}
/* position states set by JS via data-pos */
.home-slide[data-pos="center"] { transform: translateX(0) scale(1);           opacity: 1; z-index: 3; }
.home-slide[data-pos="left"]   { transform: translateX(-46%) scale(0.8);       opacity: 0.32; z-index: 2; }
.home-slide[data-pos="right"]  { transform: translateX(46%)  scale(0.8);       opacity: 0.32; z-index: 2; }
.home-slide[data-pos="hidden"] { transform: translateX(0) scale(0.7);          opacity: 0; z-index: 1; pointer-events: none; }
.home-slide[data-pos="left"],
.home-slide[data-pos="right"] { pointer-events: none; }
/* The side cards sit behind a semi-transparent front card, so their text used to
   bleed through and collide with the headline. Blur + hide the copy so they read
   as depth, not as broken overlapping text. */
.home-slide[data-pos="left"],
.home-slide[data-pos="right"] { filter: blur(1.5px) saturate(0.85); }
.home-slide[data-pos="left"]  .home-slide-inner,
.home-slide[data-pos="right"] .home-slide-inner,
.home-slide[data-pos="left"]  .home-slide-badge,
.home-slide[data-pos="right"] .home-slide-badge { opacity: 0; transition: opacity 0.3s ease; }

.home-slide-art {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, var(--g1), var(--g2) 60%, var(--g3));
}
.home-slide-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,34,0.8) 4%, rgba(10,20,34,0.26) 50%, rgba(10,20,34,0.04) 82%);
}
.home-slide-inner {
  position: absolute;
  inset: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.home-slide-badge {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
}
.home-slide-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; letter-spacing: -0.02em; }
.home-slide-desc { font-size: 13.5px; opacity: 0.86; margin-top: 5px; max-width: 34ch; }
.home-slide-cta {
  align-self: flex-start;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 10px;
}
.home-slide[data-pos="center"] .home-slide-cta:hover { background: color-mix(in srgb, var(--accent) 82%, #000); }

/* Featured slide — the deep-time continents map, styled to stand apart from the
   ordinary choropleth slides: a glowing frame and a full-bleed hero image. */
.home-slide--feature {
  background: #0b1830;
  box-shadow: var(--home-shadow), 0 0 0 1.6px color-mix(in srgb, var(--accent) 55%, transparent);
}
.home-feature-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(150deg, var(--g1), var(--g2) 56%, var(--g3));
}
.home-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-slide-badge--feature {
  background: linear-gradient(90deg, #e0894a, var(--accent, #e8634a));
  box-shadow: 0 2px 12px rgba(232, 99, 74, 0.5);
}

.home-car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--home-shadow);
  z-index: 5;
}
.home-car-arrow svg { width: 20px; height: 20px; }
.home-car-arrow:hover { background: var(--bg-warm); }
.home-car-arrow--prev { left: -6px; }
.home-car-arrow--next { right: -6px; }

.home-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}
.home-dot {
  width: 22px; height: 5px;
  border-radius: 3px;
  border: none;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.home-dot.is-active { background: var(--accent); }

/* ══════════════════════════════════════════════
   Category tiles
══════════════════════════════════════════════ */
.home-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.home-cat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border-radius: 14px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--cc, var(--accent)) 8%, var(--paper)), var(--paper) 68%);
  border: 1px solid var(--rule);
  text-decoration: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.home-cat:hover { transform: translateY(-3px); box-shadow: var(--home-shadow); border-color: color-mix(in srgb, var(--cc, var(--accent)) 45%, var(--rule)); }
.home-cat-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: var(--cc, var(--accent));
  background: color-mix(in srgb, var(--cc, var(--accent)) 16%, var(--paper));
}
.home-cat-ico svg { width: 22px; height: 22px; }
.home-cat-name { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.home-cat-desc { font-size: 11.5px; color: var(--ink-soft); line-height: 1.4; }
.home-cat-meta {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--cc, var(--accent));
}
.home-cat-meta svg { width: 13px; height: 13px; transition: transform 0.16s; }
.home-cat:hover .home-cat-meta svg { transform: translateX(3px); }

/* Category submap popover */
.home-catmenu {
  position: fixed;
  z-index: 900;
  min-width: 210px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--home-shadow);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.1s ease, transform 0.1s ease;
}
.home-catmenu.is-in { opacity: 1; transform: none; }
.home-catmenu-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 6px 10px 8px;
}
.home-catmenu-item {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.home-catmenu-item:hover { background: var(--bg-warm); color: var(--accent); }

/* ══════════════════════════════════════════════
   Generic horizontal rail
══════════════════════════════════════════════ */
.home-rail-wrap { position: relative; }
.home-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  margin: 0 -2px;
  scrollbar-width: none;
}
.home-rail::-webkit-scrollbar { display: none; }
.home-rail > * { scroll-snap-align: start; }

@media (min-width: 900px) {
  .home-rail { grid-auto-columns: minmax(0, 1fr); grid-template-columns: repeat(4, 1fr); grid-auto-flow: row; overflow: visible; }
  .home-rail.home-rail--scroll { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0,1fr); }
}

.home-rail-arrow {
  position: absolute;
  top: 84px;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--home-shadow);
  z-index: 4;
  right: -12px;
}
.home-rail-arrow svg { width: 18px; height: 18px; }
.home-rail-arrow--prev { left: -12px; right: auto; }
.home-rail-arrow:hover { background: var(--bg-warm); }
.home-rail-arrow.is-hidden { opacity: 0; pointer-events: none; }
@media (hover: none) { .home-rail-arrow { display: none; } }

/* ── Map card (recently added / most popular) ────────────────────────────── */
.home-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.home-card:hover { transform: translateY(-3px); box-shadow: var(--home-shadow); border-color: color-mix(in srgb, var(--accent) 30%, var(--rule)); }
.home-thumb {
  position: relative;
  height: 128px;
  background: linear-gradient(150deg, var(--g1), var(--g2) 58%, var(--g3));
}
.home-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Optional wordmark laid over a card's map thumbnail (e.g. the Debt card). */
.home-thumb-word {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0 12px;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 6px rgba(0, 20, 12, 0.3);
  pointer-events: none;
}
.home-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  background: #fff;
  color: #16324a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.home-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.home-card-title { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; line-height: 1.25; }
.home-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.home-card-cat { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.home-card-date { font-size: 12px; color: var(--ink-faint); font-weight: 600; white-space: nowrap; }

/* ── Country directory ───────────────────────────────────────────────────── */
.home-sec-lede {
  margin: -8px 0 16px;
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.home-sec-note { font-size: 12.5px; font-weight: 600; color: var(--ink-faint); white-space: nowrap; }
.home-countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}
.home-country {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.12s, color 0.12s, transform 0.12s;
}
.home-country:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
  transform: translateY(-1px);
}
.home-country img {
  flex: 0 0 auto;
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(16, 42, 67, 0.14);
}
.home-country span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Footer data-source credit ───────────────────────────────────────────── */
.home-sources {
  width: 100%;
  margin: 0 0 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-faint);
}
.home-sources a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.home-sources a:hover { color: var(--accent); }

/* ── Game cards ──────────────────────────────────────────────────────────── */
.home-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.home-game {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 18px;
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  background: var(--gm, #eef);
  transition: transform 0.16s, box-shadow 0.16s;
}
.home-game:hover { transform: translateY(-3px); box-shadow: var(--home-shadow); }
.home-game-emoji { font-size: 30px; line-height: 1; }
.home-game-title { font-size: 16px; font-weight: 900; color: #16324a; margin-top: auto; }
.home-game-sub { font-size: 12.5px; color: #3a5670; margin-top: 3px; opacity: 0.9; }
.home-game-play {
  align-self: flex-start;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #16324a;
  background: rgba(255,255,255,0.75);
  padding: 6px 14px;
  border-radius: 20px;
}
.home-game--droplomat {
  --gm: #c7e8f2;
  background: linear-gradient(180deg, #ccecf5 0 47%, #176078 47% 100%);
}
.home-droplomat-art { position: relative; display: block; height: 48px; }
.home-drop-shape {
  position: absolute;
  top: 1px;
  left: 50%;
  z-index: 2;
  width: 34px;
  height: 24px;
  background: #ed6547;
  clip-path: polygon(4% 35%, 23% 10%, 48% 17%, 66% 4%, 95% 23%, 83% 50%, 98% 66%, 67% 72%, 54% 96%, 26% 81%, 9% 91%, 14% 57%);
  filter: drop-shadow(0 2px 2px rgba(78,34,26,0.3));
  transform: translateX(-50%) rotate(-4deg);
}
.home-drop-trail { position: absolute; top: 24px; left: 50%; height: 10px; border-left: 1px dashed rgba(18,93,119,0.55); }
.home-drop-flags { position: absolute; right: 2px; bottom: 0; left: 2px; display: flex; justify-content: space-between; }
.home-drop-flags b { width: 31px; height: 19px; border-radius: 2px; box-shadow: 0 2px 3px rgba(0,0,0,0.28); }
.home-drop-flags b:nth-child(1) { background: linear-gradient(#111 0 33%, #d82727 33% 66%, #f1c40f 66%); }
.home-drop-flags b:nth-child(2) { background: linear-gradient(90deg, #1356a2 0 33%, #fff 33% 66%, #df2c32 66%); }
.home-drop-flags b:nth-child(3) { background: linear-gradient(#fff 0 50%, #dc3038 50%); }
.home-game--droplomat .home-game-title,
.home-game--droplomat .home-game-sub { color: #fff; text-shadow: 0 1px 2px rgba(5,42,58,0.38); }
.home-game--droplomat .home-game-play { background: #f4bd4f; color: #173648; }

/* ── Closing band ────────────────────────────────────────────────────────── */
.home-closing {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: clamp(40px, 6vw, 68px) 0 clamp(48px, 7vw, 80px);
  background: linear-gradient(160deg,
              color-mix(in srgb, var(--home-hero-bg1) 72%, transparent),
              color-mix(in srgb, var(--home-hero-bg2) 72%, transparent));
  border-top: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.home-closing-inner { position: relative; z-index: 1; }
.home-closing-head { text-align: center; max-width: 620px; margin: 0 auto clamp(24px, 3vw, 34px); }
.home-closing-head .home-eyebrow { margin-bottom: 10px; }
.home-closing-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.home-closing-sub { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }

.home-ctas {
  display: grid;
  /* auto-fit so the band reflows cleanly as CTAs are added or removed. */
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.home-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  text-decoration: none;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
a.home-cta:hover { transform: translateY(-3px); box-shadow: var(--home-shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--rule)); }
.home-cta-ico {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.home-cta-ico svg { width: 23px; height: 23px; }
.home-cta-text { flex: 1; min-width: 0; }
.home-cta-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.home-cta-sub { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.home-cta-btn {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}
.home-cta-btn--soft { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.home-cta-btn:hover { filter: brightness(0.96); }
.home-cta--soon { border-style: dashed; }
.home-cta-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--bg-warm);
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   Responsive
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  /* Carousel falls in natural order — below the headline + search (primary action). */
  /* Centre the hero block once stacked, so it matches the centred carousel. */
  .home-hero-left { text-align: center; }
  .home-hero-sub  { margin-left: auto; margin-right: auto; }
  .lv-search-wrap { margin-left: auto; margin-right: auto; }
  .home-trending  { justify-content: center; }
  .home-proof     { justify-content: center; }
  .home-ctas { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .home-games { grid-template-columns: 1fr; }
  .home-slide { width: 80%; margin-left: calc(80% / -2); }
  .home-cta { flex-direction: column; align-items: flex-start; }
  .home-proof { gap: 10px 20px; }
  .home-proof-item b { font-size: 18px; }
  .home-countries { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .home-sec-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-slide, .home-card, .home-cat, .home-game { transition: none; }
}
