  :root {
    --bg: #0e0f13;
    --surface: #16181f;
    --line: #262a35;
    --line-strong: #3a404f;
    --text: #ebe8e2;
    --muted: #8f8c85;
    --accent: #c9a45c;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }
  .wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

  header {
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    user-select: none;
  }
  .brand .num {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text);
  }
  .brand .word {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 5px;
    color: var(--accent);
    text-transform: uppercase;
  }

  .works { padding: 72px 0 110px; min-height: calc(100vh - 210px); }
  .works .label {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 20px;
  }
  .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
  }
  .filters button {
    font: inherit;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 14px;
    transition: color .15s ease, border-color .15s ease;
  }
  .filters button:hover { color: var(--text); border-color: var(--line-strong); }
  .filters button.on { color: var(--accent); border-color: var(--accent); }
  #games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  @media (min-width: 700px) {
    #games { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  }
  .card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease;
  }
  .card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
  .cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1b1e28 0%, #232633 55%, #1b1e28 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line);
  }
  .cover .glyph {
    font-size: 28px;
    font-weight: 600;
    color: var(--accent);
    opacity: .85;
  }
  .meta { padding: 10px 12px 12px; }
  .meta h2 { font-size: 14px; font-weight: 600; letter-spacing: 0.3px; }
  .meta p {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .stars { display: block; margin-top: 7px; }
  .card-tags { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; }
  .card-tags span {
    font-size: 10.5px;
    color: var(--muted);
    letter-spacing: 0.5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 8px;
    line-height: 17px;
  }
  footer {
    border-top: 1px solid var(--line);
    padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
  }
  footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  footer p { font-size: 12.5px; color: var(--muted); letter-spacing: 0.5px; }

  header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .language-switch { color: var(--accent); font-size: 14px; text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
  .language-switch:hover { border-color: var(--accent); }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  html[lang="en"] .meta p { white-space: normal; }
  .filters button { font-size: 14px; }
  .card-tags span { font-size: 12px; line-height: 20px; }
  .meta p { font-size: 14px; }
  #games { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
  @media (min-width: 700px) { #games { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
  @media (max-width: 360px) { .wrap { padding: 0 16px; } .brand .word { letter-spacing: 3px; } }
