/* ══════════════════════════════════════════════════════════════════════════
   HejMap v2 — landing page (preview). Requires css/v2/base.css.
   ══════════════════════════════════════════════════════════════════════════ */

.v2 [hidden] { display: none !important; }
/* The landing page uses a wider column; the header, tour and sections all share it. */
.v2-home { --col-max: 1560px; --col-pad: 24px; }
@media (max-width: 899px) { .v2-home { --col-pad: 20px; } }
@media (max-width: 640px) { .v2-home { --col-pad: 12px; } }
.v2-home main { display: block; }

.v2-section { padding: 26px 0; scroll-margin-top: calc(var(--nav-h) + 8px); }



.v2-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px 0 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.v2-hero-badge:hover { border-color: var(--line-strong); color: var(--text); }
.v2-hero-badge .v2-new { border-radius: 999px; padding: 3px 8px; }
.v2-hero-badge svg { width: 13px; height: 13px; color: var(--text-3); }

.v2-hero-sub {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
}

/* Search */
.v2-search {
  position: relative;
  z-index: 20;
  max-width: 600px;
  margin: 30px auto 0;
  text-align: left;
}
.v2-search-icon {
  position: absolute;
  left: 17px;
  top: 26px;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transform: translateY(-50%);
  pointer-events: none;
}
.v2-search-input {
  width: 100%;
  height: 52px;
  padding: 0 52px 0 46px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.v2-search-input::-webkit-search-cancel-button { display: none; }
.v2-search-input::placeholder { color: var(--text-3); }
.v2-search-input:focus {
  border-color: color-mix(in srgb, var(--blue) 60%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent), var(--shadow-sm);
}
.v2-search:focus-within .v2-search-icon { color: var(--blue); }
.v2-search-kbd {
  position: absolute;
  right: 14px;
  top: 26px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 12px;
  transform: translateY(-50%);
}
.v2-search:focus-within .v2-search-kbd { opacity: 0; }

.lv-suggest {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.lv-suggest.open { display: block; }
.lv-suggest-head { padding: 6px 10px 4px; color: var(--text-3); font-size: 10.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.lv-suggest-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
}
.lv-suggest-item:hover,
.lv-suggest-item[aria-selected="true"] { background: var(--surface-2); }
.lv-suggest-item .hej-flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.lv-suggest-icon { display: grid; place-items: center; width: 20px; color: var(--blue); }
.lv-suggest-icon svg { width: 15px; height: 15px; }
.lv-suggest-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; }
.lv-suggest-badge {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 550;
  white-space: nowrap;
}

/* Explore chips */
.v2-explore {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 680px;
  margin: 14px auto 0;
}
.v2-explore-label { color: var(--text-3); font-size: 12px; font-weight: 500; }
.v2-explore-chips { display: contents; }








/* Proof pills */
.v2-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.v2-stats a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  text-decoration: none;
}
.v2-stats a:hover { border-color: var(--line-strong); color: var(--text); }
.v2-stats b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }

.v2-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.v2-pill--link { text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.v2-pill--link:hover { border-color: var(--line-strong); color: var(--text); }


.v2-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 300px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.v2-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 12px;
}
.v2-panel-foot { margin-top: auto; padding-top: 14px; }


