:root {
  --bg: #07090d;
  --bg-elev: #10141c;
  --surface: #161b26;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef2f6;
  --muted: #8b95a8;
  --accent: #7ee0c8;
  --accent-dim: rgba(126, 224, 200, 0.16);
  --trucker: #f59e0b;
  --racer: #ff4d2e;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(126, 224, 200, 0.08), transparent 55%),
    radial-gradient(800px 380px at 92% 8%, rgba(255, 77, 46, 0.07), transparent 50%),
    radial-gradient(700px 360px at 50% 100%, rgba(245, 158, 11, 0.06), transparent 45%),
    var(--bg);
}

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

a {
  color: var(--accent);
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__inner {
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand__text {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.brand__text span {
  color: var(--accent);
}

.brand__mark {
  display: flex;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 4px;
}

.site-nav__link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav__link--trucker:hover {
  color: var(--trucker);
}

.site-nav__link--streetracer:hover {
  color: #ff8a75;
}

.site-nav__link--rss {
  color: #9aa3b2;
}

.hero {
  display: grid;
  gap: 14px;
  padding: 36px 0 28px;
}

.hero__kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.section {
  margin-top: 12px;
}

.section-head {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.game-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.game-card::before,
.game-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.game-card::before {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
}

.game-card::after {
  right: 14px;
  bottom: 14px;
  border-left: 0;
  border-top: 0;
}

.game-card__art {
  position: absolute;
  inset: 0;
  background: #111 center / cover no-repeat;
  transform: scale(1.04);
  transition: transform 0.6s ease;
}

.game-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.18) 10%, rgba(7, 9, 13, 0.78) 68%, rgba(7, 9, 13, 0.94) 100%);
}

.game-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: 28px;
}

.game-card__kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-card--trucker .game-card__kicker {
  color: var(--trucker);
}

.game-card--streetracer .game-card__kicker {
  color: #ff8a75;
}

.game-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.game-card__sub {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-card__desc {
  margin: 12px 0 0;
  max-width: 36em;
  color: rgba(238, 242, 246, 0.86);
  font-size: 15px;
  line-height: 1.5;
}

.game-card__cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 700;
}

.game-card:hover .game-card__art,
.game-card:focus-visible .game-card__art {
  transform: scale(1.1);
}

.game-card:hover .game-card__cta,
.game-card:focus-visible .game-card__cta {
  background: var(--text);
  color: #111;
}

.game-card--trucker:hover,
.game-card--trucker:focus-visible {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.16);
}

.game-card--streetracer:hover,
.game-card--streetracer:focus-visible {
  border-color: rgba(255, 77, 46, 0.5);
  box-shadow: 0 18px 50px rgba(255, 77, 46, 0.16);
}

.news-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 20, 28, 0.72);
}

.news-item {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.news-item:first-child {
  border-top: 0;
}

.news-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.news-item--no-image .news-row {
  grid-template-columns: minmax(0, 1fr);
}

.news-image-link {
  display: block;
  line-height: 0;
}

.news-image {
  width: 200px;
  height: auto;
  max-height: 150px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

.news-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  line-height: 1.2;
}

.news-date {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}

.news-date a {
  color: inherit;
  text-decoration: none;
}

.news-date a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.news-tags {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.news-tags span + span {
  margin-left: 0.35em;
}

.news-body {
  font-size: 15px;
  line-height: 1.5;
  color: #d7dde6;
}

.news-body > *:first-child {
  margin-top: 0;
}

.news-body > *:last-child {
  margin-bottom: 0;
}

.news-body p {
  margin: 0 0 0.45em;
}

.news-body ul,
.news-body ol {
  margin: 0 0 0.45em;
  padding-left: 1.2em;
}

.news-body li {
  margin: 0 0 0.2em;
}

.news-body li:last-child {
  margin-bottom: 0;
}

.news-body li > p {
  margin: 0;
  display: inline;
}

.news-body li > p + p {
  display: block;
  margin-top: 0.25em;
}

.news-body a {
  color: var(--accent);
}

.news-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.news-body strong {
  font-weight: 700;
  color: var(--text);
}

.news-item--single {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 20, 28, 0.72);
}

.single-nav,
.hint-block {
  margin: 18px 0 0;
}

.back-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hint-block {
  color: var(--muted);
  font-size: 15px;
}

.site-footer {
  margin-top: auto;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.7);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.site-footer__nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-card,
  .game-card__body {
    min-height: 360px;
  }
}

@media (max-width: 900px) {
  .page {
    width: min(1120px, calc(100% - 28px));
    padding: 20px 0 48px;
  }

  .site-header__inner,
  .site-footer__inner {
    width: min(1120px, calc(100% - 28px));
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px 16px;
    background: rgba(10, 13, 18, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    padding: 12px 14px;
  }

  .hero {
    padding-top: 24px;
  }

  .news-row {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
  }

  .news-image {
    width: 132px;
    max-height: 100px;
  }

  .news-body {
    font-size: 14px;
  }

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

  .site-footer__links,
  .site-footer__nav {
    align-items: flex-start;
    justify-content: flex-start;
  }
}
