:root {
  --bg: #07090a;
  --surface: #101417;
  --surface-2: #151b1f;
  --line: rgba(240, 246, 248, 0.12);
  --text: #f4f7f7;
  --muted: #9aa5a7;
  --accent: #f7b731;
  --accent-strong: #ffd15c;
  --system: #77a6bf;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #141a1f 0%, var(--bg) 38%, #060707 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  font-size: 22px;
  font-weight: 760;
}

.links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.hero {
  display: grid;
  min-height: 72vh;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  align-items: center;
  gap: 48px;
  padding: 20px 0 54px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 720;
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #100b00;
  box-shadow: 0 18px 48px rgba(247, 183, 49, 0.16);
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

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

.game-card {
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 20, 23, 0.72);
}

.game-card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.game-card.featured img {
  aspect-ratio: 16 / 12;
}

.game-card div {
  padding: 20px;
}

.status {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.game-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.game-card p {
  color: var(--muted);
  font-size: 14px;
}

.game-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 740;
}

.principles {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
}

.principles h2 {
  margin-bottom: 12px;
  font-size: 30px;
  letter-spacing: 0;
}

.principles p,
.principles li {
  color: var(--muted);
}

.principles ul {
  margin: 0;
  padding-left: 20px;
}

.principles li + li {
  margin-top: 10px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 38px;
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 860px) {
  .nav,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero,
  .principles {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .portfolio {
    grid-template-columns: 1fr;
  }
}
