:root {
  --bg: #070b0d;
  --bg-2: #0b1114;
  --panel: rgba(26, 31, 34, 0.88);
  --panel-strong: rgba(38, 25, 25, 0.92);
  --text: #f4eee8;
  --muted: #b8b0aa;
  --dim: #776f6a;
  --red: #b83232;
  --red-2: #e05249;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --max: 1120px;
}

@font-face {
  font-family: "Rijusans";
  src: url("assets/Rijusans.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(109, 37, 37, 0.18), transparent 26rem),
    linear-gradient(180deg, #0b1114 0%, var(--bg) 34%, #06090a 100%);
  color: var(--text);
  font-family: "Rijusans", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 28%, transparent);
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

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

.site-header {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 80;
  display: grid;
  width: min(92vw, var(--max));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.site-header::before {
  position: absolute;
  top: -22px;
  right: -6vw;
  bottom: -110px;
  left: -6vw;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(5, 8, 10, 0.72) 0%, rgba(5, 8, 10, 0.42) 58%, rgba(5, 8, 10, 0) 100%);
  backdrop-filter: blur(10px);
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
}

.brand-mini,
.header-cta,
.main-nav,
.nav-toggle {
  pointer-events: auto;
}

.brand-mini {
  justify-self: start;
  display: block;
  width: 154px;
  aspect-ratio: 1562 / 555;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-krav {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(24, 28, 30, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 82;
}

.main-nav a {
  min-width: 76px;
  padding: 9px 12px;
  border-radius: 5px;
  color: #f0ebe8;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  transition: background 160ms ease, color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(184, 50, 50, 0.22);
  color: white;
  outline: none;
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-cta {
  justify-self: end;
  background: var(--red);
  box-shadow: 0 10px 28px rgba(160, 38, 38, 0.35);
}

.button.primary {
  border: 1px solid rgba(255, 120, 112, 0.45);
  background: var(--red);
  box-shadow: 0 14px 32px rgba(163, 38, 38, 0.32);
}

.button.ghost {
  border: 1px solid rgba(224, 82, 73, 0.55);
  background: transparent;
  color: #d8aaa5;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 84;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(18, 22, 24, 0.88);
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  place-items: start center;
  overflow: hidden;
  padding: 162px 24px 150px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 8, 0.14) 0%, rgba(4, 6, 8, 0.28) 44%, var(--bg) 98%),
    radial-gradient(circle at center 43%, rgba(130, 33, 31, 0.24), transparent 24rem),
    url("assets/hero-forest.jpg") center top / cover no-repeat;
  filter: saturate(0.86) contrast(1.04);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.34));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  text-align: center;
}

.kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.game-logo {
  display: block;
  width: min(980px, 92vw);
  aspect-ratio: 1562 / 555;
  height: clamp(160px, 24vw, 348px);
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(224, 82, 73, 0.42)) drop-shadow(0 18px 42px rgba(0, 0, 0, 0.75));
}

.subtitle {
  margin: 18px 0 0;
  color: #c8453f;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(224, 82, 73, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0;
}

.section h2 {
  margin: 0;
  font-family: "Rijusans", Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.06;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.section-heading {
  margin-bottom: 34px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1.22fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
  padding-top: 24px;
}

.section-copy p {
  max-width: 540px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.overlap-art {
  position: relative;
  min-height: 520px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlap-art img {
  object-fit: cover;
}

.art-main,
.art-small {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.art-main {
  top: 0;
  right: 0;
  width: 78%;
  height: auto;
  aspect-ratio: 16 / 11;
}

.art-small {
  left: 0;
  bottom: 8px;
  width: 56%;
  height: auto;
  aspect-ratio: 4 / 3;
  filter: grayscale(0.82) contrast(1.08);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  min-height: 238px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(38, 45, 48, 0.86), rgba(18, 22, 24, 0.86));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.feature-card.is-hot {
  border-color: rgba(224, 82, 73, 0.78);
  box-shadow: 0 0 0 1px rgba(224, 82, 73, 0.18), 0 0 34px rgba(184, 50, 50, 0.34);
}

.feature-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(224, 82, 73, 0.6);
  border-radius: 50%;
  color: var(--red-2);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feature-card h3 {
  min-height: 48px;
  margin: 0;
  font-family: "Rijusans", Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.18;
}

.feature-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 176px;
  gap: 18px;
}

.gallery-item {
  display: block;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #111;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.gallery-item img {
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: brightness(1.12);
  transform: scale(1.035);
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.spec-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(38, 44, 47, 0.88), rgba(18, 22, 24, 0.9));
}

.spec-card.recommended {
  border-color: rgba(224, 82, 73, 0.55);
  background: linear-gradient(180deg, rgba(74, 28, 28, 0.82), rgba(20, 23, 25, 0.9));
  box-shadow: 0 0 30px rgba(184, 50, 50, 0.18);
}

.spec-card h3 {
  margin: 0;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.06);
  font-family: "Rijusans", Georgia, "Times New Roman", serif;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
}

.spec-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 24px;
}

