/* huntergame.net — shared brand shell. Cache-bust with ?v=12 */
:root {
  --hg-bg: #070b12;
  --hg-bg-2: #101827;
  --hg-ink: #f4ffe8;
  --hg-muted: #9bb0c4;
  --hg-line: rgba(184, 255, 60, 0.18);
  --hg-accent: #b8ff3c;
  --hg-accent-2: #3ee8ff;
  --hg-hot: #ff4d8d;
  --hg-gold: #ffd166;
  --hg-danger: #ff6b6b;
  --hg-radius: 22px;
  --hg-radius-sm: 14px;
  --hg-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --hg-font: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --hg-display: "Trebuchet MS", "Arial Black", sans-serif;
  --hg-header-h: 72px;
  --n-accent: var(--hg-accent);
  --n-accent-2: var(--hg-accent-2);
  --n-hot: var(--hg-hot);
  --n-radius: 22px;
  --n-btn-radius: 999px;
  --n-ink: #071018;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--hg-bg);
  color: var(--hg-ink);
  font-family: var(--hg-font);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
.hg-skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.hg-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--hg-accent);
  color: #071018;
  padding: 10px 14px;
  border-radius: 10px;
}

/* Animated atmosphere — never use logo.png as a background */
.hg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(184, 255, 60, 0.16), transparent 55%),
    radial-gradient(900px 600px at 110% 10%, rgba(62, 232, 255, 0.14), transparent 50%),
    radial-gradient(800px 500px at 50% 120%, rgba(255, 77, 141, 0.12), transparent 55%),
    linear-gradient(160deg, #070b12 0%, #0d1624 48%, #08111c 100%);
}
.hg-atmosphere span {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: hg-orb 18s ease-in-out infinite;
}
.hg-atmosphere span:nth-child(1) {
  width: 42vw; height: 42vw; max-width: 520px; max-height: 520px;
  left: -8%; top: 8%;
  background: rgba(184, 255, 60, 0.22);
}
.hg-atmosphere span:nth-child(2) {
  width: 36vw; height: 36vw; max-width: 440px; max-height: 440px;
  right: -6%; top: 18%;
  background: rgba(62, 232, 255, 0.18);
  animation-delay: -6s;
}
.hg-atmosphere span:nth-child(3) {
  width: 28vw; height: 28vw; max-width: 360px; max-height: 360px;
  left: 38%; bottom: -12%;
  background: rgba(255, 77, 141, 0.16);
  animation-delay: -11s;
}
@keyframes hg-orb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -28px, 0) scale(1.08); }
}

.hg-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hg-page > .hg-header,
.hg-page > .hg-footer { flex: 0 0 auto; }
.hg-page > main { flex: 1 1 auto; width: 100%; }

.hg-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--hg-header-h);
  padding: 10px 18px;
  background: rgba(7, 11, 18, 0.78);
  border-bottom: 1px solid var(--hg-line);
  backdrop-filter: blur(16px) saturate(1.2);
}
.hg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.hg-brand img.hg-mark { width: 38px; height: 38px; }
.hg-brand img.hg-word { height: 28px; width: auto; max-width: min(220px, 52vw); }
.hg-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hg-nav a, .hg-nav button {
  background: transparent;
  border: 0;
  color: var(--hg-ink);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}
.hg-nav a:hover, .hg-nav button:hover { background: rgba(184, 255, 60, 0.12); }
.hg-lang {
  background: rgba(16, 24, 39, 0.9) !important;
  border: 1px solid var(--hg-line) !important;
  color: var(--hg-ink) !important;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 700;
}
.hg-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hg-line);
  border-radius: 12px;
  background: rgba(16, 24, 39, 0.8);
  color: var(--hg-ink);
}
.hg-burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--hg-accent);
}
@media (max-width: 760px) {
  .hg-burger { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; }
  .hg-brand img.hg-word { height: 20px; max-width: 42vw; }
  .hg-nav {
    display: none;
    position: absolute;
    right: 12px;
    top: calc(var(--hg-header-h) - 6px);
    flex-direction: column;
    align-items: stretch;
    min-width: 210px;
    padding: 10px;
    background: rgba(10, 16, 26, 0.96);
    border: 1px solid var(--hg-line);
    border-radius: 16px;
    box-shadow: var(--hg-shadow);
  }
  .hg-nav.is-open { display: flex; }
}

