/* Pale Dawn Games — общий стиль сайта. Тёмный, как игры; шрифты лежат на сайте (/fonts). */
@font-face {
  font-family: 'Oswald';
  src: url(/fonts/oswald.woff2) format('woff2-variations');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto Condensed';
  src: url(/fonts/roboto-condensed.woff2) format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0d0c;
  --bg-2: #121513;
  --panel: #171a18;
  --line: #262a27;
  --text: #e6ddcc;
  --text-2: #c4bcae;
  --dim: #8f8576;
  --accent: #c98a45;
  --accent-2: #e0a868;
  --red: #8e2b23;
  --red-2: #a8352b;
  --head: 'Oswald', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body: 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.55 var(--body);
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: 0.03em; line-height: 1.05; margin: 0; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.dim { color: var(--dim); }
.eyebrow {
  font: 500 13px/1.5 var(--head);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------------------------------------------------------- шапка */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  padding: 22px 0;
}
.top.solid { position: static; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 16px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font: 600 17px/1 var(--head); letter-spacing: 0.26em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text-2); font: 500 14px/1 var(--head); letter-spacing: 0.18em; text-transform: uppercase; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---------------------------------------------------------------- кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 16px/1.2 var(--head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-play { background: var(--red); color: #f4ebdc; border-color: #b3483c; }
.btn-play:hover { background: var(--red-2); }
.btn-ghost { background: rgba(10, 12, 11, 0.55); color: var(--text); border-color: #4a4f4b; }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- герой */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #050606;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url(/img/hero-night.jpg) center 40% / cover no-repeat;
  filter: brightness(0.95) saturate(1.05);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 7, 0.92) 0%, rgba(6, 7, 7, 0.7) 38%, rgba(6, 7, 7, 0.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 12, 0) 38%),
    linear-gradient(180deg, rgba(6, 7, 7, 0.75) 0%, rgba(6, 7, 7, 0) 22%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 72px; padding-top: 140px; }
.hero h1 {
  text-transform: uppercase;
  font-size: clamp(44px, 8.2vw, 108px);
  font-weight: 700;
  margin: 14px 0 0;
  color: #ece3d2;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.7);
}
.hero .rule { width: 110px; height: 2px; background: var(--accent); margin: 22px 0 20px; }
.hero .lede { max-width: 520px; font-size: 20px; color: var(--text-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.itch-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 14px;
  font: 500 14px/1 var(--head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.itch-link:hover { color: var(--accent-2); text-decoration: none; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.player-actions { display: flex; gap: 8px; align-items: center; }
.itch-btn {
  border: 1px solid #3a3f3b;
  color: var(--text-2);
  font: 500 13px/1 var(--head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 14px;
}
.itch-btn:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--dim); font-size: 15px; }
.facts b { color: var(--text-2); font-weight: 500; }

/* ---------------------------------------------------------------- секции */
section.block { padding: 84px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 26px; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
  align-items: center;
}
.game-card img { aspect-ratio: 630 / 500; object-fit: cover; width: 100%; }
.game-card h3 { font-size: 34px; margin: 10px 0 12px; text-transform: uppercase; }
.game-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.tag { font: 500 12px/1 var(--head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); border: 1px solid #3a3f3b; padding: 6px 9px; }
.soon { margin-top: 22px; color: var(--dim); font-size: 16px; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.shots a { display: block; border: 1px solid var(--line); overflow: hidden; background: #000; }
.shots img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.25s, opacity 0.25s; opacity: 0.92; }
.shots a:hover img { transform: scale(1.03); opacity: 1; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { padding-left: 22px; position: relative; color: var(--text-2); }
.features li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--accent); }
.features b { color: var(--text); font-weight: 500; }

table.keys { width: 100%; border-collapse: collapse; font-size: 16px; }
.keys th { text-align: left; font: 500 13px/1 var(--head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); padding: 18px 0 8px; }
.keys td { border-top: 1px solid var(--line); padding: 8px 12px 8px 0; vertical-align: top; color: var(--text-2); }
.keys td:first-child { color: var(--text); white-space: nowrap; width: 44%; }

/* ---------------------------------------------------------------- окно игры */
.player { padding: 28px 0 0; }
.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: calc(100vh - 160px);
  background: #000 url(/img/hero-night.jpg) center / cover no-repeat;
  border: 1px solid var(--line);
  overflow: hidden;
}
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.frame .start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(ellipse at center, rgba(6, 7, 7, 0.35), rgba(6, 7, 7, 0.82));
  border: 0;
  width: 100%;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.frame .start .btn { pointer-events: none; }
.frame .start small { color: var(--text-2); font-size: 15px; }
.player-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; color: var(--dim); font-size: 15px; }
.player-bar button { background: none; border: 1px solid #3a3f3b; color: var(--text-2); font: 500 13px/1 var(--head); letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
.player-bar button:hover { border-color: var(--accent); color: var(--text); }

/* ---------------------------------------------------------------- текстовые страницы */
.page { padding: 56px 0 84px; max-width: 760px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); margin: 12px 0 24px; }
.page h2 { font-size: 24px; margin: 34px 0 12px; }
.page ul { padding-left: 20px; color: var(--text-2); }
.page li { margin-bottom: 8px; }

/* ---------------------------------------------------------------- подвал */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--dim); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--text-2); }

/* ---------------------------------------------------------------- телефоны */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .split, .game-card { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  section.block { padding: 60px 0; }
  .hero { min-height: 640px; }
  .hero::after {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 12, 0.9) 50%, rgba(6, 7, 7, 0.55) 78%, rgba(6, 7, 7, 0.35) 100%),
      linear-gradient(180deg, rgba(6, 7, 7, 0.85) 0%, rgba(6, 7, 7, 0) 22%);
  }
  .hero-bg { background-position: 62% 30%; background-size: auto 120%; }
  .hero .wrap { padding-top: 260px; }
  .eyebrow { letter-spacing: 0.22em; }
  .game-card .actions .btn { flex: 1 1 100%; }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-bottom: 44px; }
  .hero .actions .btn { flex: 1 1 200px; }
  .nav { gap: 16px; }
  .brand span { font-size: 14px; letter-spacing: 0.2em; }
  .frame { aspect-ratio: 16 / 10; }
  .keys td:first-child { width: auto; white-space: normal; }
}
@media (max-width: 420px) {
  .nav a.hide-sm { display: none; }
}
