/* ==========================================================================
   HouseDaddyAI — interactive hero globe
   Markup lives in index.html (#hero-globe / #hg), behaviour in globe-hero.js
   ========================================================================== */

.hero-globe-full {
  --hg-gold: #ffb800;
  --hg-gold-2: #f0b429;
  --hg-green: #00d68f;
  --hg-green-2: #00e89b;
  --hg-ink: #030509;
  --hg-glass: rgba(9, 13, 24, 0.62);
  --hg-glass-strong: rgba(9, 13, 24, 0.86);
  --hg-line: rgba(255, 255, 255, 0.09);
  --hg-line-strong: rgba(255, 255, 255, 0.16);
  --hg-text: #eef0f5;
  --hg-muted: #97a0b3;
  --hg-faint: #5d667a;
  --hg-radius: 16px;
  --hg-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--hg-ink);
  padding: 100px 32px 40px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Deep-space backdrop: starfield canvas + soft aurora glows behind the globe */
.hg-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.hg-aurora {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 62%, rgba(40, 88, 255, 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 35% 30% at 50% 66%, rgba(255, 184, 0, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(0, 214, 143, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(120, 90, 255, 0.06) 0%, transparent 70%);
}
.hero-globe-full::after {
  /* fade into the next section */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--color-bg, #0a0a0f));
}

/* Row 1: badges */
.hero-top-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  z-index: 5;
  flex-wrap: wrap;
}
.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ffb800 0%, #ff8a00 100%);
  color: #0b0b0b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  border: 0;
  box-shadow: 0 6px 20px rgba(255, 138, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.globe-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 208, 143, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(0, 208, 143, 0.6);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #00e89b;
  box-shadow: 0 6px 20px rgba(0, 208, 143, 0.25), 0 0 0 1px rgba(0, 208, 143, 0.15) inset;
}
.globe-live-badge #hero-live-badge-text {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00d68f;
  box-shadow: 0 0 0 0 rgba(0, 208, 143, 0.7);
  animation: heroLivePulse 1.6s infinite;
  flex: none;
}
@keyframes heroLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 208, 143, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 208, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 208, 143, 0); }
}

/* Row 2: title */
.hero-title-block {
  position: relative;
  text-align: center;
  max-width: 900px;
  z-index: 5;
}
.hero-title-block h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 16px;
  /* The globe hero is always dark, independent of the site theme. */
  color: #eef0f5;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero-title-block .hero-subtitle {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: #d5dae5;
  max-width: 720px;
  margin: 0 auto 8px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
  line-height: 1.55;
}

.hero-globe-full .btn-secondary {
  color: #eef0f5;
  border-color: rgba(255, 255, 255, 0.24);
}
.hero-globe-full .btn-secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Row 4: CTAs */
.hero-cta-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  z-index: 5;
}

/* Legacy overlay elements still referenced elsewhere */
.hero-globe-scrim,
.hero-copy-card,
.hero-stats-card,
.hero-stat-item,
.hero-stat-divider { display: none !important; }

/* ==========================================================================
   Globe module
   ========================================================================== */
