@import url("./villagedefensepro.css");

:root {
  --htk-red: #ff6b6b;
  --htk-red-strong: #d93b4f;
  --htk-red-soft: #ffd0d5;
}

.hunt-the-king-page {
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 107, 107, 0.14), transparent 22%),
    radial-gradient(circle at 18% 10%, rgba(255, 138, 138, 0.12), transparent 30%),
    linear-gradient(180deg, #12060b 0%, #07030d 54%, #040205 100%);
}

.hunt-the-king-page::before {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.06) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 22%, rgba(255, 107, 107, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 72%, rgba(255, 150, 166, 0.08) 0 1px, transparent 2px);
  background-size: 220px 220px, 280px 280px, 320px 320px;
}

.background-glow-red {
  top: 7rem;
  right: 14%;
  background: rgba(217, 59, 79, 0.3);
}

.hunt-the-king-page .background-glow-left {
  background: rgba(255, 126, 126, 0.32);
}

.hunt-the-king-page .background-glow-right {
  background: rgba(217, 59, 79, 0.24);
}

.hunt-the-king-page .site-footer {
  background: rgba(14, 5, 8, 0.72);
}

.hunt-the-king-page .project-hero {
  min-height: calc(100vh - 88px);
}

.hunt-the-king-page .project-hero::before {
  background:
    linear-gradient(90deg, rgba(8, 4, 8, 0.88) 0%, rgba(8, 4, 8, 0.66) 46%, rgba(8, 4, 8, 0.44) 100%),
    url("../../assets/media/hunttheking/hero.png") center center / cover no-repeat,
    radial-gradient(circle at 72% 42%, rgba(255, 107, 107, 0.22), transparent 20%),
    radial-gradient(circle at 84% 18%, rgba(217, 59, 79, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 107, 107, 0.08), transparent 36%, transparent 70%, rgba(255, 156, 85, 0.08));
  opacity: 1;
  filter: saturate(0.92);
  transform: translateX(-50%);
}

.hunt-the-king-page .project-hero::after {
  background:
    radial-gradient(circle at 74% 46%, rgba(255, 107, 107, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(7, 5, 12, 0.06), rgba(7, 5, 12, 0.2));
}

.hunt-the-king-page .project-badge,
.hunt-the-king-page .section-tag {
  border-color: rgba(255, 107, 107, 0.18);
  background: rgba(43, 12, 18, 0.38);
  color: var(--htk-red-soft);
}

.hunt-the-king-page .project-pill {
  border-color: rgba(255, 107, 107, 0.18);
  background: rgba(43, 12, 18, 0.52);
  color: var(--htk-red-soft);
}

.button-primary-red {
  background: linear-gradient(135deg, #ff8d8d, #d93b4f);
  color: #190307;
  box-shadow: 0 18px 40px rgba(153, 34, 54, 0.32);
}

.button-secondary-red {
  border-color: rgba(255, 107, 107, 0.14);
  background: rgba(35, 12, 18, 0.48);
}

.hunt-the-king-page .project-hero-logo {
  filter: drop-shadow(0 26px 46px rgba(74, 12, 24, 0.48));
}

.hunt-the-king-page .project-process-step,
.hunt-the-king-page .project-stat-card,
.hunt-the-king-page .project-hud-panel,
.hunt-the-king-page .project-floating-note,
.hunt-the-king-page .project-card,
.hunt-the-king-page .project-banner {
  background: linear-gradient(180deg, rgba(34, 14, 20, 0.92), rgba(11, 6, 9, 0.96));
  border-color: rgba(255, 255, 255, 0.08);
}

.hunt-the-king-page .project-visual-card {
  background: linear-gradient(180deg, rgba(38, 15, 22, 0.96), rgba(10, 7, 12, 0.98));
}

.hunt-the-king-page .project-visual-card::before {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), transparent 28%, transparent 70%, rgba(255, 162, 89, 0.14));
}

.hunt-the-king-page .project-visual-card::after {
  background: rgba(255, 107, 107, 0.16);
}

.hunt-the-king-page .project-image-slot {
  background:
    radial-gradient(circle at top right, rgba(255, 107, 107, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(33, 15, 20, 0.95), rgba(10, 7, 11, 0.98));
}

.hunt-the-king-page .project-image-slot::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 36%),
    linear-gradient(225deg, rgba(255, 107, 107, 0.08), transparent 34%);
}