/* Quiz (js/home-daily.js) */
.home-daily-question { margin: 0 0 12px; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.home-daily-question strong { color: var(--blue); font-weight: 700; }
.home-daily-run-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 12px;
}
#homeDailyRunTopic { flex: 1; color: var(--text); font-weight: 600; }
#homeDailyRunProgress { font-variant-numeric: tabular-nums; }
.home-daily-back {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.home-daily-back:hover { background: var(--surface-2); color: var(--text); }
.home-daily-back svg { width: 14px; height: 14px; }
.home-daily-run-controls { display: flex; align-items: center; gap: 10px; }
.home-daily.is-round .home-daily-run { margin-bottom: 12px; }
.home-daily-steps { display: flex; flex: 1; gap: 4px; }
.home-daily-steps span {
  display: grid;
  place-items: center;
  flex: 1;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 600;
}
.home-daily-steps span svg { width: 12px; height: 12px; }
.home-daily-steps .is-current { border-color: var(--text); color: var(--text); background: var(--surface); }
.home-daily-steps .is-correct { border-color: color-mix(in srgb, var(--good) 40%, transparent); background: color-mix(in srgb, var(--good) 12%, var(--surface)); color: var(--good); }
.home-daily-steps .is-wrong { border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 10%, var(--surface)); color: var(--bad); }
.home-daily-next {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.home-daily-next:hover { background: color-mix(in srgb, var(--text) 86%, var(--surface)); }

.home-daily.is-choosing-topic .home-daily-run-meta,
.home-daily.is-choosing-topic .home-daily-steps { display: none; }
.home-daily-topic-picker { display: grid; flex: 1; grid-template-columns: 1fr 1fr; gap: 8px; }
.home-daily-topic-picker button {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.home-daily-topic-picker button:hover { background: var(--surface); border-color: var(--line-strong); transform: translateY(-1px); }
.home-daily-topic-icon { width: 20px; height: 20px; margin-bottom: 8px; color: var(--blue); }
.home-daily-topic-name { font-size: 14px; font-weight: 650; }
.home-daily-topic-detail { color: var(--text-3); font-size: 11.5px; }

.home-daily-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.home-daily-choices:empty { display: none; }
.home-daily-choice {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, opacity 0.2s;
}
.home-daily-choice:not(:disabled):hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-1px); }
.home-daily-flag .hej-flag { width: 32px; height: 22px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.home-daily-name { max-width: 100%; overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.home-daily-value { min-height: 16px; color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.home-daily-choice:disabled { cursor: default; }
.home-daily-choice.is-winner { border-color: color-mix(in srgb, var(--good) 55%, transparent); background: color-mix(in srgb, var(--good) 8%, var(--surface)); }
.home-daily-choice.is-wrong { opacity: 0.72; }
.home-daily-choice.is-wrong.is-selected { opacity: 1; border-color: color-mix(in srgb, var(--bad) 55%, transparent); background: color-mix(in srgb, var(--bad) 7%, var(--surface)); }
.home-daily-result-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bad);
  color: #fff;
}
.is-winner .home-daily-result-mark { background: var(--good); }
.home-daily-result-mark svg { width: 11px; height: 11px; }

.home-daily-response { margin-top: auto; padding-top: 12px; }
.home-daily-feedback { color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.home-daily-summary { display: flex; align-items: center; gap: 8px; }
.home-daily-summary strong { color: var(--text); }
.home-daily-answer-icon { display: grid; place-items: center; flex: 0 0 18px; height: 18px; border-radius: 50%; color: #fff; }
.home-daily-feedback.is-correct .home-daily-answer-icon { background: var(--good); }
.home-daily-feedback.is-wrong .home-daily-answer-icon { background: var(--bad); }
.home-daily-answer-icon svg { width: 10px; height: 10px; }
.home-daily.is-results .home-daily-copy,
.home-daily.is-results .home-daily-response { display: none; }

.home-daily-results { display: grid; justify-items: center; gap: 6px; margin: auto 0; text-align: center; }
.home-daily-results-topic { color: var(--text-3); font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.home-daily-results h3 { margin: 0; font-size: 16px; font-weight: 650; }
.home-daily-results-score { display: flex; align-items: baseline; gap: 6px; color: var(--text-2); font-size: 13px; }
.home-daily-results-score strong { color: var(--text); font-size: 40px; font-weight: 750; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.home-daily-results-marks { display: flex; gap: 4px; }
.home-daily-results-marks span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; }
.home-daily-results-marks .is-correct { background: var(--good); }
.home-daily-results-marks .is-wrong { background: var(--bad); }
.home-daily-results-marks svg { width: 12px; height: 12px; }
.home-daily-results p { margin: 2px 0 6px; color: var(--text-2); font-size: 13px; }
.home-daily-results-actions { display: flex; gap: 8px; }


/* ── Map cards ────────────────────────────────────────────────────────────── */
.v2-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.v2-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.v2-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.v2-card-head { display: flex; align-items: center; gap: 11px; }
.v2-card-head strong { min-width: 0; font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; }
.v2-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border: 1px solid color-mix(in srgb, var(--tone, var(--blue)) 20%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--tone, var(--blue)) 9%, var(--surface));
  color: var(--tone, var(--blue));
}
.v2-card-icon svg { width: 17px; height: 17px; }
.v2-card-flag {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.v2-card-desc { color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.v2-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.v2-card > .v2-link { margin-top: auto; padding-top: 2px; }

.v2-compare {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.v2-compare-head { display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; }
.v2-compare-head strong { font-size: 13.5px; font-weight: 650; }
.v2-compare-pairs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: 1; }
.v2-compare-pairs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.v2-compare-pairs a:hover { background: var(--surface); border-color: var(--line-strong); }
.v2-compare-pairs img { width: 18px; height: 12px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.v2-compare-pairs i { margin: 0 2px; color: var(--text-3); font-style: normal; font-size: 11px; }

/* ── Recently added rows ──────────────────────────────────────────────────── */
.v2-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v2-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 12px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.2s;
}
.v2-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.v2-row-thumb {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 9px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 8px),
    linear-gradient(135deg, var(--g1), var(--g2));
}
.v2-row-copy { display: grid; flex: 1; min-width: 0; }
.v2-row-copy strong { overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.v2-row-copy small { color: var(--text-3); font-size: 11.5px; }
.v2-more { display: flex; justify-content: center; margin-top: 14px; }
.v2-more svg { transition: transform 0.2s var(--ease); }
.v2-more [aria-expanded="true"] svg { transform: rotate(180deg); }


/* ── Games ────────────────────────────────────────────────────────────────── */
.v2-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.v2-game {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.v2-game:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.v2-game-media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.v2-game-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.v2-game:hover .v2-game-media img { transform: scale(1.03); }
.v2-game-body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.v2-game-body strong { font-size: 14px; font-weight: 650; }
.v2-game-body > span:not(.v2-card-tags) { color: var(--text-2); font-size: 12.5px; line-height: 1.45; }

/* ── Closing ──────────────────────────────────────────────────────────────── */
.v2-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(90deg, var(--surface) 35%, transparent),
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 16px 16px,
    var(--surface);
}
.v2-closing-title { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.v2-closing p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.v2-closing-actions { display: flex; flex-wrap: wrap; gap: 8px; }


/* ══ Country tour (js/v2/tour.js + js/v2/float.js) ════════════════════════ */

.v2-tour {
  --dock: 0px;              /* space taken by the mobile bottom bar */
  --world: 0;
  position: relative;
  height: calc(var(--tour-steps, 10) * 100svh);
  margin-top: calc(-1 * var(--nav-h));
}

.v2-tour-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

/* Sky + horizon */
.v2-tour-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(160% 100% at 50% 178%, var(--surface) 46%, color-mix(in srgb, var(--blue) 32%, var(--line-strong)) 46.1%, color-mix(in srgb, var(--cyan) 14%, transparent) 46.8%, transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 11%, var(--canvas)) 0%, var(--canvas) 72%);
}









/* Map layers */
.v2-tour-svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.v2-tour-world-svg, .v2-tour-route-svg { opacity: 0; will-change: opacity; }
#tourSvg { transition: opacity 0.6s ease; }
.v2-tour-stage:not(.is-ready) #tourSvg { opacity: 0; }
.v2-tour-shape,
.v2-tour-extras { fill: url(#tourFill); stroke: var(--surface); stroke-width: 2; stroke-linejoin: round; }
.v2-tour-shape { cursor: pointer; fill-rule: evenodd; pointer-events: visiblePainted; }
.v2-tour-extras { stroke-width: 1.4; }
.v2-tour-shadow { fill: color-mix(in srgb, var(--text) 10%, transparent); transform: translate(10px, 14px); }
.v2-tour-world path { fill: color-mix(in srgb, var(--text) 9%, var(--surface)); stroke: var(--surface); stroke-width: 0.6; vector-effect: non-scaling-stroke; pointer-events: none; transition: fill 0.15s; }
.v2-tour-stage.is-world .v2-tour-world path.is-country { pointer-events: auto; cursor: pointer; }
.v2-tour-stage.is-world .v2-tour-world path.is-country:hover { fill: color-mix(in srgb, var(--blue) 55%, var(--surface)); }
.v2-tour-stage.is-world .v2-tour-shape { cursor: default; }

/* Capital pin */
.v2-tour-pin { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; }
.v2-tour-pin i {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--text) 40%, transparent);
  animation: v2-ping 2.2s ease-out infinite;
}
.v2-tour-pin span {
  position: absolute;
  left: 12px;
  top: -13px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
@keyframes v2-ping { 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.v2-tour-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
}

/* Text layers share one left column on wide screens */
.v2-tour-intro,
.v2-tour-panel { position: absolute; z-index: 3; left: max(var(--col-pad), calc((100% - var(--col-max)) / 2)); }

.v2-tour-intro {
  top: calc(var(--nav-h) + 9svh);
  width: min(560px, 40vw);
  will-change: opacity, transform;
}
.v2-tour-intro > * { animation: v2-rise 0.7s var(--ease) both; }
.v2-tour-intro > :nth-child(2) { animation-delay: 60ms; }
.v2-tour-intro > :nth-child(3) { animation-delay: 120ms; }
.v2-tour-intro > :nth-child(4) { animation-delay: 180ms; }
.v2-tour-intro > :nth-child(5) { animation-delay: 240ms; }
.v2-tour-title {
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}
.v2-tour-title em {
  font-style: normal;
  color: var(--blue);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.v2-tour-title-sub {
  display: block;
  margin-top: 0.12em;
  color: var(--text-2);
  font-family: var(--serif);
  font-size: 0.62em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.v2-tour-intro .v2-hero-sub { margin: 18px 0 0; max-width: 470px; }
.v2-tour-intro .v2-search { margin: 26px 0 0; max-width: 520px; }
.v2-tour-intro .v2-stats { justify-content: flex-start; margin-top: 20px; }
.v2-tour-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}
.v2-tour-start b { color: var(--text); }
.v2-tour-start .hej-flag { width: 24px; height: 17px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.v2-tour-start svg { width: 16px; height: 16px; animation: v2-nudge 1.6s ease-in-out infinite; }


/* Country panel */
.v2-tour-panel {
  top: calc(var(--nav-h) + 14px);
  max-height: calc(100svh - var(--nav-h) - 14px - 96px - var(--dock));
  width: clamp(400px, 30vw, 520px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  will-change: opacity, transform;
}
.v2-tour-panel::-webkit-scrollbar { display: none; }


  
  
.v2-country-title { display: flex; align-items: center; gap: 14px; margin: 0; font-size: clamp(30px, 3vw, 42px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.05; }
.v2-country-title .hej-flag { width: 52px; height: 37px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), var(--shadow-sm); }
.v2-country-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 0; color: var(--text-3); font-size: 12.5px; }
.v2-country-meta b { color: var(--text); font-weight: 600; }









.v2-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v2-stat {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.v2-stat:hover { border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.v2-stat-label { color: var(--text-3); font-size: 10.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; }
.v2-stat strong { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.v2-stat strong em { color: var(--text-3); font-size: 13px; font-style: normal; font-weight: 600; }
.v2-stat small { overflow: hidden; color: var(--text-2); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.v2-stat-go { position: absolute; top: 10px; right: 10px; color: var(--blue); opacity: 0; transform: translateX(-4px); transition: opacity 0.15s, transform 0.2s var(--ease); }
.v2-stat-go svg { width: 14px; height: 14px; }
.v2-stat:hover .v2-stat-go { opacity: 1; transform: none; }
.v2-spark { display: block; width: 100%; height: 24px; margin: 3px 0 1px; }
.v2-spark-line { fill: none; stroke: var(--blue); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.v2-spark-fill { fill: color-mix(in srgb, var(--blue) 12%, transparent); }

.v2-panel-actions { display: grid; gap: 12px; margin-top: auto; }
.v2-panel-actions .v2-btn--primary { justify-self: start; height: 38px; padding: 0 16px; }
.v2-next-door { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.v2-next-door > span { margin-right: 2px; color: var(--text-3); font-size: 11px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; }
.v2-next-door .v2-chip { cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 500; }

/* World caption */
.v2-tour-world-caption {
  position: absolute;
  z-index: 3;
  top: calc(var(--nav-h) + 14px);
  left: 50%;
  width: min(560px, calc(100% - 32px));
  text-align: center;
  transform: translateX(-50%);
}
.v2-tour-world-caption h2 { margin: 4px 0 2px; font-size: clamp(30px, 3.4vw, 46px); font-style: italic; font-weight: 400; line-height: 1.05; }
.v2-tour-world-caption p { margin: 0 0 10px; color: var(--text-2); font-size: 14px; }

/* Rail */
.v2-tour-rail {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(18px + var(--dock));
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
}
.v2-tour-rail > button {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.v2-tour-rail > button:disabled { opacity: 0.35; cursor: default; }
.v2-tour-rail > button svg { width: 16px; height: 16px; }
.v2-rail-dots { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.v2-rail-dot {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s, transform 0.2s var(--ease);
}
.v2-rail-dot:hover { opacity: 1; }
.v2-rail-dot .hej-flag { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.v2-rail-dot svg { width: 17px; height: 17px; }
.v2-rail-dot.is-active { opacity: 1; border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); }
.v2-jump { position: relative; margin-left: 4px; }
.v2-jump input {
  width: 190px;
  height: 34px;
  padding: 0 10px 0 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  outline: none;
}
.v2-jump input:focus { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); background: var(--surface); }
.v2-jump > svg { position: absolute; left: 10px; top: 10px; width: 14px; height: 14px; color: var(--text-3); pointer-events: none; }
.v2-jump-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 230px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.v2-jump-list button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.v2-jump-list button:hover { background: var(--surface-2); }

.v2-tour-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(22px + var(--dock));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  transform: translateX(-50%);
}
.v2-tour-hint svg { width: 15px; height: 15px; animation: v2-nudge 1.6s ease-in-out infinite; }

/* ── Daily challenge + games ─────────────────────────────────────────────── */
.v2-play { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; }
.v2-play .v2-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Wide column: games sit in one row so they don't tower over the daily card. */
@media (min-width: 1200px) {
  .v2-play { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); }
  .v2-play .v2-games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .v2-cards, .v2-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-play { grid-template-columns: 1fr; }
  .v2-compare { flex-direction: column; align-items: stretch; }
  .v2-compare-head { flex-direction: row; justify-content: space-between; }
  .v2-compare-pairs { justify-content: flex-start; }
  .v2-closing { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 899px) {
  .v2-floaters { --fs: 0.72; }
  .v2-floater--wide { display: none; }
  .v2-tour-intro { left: var(--col-pad); right: var(--col-pad); width: auto; top: calc(var(--nav-h) + 22px); text-align: center; }
  .v2-tour-intro .v2-hero-sub,
  .v2-tour-intro .v2-search { margin-left: auto; margin-right: auto; }
  .v2-tour-intro .v2-stats { justify-content: center; }
  .v2-tour-title { font-size: clamp(32px, 8vw, 48px); }
  .v2-tour-panel {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: calc(70px + var(--dock));
    width: auto;
    height: min(56svh, 470px);
    padding: 16px;
    gap: 11px;
    border-radius: 18px;
  }
  .v2-country-title { font-size: 26px; gap: 10px; }
  .v2-country-title .hej-flag { width: 38px; height: 27px; }
  .v2-greet { padding: 10px 12px; }
  .v2-greet-word { font-size: 44px; }
  .v2-stats-grid { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .v2-stat { flex: 0 0 150px; scroll-snap-align: start; }
  .v2-tour-rail { bottom: calc(12px + var(--dock)); }
  .v2-jump { display: none; }
}
@media (max-width: 640px) {
  .v2-tour { --dock: 72px; }
  .v2-tour-intro .v2-stats { display: none; }
  .v2-tour-hint { bottom: calc(14px + var(--dock)); }
  .v2-sec-head { align-items: flex-start; }
  .v2-sec-head > .v2-pill { display: none; }
  .v2-cards, .v2-rows { grid-template-columns: 1fr; }
  .v2-panel { min-height: 0; }
  .v2-search-kbd { display: none; }
}
@media (max-width: 560px) {
  .v2-games, .v2-play .v2-games { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-floater-bob, .v2-tour-pin i { animation: none; }
}




/* Opening view: flight route across the tour + beacon on the first stop */
.v2-tour-route { pointer-events: none; }
.v2-route-line {
  fill: none;
  stroke: color-mix(in srgb, var(--text) 55%, transparent);
  stroke-width: 1.6;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
  animation: v2-route 1.2s linear infinite;
}
.v2-route-stop { fill: var(--surface); stroke: var(--text); stroke-width: 2; }
.v2-route-stop.is-first { fill: var(--blue); stroke: var(--surface); stroke-width: 2.5; }
@keyframes v2-route { to { stroke-dashoffset: -16; } }

.v2-tour-beacon { position: absolute; left: 0; top: 0; z-index: 4; width: 0; height: 0; pointer-events: none; }
.v2-beacon-ring {
  position: absolute;
  left: -22px;
  top: -22px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  animation: v2-beacon 2s ease-out infinite;
}
.v2-beacon-ring--late { animation-delay: 1s; }
@keyframes v2-beacon { from { transform: scale(0.35); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.v2-beacon-label {
  position: absolute;
  left: 0;
  bottom: 30px;
  margin-left: var(--shift, 0px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  box-shadow: var(--shadow-md);
  color: var(--surface);
  font: inherit;
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transform: translateX(-50%);
  animation: v2-float-label 2.4s ease-in-out infinite;
}
.v2-beacon-label::after {
  content: '';
  position: absolute;
  left: calc(50% - var(--shift, 0px));
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: var(--text);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}
.v2-beacon-label b { font-weight: 700; }
.v2-beacon-label .hej-flag { width: 22px; height: 15px; border-radius: 3px; }
.v2-beacon-label svg { width: 14px; height: 14px; animation: v2-nudge 1.6s ease-in-out infinite; }
@keyframes v2-float-label { 50% { transform: translate(-50%, -4px); } }
@media (max-width: 899px) {
  .v2-beacon-label { font-size: 12px; bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-route-line, .v2-beacon-ring, .v2-beacon-label, .v2-beacon-label svg { animation: none; }
}

/* Quick way back from a country to the opening world view */
.v2-panel-back {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.v2-panel-back:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.v2-panel-back svg { width: 15px; height: 15px; }
.v2-tour-rail > .v2-rail-home { color: var(--blue); }
@media (max-width: 899px) {
  .v2-panel-back { top: 12px; right: 12px; }
  .v2-panel-back span { display: none; }
  .v2-panel-back { width: 30px; padding: 0; justify-content: center; }
}

/* The panel title continues into the country page's title (view transition). */
.v2.vt-on .v2-tour-panel .v2-country-title { view-transition-name: country-title; }

/* ══ Refinements: zoom, large screens, locator, scale, route list ═════════ */
.v2-tour-canvas { position: absolute; inset: 0; z-index: 1; transform-origin: 0 0; }
.v2-tour-canvas.is-animating { transition: transform 0.4s var(--ease); }
.v2-tour-stage.is-world { touch-action: pan-y; }
.v2-tour-stage.is-zoomed { touch-action: none; cursor: grab; }
.v2-tour-stage.is-panning { cursor: grabbing; }
.v2-route-line, .v2-route-stop { vector-effect: non-scaling-stroke; }

.v2-zoom {
  position: absolute;
  z-index: 4;
  /* Bottom-right corner of the stage: the map runs edge to edge on large
     screens, so a mid-height control would sit on the continents. */
  right: 24px;
  bottom: 28px;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: opacity 0.25s;
}
.v2-zoom button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.v2-zoom button + button { border-top: 1px solid var(--line); }
.v2-zoom button:hover:not(:disabled) { background: var(--surface-2); }
.v2-zoom button:disabled { color: var(--text-3); cursor: default; }
.v2-zoom svg { width: 16px; height: 16px; }

.v2-tour-scale {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.v2-tour-scale i {
  height: 7px;
  border: 2px solid var(--text-2);
  border-top: 0;
  transition: width 0.2s;
}

.v2-routelist {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stop;
}
.v2-routelist li { counter-increment: stop; }
.v2-routelist button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, transform 0.15s;
}
.v2-routelist button::before {
  content: counter(stop);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  font-size: 10px;
  font-weight: 700;
}
.v2-routelist button:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.v2-routelist .hej-flag { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }

/* "Where on Earth" card in the country panel */
.v2-where {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.v2-where-map { display: block; width: 100%; height: auto; border-radius: 8px; background: color-mix(in srgb, var(--blue) 7%, var(--surface-2)); }
.v2-where-map path { fill: color-mix(in srgb, var(--text) 12%, var(--surface)); stroke: none; }
.v2-where-map .v2-where-shape { fill: var(--blue); }
.v2-where-ring { fill: none; stroke: var(--blue); stroke-width: 2.5; vector-effect: non-scaling-stroke; animation: v2-where-pulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.v2-where-dot { fill: var(--text); stroke: var(--surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
@keyframes v2-where-pulse { 0% { transform: scale(0.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.v2-where-copy { display: grid; gap: 2px; min-width: 0; }
.v2-where-copy strong { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.v2-where-copy small { color: var(--text-2); font-size: 12px; line-height: 1.4; }
.v2-where-copy small b { color: var(--text); font-weight: 600; }

/* Desktop: the card hugs its content instead of stretching to the bottom. */
@media (min-width: 900px) {
  .v2-panel-actions { margin-top: 2px; }
  .v2-tour-intro { top: calc(var(--nav-h) + max(4svh, (100svh - var(--nav-h) - 560px) / 2)); }
}
/* Large displays: scale type and components up with the extra room. */
@media (min-width: 1600px) {
  .v2-tour-intro { width: min(640px, 36vw); }
  .v2-tour-title { font-size: clamp(62px, 3.9vw, 82px); }
  .v2-tour-intro .v2-hero-sub { max-width: 540px; font-size: 18px; }
  .v2-tour-intro .v2-search { max-width: 580px; }
  .v2-tour-panel { padding: 26px; gap: 16px; }
  .v2-country-title { font-size: 46px; }
  .v2-greet-word { font-size: 80px; }
  .v2-stat strong { font-size: 23px; }
  .v2-where { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); }
  .v2-tour-scale { font-size: 12.5px; }
}
@media (max-width: 899px) {
  .v2-tour-scale { display: none; }
  .v2-routelist { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 2px 12px 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
  .v2-routelist::-webkit-scrollbar { display: none; }
  .v2-routelist li { flex: 0 0 auto; }
  .v2-where { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); padding: 8px; }
  .v2-zoom { right: 10px; top: auto; bottom: calc(96px + var(--dock)); transform: none; }
  .v2-zoom button { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-where-ring { animation: none; }
}
.v2-where-map use { fill: color-mix(in srgb, var(--text) 16%, var(--surface)); }
/* Keep line weights constant while the map canvas is zoomed (CSS scale). */
.v2-tour-canvas .v2-route-line { stroke-width: calc(1.6px / var(--zoom, 1)); stroke-dasharray: calc(2px / var(--zoom, 1)) calc(6px / var(--zoom, 1)); }
.v2-tour-canvas .v2-route-stop { stroke-width: calc(2px / var(--zoom, 1)); r: calc(4px / var(--zoom, 1)); }
.v2-tour-canvas .v2-route-stop.is-first { stroke-width: calc(2.5px / var(--zoom, 1)); r: calc(5px / var(--zoom, 1)); }
.v2-tour-canvas .v2-tour-world path { stroke-width: calc(0.6px / var(--zoom, 1)); }
.v2-tour-canvas .v2-tour-shape { stroke-width: calc(2px / var(--zoom, 1)); }
/* The locator card needs vertical room; show it on tall desktop screens. */
@media (max-height: 979px), (max-width: 899px) {
  .v2-where { display: none; }
}
/* Touch screens zoom by pinching; only offer 'reset' once zoomed. */
@media (pointer: coarse) {
  .v2-zoom [data-zoom="in"], .v2-zoom [data-zoom="out"] { display: none; }
  .v2-tour-stage:not(.is-zoomed) .v2-zoom { display: none; }
}
.v2-zoom-hint-touch { display: none; }
@media (pointer: coarse) { .v2-zoom-hint-touch { display: inline; } .v2-zoom-hint-mouse { display: none; } }
.v2-tour-hint[data-mode="end"] { bottom: calc(86px + var(--dock)); }
.v2-tour-hint[data-mode="end"] svg { transform: rotate(180deg); animation: none; }
/* Narrow screens: the trip legend already says "Scroll to travel", so the
   start pill would only crowd the flags and buttons under the map. Zoom is by
   pinch / Ctrl + scroll there; the control only appears (as reset) once zoomed. */
@media (max-width: 899px) {
  .v2-tour-hint[data-mode="start"] { display: none; }
  .v2-zoom [data-zoom="in"], .v2-zoom [data-zoom="out"] { display: none; }
  .v2-tour-stage:not(.is-zoomed) .v2-zoom { display: none; }
}

/* ══ Today's trip: coloured countries, flag pins, itinerary ═══════════════ */
.v2-stops { position: absolute; inset: 0; pointer-events: none; will-change: opacity; }
.v2-stop {
  position: absolute;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2.5px solid var(--surface);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 3px 10px -2px rgba(16, 24, 40, 0.35);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(calc(1 / var(--zoom, 1)));
  transition: box-shadow 0.15s;
}
.v2-stop .hej-flag { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.v2-stop b {
  position: absolute;
  top: -7px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
}
.v2-stop:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 45%, transparent), 0 3px 10px -2px rgba(16, 24, 40, 0.35); }
.v2-stops.has-beacon .v2-stop.is-first { display: none; }
.v2-tour-world path.is-stop { fill: color-mix(in srgb, var(--stop) 42%, var(--surface)); }
.v2-tour-stage.is-world .v2-tour-world path.is-stop:hover { fill: color-mix(in srgb, var(--stop) 70%, var(--surface)); }

/* Itinerary under the opening map */
.v2-routelist { align-items: center; row-gap: 8px; column-gap: 4px; }
.v2-routelist button::before { content: none; }
.v2-routelist button { padding: 0 11px 0 7px; }
.v2-trip-head { display: grid; margin-right: 8px; line-height: 1.15; text-align: left; }
.v2-trip-head strong { color: var(--text); font-size: 13px; font-weight: 700; }
.v2-trip-head span { color: var(--text-3); font-size: 11px; }
.v2-trip-stop { display: flex; align-items: center; gap: 4px; }
.v2-trip-stop i { display: grid; color: var(--text-3); }
.v2-trip-stop i svg { width: 12px; height: 12px; }
.v2-trip-new { margin-left: 8px; }
.v2-routelist .v2-trip-new button { gap: 6px; padding: 0 12px; border-color: var(--text); background: var(--text); color: var(--surface); }
.v2-routelist .v2-trip-new button:hover { background: color-mix(in srgb, var(--text) 86%, var(--surface)); }
.v2-trip-new svg { width: 14px; height: 14px; }
@media (max-width: 899px) {
  .v2-stop { width: 24px; height: 24px; border-width: 2px; }
  .v2-stop b { display: none; }
  .v2-trip-head { margin-left: 4px; }
}
.v2-tour-canvas .v2-stops { z-index: 2; }


/* ── Opening world map: a colourful patchwork floating on the page ────────── */
.v2-tour-world path[data-c] { fill: color-mix(in srgb, var(--tone) var(--k, 30%), var(--surface)); }
.v2-tour-world path[data-c="eu"] { --tone: #2563eb; }
.v2-tour-world path[data-c="as"] { --tone: #e8553d; }
.v2-tour-world path[data-c="af"] { --tone: #e39a12; }
.v2-tour-world path[data-c="na"] { --tone: #7c3aed; }
.v2-tour-world path[data-c="sa"] { --tone: #16a34a; }
.v2-tour-world path[data-c="oc"] { --tone: #0891b2; }
.v2-tour-world path.is-stop { fill: var(--stop); }
.v2-tour-stage.is-world .v2-tour-world path.is-stop:hover { fill: color-mix(in srgb, var(--stop) 80%, var(--text)); }
.v2-tour-stage.is-world .v2-tour-world path.is-country:hover { fill: color-mix(in srgb, var(--tone, var(--blue)) 75%, var(--surface)); }
.v2-tour-world path.is-hello { fill: color-mix(in srgb, var(--tone) 72%, var(--surface)); }
:root.v2[data-theme="dark"] .v2-tour-world path[data-c] { fill: color-mix(in srgb, var(--tone) calc(var(--k, 30%) + 12%), var(--surface)); }

/* Greetings popping up around the opening map. */
.v2-hello-pop {
  position: absolute;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 12px 12px 12px 3px;
  background: var(--tone, var(--text));
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--tone, #000) 70%, transparent);
  color: #fff;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.1;
  white-space: nowrap;
  transform: translate(-6px, calc(-100% - 6px));
  transform-origin: 0 100%;
  pointer-events: none;
  animation: v2-hello-in 0.45s var(--ease) both;
}
.v2-hello-pop.is-out { animation: v2-hello-out 0.45s ease both; }
@keyframes v2-hello-in { from { opacity: 0; transform: translate(-6px, calc(-100% - 6px)) scale(0.4); } }
@keyframes v2-hello-out { to { opacity: 0; transform: translate(-6px, calc(-100% - 16px)) scale(0.9); } }

/* ── Opening view, simplified: a bigger map, one line of explanation under it ── */
.v2-tour-beacon { display: none !important; }
.v2-stops.has-beacon .v2-stop.is-first { display: flex; }
@media (min-width: 900px) { .v2-tour-intro { width: min(520px, 37vw); } }
@media (min-width: 1700px) { .v2-tour-intro { width: min(640px, 34vw); } }
.v2-routelist { align-items: center; flex-wrap: nowrap; gap: 14px; }
.v2-trip-head { display: grid; gap: 2px; margin: 0; }
.v2-trip-head strong { font-size: 14px; }
.v2-trip-head span { font-size: 12.5px; }
.v2-trip-flags { display: flex; align-items: center; }
.v2-routelist .v2-trip-flags button {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: -6px;
  padding: 0;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 50%;
  overflow: visible;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease);
}
.v2-routelist .v2-trip-flags button:first-child { margin-left: 0; }
.v2-routelist .v2-trip-flags button:hover { z-index: 1; transform: translateY(-3px) scale(1.1); }
.v2-trip-flags .hej-flag, .v2-trip-flags img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.v2-trip-flags b { position: absolute; right: -4px; bottom: -4px; display: grid; min-width: 15px; height: 15px; place-items: center; border-radius: 999px; background: var(--text); color: var(--surface); font-size: 9.5px; font-weight: 750; }
.v2-routelist .v2-trip-go button { gap: 6px; padding: 0 14px; border-color: var(--blue); background: var(--blue); color: #fff; }
.v2-trip-go svg { width: 14px; height: 14px; }
.v2-trip-new { margin-left: 0; }
.v2-routelist .v2-trip-new button { border-color: var(--line); background: var(--surface); color: var(--text); }
.v2-routelist .v2-trip-new button:hover { background: var(--surface-2); }
@media (max-width: 899px) {
  .v2-routelist { flex-wrap: wrap; justify-content: center; }
  .v2-trip-head { text-align: center; }
}

/* ── Hero type: one display face, sized to the intro column ───────────────── */
.v2-tour-intro { container-type: inline-size; }
.v2-tour-intro > .v2-tour-title { animation: none; }
.v2-tour-intro .v2-tour-title {
  display: grid;
  justify-items: start;
  gap: 0;
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-wrap: nowrap;
}
.v2-tt-brand {
  position: relative;
  display: block;
  width: fit-content;
  margin-left: -0.03em;
  padding-bottom: 0.3em; /* room for the route underneath */
  font-size: min(27cqi, 168px);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.035em;
  line-height: 0.9;
  white-space: nowrap;
}
.v2-tt-brand .brand-map { color: var(--blue); }
/* The logo's journey under the wordmark: start ring → dotted route → coral pin.
   The route draws in after the letters land, then the pin drops onto its end. */
.v2-tt-route { position: absolute; left: 0; bottom: 0.02em; width: 100%; height: 0.36em; overflow: visible; fill: none; stroke: var(--blue); stroke-linecap: round; clip-path: inset(0 0 0 0); animation: v2-route-in 0.9s var(--ease) 0.75s backwards; }
.v2-tt-route circle { stroke-width: 5; }
.v2-tt-route path { stroke-width: 5; stroke-dasharray: 1 13; }
.v2-tt-pin { position: absolute; right: -0.36em; bottom: 0.2em; width: 0.3em; height: 0.375em; overflow: visible; animation: v2-pin-drop 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) 1.5s backwards; }
.v2-tt-pin path { fill: #e8553d; }
.v2-tt-pin circle { fill: #fff; }
@keyframes v2-route-in { from { clip-path: inset(0 100% 0 0); } }
@keyframes v2-pin-drop { from { opacity: 0; transform: translateY(-0.5em) scale(0.6); } }
/* With JS (tour.js heroRoute): a paper plane flies the route, the dots appear
   behind it, and it turns into the pin; the route then follows the pointer. */
.v2-tt-brand.is-route-js .v2-tt-route { animation: none; clip-path: none; }
.v2-tt-route .v2-tt-ring { transform-box: fill-box; transform-origin: center; animation: v2-ring-pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) 0.45s backwards; }
.v2-tt-brand.is-route-js .v2-tt-pin { opacity: 0; animation: none; }
.v2-tt-brand.is-landed .v2-tt-pin { opacity: 1; transform-origin: 50% 100%; animation: v2-pin-drop 0.55s cubic-bezier(0.3, 1.4, 0.5, 1); }
.v2-tt-plane { position: absolute; left: 0; top: 0; z-index: 2; opacity: 0; pointer-events: none; transition: opacity 0.2s; will-change: transform; }
.v2-tt-plane svg { display: block; width: 100%; height: 100%; }
.v2-tt-brand.is-flying .v2-tt-plane { opacity: 1; }
.v2-tt-brand.is-landed .v2-tt-plane { opacity: 0; transition: opacity 0.3s; }
/* Hover the wordmark: the dots travel slowly from A (ring) to B (pin). */
.v2-tt-route .v2-tt-dots { stroke-dashoffset: 0; }
.v2-tour-title:hover .v2-tt-brand.is-landed .v2-tt-dots { animation: v2-dots-flow 1.1s linear infinite; }
@keyframes v2-dots-flow { to { stroke-dashoffset: var(--dot-step, -16px); } }
@keyframes v2-ring-pop { from { transform: scale(0); } }
/* Letters are split by tour.js so they can rise in one by one. */
.v2-tt-ch {
  display: inline-block;
  font-variation-settings: "opsz" 96;
  transform-origin: 50% 90%;
  animation: v2-ch-in 0.95s cubic-bezier(0.2, 0.85, 0.25, 1.12) backwards;
  animation-delay: calc(80ms + var(--i, 0) * 55ms);
}
@keyframes v2-ch-in {
  from { opacity: 0; filter: blur(10px); transform: translateY(0.42em) rotate(8deg); }
  55% { filter: blur(0); }
}
.v2-tt-line {
  display: block;
  margin-top: 1.6cqi;
  color: var(--text-2);
  font-size: min(4.45cqi, 27px);
  font-variation-settings: "opsz" 20;
  font-weight: 520;
  letter-spacing: -0.022em;
  line-height: 1.25;
  white-space: nowrap;
  animation: v2-rise 0.8s var(--ease) 0.42s backwards;
}
.v2-tour-intro .v2-hero-sub {
  max-width: 34ch;
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 450;
  letter-spacing: -0.012em;
  line-height: 1.55;
}
@media (max-width: 899px) {
  .v2-tour-intro .v2-tour-title { justify-items: center; }
  .v2-tt-brand { margin-left: 0; font-size: min(24cqi, 100px); }
  .v2-tt-line { margin-top: 10px; font-size: min(4.6cqi, 19px); }
  .v2-tour-intro .v2-hero-sub { max-width: 32ch; margin-left: auto; margin-right: auto; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-tt-ch, .v2-tt-line, .v2-tt-route, .v2-tt-pin { animation: none; }
  .v2-tt-ch { transform: none; font-variation-settings: "opsz" 96; }
}

/* A country's flag pops up on a little pole, planted in the middle of the shape */
.v2-flag-pops { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity 0.2s; }
.v2-flag-pops.is-moving { opacity: 0; }
.v2-flag-plant { position: absolute; width: 0; height: 0; }
.v2-flag-plant.is-out { opacity: 0; transition: opacity 0.3s; }
.v2-flag-pole {
  position: absolute;
  left: -1.5px;
  bottom: 0;
  width: 3px;
  height: 78px;
  border-radius: 2px;
  background: linear-gradient(180deg, #475467, #1f2937);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.4);
  transform-origin: 50% 100%;
  animation: v2-pole-up 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.v2-flag-pole::before { content: ''; position: absolute; left: -2.5px; top: -6px; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.v2-flag-pole::after { content: ''; position: absolute; left: -7px; bottom: -3px; width: 17px; height: 6px; border-radius: 50%; background: rgba(16, 24, 40, 0.22); }
.v2-flag-cloth {
  position: absolute;
  left: 1.5px;
  bottom: 30px;
  width: 64px;
  height: 44px;
  overflow: hidden;
  border-radius: 2px 6px 6px 2px;
  box-shadow: 0 10px 18px -8px rgba(16, 24, 40, 0.45);
  transform-origin: 0 50%;
  animation: v2-flag-unfurl 0.6s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both, v2-flag-wave 2.6s 0.9s ease-in-out infinite;
}
.v2-flag-cloth img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v2-flag-cloth::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.22) 30%, rgba(0,0,0,0.08) 60%, rgba(255,255,255,0.18) 85%); }
@keyframes v2-pole-up { from { transform: scaleY(0); } }
@keyframes v2-flag-unfurl { from { transform: scaleX(0) skewY(8deg); opacity: 0; } }
@keyframes v2-flag-wave { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-3deg) scaleX(0.97); } }
@media (prefers-reduced-motion: reduce) { .v2-flag-pole, .v2-flag-cloth { animation: none; } }
@media (max-width: 899px) { .v2-flag-pole { height: 58px; } .v2-flag-cloth { width: 48px; height: 33px; bottom: 22px; } }

@media (max-width: 640px) {
  /* Keep the headline clear of the greeting bubble on phones. */
  .v2-tour .v2-floaters--top { display: none; }
}

.v2-routelist button { white-space: nowrap; }
@media (max-width: 1280px) { .v2-routelist { flex-wrap: wrap; row-gap: 10px; } }

/* The floating hello bubble belongs to the country on stage: hidden on the
   opening world view (where it looked like Russia was talking). */
.v2-tour-stage .v2-floaters--top { transition: opacity 0.35s var(--ease), visibility 0.35s; }
.v2-tour-stage:not(.is-country) .v2-floaters--top { opacity: 0; visibility: hidden; }

/* Compare bubbles beside the country on stage (wide screens); narrower screens
   get a single "Compare with …" button in the panel instead. */
#tourCompare { position: absolute; z-index: 4; right: max(var(--col-pad), calc((100% - var(--col-max)) / 2)); top: 50%; width: 236px; transform: translateY(-50%); opacity: 0; visibility: hidden; }
#tourCompare.is-on .v2-cmp-bubble { animation: v2-cmp-pop 0.45s var(--ease) backwards, v2-cmp-float 7s ease-in-out 0.5s infinite; animation-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * -2.3s); }
.v2-panel-compare { display: none; }
.v2-panel-compare svg { width: 16px; height: 16px; }
@media (max-width: 1179px) {
  #tourCompare { display: none; }
  .v2-panel-compare { display: inline-flex; gap: 6px; }
}
/* Phones: the country card keeps the essentials — name, hello, population,
   area and the two actions — so it doesn't cover the map. */
@media (max-width: 899px) {
  .v2-tour-panel { height: min(50svh, 372px); }
  .v2-tour-panel .v2-country-meta { display: none; }
  .v2-tour-panel .v2-stats-grid .v2-stat:not(:nth-child(1)):not(:nth-child(4)) { display: none; }
  .v2-tour-panel .v2-stats-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; }
  .v2-tour-panel .v2-stats-grid .v2-stat { flex: none; }
  .v2-tour-panel .v2-stat .v2-spark { display: none; }
  .v2-tour-panel .v2-next-door { display: none; }
  .v2-tour-panel .v2-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
  .v2-tour-panel .v2-panel-actions .v2-btn { flex: 1 1 auto; justify-content: center; }
}

/* The panel's main actions stay pinned to its bottom edge, so "Open …" is
   always reachable even when the card has to scroll (shorter screens). */
.v2-tour-panel .v2-panel-actions {
  position: sticky;
  bottom: -22px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: auto -22px -22px;
  padding: 12px 22px 22px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--surface) 0%, transparent), var(--surface) 14px);
}
/* Shorter desktop screens (1080p with browser chrome, laptops): fewer tiles. */
@media (min-width: 900px) and (max-height: 900px) {
  .v2-tour-panel .v2-stats-grid .v2-stat:nth-child(n+5) { display: none; }
  .v2-tour-panel .v2-greet-word { font-size: 52px; }
}
@media (max-width: 899px) {
  .v2-tour-panel .v2-panel-actions { bottom: -16px; margin: auto -16px -16px; padding: 10px 16px 16px; }
}