.hg {
  position: relative;
  width: 100%;
  max-width: 1440px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin: 0 0 12px;
  z-index: 2;
  color: var(--hg-text);
  font-family: var(--font-body, 'Satoshi', 'Inter', system-ui, sans-serif);
}
.hg-stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 600px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.hg-viz {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1.4s var(--hg-ease), transform 2.2s var(--hg-ease);
  touch-action: pan-y;
}
.hg-viz:active { cursor: grabbing; }
.hg-viz .cesium-widget,
.hg-viz .cesium-widget canvas { width: 100%; height: 100%; }
.hg-viz canvas { outline: none; touch-action: pan-y !important; }
.hg-viz .cesium-viewer-bottom {
  right: 8px;
  bottom: 4px;
  left: auto;
  max-width: calc(100% - 16px);
}
.hg-viz .cesium-widget-credits {
  display: block !important;
  visibility: visible !important;
  font-size: 10px;
  text-shadow: 0 1px 3px #000;
}
.hg-viz .cesium-widget-credits a { color: #fff; }
.hg.is-ready .hg-viz { opacity: 1; transform: none; }

.hg-provider {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 54px;
  transform: translateX(-50%);
  padding: 5px 9px;
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 999px;
  background: rgba(3, 5, 9, 0.66);
  color: #ffc83d;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hg-provider[data-state="google"] { color: #00e89b; border-color: rgba(0, 232, 155, 0.38); }
.hg-provider[data-state="error"] { color: #ff997d; }

.hg-interact {
  display: none;
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(255, 203, 65, 0.6);
  padding: 12px 18px;
  color: #0b0b0b !important;
  background: linear-gradient(135deg, #ffdc72, #ffb800);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

/* Touch devices of every size get the explore gate, so the map never ends up
   frozen with no visible way to unlock it. */
.hg.is-touch .hg-interact { display: block; }
.hg.is-touch:not(.is-interacting) .hg-viz { pointer-events: none; }
.hg.is-touch.is-interacting .hg-viz canvas { touch-action: none !important; }
.hg.is-touch.is-interacting .hg-interact {
  top: auto;
  bottom: 16px;
  padding: 8px 12px;
  color: #fff !important;
  background: rgba(4, 8, 16, 0.82);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Loader / fallback orb */
.hg-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 0.8s var(--hg-ease), visibility 0.8s;
}
.hg.is-ready .hg-loader { opacity: 0; visibility: hidden; }
.hg-orb {
  position: relative;
  width: min(62vmin, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(80, 120, 255, 0.28), transparent 55%),
    radial-gradient(circle at 50% 50%, #0a1428 0%, #050a16 70%);
  box-shadow:
    0 0 0 1px rgba(120, 150, 255, 0.12) inset,
    0 0 80px 10px rgba(50, 100, 255, 0.18),
    0 0 160px 40px rgba(50, 100, 255, 0.08);
  animation: hgOrbBreath 2.4s ease-in-out infinite;
}
.hg-orb::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(255, 184, 0, 0.8);
  animation: hgSpin 1.2s linear infinite;
}
.hg-loader-label {
  position: absolute;
  left: 50%;
  top: calc(50% + min(31vmin, 230px) + 22px);
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hg-muted);
  white-space: nowrap;
}
.hg.is-fallback .hg-orb { animation: none; }
.hg.is-fallback .hg-orb::after,
.hg.is-fallback .hg-loader-label { display: none; }
.hg.is-fallback .hg-loader { opacity: 1; visibility: visible; }
.hg.is-fallback .hg-toolbar,
.hg.is-fallback .hg-controls,
.hg.is-fallback .hg-legend,
.hg.is-fallback .hg-hint { display: none; }
@keyframes hgSpin { to { transform: rotate(360deg); } }
@keyframes hgOrbBreath { 50% { box-shadow: 0 0 0 1px rgba(120,150,255,0.18) inset, 0 0 100px 16px rgba(50,100,255,0.26), 0 0 180px 50px rgba(50,100,255,0.1); } }

/* ---------- shared glass surface ---------- */
.hg-glass {
  background: var(--hg-glass);
  border: 1px solid var(--hg-line);
  border-radius: var(--hg-radius);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.hg button { font-family: inherit; color: inherit; line-height: 1.2; }
.hg :focus-visible { outline: 2px solid var(--hg-gold); outline-offset: 2px; }

/* ---------- toolbar: mode switch ---------- */
.hg-toolbar {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
}
.hg-seg {
  position: relative;
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--hg-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.3s var(--hg-ease), box-shadow 0.3s;
}
.hg-seg:hover { color: var(--hg-text); }
.hg-seg[aria-pressed="true"] {
  color: #0b0b0b;
  background: linear-gradient(135deg, #ffcf4a 0%, #ffb800 55%, #ff9a00 100%);
  box-shadow: 0 4px 16px rgba(255, 170, 0, 0.35);
}

/* ---------- leaderboard (desktop: left rail, mobile: chip scroller) ---------- */
.hg-board {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 270px;
  padding: 18px 16px 14px;
}
.hg-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hg-green-2);
}
.hg-board-total {
  margin: 8px 0 2px;
  font-family: var(--font-display, 'Clash Display', system-ui, sans-serif);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, #ffe3a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hg-board-sub { font-size: 0.78rem; color: var(--hg-muted); margin-bottom: 14px; }
.hg-board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hg-row {
  width: 100%;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 5px;
  padding: 8px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.hg-row:hover, .hg-row.is-active { background: rgba(255, 255, 255, 0.06); }
.hg-row.is-active { box-shadow: inset 2px 0 0 var(--hg-gold); }
.hg-row-rank { font-size: 0.7rem; font-weight: 700; color: var(--hg-faint); font-variant-numeric: tabular-nums; }
.hg-row-name { font-size: 0.86rem; font-weight: 700; color: var(--hg-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-row-count { font-size: 0.82rem; font-weight: 800; color: var(--hg-gold-2); font-variant-numeric: tabular-nums; }
.hg-row-bar {
  grid-column: 2 / 4;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.hg-row-bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #b87a0c, #ffcf4a);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--hg-ease);
}
.hg.is-live .hg-row-bar i { transform: scaleX(1); }
.hg-jump {
  margin-top: 12px;
  position: relative;
}
.hg-jump select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hg-line);
  border-radius: 10px;
  color: var(--hg-text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 32px 9px 12px;
  cursor: pointer;
}
.hg-jump select option { background: #0b0f1a; color: #eef0f5; }
.hg-jump::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px; height: 7px;
  border-right: 2px solid var(--hg-muted);
  border-bottom: 2px solid var(--hg-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---------- state detail panel ---------- */
.hg-panel {
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 7;
  width: 340px;
  max-height: calc(100% - 8px);
  overflow: auto;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translate(24px, -50%);
  transition: opacity 0.45s var(--hg-ease), transform 0.6s var(--hg-ease), visibility 0.45s;
  background: var(--hg-glass-strong);
  scrollbar-width: thin;
}
.hg-panel.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.hg-panel-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hg-line);
  background: rgba(255, 255, 255, 0.04);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.hg-panel-close:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--hg-line-strong); }
.hg-panel-head { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.hg-code {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display, 'Clash Display', system-ui, sans-serif);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #0b0b0b;
  background: linear-gradient(135deg, #ffe08a, #ffb800 60%, #ff9a00);
  box-shadow: 0 8px 22px rgba(255, 170, 0, 0.35);
}
.hg-panel h3 {
  margin: 0;
  font-family: var(--font-display, 'Clash Display', system-ui, sans-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  outline: none;
}
.hg-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc, var(--hg-gold));
}
.hg-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.hg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 10px;
}
.hg-stat {
  padding: 8px 10px 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.hg-stat b {
  display: block;
  font-family: var(--font-display, 'Clash Display', system-ui, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hg-stat span { display: block; white-space: nowrap; font-size: 0.64rem; font-weight: 600; color: var(--hg-muted); letter-spacing: 0.02em; }
.hg-share { font-size: 0.74rem; color: var(--hg-muted); }
.hg-share-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); margin: 6px 0 10px; overflow: hidden; }
.hg-share-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00d68f, #ffcf4a); width: 0; transition: width 0.9s var(--hg-ease) 0.15s; }
.hg-facts { margin: 0 0 12px; display: grid; gap: 0; }
.hg-fact {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--hg-line);
  font-size: 0.76rem;
  line-height: 1.38;
}
.hg-fact dt { color: var(--hg-muted); font-weight: 600; }
.hg-fact dd { margin: 0; color: var(--hg-text); font-weight: 600; }
.hg-skel {
  display: block;
  height: 0.8em;
  margin-top: 0.25em;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  background-size: 200% 100%;
  animation: hgShimmer 1.2s linear infinite;
}
@keyframes hgShimmer { to { background-position: -200% 0; } }
.hg-counties-label { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hg-faint); margin-bottom: 7px; }
.hg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hg-chip {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid rgba(0, 214, 143, 0.28);
  color: var(--hg-green-2);
}
.hg-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #ffcf4a 0%, #ffb800 45%, #ff8a00 100%);
  color: #0b0b0b !important;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px -6px rgba(255, 138, 0, 0.55);
  transition: transform 0.2s var(--hg-ease), box-shadow 0.2s;
}
.hg-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -6px rgba(255, 138, 0, 0.7); }
.hg-cta svg { transition: transform 0.2s var(--hg-ease); }
.hg-cta:hover svg { transform: translateX(3px); }
.hg-panel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hg-faint);
  font-variant-numeric: tabular-nums;
}
.hg-panel-nav button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--hg-muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.hg-panel-nav button:hover { color: var(--hg-text); background: rgba(255, 255, 255, 0.05); }
.hg-week { color: var(--hg-green-2); font-weight: 800; }
.hg-empty {
  margin: 14px 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--hg-muted);
}
.hg-next { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.hg-next li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
}
.hg-next time { font-weight: 800; color: var(--hg-gold-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hg-next span { font-weight: 700; color: var(--hg-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-next em { font-style: normal; font-size: 0.66rem; font-weight: 700; color: var(--hg-green-2); white-space: nowrap; }
.hg-county-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--hg-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
}
.hg-county-detail span { color: var(--hg-muted); }
.hg-county-detail strong { color: var(--hg-text); text-align: right; }
.hg-disclaimer { margin: 6px 0 0; font-size: 0.64rem; color: var(--hg-faint); line-height: 1.4; }

/* ---------- legend ---------- */
.hg-legend {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--hg-muted);
  white-space: nowrap;
}
.hg-ramp {
  width: 120px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #4a3308, #b87a0c 35%, #f0b429 70%, #ffe7a3);
}
.hg-legend-types { display: flex; gap: 4px; }
.hg-legend-none, .hg-legend-week { display: inline-flex; align-items: center; gap: 6px; }
.hg-legend-none i { width: 10px; height: 10px; border-radius: 3px; background: #2a3550; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.hg-legend-week { color: var(--hg-green-2); padding-left: 4px; }
.hg-legend-week i { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--hg-green-2); box-shadow: 0 0 8px var(--hg-green); }
.hg-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--hg-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.hg-type i { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 8px var(--tc); }
.hg-type:hover { color: var(--hg-text); background: rgba(255, 255, 255, 0.06); }
.hg-type[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.hg-legend-types.has-filter .hg-type[aria-pressed="false"] { opacity: 0.45; }

/* ---------- camera controls ---------- */
.hg-controls {
  position: absolute;
  right: 8px;
  bottom: 14px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  padding: 4px;
  gap: 2px;
  border-radius: 14px;
}
.hg-ctl {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--hg-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hg-ctl:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.hg-ctl svg { width: 17px; height: 17px; }
.hg-ctl .i-play { display: none; }
.hg-ctl[aria-pressed="false"] .i-play { display: block; }
.hg-ctl[aria-pressed="false"] .i-pause { display: none; }

/* ---------- 3D-anchored callout ---------- */
.hg-callout { position: absolute; width: 0; height: 0; pointer-events: none; }
.hg-callout-card {
  position: absolute;
  left: 0;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.88);
  border: 1px solid rgba(255, 200, 80, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 184, 0, 0.18);
  white-space: nowrap;
  animation: hgCalloutIn 0.45s var(--hg-ease) both;
  font-family: var(--font-body, 'Satoshi', 'Inter', system-ui, sans-serif);
}
.hg-callout-card b {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0b0b0b;
  background: linear-gradient(135deg, #ffe08a, #ffb800);
}
.hg-callout-card strong { display: block; font-size: 0.86rem; color: #fff; line-height: 1.15; }
.hg-callout-card small { display: block; font-size: 0.72rem; color: #c3c9d6; line-height: 1.3; }
.hg-callout-card small em { font-style: normal; color: var(--hg-gold-2); font-weight: 800; }
.hg-callout-stem {
  position: absolute;
  left: -1px;
  bottom: 0;
  width: 2px;
  height: 30px;
  background: linear-gradient(to top, rgba(255, 210, 90, 0), rgba(255, 210, 90, 0.9));
  transform-origin: bottom;
  animation: hgStem 0.35s var(--hg-ease) both;
}
.hg-callout-dot {
  position: absolute;
  left: -4px; bottom: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff4c8;
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.35), 0 0 14px 3px rgba(255, 184, 0, 0.8);
}
@keyframes hgCalloutIn { from { opacity: 0; transform: translate(-50%, 8px) scale(0.96); } }
@keyframes hgStem { from { transform: scaleY(0); } }

/* ---------- hint + toast ---------- */
.hg-hint {
  position: absolute;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(230, 232, 236, 0.62);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.6s;
}
.hg-hint.is-hidden { opacity: 0; }
.hg-hint kbd {
  font: inherit;
  font-size: 0.66rem;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.hg-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -40%);
  transition: opacity 0.3s, transform 0.4s var(--hg-ease);
}
.hg-toast.is-visible { opacity: 1; transform: translate(-50%, -50%); }

.hg-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Tablet & mobile: globe on top, chip scroller + panel stacked below
   ========================================================================== */

/* ==========================================================================
   Live sales feed, hover tooltip and custom cursor
   ========================================================================== */
.hg-feed-hud {
  position: absolute;
  top: 84px;
  right: 8px;
  z-index: 6;
  width: 300px;
  padding: 12px 12px 8px;
  display: none;
  transition: opacity 0.35s var(--hg-ease), visibility 0.35s;
}
.hg.has-feed .hg-feed-hud { display: block; }
.hg.has-panel .hg-feed-hud { opacity: 0; visibility: hidden; }
.hg-hud-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 8px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hg-green-2);
}
.hg-feed { display: flex; flex-direction: column; gap: 4px; min-height: 104px; }
.hg-feed-row {
  display: grid;
  grid-template-columns: 8px auto 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 0.78rem;
  color: #dfe3ec;
  text-align: left;
  cursor: pointer;
  animation: hgFeedIn 0.6s var(--hg-ease);
  transition: background 0.2s ease, opacity 0.4s ease;
}
.hg-feed-row:hover { background: rgba(255, 255, 255, 0.06); }
.hg-feed-row:nth-child(2) { opacity: 0.66; }
.hg-feed-row:nth-child(3) { opacity: 0.36; }
@keyframes hgFeedIn {
  from { opacity: 0; transform: translateY(-8px); background: rgba(0, 232, 155, 0.14); }
  to { transform: none; }
}
.hg-feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hg-green); box-shadow: 0 0 10px var(--hg-green); }
.hg-feed-type {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hg-gold);
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.hg-feed-where { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-feed-date { color: rgba(223, 227, 236, 0.6); font-variant-numeric: tabular-nums; white-space: nowrap; }

.hg-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 7;
  pointer-events: none;
  min-width: 190px;
  max-width: 260px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(9, 12, 22, 0.9);
  border: 1px solid rgba(255, 184, 0, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  color: #e6e8ec;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.15s ease;
  will-change: transform;
}
.hg-tooltip.visible { opacity: 1; }
.hg-tt-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.95rem; color: #fff; margin-bottom: 6px; }
.hg-tt-code { font-size: 0.64rem; padding: 2px 6px; border-radius: 5px; background: rgba(255, 184, 0, 0.16); color: var(--hg-gold); letter-spacing: 0.05em; }
.hg-tt-stat { color: #c9ced9; }
.hg-tt-stat strong { color: var(--hg-gold); font-size: 1rem; }
.hg-tt-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); margin: 8px 0 6px; overflow: hidden; }
.hg-tt-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00c48c, #ffc433); }
.hg-tt-meta { color: rgba(201, 206, 217, 0.7); font-size: 0.72rem; }

