@font-face {
  font-family: "Yeseva One";
  src: url("../fonts/YesevaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Forum;
  src: url("../fonts/Forum-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Philosopher;
  src: url("../fonts/Philosopher-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070910;
  --ice: #9ec4ff;
  --gold: #c9a227;
  --gold-soft: #e2c56a;
  --cream: #efe6d2;
  --muted: #9aa4b8;
  --card: rgba(10, 16, 28, 0.78);
  --line: rgba(201, 162, 39, 0.35);
  --stag: #1c3a6e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: Forum, Georgia, serif;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(28, 58, 110, 0.55), transparent 60%),
    #070910;
}

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: #fff3c2; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: #111;
  padding: 8px 12px;
}

.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 10px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand span {
  font-family: "Yeseva One", serif;
  font-size: 18px;
  letter-spacing: 0.04em;
}

nav {
  display: flex;
  gap: 22px;
  font-family: Philosopher, sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

nav a { color: var(--muted); }
nav a:hover { color: var(--gold-soft); }

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px -10%;
  background:
    linear-gradient(180deg, rgba(7, 9, 16, 0.15), rgba(7, 9, 16, 0.92)),
    url("../img/hero-bg.jpg") center / cover no-repeat;
  filter: saturate(0.85) contrast(1.05);
  z-index: -1;
}

.crest {
  width: min(280px, 42vw);
  opacity: 0.28;
  margin-bottom: -90px;
  pointer-events: none;
}

.hero-content {
  width: min(980px, 100%);
  margin: 0 auto;
}

.logo {
  width: min(760px, 86vw);
  height: auto;
  display: block;
  margin: 0 auto;
  transform: translateX(-1.8%);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

.tagline {
  margin: 8px 0 0;
  font-family: "Yeseva One", serif;
  font-size: clamp(20px, 2.4vw, 32px);
  color: var(--gold-soft);
  text-shadow: 0 2px 18px #000;
}

.lead {
  max-width: 720px;
  margin: 16px auto 28px;
  color: #d7c49a;
  font-size: 20px;
  line-height: 1.45;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  font-family: Philosopher, sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(180deg, #e3c45a, #9a7618);
  color: #1a1408;
}

.btn-gold:hover { filter: brightness(1.08); color: #1a1408; }

.btn-ghost {
  background: rgba(8, 12, 22, 0.55);
  color: var(--cream);
}

.domain {
  margin-top: 18px;
  color: var(--ice);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
}

section {
  padding: 56px 0 10px;
}

h2 {
  font-family: "Yeseva One", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  margin: 0 0 12px;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 18px;
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.os-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px 22px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  position: relative;
}

.os-card.recommended {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.4), 0 20px 50px rgba(0, 0, 0, 0.28);
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: Philosopher, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1408;
  background: var(--gold);
  padding: 4px 8px;
}

.os-icon {
  width: 52px;
  height: 52px;
  margin: 8px auto 12px;
  fill: var(--ice);
}

.os-card h3 {
  font-family: "Yeseva One", serif;
  font-size: 26px;
  margin: 0 0 8px;
}

.os-meta {
  color: var(--muted);
  min-height: 48px;
  margin: 0 0 18px;
}

.os-card .btn {
  width: 100%;
}

.btn[aria-disabled="true"],
.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.req {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.factions, .heroes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.faction, .hero-card {
  background: var(--card);
  border: 1px solid rgba(158, 196, 255, 0.16);
  overflow: hidden;
}

.faction img, .hero-card img, .card-shot img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.faction div, .hero-card div {
  padding: 16px 18px 20px;
}

.faction h3, .hero-card h3 {
  font-family: "Yeseva One", serif;
  margin: 0 0 6px;
}

.era {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  border-top: 1px solid var(--gold);
  padding: 18px 8px 0;
}

.step b {
  display: block;
  font-family: Philosopher, sans-serif;
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: 12px;
  margin-bottom: 8px;
}

footer {
  margin-top: 64px;
  padding: 28px 0 12px;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  color: #6e7380;
  font-size: 14px;
  text-align: center;
  line-height: 1.55;
}

.plus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plus {
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.95), rgba(8, 12, 22, 0.9));
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
  padding: 22px 20px 20px;
}

.plus-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.plus-head img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(158, 196, 255, 0.45));
}

.plus b {
  display: inline-block;
  font-family: Philosopher, sans-serif;
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: 12px;
}

.plus h3 {
  font-family: "Yeseva One", serif;
  margin: 0 0 10px;
  font-size: 22px;
}

.plus p { margin: 0; color: #c8d2e3; line-height: 1.45; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card-shot {
  background: var(--card);
  border: 1px solid rgba(158, 196, 255, 0.16);
  overflow: hidden;
}

.card-shot img { height: 240px; object-fit: cover; }
.card-shot p {
  margin: 0;
  padding: 10px 12px 12px;
  font-family: Philosopher, sans-serif;
  font-size: 14px;
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.vote-btn {
  appearance: none;
  background: rgba(12, 18, 32, 0.9);
  color: var(--cream);
  border: 1px solid rgba(158, 196, 255, 0.22);
  min-height: 72px;
  padding: 10px 8px;
  cursor: pointer;
  font-family: Philosopher, sans-serif;
  letter-spacing: 0.04em;
}

.vote-btn small {
  display: block;
  color: var(--muted);
  font-family: Forum, serif;
  margin-top: 4px;
  letter-spacing: 0;
}

.vote-btn:hover { border-color: var(--gold); }

.vote-btn.mine {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.vote-btn.in-game {
  opacity: 0.55;
  cursor: default;
  border-style: dashed;
}

.bars { margin-top: 28px; }

.bar-row { margin: 0 0 10px; }

.bar-row span {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 4px;
}

.bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1c3a6e, var(--gold));
  transition: width 0.4s ease;
}

.suggest {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.suggest input {
  flex: 1;
  min-width: 220px;
  background: #0c121e;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 12px 14px;
  font-family: Forum, serif;
  font-size: 16px;
}

.vote-note {
  text-align: center;
  color: var(--ice);
  min-height: 24px;
}

.phone {
  color: var(--gold-soft);
  font-family: Philosopher, sans-serif;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.contact-box {
  text-align: center;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 36px 20px;
}

.contact-box .tel {
  display: block;
  font-family: "Yeseva One", serif;
  font-size: clamp(28px, 5vw, 48px);
  color: var(--gold-soft);
  margin: 8px 0 14px;
}

.faction-tag {
  margin: 36px 0 14px;
  font-family: "Yeseva One", serif;
  font-size: 22px;
  color: var(--gold-soft);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.road {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 16px;
}

header { flex-wrap: wrap; }

.thumb-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  cursor: pointer;
}

.thumb-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.like-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.like-card {
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
  padding: 22px 14px 18px;
}

.like-card.mine { border-color: var(--gold); }

.like-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}

.like-card h3 {
  font-family: "Yeseva One", serif;
  margin: 0 0 4px;
  font-size: 20px;
}

.like-card p { margin: 0 0 14px; color: var(--muted); }

.like-btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-soft);
  font-family: Philosopher, sans-serif;
  font-size: 18px;
  padding: 8px 16px;
  cursor: pointer;
  min-width: 96px;
}

.like-card.mine .like-btn {
  background: var(--gold);
  color: #1a1408;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(4, 6, 12, 0.82);
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: auto;
}

.modal[hidden] { display: none; }

.modal-card {
  width: min(1100px, 100%);
  background: #0b101c;
  border: 1px solid var(--line);
  padding: 28px 22px 32px;
  position: relative;
  max-height: 90vh;
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  color: var(--gold-soft);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 980px) {
  .plus-grid, .gallery, .vote-grid, .roadmap, .like-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  nav { display: none; }
  .os-grid, .factions, .heroes, .steps, .plus-grid, .gallery, .vote-grid, .roadmap, .like-grid { grid-template-columns: 1fr; }
  .faction img, .hero-card img { height: 220px; }
}
