:root {
  --bg: #070807;
  --bg-soft: #11130f;
  --paper: #f5ead2;
  --muted: #b6ad99;
  --line: rgba(245, 234, 210, 0.16);
  --gold: #f4b53f;
  --green: #69c16e;
  --teal: #31c8b1;
  --red: #e95646;
  --panel: rgba(10, 12, 10, 0.84);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(105, 193, 110, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(233, 86, 70, 0.16), transparent 30rem),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.16;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 5px
    );
  mix-blend-mode: overlay;
}

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

.topbar {
  position: fixed;
  inset: 18px clamp(16px, 4vw, 56px) auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 7, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #10110d;
  font-family: "Black Ops One", Inter, sans-serif;
  font-size: 28px;
  background:
    linear-gradient(135deg, #fff0b1, var(--gold) 48%, #d88927);
  border: 2px solid #111;
  box-shadow: 5px 5px 0 #000;
  transform: rotate(-3deg) skew(-4deg);
}

.logo__text strong {
  display: block;
  font-family: "Black Ops One", Inter, sans-serif;
  font-size: 22px;
  letter-spacing: 0;
}

.logo__text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.menu a,
.forum {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: #eee1c5;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: 160ms ease;
}

.menu a:hover,
.forum:hover {
  color: #fff7dc;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.launcher {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: #11100b;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff2b1 0%, var(--gold) 52%, #d98428 100%);
  border: 1px solid rgba(0, 0, 0, 0.8);
  box-shadow: 5px 5px 0 #000, 0 0 26px rgba(244, 181, 63, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.launcher:hover {
  transform: translate(-1px, -1px);
  box-shadow: 7px 7px 0 #000, 0 0 36px rgba(244, 181, 63, 0.38);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 130px clamp(18px, 5vw, 72px) 0;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.12) brightness(0.82);
  transform: scale(1.02);
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(5, 6, 5, 0.96) 0%, rgba(7, 8, 7, 0.74) 39%, rgba(7, 8, 7, 0.38) 72%, rgba(7, 8, 7, 0.84) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.12) 38%, rgba(7, 8, 7, 0.95) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.7fr);
  gap: clamp(26px, 5vw, 80px);
  align-items: end;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding-bottom: 56px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Russo One", Inter, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: 0.95;
  text-wrap: balance;
  text-shadow: 4px 4px 0 #050505, 0 0 34px rgba(0, 0, 0, 0.65);
}

.h1-game {
  display: block;
  margin-bottom: 4px;
  font-family: "Black Ops One", "Russo One", Inter, sans-serif;
  color: #fff1d0;
}

.hero__lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: #eadfc5;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.forum {
  min-height: 50px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 5px 5px 0 #000;
}

.map-card {
  border: 1px solid rgba(245, 234, 210, 0.22);
  background: linear-gradient(180deg, rgba(14, 16, 14, 0.9), rgba(8, 9, 8, 0.84));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-card__top,
.map-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.map-card__top {
  border-bottom: 1px solid var(--line);
}

.map-card__top strong {
  color: var(--gold);
}

.map-card__bottom {
  border-top: 1px solid var(--line);
}

.map-card__bottom span {
  display: inline-grid;
  width: 48px;
  height: 32px;
  place-items: center;
  color: #0d0e0b;
  background: var(--paper);
  box-shadow: 4px 4px 0 #000;
}

.mini-map {
  position: relative;
  aspect-ratio: 1.08;
  overflow: hidden;
  background: #090a09;
}

.mini-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.25) contrast(1.12) brightness(0.78);
}

.mini-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(105, 193, 110, 0.3), transparent 35%),
    linear-gradient(240deg, rgba(233, 86, 70, 0.34), transparent 38%),
    linear-gradient(0deg, rgba(244, 181, 63, 0.27), transparent 48%);
}

.pin {
  position: absolute;
  z-index: 2;
  max-width: 136px;
  padding: 8px 10px;
  color: #10100b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  background: var(--paper);
  border-left: 6px solid currentColor;
  box-shadow: 4px 4px 0 #000;
}