.hg.hg-has-cursor .hg-viz,
.hg.hg-has-cursor .hg-viz canvas,
.hg.hg-has-cursor .hg-viz:active { cursor: none; }
.hg-cursor {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hg-cursor.visible { opacity: 1; }
.hg.is-fallback .hg-cursor { display: none; }
.hg-cursor-dot, .hg-cursor-ring { position: absolute; left: 0; top: 0; will-change: transform; }
.hg-cursor-dot::before {
  content: '';
  position: absolute;
  width: 6px; height: 6px; left: -3px; top: -3px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 10px rgba(255, 196, 64, 0.9);
  transition: transform 0.2s ease, background 0.2s ease;
}
.hg-cursor-ring::before {
  content: '';
  position: absolute;
  width: 36px; height: 36px; left: -18px; top: -18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 209, 102, 0.75);
  background: rgba(255, 184, 0, 0.04);
  box-shadow: 0 0 18px rgba(255, 170, 40, 0.18);
  transition: width 0.28s var(--hg-ease), height 0.28s var(--hg-ease), left 0.28s var(--hg-ease), top 0.28s var(--hg-ease),
              background 0.25s ease, border-color 0.25s ease;
}
.hg-cursor-label {
  position: absolute;
  left: 24px; top: 14px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #0b0b0b;
  background: linear-gradient(135deg, #ffd166, #ffb800);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease, transform 0.25s var(--hg-ease);
}
.hg-cursor-label:empty { opacity: 0; transform: scale(0.8); }
.hg-cursor.is-state .hg-cursor-ring::before {
  width: 58px; height: 58px; left: -29px; top: -29px;
  border-color: #ffe08a;
  background: rgba(255, 196, 64, 0.14);
}
.hg-cursor.is-state .hg-cursor-dot::before { transform: scale(1.4); background: #fff; }
.hg-cursor.is-dragging .hg-cursor-ring::before {
  width: 24px; height: 24px; left: -12px; top: -12px;
  border-color: rgba(0, 232, 155, 0.9);
  background: rgba(0, 232, 155, 0.08);
}
.hg-cursor.is-pressed .hg-cursor-dot::before { transform: scale(0.6); }

@media (max-width: 1100px) {
  .hg-feed-hud { position: static; order: 1; width: 100%; margin-top: 8px; padding: 6px 8px; display: none; }
  .hg.has-feed .hg-feed-hud { display: flex; align-items: center; gap: 6px; }
  .hg.has-panel .hg-feed-hud { opacity: 1; visibility: visible; }
  .hg-hud-label { margin: 0 2px; flex: none; font-size: 0.58rem; letter-spacing: 0.12em; }
  .hg-feed { flex: 1 1 auto; min-width: 0; min-height: 0; height: 32px; overflow: hidden; }
  .hg-feed-row { padding: 6px 4px; font-size: 0.74rem; }
  .hg-feed-row:nth-child(n+2) { display: none; }
  .hero-globe-full { min-height: 0; }
  .hg { flex: none; }
  .hg-board, .hg-panel { position: static; transform: none; }
  .hg-stage { min-height: 0; height: clamp(360px, 92vw, 620px); flex: none; }
  .hg-viz { inset: 0; }

  .hg-board {
    order: 2;
    width: 100%;
    padding: 0;
    margin-top: 6px;
    background: none;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hg-board-head { display: none; }
  .hg-board-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 4px 2px 6px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
    flex: 1 1 auto;
    min-width: 0;
  }
  .hg-board-list::-webkit-scrollbar { display: none; }
  .hg-board-list li { flex: none; scroll-snap-align: start; }
  .hg-row {
    display: inline-flex;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hg-line);
  }
  .hg-row.is-active { background: rgba(255, 184, 0, 0.14); border-color: rgba(255, 184, 0, 0.5); box-shadow: none; }
  .hg-row-rank, .hg-row-bar { display: none; }
  .hg-row-name { font-size: 0.8rem; }
  .hg-row-count { font-size: 0.76rem; }
  .hg-jump { margin: 0; flex: none; width: 128px; }
  .hg-jump select { border-radius: 999px; padding: 8px 28px 8px 12px; font-size: 0.76rem; }

  .hg-panel {
    order: 3;
    width: 100%;
    max-width: 640px;
    max-height: none;
    margin: 0 auto;
    padding: 0 18px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s var(--hg-ease), opacity 0.4s, padding 0.55s var(--hg-ease), margin 0.55s var(--hg-ease), visibility 0.55s;
  }
  .hg-panel > .hg-panel-inner { min-height: 0; overflow: hidden; }
  .hg-panel.is-open { grid-template-rows: 1fr; padding: 18px; margin-top: 10px; transform: none; }
  .hg-panel-close { top: 10px; right: 10px; }

  .hg-legend { bottom: 8px; }
  .hg-controls { bottom: 50px; right: 4px; }
  .hg-hint { bottom: 52px; }
  .hg-toolbar { top: 0; }
}

@media (max-width: 900px) {
  .hero-globe-full { padding: 88px 16px 32px !important; }
  .hero-top-row { gap: 8px; margin-bottom: 14px; }
  .hero-eyebrow-badge,
  .globe-live-badge { font-size: 0.7rem; padding: 7px 14px; }
  .hero-title-block h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero-cta-row { gap: 10px; }
}

@media (max-width: 560px) {
  .hero-title-block h1 { font-size: 1.7rem; }
  .hero-title-block .hero-subtitle { font-size: 0.9rem; }
  .hero-eyebrow-badge,
  .globe-live-badge { font-size: 0.62rem; padding: 6px 12px; }
  .hg { margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); }
  .hg-stage { height: clamp(360px, 118vw, 520px); }
  .hg-board { padding: 0 12px; }
  .hg-panel { width: auto; margin-left: 12px; margin-right: 12px; }
  .hg-panel.is-open { margin-left: 12px; margin-right: 12px; }
  .hg-seg { padding: 7px 12px; font-size: 0.72rem; }
  .hg-legend { gap: 6px; padding: 6px 10px; font-size: 0.64rem; }
  .hg-ramp { width: 56px; }
  .hg-legend-none { display: none; }
  .hg-type { padding: 3px 6px; font-size: 0.62rem; gap: 4px; }
  .hg-type i { width: 6px; height: 6px; }
  .hg-controls { right: 10px; }
  .hg-ctl { width: 34px; height: 34px; }
  .hg-fact { grid-template-columns: 92px 1fr; }
  .hg-provider { top: 47px; font-size: 0.52rem; max-width: 76%; overflow: hidden; text-overflow: ellipsis; }
  .hg.is-touch.is-interacting .hg-interact { bottom: 52px; }
  .hg-viz .cesium-viewer-bottom { bottom: 1px; }
  .hg-viz .cesium-widget-credits { font-size: 8px; max-width: 250px; line-height: 1.1; }
}