.hg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--n-btn-radius, 999px);
  background: linear-gradient(90deg, var(--n-accent, var(--hg-accent)), var(--n-accent-2, var(--hg-accent-2)));
  color: var(--n-ink, #071018);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(184, 255, 60, 0.18);
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}
.hg-btn:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); }
.hg-btn:disabled, .hg-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}
.hg-btn-ghost {
  background: transparent;
  color: var(--hg-ink);
  border: 1px solid var(--hg-line);
  box-shadow: none;
}

.hg-footer {
  margin-top: auto;
  padding: 22px 16px 28px;
  text-align: center;
  border-top: 1px solid var(--hg-line);
  background: rgba(7, 11, 18, 0.72);
}
.hg-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.hg-footer-links a {
  color: var(--hg-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}
.hg-footer-links a:hover { color: var(--hg-accent); }
.hg-copy { color: #7e93a8; font-size: 0.78rem; }

/* Legal modal — closable, viewport-centered. Distinct from verify overlay. */
.hg-legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 8, 14, 0.72);
}
.hg-legal-overlay.is-open { display: flex; }
.hg-legal-dialog {
  position: relative;
  width: min(920px, 100%);
  height: min(84vh, 820px);
  background: #101827;
  border: 1px solid var(--hg-line);
  border-radius: 20px;
  box-shadow: var(--hg-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hg-legal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(7, 11, 18, 0.9);
  color: var(--hg-ink);
  font-size: 1.4rem;
  cursor: pointer;
}
.hg-legal-dialog iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #101827;
}

/* Verify / locker overlay — NON-CLOSABLE, full-screen, phone-safe */
.hg-verify-overlay,
#verificationModal.hg-verify-ready {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 90 !important;
  display: none;
  flex-direction: column;
  background: #070b12 !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  height: 100svh !important;
  max-height: 100dvh !important;
  max-height: 100svh !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}
.hg-verify-overlay.is-open,
#verificationModal.hg-verify-ready:not(.hidden) {
  display: flex !important;
}
#verificationModal.hg-verify-ready > *,
#verificationModal.hg-verify-ready .glow-border,
#verificationModal.hg-verify-ready .weplay-border,
#verificationModal.hg-verify-ready .pubg-border {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-self: stretch !important;
}
#verificationModal.hg-verify-ready > * {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #070b12 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 8px 10px 0 !important;
  padding-top: max(8px, env(safe-area-inset-top, 0px)) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.hg-verify-head {
  flex: 0 0 auto;
  padding: 8px 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.hg-verify-head h2,
.hg-verify-head p,
.hg-verify-how {
  display: block;
  width: 100%;
}
.hg-verify-head h2 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  color: var(--n-accent, var(--hg-accent));
}
.hg-verify-head p, .hg-verify-how {
  margin: 0;
  color: var(--hg-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.hg-verify-how { margin-top: 6px; text-align: left; max-width: 560px; margin-left: auto; margin-right: auto; }
.hg-verify-how ol { margin: 4px 0 0; padding-left: 1.2rem; }
.hg-verify-how li { margin: 2px 0; }

.hg-verify-timer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  width: min(420px, 100%);
  margin: 8px auto 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 141, 0.4);
  background: rgba(255, 77, 141, 0.12);
  box-sizing: border-box;
}
.hg-verify-timer-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd1e2;
}
.hg-verify-timer-clock {
  font-family: var(--hg-display);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 800;
  line-height: 1;
  color: var(--hg-accent);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.hg-verify-timer-note {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hg-muted);
}
.hg-verify-timer.is-urgent {
  border-color: rgba(255, 107, 107, 0.55);
  background: rgba(255, 107, 107, 0.18);
  animation: hg-timer-pulse 1s ease-in-out infinite;
}
.hg-verify-timer.is-urgent .hg-verify-timer-clock { color: #ff6b6b; }
.hg-verify-timer.is-done .hg-verify-timer-clock { color: #ff6b6b; }
@keyframes hg-timer-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
  .hg-verify-timer.is-urgent { animation: none; }
}
@media (max-width: 720px) {
  #verificationModal.hg-verify-ready > * { padding: 4px 6px 0 !important; padding-top: max(4px, env(safe-area-inset-top, 0px)) !important; }
  .hg-verify-head { padding: 4px 4px 2px; }
  .hg-verify-head h2 { font-size: 0.95rem; }
  .hg-verify-head p, .hg-verify-how { font-size: 0.72rem; }
  .hg-verify-how { margin-top: 4px; max-width: 100%; }
  .hg-verify-timer { width: min(360px, calc(100% - 4px)); max-width: 100%; margin: 4px auto; padding: 5px 10px; }
  .hg-verify-timer-clock { font-size: 1.1rem; }
}
#verificationIframe,
#verificationModal.hg-verify-ready #verificationIframe {
  flex: 1 1 0% !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 100% !important;
  border: 0 !important;
  background: #fff;
  box-sizing: border-box !important;
}
#verificationModal .close,
#verificationModal [data-close],
#verificationModal .hg-legal-close { display: none !important; }

