* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { color: #333; font-family: Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible { outline: 2px solid #e94141; outline-offset: 3px; }
.site-header {
  background: #131313; color: #fff; height: 60px; padding: 0 40px;
  display: flex; align-items: center; justify-content: center; position: sticky; top: 0; z-index: 1001;
}
.brand { position: absolute; left: 40px; width: 105px; }
.brand img { width: 100%; height: auto; display: block; }
#main-nav { display: flex; align-items: center; height: 100%; gap: 40px; font-size: 19px; }
#main-nav > a, .games-nav > a { display: flex; align-items: center; height: 100%; }
#main-nav [aria-current="page"], #main-nav > a:hover, .games-nav > a:hover { color: #dc3e3e; }
.games-nav { height: 100%; }
.game-menu {
  display: none; position: absolute; top: 100%; left: 0; width: 100%;
  background: #131313; padding: 20px 0; max-height: calc(100dvh - 60px); overflow-y: auto;
}
.menu-inner { max-width: 1200px; margin: auto; padding: 0 20px; }
.menu-inner p { padding-left: 10px; border-left: 4px solid #d32f2f; margin: 0 0 20px; font-size: 18px; }
.menu-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 20px; }
.menu-grid a { display: block; opacity: .85; transition: transform .2s, opacity .2s; }
.menu-grid a:hover, .menu-grid a:focus-visible { opacity: 1; transform: scale(1.04); }
.menu-grid img { width: 100%; aspect-ratio: 207 / 116; object-fit: cover; border-radius: 8px; display: block; }
.menu-all { display: block; text-align: center; padding: 20px 0 4px; font-size: 18px; }
.menu-all:hover { color: #e34545; }
.menu-toggle { display: none; }
@media (min-width: 1025px) {
  .games-nav[data-open] .game-menu { display: block; }
}
.site-footer { background: #211d1d; padding: 60px 20px 72px; text-align: center; }
.site-footer > img { width: 162px; height: auto; }
.site-footer nav { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 10px; color: #b4b0b0; font-size: 12px; }
.site-footer a { padding: 5px 0; }
.site-footer a:hover { color: #fff; }
@media (max-width: 1024px) {
  .site-header { height: 50px; padding: 0 20px; }
  .brand { position: static; width: 90px; }
  .menu-toggle { position: absolute; left: 8px; top: 3px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: transparent; border: 0; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { width: 20px; height: 2px; background: currentColor; display: block; }
  .menu-toggle span { position: relative; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; top: -6px; }
  .menu-toggle span::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  #main-nav { position: absolute; top: 50px; left: 0; background: #131313; display: none; width: min(262px, 85vw); height: calc(100dvh - 50px); padding: 0 20px; font-size: 16px; }
  #main-nav.open { display: block; }
  #main-nav > a, .games-nav > a { height: auto; padding: 15px 0; border-bottom: 1px solid #3c3c3c; }
  .games-nav { height: auto; }
  .site-footer { padding: 40px 20px; }
}