@media (prefers-reduced-motion: reduce) {
  .hg-feed-row { animation: none !important; }
  .hg-viz, .hg-loader, .hg-panel, .hg-row-bar i, .hg-share-bar i { transition: none !important; }
  .hg-orb, .hg-orb::after, .hg-callout-card, .hg-callout-stem, .live-dot, .hg-skel { animation: none !important; }
}

/* ==========================================================================
   Phones (≤ 760px): touch-first globe + "Next up" rail + bottom sheet
   (behaviour in globe-hero-mobile.js; desktop keeps the Cesium map above)
   ========================================================================== */
.hgm, .hgm-sheet {
  --m-gold: #ffb800;
  --m-gold-2: #f0b429;
  --m-green: #00e89b;
  --m-text: #eef0f5;
  --m-muted: #97a0b3;
  --m-faint: #5d667a;
  --m-line: rgba(255, 255, 255, 0.09);
  --m-ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font-body, 'Satoshi', 'Inter', system-ui, sans-serif);
}
.hgm { display: none; }

@media (max-width: 760px) {
  .hero-globe-full .hg { display: none !important; }
  .hgm {
    display: block;
    position: relative;
    z-index: 2;
    width: calc(100% + 32px);
    margin: 0 -16px 8px;
    color: var(--m-text);
  }
}