#verificationModal.hg-verify-ready #verificationTitle,
#verificationModal.hg-verify-ready #verificationExplanation,
#verificationModal.hg-verify-ready #verificationMessage,
#verificationModal.hg-verify-ready #transitionMessage {
  display: none !important;
}

.hg-proofs {
  width: min(520px, calc(100% - 32px));
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--hg-line);
  border-radius: 999px;
  background: rgba(16, 24, 39, 0.72);
  color: var(--hg-ink);
  font-size: 0.86rem;
  font-weight: 700;
}
.hg-proofs-hub {
  width: min(1120px, calc(100% - 28px));
  margin-top: 14px;
}
.hg-proofs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hg-accent);
  box-shadow: 0 0 0 4px rgba(184, 255, 60, 0.16);
  flex: 0 0 auto;
}
.hg-proofs-line { color: var(--hg-ink); }

.hg-progress {
  pointer-events: none !important;
}
#progressBar, .progress-bar { pointer-events: none !important; }

.hg-resource {
  margin: 12px 0 18px;
  text-align: left;
}
.hg-resource-track {
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hg-resource-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--n-accent, var(--hg-accent)), var(--n-accent-2, var(--hg-accent-2)));
  transition: width 0.12s linear;
}
.hg-resource-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--n-accent, var(--hg-accent));
}

.hg-sticky-cta {
  display: none;
  position: sticky;
  bottom: 12px;
  z-index: 20;
}
@media (max-width: 720px) {
  .hg-sticky-cta.is-on { display: block; }
}

/* Legal standalone pages: COLUMN layout so header never shoves the card sideways */
body.hg-legal {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: stretch;
  justify-content: flex-start;
}
body.hg-legal.hg-embed .hg-header,
body.hg-legal.hg-embed .hg-footer,
body.hg-legal.hg-embed .hg-atmosphere { display: none !important; }
body.hg-legal.hg-embed { background: #101827; }
.hg-legal-card {
  width: min(860px, calc(100% - 32px));
  margin: 28px auto 48px;
  padding: 28px 24px;
  background: rgba(16, 24, 39, 0.92);
  border: 1px solid var(--hg-line);
  border-radius: 20px;
  box-shadow: var(--hg-shadow);
}
.hg-legal-card h1 { color: var(--hg-accent); margin-top: 0; }
.hg-legal-card h2 { color: var(--hg-accent-2); font-size: 1.05rem; }
.hg-legal-card p, .hg-legal-card li { color: #d5e2ee; line-height: 1.65; }
.hg-legal-card a { color: var(--hg-accent); }
.hg-legal-card input, .hg-legal-card textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--hg-line);
  background: #0b1220;
  color: var(--hg-ink);
}

html[dir="rtl"] .hg-header { flex-direction: row-reverse; }
html[dir="rtl"] .hg-verify-how ol { padding-right: 18px; padding-left: 0; }

@media (prefers-reduced-motion: reduce) {
  .hg-atmosphere span, .hg-btn { animation: none !important; transition: none !important; }
}