.hunt-the-king-page .project-image-placeholder {
  border-color: rgba(255, 107, 107, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 15% 18%, rgba(255, 107, 107, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(32, 12, 17, 0.66), rgba(10, 8, 15, 0.42));
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.hunt-the-king-page .project-image-placeholder::before {
  background: rgba(255, 107, 107, 0.16);
}

.hunt-the-king-page .project-image-placeholder span,
.hunt-the-king-page .project-card-kicker,
.hunt-the-king-page .project-code-grid code,
.hunt-the-king-page .project-card code,
.hunt-the-king-page .project-panel-label {
  color: var(--htk-red-soft);
}

.hunt-the-king-page .project-image-placeholder span {
  background: rgba(28, 8, 12, 0.88);
  border-color: rgba(255, 107, 107, 0.18);
}

.hunt-the-king-page .project-card-green {
  background:
    radial-gradient(circle at top right, rgba(255, 107, 107, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(42, 15, 21, 0.94), rgba(11, 8, 12, 0.98));
  border-color: rgba(255, 107, 107, 0.16);
}

.hunt-the-king-page .project-chip {
  border-color: rgba(255, 107, 107, 0.12);
}

.hunt-the-king-page .project-step-number,
.hunt-the-king-page .button-primary-red {
  color: #190307;
}

.hunt-the-king-page .project-step-number {
  background: linear-gradient(135deg, rgba(255, 141, 141, 0.95), rgba(217, 59, 79, 0.92));
}

.hunt-the-king-page .project-stat-card strong {
  color: var(--htk-red-soft);
}

.hunt-the-king-page .project-banner {
  background:
    radial-gradient(circle at top right, rgba(255, 107, 107, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(35, 16, 21, 0.94), rgba(10, 7, 10, 0.98));
}

.htk-hero-copy {
  max-width: 780px;
}

.htk-hero-accent {
  background: linear-gradient(135deg, #ffd6d6 0%, #ff8d8d 28%, #ff5d6c 58%, #ffb06b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.htk-visual {
  justify-self: end;
  width: min(100%, 520px);
  display: grid;
  place-items: center;
  padding: 1.2rem 0;
}

.htk-logo-main {
  width: min(100%, 460px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 28px 52px rgba(120, 18, 36, 0.44));
  animation: floatHeroLogo 6.5s ease-in-out infinite;
}

.htk-media-placeholder {
  min-height: 260px;
}

.hunt-the-king-page .htk-media-placeholder::after {
  background: linear-gradient(180deg, rgba(5, 4, 8, 0.02) 0%, rgba(5, 4, 8, 0.08) 55%, rgba(5, 4, 8, 0.62) 100%);
}

.htk-card-media {
  min-height: 210px;
}

.htk-card-media-contained {
  min-height: 320px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 107, 107, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(20, 9, 14, 0.92), rgba(8, 5, 9, 0.98));
}

.htk-card-media-contained .project-image-media {
  object-fit: contain;
  padding: 0.8rem;
}

.htk-note-grid {
  display: grid;
  gap: 1rem;
}

.htk-note {
  padding: 1.2rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(31, 14, 20, 0.92), rgba(11, 6, 9, 0.96));
  border: 1px solid rgba(255, 107, 107, 0.12);
}

.htk-note strong {
  display: block;
  color: var(--htk-red-soft);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.htk-note p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.htk-metrics-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.htk-compact-list {
  margin-top: 1rem;
}

.htk-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.htk-state-pill {
  display: grid;
  place-items: center;
  min-height: 68px;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 107, 107, 0.14);
  background: linear-gradient(180deg, rgba(42, 15, 21, 0.78), rgba(15, 8, 12, 0.92));
  color: var(--htk-red-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.htk-highlight-grid,
.htk-admin-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.htk-highlight-item,
.htk-admin-item {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 107, 107, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.htk-highlight-item strong,
.htk-admin-item strong {
  display: block;
  color: var(--htk-red-soft);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.htk-highlight-item span,
.htk-admin-item span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.66;
}

@media (max-width: 1100px) {
  .htk-visual {
    justify-self: center;
  }

  .htk-metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .htk-logo-main {
    width: min(100%, 400px);
  }

  .htk-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .htk-visual {
    width: min(100%, 360px);
  }

  .htk-logo-main {
    width: min(100%, 320px);
  }

  .htk-state-grid {
    grid-template-columns: 1fr;
  }
}