.pin--coast {
  left: 10%;
  bottom: 23%;
  color: var(--green);
}

.pin--desert {
  left: 15%;
  top: 22%;
  color: var(--gold);
}

.pin--north {
  right: 8%;
  top: 38%;
  color: var(--red);
}

.ticker {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 0;
  width: calc(100% + clamp(36px, 10vw, 144px));
  margin-left: calc(clamp(18px, 5vw, 72px) * -1);
  overflow: hidden;
  border-block: 1px solid rgba(245, 234, 210, 0.2);
  background: #090a08;
}

.ticker span {
  flex: 1 0 auto;
  min-width: 210px;
  padding: 16px 24px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  border-right: 1px solid rgba(245, 234, 210, 0.15);
}

.ticker span:nth-child(2n) {
  color: var(--gold);
}

.republics {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 78px 0 54px;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-title h2,
.start h2 {
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1;
  text-wrap: balance;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  min-height: 330px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent),
    var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

.card::before {
  content: "";
  position: absolute;
  inset: auto -18% -30% -18%;
  height: 170px;
  opacity: 0.28;
  filter: blur(28px);
}

.card--coast::before {
  background: var(--green);
}

.card--desert::before {
  background: var(--gold);
}

.card--north::before {
  background: var(--red);
}

.card__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 76px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.card__head strong {
  display: grid;
  width: 54px;
  height: 42px;
  place-items: center;
  color: #0e0f0b;
  background: var(--paper);
  box-shadow: 4px 4px 0 #000;
}

.card h3 {
  position: relative;
  max-width: 310px;
  font-size: 28px;
  line-height: 1.08;
}

.card p {
  position: relative;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto 58px;
  padding: 32px;
  border: 1px solid rgba(245, 234, 210, 0.2);
  background:
    linear-gradient(120deg, rgba(105, 193, 110, 0.16), rgba(244, 181, 63, 0.17), rgba(233, 86, 70, 0.14)),
    #0d0f0c;
  box-shadow: var(--shadow);
}

.start h2 {
  max-width: 820px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px) 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--gold);
}

.forum-page {
  min-height: 100vh;
  display: grid;
  place-items: center start;
  padding: 170px clamp(18px, 6vw, 96px) 70px;
  background:
    linear-gradient(90deg, rgba(7, 8, 7, 0.96), rgba(7, 8, 7, 0.62)),
    url("assets/hero-map.png") center / cover;
}

.forum-page > div {
  max-width: 760px;
}

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

  .menu {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 2px;
  }

  .menu a {
    white-space: nowrap;
  }

  .hero {
    padding-top: 166px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .map-card {
    max-width: 620px;
  }

  .section-title,
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 250px;
  }

  .card__head {
    margin-bottom: 38px;
  }

  .start {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .topbar {
    inset: 10px 10px auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .logo__text small {
    display: none;
  }

  .launcher--top {
    width: 100%;
  }

  .menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .menu a {
    min-height: 38px;
    padding: 0 8px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 248px 18px 0;
  }

  .hero__inner {
    padding-bottom: 36px;
  }

  h1 {
    font-size: clamp(37px, 12vw, 50px);
  }

  .hero__lead {
    font-size: 15px;
    line-height: 1.58;
  }

  .hero__actions,
  .start .launcher {
    width: 100%;
  }

  .hero__actions a,
  .start .launcher {
    width: 100%;
  }

  .map-card {
    width: 100%;
  }

  .pin {
    max-width: 118px;
    font-size: 10px;
  }

  .ticker {
    width: calc(100% + 36px);
    margin-left: -18px;
  }

  .ticker span {
    min-width: 180px;
    padding-inline: 18px;
  }

  .republics {
    width: calc(100% - 36px);
    padding-top: 54px;
  }

  .card,
  .start {
    padding: 22px;
  }

  .start {
    width: calc(100% - 36px);
  }

  .footer {
    flex-direction: column;
  }
}
