/* Mekax Studio: dark, modern, plain. Brand colours and fonts live in the tokens below. */
:root {
  color-scheme: dark;
  --bg: #0E0E12;
  --surface: #16161C;
  --surface-hover: #1C1C24;
  --line: #26262F;
  --fg: #F4F2EE;
  --muted: #9A9AA6;
  --orange: #FF5A1F;
  --purple: #7B5CFF;
  --font-display: "Unbounded", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 var(--font-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}
main.wrap { padding-top: 48px; padding-bottom: 80px; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: #FF7A47; }
a:focus-visible, .card:focus-visible, .tabs a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}
img { max-width: 100%; }
strong { font-weight: 600; }

/* Header and logo */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--fg);
  text-decoration: none;
  line-height: 1;
}
.logo:hover { color: var(--fg); }
.logo-mark { display: inline-flex; align-items: center; gap: 0.06em; font-size: 24px; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.logo-x { width: 0.82em; height: 0.82em; display: block; }
.logo-sub {
  margin-top: 5px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.42em;
  color: var(--muted);
}
.site-header nav { display: flex; gap: 22px; }
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--fg); }
.site-header nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--orange); padding-bottom: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 44px; }
.site-footer p { margin: 0 0 6px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }

/* Text */
h1, h2, h3, .game-name, .card-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
h1 { font-size: 36px; line-height: 1.15; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 21px; line-height: 1.3; margin: 44px 0 10px; }
h3 { font-size: 16px; line-height: 1.4; margin: 26px 0 6px; }
p, li { color: var(--fg); }
ul { padding-left: 1.3em; }
li { margin: 4px 0; }
li::marker { color: var(--orange); }
.lead { font-size: 19px; color: var(--muted); margin-top: 0; }
.kicker {
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.muted, .updated { color: var(--muted); }
.updated { font-size: 15px; }

/* Game cards */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
}
.card {
  display: block;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.card:hover { border-color: var(--orange); background: var(--surface-hover); color: var(--fg); }
.card img { width: 64px; height: 64px; border-radius: 15px; display: block; margin-bottom: 16px; }
.card .card-title { font-size: 17px; margin: 0 0 4px; }
.card .card-genre { color: var(--purple); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
.card .card-text { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }

/* Game pages */
.game-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.game-icon { width: 72px; height: 72px; border-radius: 17px; flex: none; }
.game-name { font-size: 22px; margin: 0; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 22px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.tabs a:hover { color: var(--fg); border-color: var(--muted); }
.tabs a[aria-current] { background: var(--orange); border-color: var(--orange); color: var(--bg); }
.button {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #FF7A47; color: var(--bg); }
.doc h3 + p { margin-top: 0; }
.contact-box {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 14px;
}
.contact-box p { margin: 0; }

@media (max-width: 480px) {
  h1 { font-size: 29px; }
  .lead { font-size: 18px; }
  main.wrap { padding-top: 36px; }
}