.hgm-stage {
  position: relative;
  height: min(112vw, 500px);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.hgm-globe {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1.2s var(--m-ease), transform 1.8s var(--m-ease);
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.hgm-globe canvas { touch-action: pan-y !important; outline: none; }
.hgm.is-ready .hgm-globe { opacity: 1; transform: none; }

.hgm-orb {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 78vw;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(80, 120, 255, 0.28), transparent 55%),
    radial-gradient(circle at 50% 50%, #0a1428 0%, #050a16 70%);
  box-shadow: 0 0 0 1px rgba(120, 150, 255, 0.12) inset, 0 0 70px 8px rgba(50, 100, 255, 0.2);
  animation: hgOrbBreath 2.4s ease-in-out infinite;
  transition: opacity 0.8s var(--m-ease);
  pointer-events: none;
}
.hgm.is-ready .hgm-orb { opacity: 0; }
.hgm.is-fallback .hgm-orb { opacity: 1; animation: none; }

.hgm-kpi {
  position: absolute;
  z-index: 3;
  left: 20px;
  top: 14px;
  pointer-events: none;
}
.hgm-kpi-num {
  font-family: var(--font-display, 'Clash Display', system-ui, sans-serif);
  font-size: clamp(2.6rem, 13vw, 3.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 10%, #ffd98a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}
.hgm-kpi-label {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--m-gold-2);
}
.hgm-kpi-sub { margin-top: 3px; font-size: 0.74rem; font-weight: 600; color: var(--m-muted); }
.hgm-live {
  position: absolute;
  z-index: 3;
  right: 16px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(0, 208, 143, 0.5);
  background: rgba(0, 208, 143, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m-green);
}

/* 3D-anchored callout for the active sale */
.hgm-callout { position: absolute; width: 0; height: 0; pointer-events: none; transition: opacity 0.3s; }
.hgm-callout-card {
  position: absolute;
  left: 0;
  bottom: 26px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(8, 12, 22, 0.9);
  border: 1px solid rgba(255, 200, 80, 0.5);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 184, 0, 0.18);
  animation: hgmCalloutIn 0.45s var(--m-ease) both;
}
.hgm-callout-card b {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  color: #0b0b0b;
  background: linear-gradient(135deg, #ffe08a, #ffb800);
}
.hgm-callout-stem {
  position: absolute;
  left: -1px;
  bottom: 0;
  width: 2px;
  height: 26px;
  background: linear-gradient(to top, rgba(255, 210, 90, 0), rgba(255, 210, 90, 0.9));
}
.hgm-callout-dot {
  position: absolute;
  left: -4px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff4c8;
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.35), 0 0 12px 3px rgba(255, 184, 0, 0.8);
}
@keyframes hgmCalloutIn { from { opacity: 0; transform: translate(-50%, 8px) scale(0.95); } }

/* "Next up" rail */
.hgm-rail-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin: -6px 0 10px;
}
.hgm.has-sales .hgm-rail-head { display: flex; }
.hgm-rail-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--m-muted);
}
.hgm-rail-title::before { content: ''; width: 14px; height: 2px; border-radius: 2px; background: var(--m-gold); }
.hgm-all {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 0, 0.38);
  background: rgba(255, 184, 0, 0.08);
  color: var(--m-gold-2);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}