.spec-card div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: start;
}

.spec-card dt {
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.spec-card dd {
  margin: 0;
  color: #e6ded8;
  font-size: 0.88rem;
}

.site-footer {
  display: grid;
  width: min(var(--max), calc(100% - 48px));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  margin: 48px auto 0;
  padding: 46px 0 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #d9d3ce;
  font-size: 0.68rem;
  font-weight: 900;
}

.social-links img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: brightness(0) invert(0.86);
}

.site-footer p {
  justify-self: end;
  margin: 0;
  font-size: 0.82rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 78px 24px 24px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  width: min(1180px, 100%);
  max-height: 82vh;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(22, 24, 26, 0.95);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 58px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(224, 82, 73, 0.38);
  border-radius: 7px;
  background: rgba(4, 6, 7, 0.68);
  color: #f4eee8;
  cursor: pointer;
  font-size: 3rem;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

.mode-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: block;
  width: min(190px, 24vw);
  aspect-ratio: 383 / 190;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  transform-origin: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.mode-toggle::before {
  display: none;
  content: none;
}

.mode-toggle:hover {
  animation: role-button-pulse 620ms ease-in-out infinite alternate;
}

.mode-role {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.mode-role-krav {
  display: block;
}

.mode-role-survival {
  display: none;
}

.mode-toggle[aria-pressed="true"] .mode-role-survival {
  display: block;
}

.mode-toggle[aria-pressed="true"] .mode-role-krav {
  display: none;
}

@keyframes role-button-pulse {
  from {
    transform: scale(0.96);
  }

  to {
    transform: scale(1.05);
  }
}

.sonar-layer {
  position: fixed;
  inset: 0;
  z-index: 42;
  overflow: hidden;
  pointer-events: none;
}

.sonar-pulse {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 24, 18, 0.92);
  border-radius: 47% 53% 51% 49% / 49% 45% 55% 51%;
  background: rgba(120, 0, 0, 0.42);
  box-shadow:
    0 0 18px rgba(255, 24, 18, 0.38),
    0 0 0 18px rgba(255, 24, 18, 0.08),
    0 0 0 36px rgba(255, 24, 18, 0.045),
    inset 0 0 22px rgba(0, 0, 0, 0.95);
  transform: translate(-50%, -50%) scale(0.3);
  animation: sonar-expand 1450ms ease-out forwards, sonar-wobble 420ms linear infinite;
}

.sonar-pulse::before,
.sonar-pulse::after {
  position: absolute;
  inset: -18px;
  content: "";
  border: 1px solid rgba(255, 24, 18, 0.5);
  border-radius: 42% 58% 48% 52% / 54% 46% 54% 46%;
}

.sonar-pulse::after {
  inset: -42px;
  border-color: rgba(255, 24, 18, 0.3);
  border-radius: 56% 44% 53% 47% / 44% 56% 43% 57%;
}

@keyframes sonar-expand {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.25);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.5);
  }
}

@keyframes sonar-wobble {
  0% {
    border-radius: 47% 53% 51% 49% / 49% 45% 55% 51%;
  }

  50% {
     border-radius: 65% 35% 58% 42% / 38% 62% 35% 65%;
  }

  100% {
    border-radius: 47% 53% 51% 49% / 49% 45% 55% 51%;
  }
}

body.krav-mode {
  --bg: #000;
  --text: #dceff3;
  --muted: #8fb4bb;
  --dim: #557b82;
  background: #000;
}

body.krav-mode::before {
  z-index: -1;
  background: radial-gradient(circle at 50% 55%, rgba(130, 216, 232, 0.1), transparent 28rem);
  mask-image: none;
  mix-blend-mode: screen;
}

body.krav-mode::after {
  display: none;
  content: none;
}

body.krav-mode .site-header,
body.krav-mode main,
body.krav-mode .site-footer {
  filter: none;
}

body.krav-mode img,
body.krav-mode .hero-media {
  filter: grayscale(1) sepia(0.9) hue-rotate(136deg) saturate(1.35) contrast(2.35) brightness(0.28);
}

body.krav-mode .lightbox img {
  filter: none;
}

