:root {
  --text: #6b6375;
  --text-h: #08060d;
  --bg: #fff;
  --border: #e5e4e7;
  :root {
    --ink: #17201e;
    --muted: #5d6763;
    --paper: #f5f7f2;
    --surface: #ffffff;
    --line: #ccd4ce;
    --accent-strong: #b62e19;
    --signal: #147d73;
    --shadow: 0 16px 40px rgba(23, 32, 30, 0.11);
    color: var(--ink);
    background: var(--paper);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  [data-site='games'] { --paper: #fff8e7; --line: #d8cba9; --accent-strong: #ad2a17; --signal: #087a70; }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; min-height: 100vh; background: var(--paper); }
  button, input { font: inherit; }
  button, a { -webkit-tap-highlight-color: rgba(20, 125, 115, 0.18); }
  img { display: block; max-width: 100%; }
  [hidden] { display: none !important; }

  .topbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 64px; padding: 10px 20px; }
  .brand { color: var(--ink); font-family: 'Avenir Next', 'Trebuchet MS', sans-serif; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
  .top-actions { display: flex; }
  .top-actions > * + * { margin-left: 8px; }
  .icon-button { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); cursor: pointer; display: inline-flex; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 12px; }
  .hero { background-color: var(--ink); background-image: linear-gradient(100deg, rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px); background-size: 28px 28px; color: white; padding: 58px 20px 48px; }
  .hero__inner { max-width: 760px; }
  .eyebrow { color: #9bd7cd; font: 700 .78rem/1.4 'Avenir Next', 'Trebuchet MS', sans-serif; letter-spacing: .12em; margin: 0 0 12px; text-transform: uppercase; }
  h1, h2 { font-family: 'Avenir Next', 'Trebuchet MS', sans-serif; letter-spacing: 0; }
  h1 { font-size: 5.3rem; line-height: .98; margin: 0; }
  .hero p:not(.eyebrow) { color: #d6dfdc; font-size: 1.08rem; margin: 20px 0 0; max-width: 620px; }
  .install-note { background: #e7f5f1; border-bottom: 1px solid var(--line); color: #185b53; padding: 12px 20px; text-align: center; }
  .catalog { margin: 0 auto; max-width: 1220px; padding: 34px 20px 70px; }
  .toolbar { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 28px; }
  .search { display: block; flex: 1; max-width: 460px; }
  .search span { display: block; font: 700 .8rem/1.4 'Avenir Next', 'Trebuchet MS', sans-serif; margin-bottom: 6px; text-transform: uppercase; }
  .search input { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); min-height: 48px; padding: 10px 14px; width: 100%; }
  .filters { display: flex; flex-wrap: wrap; margin: -4px; }
  .filters .filter { margin: 4px; }
  .filter { background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); cursor: pointer; min-height: 44px; padding: 8px 16px; }
  .filter[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: white; }
  .catalog__status { color: var(--muted); margin: 0 0 14px; }
  .grid { display: flex; flex-wrap: wrap; margin: -11px; }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 0 0 rgba(0,0,0,0); margin: 11px; min-width: 0; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; width: calc(33.333% - 22px); }
  .card:hover, .card:focus-within { box-shadow: var(--shadow); transform: translateY(-3px); }
  .preview { background: #dfe8e2; border-bottom: 1px solid var(--line); height: 0; overflow: hidden; padding-bottom: 66.666%; position: relative; }
  .preview img { bottom: 0; height: 100%; left: 0; object-fit: cover; object-position: top center; position: absolute; right: 0; top: 0; width: 100%; }
  .preview-fallback { align-items: center; bottom: 0; color: var(--muted); display: flex; font-weight: 700; justify-content: center; left: 0; padding: 20px; position: absolute; right: 0; text-align: center; top: 0; }
  .preview:not(.preview--failed) .preview-fallback { display: none; }
  .card__body { padding: 20px; }
  .tag { color: var(--signal); font: 700 .75rem/1.4 'Avenir Next', 'Trebuchet MS', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
  .card h2 { font-size: 1.35rem; line-height: 1.2; margin: 8px 0; }
  .card p { color: var(--muted); margin: 0 0 18px; min-height: 3em; }
  .launch { align-items: center; color: var(--accent-strong); display: inline-flex; font-weight: 700; min-height: 44px; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .launch::after { content: ' →'; margin-left: 6px; }
  .footer { border-top: 1px solid var(--line); color: var(--muted); padding: 24px 20px; text-align: center; }
  :focus { outline: 3px solid var(--signal); outline-offset: 3px; }
  html[dir='rtl'] .launch::after { content: ' ←'; margin-left: 0; margin-right: 6px; }
  html[dir='rtl'] .top-actions > * + * { margin-left: 0; margin-right: 8px; }

  @media (min-width: 1220px) { .topbar { padding-left: calc((100% - 1180px) / 2); padding-right: calc((100% - 1180px) / 2); } .hero { padding-left: calc((100% - 1180px) / 2); padding-right: calc((100% - 1180px) / 2); } }
  @media (max-width: 880px) { .card { width: calc(50% - 22px); } .toolbar { align-items: stretch; flex-direction: column; } .filters { margin-top: 12px; } .search { max-width: none; } }
  @media (max-width: 540px) { .hero { padding-bottom: 38px; padding-top: 42px; } h1 { font-size: 2.65rem; } .card { width: calc(100% - 22px); } .catalog { padding-left: 14px; padding-right: 14px; } .card__body { padding: 18px; } }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
  border-top: 1px solid var(--border);
  @media (max-width: 1024px) {
    height: 48px;
  }
}

.ticks {
  position: relative;
  width: 100%;

  &::before,
  &::after {
    content: '';
    position: absolute;
    top: -4.5px;
    border: 5px solid transparent;
  }

  &::before {
    left: 0;
    border-left-color: var(--border);
  }
  &::after {
    right: 0;
    border-right-color: var(--border);
  }
}
