html:has(dialog.hg-popup[open]) { overflow: hidden; }

dialog.hg-popup, dialog.hg-popup * { box-sizing: border-box; }
dialog.hg-popup {
  position: fixed; margin: auto; border: 0; padding: 2.75rem 2rem 2.25rem;
  width: min(92vw, 30rem); max-height: 92vh; overflow: auto;
  border-radius: 1.75rem; text-align: center;
  background: oklch(35.4% .219 303.5); color: #fff;
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 24px 80px -20px rgb(0 0 0 / .6);
  animation: hg-in .35s cubic-bezier(.2, .8, .2, 1);
}
dialog.hg-popup::backdrop { background: rgb(0 0 0 / .7); backdrop-filter: blur(3px); }

.hg-close {
  position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; border: 0; border-radius: 999px; cursor: pointer;
  background: rgb(255 255 255 / .18); color: #fff; transition: background .2s;
}
.hg-close:hover { background: rgb(255 255 255 / .3); }
.hg-close svg, .hg-date svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hg-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem;
  border-radius: 999px; background: rgb(255 255 255 / .14);
  font-size: .8rem; font-weight: 700; letter-spacing: .01em; text-transform: uppercase;
}
.hg-dot { width: .8rem; height: .8rem; border-radius: 50%; background: #ff5a4e; }

.hg-title { margin: 1.5rem 0 0; font-size: clamp(1.5rem, 6vw, 1.25rem); font-weight: 700; line-height: 1.15; }
.hg-title span { color: oklch(89.6% .055 236); }

.hg-date { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.25rem; text-align: left; line-height: 1.25; font-size: 1.05rem; }
.hg-date svg { width: 1.6rem; height: 1.6rem; flex: none; }
.hg-date b { display: block; color: oklch(89.6% .055 236); font-weight: 700; }

.hg-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; max-width: 24rem; margin: 1.5rem auto 0; }
.hg-cell {
  padding: .85rem 0 .7rem; border-radius: 1rem;
  background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .18);
}
.hg-cell strong { display: block; font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.hg-cell small { display: block; margin-top: .35rem; font-size: .8rem; text-transform: uppercase; opacity: .85; }

.hg-cta {
  display: inline-block; margin-top: 1.75rem; padding: .95rem 2.5rem; border-radius: 999px;
  background: #fff; color: oklch(35.4% .219 303.5); font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 12px 40px -12px oklch(62.8% .239 296.5); transition: transform .2s;
}
.hg-cta:hover { transform: translateY(-2px); }

@media (max-width: 380px) { 
  .hg-count { gap: .4rem; } 
  .hg-cell strong { font-size: 1.6rem; } 
  dialog.hg-popup { padding-inline: 1.25rem; 
  padding: .85rem 0 .7rem; border-radius: 1rem;
  background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .18);}
}
@keyframes hg-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { dialog.hg-popup, dialog.hg-popup * { box-sizing: border-box; }
dialog.hg-popup { animation: none; } .hg-cta { transition: none; } }
dialog.hg-popup:focus { outline: none; }