@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(../fonts/exo-2-cyrillic.woff2?v=b47f37d67877) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(../fonts/exo-2-latin.woff2?v=4a259dde317e) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #030d1f;
  --text: #eef4ff;
  --border: #1c3448;
  --muted: #a8b6cb;
  --disabled: #718096;
  --link: #42d8dc;
  --accent: #00bfc4;
  --surface: #0b192b;
  --hover: #14283c;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  -webkit-user-select: none;
  user-select: none;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(ellipse at 15% 20%, #00bfc414, transparent 50%),
    radial-gradient(ellipse at 90% 85%, #ff710b0d, transparent 45%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

[hidden] { display: none !important; }

.site-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer a { color: inherit; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--text); }

.main-menu {
  font-family: "Exo 2", system-ui, sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-menu a {
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

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

.main-menu a[aria-disabled="true"] {
  color: var(--disabled);
  cursor: default;
}

.main-menu a[aria-current="page"] {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.logo-link { flex-shrink: 0; border-radius: 8px; }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] { border-color: var(--accent); }

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 699px) {
  .main-menu {
    flex-basis: 100%;
    align-items: stretch;
    flex-direction: column;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  -webkit-user-select: none;
  user-select: none;
}

.brand-name {
  font-family: "Exo 2", system-ui, sans-serif;
  color: inherit;
  text-decoration: none;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.placeholder {
  place-self: center;
  width: min(calc(100% - 40px), 500px);
  margin: 32px 0;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--bg);
  box-shadow: 0 24px 80px #00000040;
  text-align: center;
}

.logo {
  display: block;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}

@media (min-width: 640px) {
  .logo { width: 88px; height: 88px; }
}

@media (min-width: 700px) {
  .site-header {
    display: grid;
    grid-template-columns: 88px 1fr;
    column-gap: clamp(12px, 2vw, 20px);
    row-gap: 4px;
    justify-content: start;
  }

  .brand { display: contents; }

  .logo-link {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .brand-name {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .main-menu {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-content: flex-start;
    gap: 24px;
  }

  .main-menu a { padding: 6px 0; }
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 5vw, 2.1rem);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.games-menu { position: relative; }

.games-menu summary {
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.games-menu summary::-webkit-details-marker { display: none; }
.games-menu summary:hover,
.games-menu[open] summary { color: var(--text); }
.games-menu.current-section summary { color: var(--link); }
.dropdown-arrow { display: inline-block; margin-left: 4px; }
.games-menu[open] .dropdown-arrow { transform: rotate(180deg); }

.games-menu summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  z-index: 10;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 32px #00000040;
}

.main-menu .submenu a {
  display: block;
  padding: 12px;
}

.submenu a:hover { background: var(--hover); }

.game-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  text-align: left;
}

.game-card:hover { border-color: var(--accent); }

.news-page {
  align-self: start;
  justify-self: center;
  width: min(calc(100% - 40px), 760px);
  margin: 32px 0;
}

.news-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 0 24px 80px #00000040;
}

.news-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  -webkit-user-drag: none;
}

.news-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.3;
}

.news-copy a { color: inherit; text-decoration: none; }
.news-copy a:hover { color: var(--link); }

@media (max-width: 479px) {
  .news-card {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 20px;
  }
}

@media (min-width: 700px) {
  .games-menu summary { padding: 6px 0; }
}

@media (max-width: 699px) {
  .submenu {
    position: static;
    min-width: 0;
    margin: 4px 16px 8px;
    box-shadow: none;
  }
}

.news-back {
  display: inline-block;
  margin-bottom: 24px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.news-back:hover { border-color: var(--accent); }
.news-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.news-article { line-height: 1.7; }
.news-article p + p { margin-top: 16px; }
.news-article a, [data-news-status] a { color: var(--link); }
.news-article-image {
  display: block;
  width: min(100%, 200px);
  height: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  -webkit-user-drag: none;
}

.game-logo { width: min(100%, 200px); margin: 24px auto; }

[data-theme="light"] { color-scheme: light; --bg: #f4f8fb; --text: #152b3b; --border: #bed0dc; --muted: #465f70; --disabled: #617383; --link: #006d71; --accent: #00787b; --surface: #ffffff; --hover: #e4eef4; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { color-scheme: light; --bg: #f4f8fb; --text: #152b3b; --border: #bed0dc; --muted: #465f70; --disabled: #617383; --link: #006d71; --accent: #00787b; --surface: #ffffff; --hover: #e4eef4; } }

.header-actions { display: flex; gap: 8px; margin-left: auto; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.logo { background: #030d1f; }
@media (min-width: 700px) {
  .site-header { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .header-actions { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 479px) {
  .site-header { gap: 10px; padding-inline: 12px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 1.1rem; }
  .logo { width: 48px; height: 48px; }
  .header-actions { gap: 6px; }
  .theme-toggle, .menu-toggle { width: 38px; height: 42px; }
}

/* Article typography and media share the active site theme. */
.news-copy time, .news-article > time { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.news-article { overflow-wrap: anywhere; }
.news-article h1, .news-article h2, .news-article h3,
.news-article h4, .news-article h5, .news-article h6 { font-family: "Exo 2", system-ui, sans-serif; line-height: 1.3; }
.news-article h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); margin: 32px 0 12px; }
.news-article h3 { font-size: 1.25rem; margin: 24px 0 10px; }
.news-article p, .news-article ul, .news-article ol, .news-article blockquote, .news-article pre, .news-article figure { margin: 20px 0; }
.news-article li + li { margin-top: 6px; }
.news-article img, .news-article video { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; }
.news-article p > img { max-height: 520px; object-fit: contain; }
.news-article img[src^="/images/air-patrol.jpg"] { width: min(100%, 200px); }
.news-article video { width: 100%; }
.news-article figure { margin-inline: 0; }
.news-article figcaption, .news-article .article-caption { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.news-article .article-lead { font-size: clamp(1.1rem, 3vw, 1.3rem); color: var(--text); }
.news-article blockquote, .news-article .article-note { padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; }
.news-article pre { overflow-x: auto; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.news-article code { font-family: ui-monospace, monospace; font-size: .9em; }
.news-article :not(pre) > code { padding: 2px 5px; background: var(--surface); border-radius: 4px; }
.news-article table { display: block; overflow-x: auto; border-collapse: collapse; }
.news-article th, .news-article td { padding: 10px 14px; border: 1px solid var(--border); }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.article-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