.hgm-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 12vw 12px;
}
.hgm-rail::-webkit-scrollbar { display: none; }
.hgm-card {
  flex: 0 0 76vw;
  max-width: 340px;
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 12px;
  border-radius: 18px;
  border: 1px solid var(--m-line);
  background: linear-gradient(160deg, rgba(22, 30, 52, 0.95), rgba(9, 13, 24, 0.95));
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--m-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0.55;
  transform: scale(0.94);
  transition: transform 0.45s var(--m-ease), opacity 0.45s var(--m-ease), border-color 0.3s, box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.hgm-card.is-active {
  opacity: 1;
  transform: none;
  border-color: rgba(255, 200, 80, 0.55);
  box-shadow: 0 18px 40px -16px rgba(255, 170, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.hgm-card:focus-visible { outline: 2px solid var(--m-gold); outline-offset: 2px; }
.hgm-date {
  display: grid;
  place-items: center;
  align-content: center;
  width: 56px;
  height: 62px;
  border-radius: 14px;
  color: #0b0b0b;
  background: linear-gradient(160deg, #ffe08a, #ffb800 60%, #ff9a00);
  box-shadow: 0 8px 20px -6px rgba(255, 160, 0, 0.55);
}
.hgm-date b { font-family: var(--font-display, 'Clash Display', system-ui, sans-serif); font-size: 1.6rem; line-height: 1; }
.hgm-date span { margin-top: 2px; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; }
.hgm-info { min-width: 0; }
.hgm-info strong { display: block; font-size: 0.95rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hgm-info > span { display: block; margin-top: 1px; font-size: 0.76rem; color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hgm-info em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc);
}
.hgm-info em::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.hgm-when { align-self: start; font-size: 0.64rem; font-weight: 800; color: var(--m-green); white-space: nowrap; }
.hgm-progress {
  display: none;
  width: 56px;
  height: 3px;
  margin: 2px auto 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: opacity 0.3s;
}
.hgm.has-sales .hgm-progress { display: block; }
.hgm-progress i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00e89b, #ffc433);
  transform-origin: left;
  animation: hgmProgress 4.2s linear;
}
.hgm.is-paused .hgm-progress { opacity: 0; }
@keyframes hgmProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Bottom sheet (moved to <body> by the script) */
html.hgm-lock, html.hgm-lock body { overflow: hidden; }
.hgm-sheet { position: fixed; inset: 0; z-index: 100000; color: var(--m-text); }
.hgm-sheet[hidden] { display: none; }
.hgm-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.hgm-sheet.is-open .hgm-sheet-backdrop { opacity: 1; }
.hgm-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #121b30 0%, #0a0f1c 100%);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.6);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(100%);
  transition: transform 0.45s var(--m-ease);
}
.hgm-sheet.is-open .hgm-sheet-panel { transform: none; }
.hgm-grab { flex: none; width: 40px; height: 5px; margin: 10px auto 2px; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.hgm-sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 22px; }
.hgm-sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hgm-code {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-family: var(--font-display, 'Clash Display', system-ui, sans-serif);
  font-weight: 700;
  color: #0b0b0b;
  background: linear-gradient(135deg, #ffe08a, #ffb800 60%, #ff9a00);
  box-shadow: 0 8px 22px rgba(255, 170, 0, 0.35);
}
.hgm-title { flex: 1 1 auto; min-width: 0; }
.hgm-title h3 {
  margin: 0;
  font-family: var(--font-display, 'Clash Display', system-ui, sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
}
.hgm-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tc);
}
.hgm-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.hgm-x {
  flex: none;
  align-self: flex-start;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--m-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--m-text);
  cursor: pointer;
}
.hgm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.hgm-stats div { padding: 10px 11px; border-radius: 13px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.05); }
.hgm-stats b { display: block; font-family: var(--font-display, 'Clash Display', system-ui, sans-serif); font-size: 1.35rem; color: #fff; line-height: 1.1; }
.hgm-stats span { font-size: 0.66rem; font-weight: 600; color: var(--m-muted); }
.hgm-label { margin: 0 0 8px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--m-faint); }
.hgm-next { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.hgm-next button {
  width: 100%;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.04);
  color: var(--m-text);
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
}
.hgm-next button.is-hot { border-color: rgba(255, 200, 80, 0.5); background: rgba(255, 184, 0, 0.08); }
.hgm-next time { font-weight: 800; color: var(--m-gold-2); font-variant-numeric: tabular-nums; }
.hgm-next span { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hgm-next em { font-style: normal; font-size: 0.66rem; font-weight: 700; color: var(--m-green); white-space: nowrap; }
.hgm-empty {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  color: var(--m-muted);
}
.hgm-facts { margin: 0 0 18px; }
.hgm-fact { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--m-line); font-size: 0.8rem; line-height: 1.4; }
.hgm-fact dt { color: var(--m-muted); font-weight: 600; }
.hgm-fact dd { margin: 0; font-weight: 600; }
.hgm-skel {
  display: block;
  width: 70%;
  height: 0.8em;
  margin-top: 0.25em;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  background-size: 200% 100%;
  animation: hgShimmer 1.2s linear infinite;
}
.hgm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffcf4a 0%, #ffb800 45%, #ff8a00 100%);
  color: #0b0b0b !important;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(255, 138, 0, 0.6);
}
.hgm-note { margin: 12px 0 0; font-size: 0.66rem; line-height: 1.45; color: var(--m-faint); }
.hgm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hgm-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
  padding: 11px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--m-text);
  font: inherit;
  text-align: left;
}
.hgm-list button:active { background: rgba(255, 255, 255, 0.06); }
.hgm-rank { font-size: 0.72rem; font-weight: 700; color: var(--m-faint); font-variant-numeric: tabular-nums; }
.hgm-name { font-size: 0.92rem; font-weight: 700; }
.hgm-count { font-size: 0.88rem; font-weight: 800; color: var(--m-gold-2); font-variant-numeric: tabular-nums; }
.hgm-bar { grid-column: 2 / 4; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.hgm-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b87a0c, #ffcf4a); }

@media (prefers-reduced-motion: reduce) {
  .hgm-globe, .hgm-orb, .hgm-card, .hgm-sheet-panel, .hgm-sheet-backdrop { transition: none !important; }
  .hgm-orb, .hgm-callout-card, .hgm-progress i, .hgm-skel { animation: none !important; }
}