body.krav-mode .overlap-art img:hover,
body.krav-mode .overlap-art img:focus-visible {
  filter: none;
}

body.krav-mode .logo-survival {
  display: none;
}

body.krav-mode .logo-krav {
  display: block;
  filter: none;
}

body.krav-mode .brand-mini {
  width: 154px;
}

body.krav-mode .game-logo {
  filter: drop-shadow(0 0 18px rgba(156, 225, 238, 0.14));
}

body.krav-mode .hero-media {
  opacity: 0.72;
}

body.krav-mode .game-logo,
body.krav-mode .subtitle,
body.krav-mode h2,
body.krav-mode h3,
body.krav-mode p,
body.krav-mode dd,
body.krav-mode dt,
body.krav-mode a {
  color: #d9f4f8;
  text-shadow: 0 0 12px rgba(156, 225, 238, 0.42);
}

body.krav-mode .main-nav,
body.krav-mode .feature-card,
body.krav-mode .spec-card,
body.krav-mode .gallery-item {
  border-color: rgba(156, 225, 238, 0.28);
  background: rgba(0, 0, 0, 0.86);
  box-shadow: inset 0 0 22px rgba(156, 225, 238, 0.08), 0 0 24px rgba(156, 225, 238, 0.08);
}

body.krav-mode .header-cta,
body.krav-mode .button.primary {
  border-color: rgba(224, 82, 73, 0.85);
  background: rgba(0, 0, 0, 0.74);
  color: #ff5c55;
  box-shadow: inset 0 0 18px rgba(224, 82, 73, 0.16), 0 0 22px rgba(224, 82, 73, 0.24);
}

body.krav-mode .button.ghost,
body.krav-mode .lightbox-nav,
body.krav-mode .lightbox-close {
  border-color: rgba(156, 225, 238, 0.52);
  background: transparent;
  color: #d9f4f8;
  box-shadow: 0 0 18px rgba(156, 225, 238, 0.18);
}

body.krav-mode .mode-toggle {
  filter: none;
}

body.krav-mode .mode-role {
  filter: none;
}

body.krav-mode .mode-toggle::before {
  display: none;
  content: none;
}

body.krav-mode .mode-role-survival {
  filter: brightness(1.75) contrast(1.18);
}

@media (max-width: 980px) {
  .site-header {
    top: 14px;
    grid-template-columns: auto 1fr auto;
  }

  .brand-mini {
    width: 112px;
    height: 42px;
  }

  .main-nav {
    justify-self: center;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .overlap-art {
    min-height: 430px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
  }

  .gallery-large {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: calc(100% - 28px);
    grid-template-columns: 44px 1fr 44px;
  }

  .site-header::before {
    top: -14px;
    right: -14px;
    bottom: -24px;
    left: -14px;
  }

  .brand-mini {
    display: block;
    grid-column: 2;
    justify-self: center;
    width: 126px;
    height: auto;
  }

  .nav-toggle {
    display: grid;
    grid-column: 3;
    justify-self: end;
  }

  .main-nav {
    position: absolute;
    top: 58px;
    right: 0;
    left: auto;
    display: none;
    width: min(320px, 100%);
    grid-template-columns: 1fr;
    transform: none;
    z-index: 83;
    background: rgba(10, 13, 15, 0.96);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    min-width: 0;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 690px;
    padding: 150px 18px 110px;
  }

  .game-logo {
    width: min(520px, 96vw);
  }

  .subtitle {
    font-size: clamp(1.04rem, 5vw, 1.45rem);
  }

  .section {
    width: calc(100% - 32px);
    padding: 62px 0;
  }

  .overlap-art {
    min-height: auto;
  }

  .art-main,
  .art-small {
    position: static;
    width: 100%;
  }

  .art-small {
    margin-top: 16px;
  }

  .feature-grid,
  .spec-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-card h3 {
    min-height: 0;
  }

  .gallery-grid {
    grid-auto-rows: auto;
  }

  .gallery-item,
  .gallery-large {
    aspect-ratio: 16 / 10;
    grid-column: auto;
    grid-row: auto;
  }

  .spec-card div {
    grid-template-columns: 98px 1fr;
    gap: 12px;
  }

  .site-footer {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer p {
    justify-self: center;
  }

  .lightbox-nav {
    width: 44px;
    height: 58px;
    font-size: 2.25rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .mode-toggle {
    right: 16px;
    bottom: 18px;
    z-index: 90;
    width: min(132px, 34vw);
  }
}

@media (max-width: 420px) {
  .brand-mini {
    width: 112px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .spec-card div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
