:root {
  --bg: #07030d;
  --bg-soft: #12081c;
  --panel: rgba(18, 10, 28, 0.88);
  --panel-strong: rgba(28, 16, 43, 0.96);
  --line: rgba(217, 176, 255, 0.14);
  --text: #fbf7ff;
  --muted: #bfb2d7;
  --accent: #b46cff;
  --accent-strong: #8c46e2;
  --accent-soft: #ead3ff;
  --project-green: #72f0a1;
  --project-green-strong: #2ea864;
  --project-green-soft: #d9ffe8;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(168, 102, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #11081b 0%, var(--bg) 55%, #040207 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.07) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 24%, rgba(208, 140, 255, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 65% 76%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px);
  background-size: 220px 220px, 280px 280px, 320px 320px;
  opacity: 0.85;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.background-glow {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(110px);
  z-index: -1;
  opacity: 0.32;
}

.background-glow-left {
  top: -8rem;
  left: -10rem;
  background: rgba(174, 93, 255, 0.42);
}

.background-glow-right {
  top: 18rem;
  right: -12rem;
  background: rgba(125, 66, 226, 0.28);
}

.hero {
  padding: 5rem 0 2rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  min-height: calc(100vh - 88px);
  min-height: calc(100dvh - 88px);
}

.hero-badge,
.section-tag,
.mini-card-tag,
.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(221, 190, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero h1,
.section h2 {
  margin: 1.25rem 0 0;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.hero h1 span {
  display: block;
}

.hero-accent {
  background: linear-gradient(135deg, #f0d4ff 0%, #c881ff 38%, #8c46e2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text,
.section-heading p,
.showcase-copy p,
.server-copy p,
.contact-copy p,
.mini-card p,
.product-card p,
.pricing-card p,
.server-stats span {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 640px;
  margin: 1.4rem 0 0;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 18px 40px rgba(140, 70, 226, 0.34);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-dark {
  background: rgba(11, 7, 17, 0.86);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-search-card,
.mini-card,
.product-card,
.pricing-card,
.server-banner,
.contact-form {
  background: linear-gradient(180deg, rgba(30, 18, 46, 0.88), rgba(12, 8, 18, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-search-card {
  margin: 2.4rem 0 0;
  max-width: 760px;
  padding: 1rem 1rem 1rem 1.4rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-search-copy {
  text-align: left;
}

.hero-search-copy span {
  display: block;
  color: var(--accent-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.35rem;
}

.hero-search-copy strong {
  font-size: 1rem;
}

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

.mini-card,
.product-card,
.pricing-card,
.contact-form {
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.mini-card {
  min-height: 230px;
  text-align: left;
}

.mini-card h2,
.product-card h3,
.pricing-card h3 {
  margin: 1rem 0 0.8rem;
}

.visual-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.visual-card-overlay {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(10, 6, 16, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.visual-card-overlay span {
  display: block;
  color: var(--accent-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.45rem;
}

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

.trust-strip div {
  padding: 1.2rem 1.3rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-strip strong,
.server-stats strong {
  display: block;
  margin-bottom: 0.45rem;
}

.trust-strip span {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: 5rem 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
}

.section h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.product-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.product-card {
  min-height: 260px;
}

.product-card-featured {
  background:
    radial-gradient(circle at top right, rgba(180, 108, 255, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(36, 20, 54, 0.95), rgba(12, 8, 18, 0.96));
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(180, 108, 255, 0.16);
  color: var(--accent-soft);
  font-weight: 800;
}

.product-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent-soft);
  font-weight: 700;
}

.showcase-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.feature-list {
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.9;
}

.pricing-preview {
  display: grid;
  gap: 1rem;
}

.pricing-card strong {
  display: block;
  margin-top: 1.2rem;
  font-size: 2rem;
}

.pricing-card-highlight {
  background:
    radial-gradient(circle at top, rgba(180, 108, 255, 0.22), transparent 45%),
    linear-gradient(180deg, rgba(39, 22, 59, 0.96), rgba(12, 8, 18, 0.96));
}

.server-banner {
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.server-stats {
  display: grid;
  gap: 1rem;
}

.server-stats div {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(180, 108, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(180, 108, 255, 0.12);
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--accent-soft);
  font-weight: 700;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-page {
  background:
    radial-gradient(circle at 78% 16%, rgba(114, 240, 161, 0.14), transparent 22%),
    radial-gradient(circle at 18% 10%, rgba(168, 102, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #100719 0%, #07030d 54%, #050408 100%);
}

.village-defense-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(114, 240, 161, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 72%, rgba(208, 140, 255, 0.08) 0 1px, transparent 2px);
  background-size: 220px 220px, 280px 280px, 320px 320px;
}

.background-glow-green {
  top: 7rem;
  right: 14%;
  background: rgba(46, 168, 100, 0.28);
}

.project-page .section-tag {
  border-color: rgba(114, 240, 161, 0.18);
  background: rgba(16, 31, 22, 0.34);
  color: var(--project-green-soft);
}

.project-page .site-footer {
  margin-top: 4rem;
}

.project-hero {
  position: relative;
  padding: 5.4rem 0 1rem;
  min-height: calc(100vh - 88px);
  min-height: calc(100dvh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 2.5rem;
  align-items: center;
  isolation: isolate;
}

.project-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  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/villagedefensepro/hero.png") center center / cover no-repeat,
    radial-gradient(circle at 72% 42%, rgba(114, 240, 161, 0.2), transparent 20%),
    radial-gradient(circle at 84% 18%, rgba(46, 168, 100, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(114, 240, 161, 0.08), transparent 36%, transparent 70%, rgba(79, 210, 134, 0.08));
  opacity: 1;
  filter: saturate(0.92);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
}

.project-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  background:
    radial-gradient(circle at 72% 46%, rgba(114, 240, 161, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(7, 5, 12, 0.08), rgba(7, 5, 12, 0.2));
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
}

.project-hero-copy {
  max-width: 760px;
}

.project-badge {
  border-color: rgba(114, 240, 161, 0.2);
  background: rgba(16, 31, 22, 0.4);
  color: var(--project-green-soft);
}

.project-heading {
  margin: 1.3rem 0 0;
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
}

.project-heading span {
  display: block;
}

.project-heading-accent {
  background: linear-gradient(135deg, #eafedc 0%, #83f1af 28%, #4fd286 56%, #b46cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-summary {
  max-width: 62ch;
  margin: 1.4rem 0 0;
  color: var(--muted);
  line-height: 1.82;
  font-size: 1.05rem;
}

.project-summary-secondary {
  max-width: 58ch;
}

.project-meta-row {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(114, 240, 161, 0.18);
  background: rgba(13, 26, 19, 0.52);
  color: var(--project-green-soft);
  font-weight: 700;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button-primary-green {
  background: linear-gradient(135deg, #87f3b3, #35ab67);
  color: #04120a;
  box-shadow: 0 18px 40px rgba(42, 144, 86, 0.32);
}

.button-secondary-green {
  border-color: rgba(114, 240, 161, 0.14);
  background: rgba(17, 30, 22, 0.46);
}

.project-visual-shell {
  position: relative;
  padding: 1.4rem 0;
}

.project-visual-shell-logo {
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(100%, 560px);
}

.project-hero-logo {
  width: min(100%, 420px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 26px 46px rgba(8, 18, 13, 0.46));
  animation: floatHeroLogo 6.5s ease-in-out infinite;
}

.project-visual-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(34, 21, 51, 0.96), rgba(10, 7, 16, 0.98));
  box-shadow: var(--shadow);
}

.project-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(114, 240, 161, 0.12), transparent 28%, transparent 70%, rgba(180, 108, 255, 0.14));
  pointer-events: none;
}

.project-visual-card::after {
  content: "";
  position: absolute;
  inset: 18% 10% auto auto;
  width: 11rem;
  height: 11rem;
  border-radius: 999px;
  background: rgba(114, 240, 161, 0.16);
  filter: blur(42px);
  opacity: 0.9;
  animation: pulseGlow 6s ease-in-out infinite;
}

.project-poster {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: 26px;
  filter: saturate(1.05) contrast(1.02);
}

.project-hud {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  display: grid;
  gap: 0.85rem;
}

.project-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.project-stat-card,
.project-hud-panel,
.project-floating-note,
.project-card,
.project-banner {
  background: linear-gradient(180deg, rgba(26, 16, 40, 0.92), rgba(10, 7, 17, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.project-stat-card {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  backdrop-filter: blur(16px);
}

.project-stat-card strong {
  display: block;
  font-size: 1.7rem;
  color: var(--project-green-soft);
}

.project-stat-card span {
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}

.project-hud-panel {
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  backdrop-filter: blur(16px);
}

.project-panel-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--project-green-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

.project-hud-panel strong {
  display: block;
  font-size: 1.06rem;
}

.project-hud-panel p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-floating-note {
  position: absolute;
  z-index: 2;
  max-width: 220px;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(16px);
  animation: floatNote 7s ease-in-out infinite;
}

.project-floating-note strong {
  display: block;
  font-size: 0.95rem;
}

.project-floating-note span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
}

.project-floating-note-top {
  top: 2rem;
  right: -1.25rem;
}

.project-floating-note-bottom {
  left: -1.25rem;
  bottom: 5.5rem;
  animation-delay: 1.8s;
}

.project-overview-grid,
.project-gameplay-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 1rem;
  align-items: start;
}

.project-image-stack {
  display: grid;
  gap: 1rem;
}

.project-process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-process-step,
.project-image-slot {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.project-process-step {
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(26, 16, 40, 0.92), rgba(10, 7, 17, 0.96));
}

.project-step-number {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(131, 241, 175, 0.95), rgba(53, 171, 103, 0.92));
  color: #04120a;
  font-size: 0.82rem;
  font-weight: 800;
}

.project-process-step strong {
  display: block;
  margin-top: 0.9rem;
  font-size: 1.02rem;
}

.project-process-step span:last-child {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.project-image-slot {
  padding: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(114, 240, 161, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(30, 19, 45, 0.95), rgba(10, 7, 16, 0.98));
}

.project-image-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 36%),
    linear-gradient(225deg, rgba(114, 240, 161, 0.08), transparent 34%);
  pointer-events: none;
}

.project-image-slot strong,
.project-image-slot > span,
.project-image-slot .project-card-kicker {
  position: relative;
  z-index: 1;
}

.project-image-slot strong {
  display: block;
  margin-top: 0.95rem;
  font-size: 1.18rem;
}

.project-image-slot > span:last-of-type {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.7;
}

.project-image-slot-wide .project-image-placeholder {
  min-height: 230px;
}

.project-image-slot-tall .project-image-placeholder {
  min-height: 300px;
}

.project-image-placeholder {
  position: relative;
  margin-top: 1.15rem;
  min-height: 190px;
  border-radius: 22px;
  border: 1px dashed rgba(114, 240, 161, 0.24);
  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(114, 240, 161, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(12, 25, 18, 0.66), rgba(10, 8, 15, 0.42));
  background-size: 28px 28px, 28px 28px, auto, auto;
  overflow: hidden;
}

.project-image-placeholder::before {
  content: "";
  position: absolute;
  inset: auto auto -2.5rem -2.5rem;
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  background: rgba(114, 240, 161, 0.16);
  filter: blur(26px);
  z-index: 1;
}

.project-image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 8, 0.04) 0%, rgba(5, 10, 8, 0.16) 52%, rgba(5, 10, 8, 0.72) 100%);
  pointer-events: none;
  z-index: 1;
}

.project-image-placeholder span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(9, 18, 13, 0.86);
  border: 1px solid rgba(114, 240, 161, 0.16);
  color: var(--project-green-soft);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

.project-image-media,
.project-image-gallery {
  position: absolute;
  inset: 0;
}

.project-image-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-gallery {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem;
  z-index: 0;
}

.project-image-gallery-two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-image-gallery .project-image-media {
  position: static;
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.project-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.85;
}

.project-list li + li {
  margin-top: 0.35rem;
}

.project-section {
  padding-top: 5rem;
}

.project-metrics-grid,
.project-economy-grid,
.project-operations-grid,
.project-tech-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.project-metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-feature-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  align-items: start;
}

.project-kits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-stack {
  display: grid;
  gap: 1rem;
}

.project-economy-grid,
.project-operations-grid,
.project-tech-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  border-radius: 26px;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -50% auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(114, 240, 161, 0.11), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.project-card-green {
  background: radial-gradient(circle at top right, rgba(114, 240, 161, 0.16), transparent 40%), linear-gradient(180deg, rgba(24, 24, 36, 0.94), rgba(8, 10, 14, 0.98));
  border-color: rgba(114, 240, 161, 0.16);
}

.project-card-wide {
  grid-column: 1 / -1;
}

.project-card-top {
  margin-bottom: 0.9rem;
}

.project-card-kicker {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--project-green-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 800;
}

.project-card h3 {
  margin: 0.95rem 0 0;
  font-size: 1.32rem;
  line-height: 1.2;
}

.project-card p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.78;
}

.project-card code {
  padding: 0.08rem 0.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--project-green-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.project-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.project-chip {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 0.86rem;
}

.project-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.project-code-grid code {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--project-green-soft);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.project-banner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: 30px;
  background: radial-gradient(circle at top right, rgba(114, 240, 161, 0.16), transparent 42%), linear-gradient(180deg, rgba(31, 18, 48, 0.94), rgba(10, 7, 16, 0.98));
}

.project-banner p {
  max-width: 55ch;
  color: var(--muted);
  line-height: 1.8;
}

.project-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.project-final-section {
  padding-bottom: 1rem;
}

.wiki-hero-panel,
.wiki-toc-panel {
  min-height: 0;
}

.wiki-toc {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.wiki-toc a,
.wiki-command-list code {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(114, 240, 161, 0.12);
  background: rgba(10, 24, 15, 0.42);
  color: var(--text);
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.wiki-toc a:hover,
.wiki-toc a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(114, 240, 161, 0.24);
  background: rgba(14, 32, 20, 0.62);
}

.wiki-command-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.wiki-command-list code {
  overflow-wrap: anywhere;
}

.wiki-ordered-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.85;
}

.wiki-ordered-list li + li {
  margin-top: 0.45rem;
}

.wiki-tight-list {
  margin-top: 1rem;
}

/* Village Defense Pro uses a green content theme while the shell stays violet. */
.village-defense-page {
  --muted: #b2c9b8;
  --line: rgba(114, 240, 161, 0.14);
  background:
    radial-gradient(circle at 78% 16%, rgba(114, 240, 161, 0.18), transparent 24%),
    radial-gradient(circle at 16% 12%, rgba(56, 171, 103, 0.18), transparent 30%),
    linear-gradient(180deg, #09150f 0%, #050b08 52%, #020503 100%);
}

.village-defense-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(114, 240, 161, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 72%, rgba(114, 240, 161, 0.1) 0 1px, transparent 2px);
  background-size: 220px 220px, 280px 280px, 320px 320px;
}

.village-defense-page .background-glow-left {
  background: rgba(47, 164, 97, 0.28);
}

.village-defense-page .background-glow-right {
  background: rgba(91, 232, 151, 0.2);
}

.village-defense-page .background-glow-green {
  background: rgba(32, 130, 73, 0.26);
}

.village-defense-page .site-footer {
  --muted: #bfb2d7;
  --line: rgba(217, 176, 255, 0.14);
}

.village-defense-page .project-badge,
.village-defense-page .section-tag {
  border-color: rgba(114, 240, 161, 0.24);
  background: rgba(12, 33, 20, 0.48);
}

.village-defense-page .project-heading-accent {
  background: linear-gradient(135deg, #f0ffea 0%, #c9fcd9 26%, #72f0a1 58%, #2ea864 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.village-defense-page .project-pill {
  border-color: rgba(114, 240, 161, 0.22);
  background: rgba(11, 30, 18, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.village-defense-page .button-primary-green {
  background: linear-gradient(135deg, #b2ffd0, #3bb56f);
  box-shadow: 0 18px 40px rgba(33, 123, 73, 0.34);
}

.village-defense-page .button-secondary-green {
  border-color: rgba(114, 240, 161, 0.18);
  background: rgba(11, 31, 19, 0.6);
}

.village-defense-page .project-process-step,
.village-defense-page .project-stat-card,
.village-defense-page .project-hud-panel,
.village-defense-page .project-floating-note,
.village-defense-page .project-card,
.village-defense-page .project-banner {
  border-color: rgba(114, 240, 161, 0.12);
  background: linear-gradient(180deg, rgba(15, 34, 24, 0.94), rgba(6, 14, 10, 0.98));
}

.village-defense-page .project-visual-card {
  border-color: rgba(114, 240, 161, 0.14);
  background: linear-gradient(180deg, rgba(17, 38, 27, 0.96), rgba(6, 14, 10, 0.98));
}

.village-defense-page .project-visual-card::before {
  background: linear-gradient(135deg, rgba(114, 240, 161, 0.14), transparent 28%, transparent 70%, rgba(52, 170, 101, 0.18));
}

.village-defense-page .project-visual-card::after {
  background: rgba(114, 240, 161, 0.18);
}

.village-defense-page .project-image-slot {
  border-color: rgba(114, 240, 161, 0.12);
  background:
    radial-gradient(circle at top right, rgba(114, 240, 161, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(18, 40, 28, 0.95), rgba(7, 15, 11, 0.98));
}

.village-defense-page .project-image-slot::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 36%),
    linear-gradient(225deg, rgba(114, 240, 161, 0.12), transparent 34%);
}

.village-defense-page .project-image-placeholder {
  border-color: rgba(114, 240, 161, 0.3);
  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(114, 240, 161, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(11, 30, 18, 0.72), rgba(6, 14, 10, 0.5));
}

.village-defense-page .project-image-placeholder span,
.village-defense-page .project-card-kicker,
.village-defense-page .project-code-grid code,
.village-defense-page .project-card code {
  background: rgba(10, 24, 15, 0.88);
  border-color: rgba(114, 240, 161, 0.18);
}

.village-defense-page .project-image-gallery .project-image-media {
  border-color: rgba(114, 240, 161, 0.12);
}

.village-defense-page .project-card-green {
  background:
    radial-gradient(circle at top right, rgba(114, 240, 161, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(20, 46, 32, 0.96), rgba(8, 18, 13, 0.99));
  border-color: rgba(114, 240, 161, 0.18);
}

.village-defense-page .project-chip {
  background: rgba(10, 24, 15, 0.56);
  border-color: rgba(114, 240, 161, 0.1);
}

.village-defense-page .project-banner {
  background:
    radial-gradient(circle at top right, rgba(114, 240, 161, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(18, 40, 28, 0.95), rgba(6, 14, 10, 0.99));
}

@media (max-width: 1100px) {
  .project-hero,
  .project-overview-grid,
  .project-gameplay-grid,
  .project-feature-grid,
  .project-banner {
    grid-template-columns: 1fr;
  }

  .project-metrics-grid,
  .project-economy-grid,
  .project-operations-grid,
  .project-tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-visual-shell {
    max-width: 760px;
    margin: 0 auto;
  }

  .project-hero::before {
    opacity: 0.34;
    background-position: center;
  }
}

@media (max-width: 820px) {
  .project-kits-grid,
  .project-process-grid,
  .project-metrics-grid,
  .project-economy-grid,
  .project-operations-grid,
  .project-tech-grid,
  .project-code-grid,
  .project-stat-grid {
    grid-template-columns: 1fr;
  }

  .project-visual-shell {
    display: grid;
    gap: 1rem;
    padding: 0;
  }

  .project-visual-shell-logo {
    justify-self: center;
    width: min(100%, 460px);
  }

  .project-floating-note {
    position: static;
    max-width: none;
    animation: none;
  }

  .project-image-slot-tall .project-image-placeholder,
  .project-image-slot-wide .project-image-placeholder,
  .project-image-placeholder {
    min-height: 220px;
  }

  .project-poster {
    height: 520px;
  }

  .project-banner-actions {
    justify-content: flex-start;
  }

  .wiki-toc a,
  .wiki-command-list code {
    padding: 0.85rem 0.95rem;
  }
}

@media (max-width: 560px) {
  .project-hero {
    padding-top: 3.7rem;
    min-height: auto;
  }

  .project-hero::before {
    opacity: 0.28;
    filter: blur(5px) saturate(0.88);
  }

  .project-heading {
    font-size: 3rem;
  }

  .project-visual-shell-logo {
    width: min(100%, 360px);
  }

  .project-hero-logo {
    width: min(88%, 280px);
  }

  .project-card,
  .project-banner,
  .project-hud-panel,
  .project-stat-card {
    padding: 1.25rem;
  }

  .project-poster {
    height: 390px;
  }

  .project-hud {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .project-actions .button,
  .project-banner-actions .button {
    width: 100%;
  }

  .project-process-step,
  .project-image-slot {
    padding: 1.1rem;
  }

  .project-image-placeholder {
    min-height: 180px;
  }
}

@keyframes floatNote {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes floatHeroLogo {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}
