/* Globe hero (index_1.html) — uses the accent variables from style.css */
.hero-globe { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 110px 0; }
.hero-globe .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 24px; }
.hero-globe h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }

.globe-wrap { position: relative; width: 100%; max-width: 600px; justify-self: end; aspect-ratio: 1; touch-action: none; user-select: none; cursor: grab; }
.globe-wrap.grabbing { cursor: grabbing; }
.globe-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; }

.g-grat { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: .6; }
.g-land { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .16); stroke-width: .5; }
.g-tr { fill: var(--accent); stroke: #fff; stroke-width: .8; filter: url(#gGlow); }
.g-on { fill: var(--hv-fill); stroke: var(--hv-stroke); stroke-width: .6; cursor: pointer; transition: fill .25s; }
.g-on.on { fill: var(--map-hover); }
.g-shade { pointer-events: none; }

.g-arc { fill: none; stroke: rgba(var(--accent-rgb), .55); stroke-width: 1.1; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: gDraw 1.4s cubic-bezier(.4, 0, .2, 1) forwards; animation-delay: var(--d); pointer-events: none; transition: stroke .25s, stroke-width .25s, opacity .25s; }
.g-flow { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: .035 .965; opacity: 0;
  animation: gFlow 3.2s linear infinite, gShow .4s forwards; animation-delay: var(--f), calc(var(--f) + 2.2s); pointer-events: none; }
@keyframes gDraw { to { stroke-dashoffset: 0; } }
@keyframes gFlow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes gShow { to { opacity: .9; } }
.globe-wrap.drawn .g-arc { animation: none; stroke-dashoffset: 0; }
.globe-wrap.focus .g-arc:not(.on), .globe-wrap.focus .g-flow:not(.on) { opacity: .15; }
.g-arc.on { stroke: var(--accent); stroke-width: 2.4; opacity: 1; }

.g-pin { cursor: pointer; outline: none; transition: opacity .3s; }
.g-pin.back { opacity: 0; pointer-events: none; }
.g-dot { fill: var(--dot-fill); stroke: var(--dot-stroke); stroke-width: 1.4; transition: r .2s; }
.g-hit { fill: transparent; }
.g-pulse { fill: none; stroke: var(--accent); stroke-width: 1.2; animation: gPulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.g-pin.on .g-dot, .g-pin:focus-visible .g-dot { r: 7; }
@keyframes gPulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.g-ist { pointer-events: none; transition: opacity .3s; }
.g-ist.back { opacity: .25; }
.g-ist-dot { fill: #fff; stroke: var(--red-600); stroke-width: 3; }
.g-ist-pulse { fill: rgba(255, 255, 255, .3); animation: gPulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.g-ist text { font: 700 13px var(--ff-head); fill: #fff; paint-order: stroke; stroke: rgba(40, 2, 6, .85); stroke-width: 4px; letter-spacing: .04em; }

.globe-tip {
  position: absolute; pointer-events: none; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; background: rgba(255, 250, 244, .97); color: var(--red-900); border-radius: 12px;
  font-size: 14px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); white-space: nowrap;
  transform: translate(-50%, calc(-100% - 16px)); opacity: 0; transition: opacity .15s;
}
.globe-tip.show { opacity: 1; }
.globe-tip img { width: 32px; height: 24px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.globe-tip small { display: block; font-size: 11.5px; color: #8a4b4f; }

.globe-ui { position: absolute; right: 2%; bottom: 6%; display: flex; flex-direction: column; gap: 6px; z-index: 4; }
.globe-ui button {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: rgba(40, 2, 6, .6);
  backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 18px; line-height: 1; transition: background .2s;
}
.globe-ui button:hover { background: rgba(255, 255, 255, .16); }
.globe-hint {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-2); background: rgba(40, 2, 6, .55); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(8px); white-space: nowrap; pointer-events: none;
}
.globe-hint svg { width: 16px; height: 16px; color: var(--accent); }
.globe-badge {
  position: absolute; left: -4%; top: 4%; padding: 14px 18px; border-radius: 16px; background: rgba(40, 2, 6, .55);
  border: 1px solid var(--line); backdrop-filter: blur(10px); pointer-events: none;
}
.globe-badge b { display: block; font: 700 2rem/1 var(--ff-head); color: var(--accent); }
.globe-badge span { font-size: 12.5px; color: var(--ink-2); }

/* Flag strip */
.flag-strip {
  margin-top: clamp(28px, 5vw, 56px); padding-block: 14px; border-block: 1px solid var(--line); background: rgba(30, 1, 4, .35);
  backdrop-filter: blur(8px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.flag-strip .track { display: flex; gap: 10px; width: max-content; animation: marquee 70s linear infinite; }
.flag-strip:hover .track, .flag-strip:focus-within .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }
.flag-strip button {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s, transform .2s, border-color .2s;
}
.flag-strip button img { width: 30px; height: 22px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.flag-strip button:hover, .flag-strip button.on { background: rgba(255, 255, 255, .16); border-color: rgba(var(--accent-rgb), .6); transform: translateY(-2px); }

@media (max-width: 900px) {
  .hero-globe .hero-inner { grid-template-columns: 1fr; }
  .globe-wrap { max-width: 460px; order: -1; }
  .globe-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) { .flag-strip .track { animation: none; overflow-x: auto; } }

/* Fixed 1.5625× globe: shift right so it clears the title; hint sits under the globe */
.hero-globe .globe-wrap { margin-right: -7%; }
.hero-globe .globe-hint { bottom: -13%; }
@media (max-width: 900px) {
  .hero-globe .globe-wrap { margin: 12% auto; max-width: 340px; }
  .hero-globe .globe-hint { bottom: -18%; }
}
/* real-globe lighting layers: off unless the page opts in (.globe-real) */
.g-light, .g-rim { display: none; pointer-events: none; }

/* ---------- Mobile hero: globe + flag grid on one screen ---------- */
.flag-strip { min-width: 0; max-width: 100%; } /* the marquee track must never widen the page */
.hero-globe { overflow-x: clip; }
.flag-cap { display: none; }
@media (max-width: 900px) {
  .hero-globe { min-height: 0; padding-block: 76px 8px; }
  .hero-globe .hero-inner { display: contents; }            /* globe, flags and text become siblings → reorder */
  .hero-globe .globe-wrap { order: 1; width: min(262px, calc((100vw - 32px) / 1.37)); max-width: none; margin: 30px auto 34px; }
  .hero-globe .flag-strip { order: 2; }
  .hero-globe .hero-inner > div:first-child { order: 3; padding-inline: 16px; margin-top: 30px; }
  .hero-globe h1 { font-size: clamp(2rem, 9vw, 2.6rem); margin: 14px 0 16px; }
  .hero-globe .lead { font-size: 1rem; }
  .hero-globe .hero-meta { gap: 8px; margin: 22px 0 8px; }
  .hero-globe .hero-meta .chip { font-size: 13px; padding: 8px 12px; }

  /* flag strip → static grid of all 24 flags (no auto-scroll) */
  .flag-strip { margin: 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 18px;
    -webkit-mask-image: none; mask-image: none; overflow: visible; background: rgba(30, 1, 4, .45); }
  .flag-cap { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 2px 10px; }
  .flag-strip .track { animation: none; width: auto; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
  .flag-strip button[aria-hidden="true"] { display: none; }
  .flag-strip button { padding: 0; border: 0; border-radius: 6px; background: none; aspect-ratio: 4 / 3; justify-content: center; }
  .flag-strip button span { display: none; }
  .flag-strip button img { width: 100%; height: 100%; border-radius: 5px; }
  .flag-strip button:hover, .flag-strip button.on { transform: none; background: none; box-shadow: 0 0 0 2px #fff; }
}
