:root {
  --ink: #1f2b36;
  --muted: #68737f;
  --blue: #0055bb;
  --blue-hover: #003e8a;
  --line: #e3e9ef;
  --card-border: #d0dce8;
  --paper: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.55 Arial, "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
.skip-link {
  position: absolute; z-index: 5; top: -100px; left: 16px;
  padding: 10px 16px; border-radius: 8px; background: #fff;
  border: 2px solid var(--blue);
}
.skip-link:focus { top: 12px; }
.site-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}
.site-header {
  display: flex; align-items: center;
  padding: 22px 0 19px;
  border-bottom: 1px solid var(--line);
}
.brand { width: min(340px, 78%); }
.brand img { display: block; width: 100%; height: auto; }
.intro { padding: 43px 0 35px; }
h1, h2, h3, p { margin-top: 0; }
.intro h1 {
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.17;
  margin: 0 0 12px;
  color: var(--ink);
}
.intro__subtitle {
  margin: 0 0 9px;
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 600;
  color: var(--blue);
}
.intro__details {
  margin: 0;
  max-width: 740px;
  color: #566573;
  font-size: 16px;
}
.games { border-top: 1px solid var(--line); padding: 30px 0 0; }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 0 0 19px;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.25; font-weight: 700;
  color: var(--ink);
}
.section-title__counter {
  font-size: 14px; color: var(--muted); white-space: nowrap;
}
.game-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
}
.game-card {
  min-width: 0; display: flex; flex-direction: column;
  overflow: hidden; background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 2px 9px rgba(33, 64, 92, .045);
  text-decoration: none; color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.game-card:hover, .game-card:focus-visible {
  border-color: #9fbfe2;
  box-shadow: 0 5px 19px rgba(34, 81, 133, .11);
}
.game-card:focus-visible {
  outline: 3px solid #8bbce9; outline-offset: 3px;
}
.game-card__picture {
  aspect-ratio: 1672/941;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.game-card__picture img {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
.game-card__content {
  display: flex; align-items: flex-start; flex-direction: column;
  flex: 1; padding: 22px 24px 24px;
}
.game-card__eyebrow {
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.game-card__content h3 {
  margin: 8px 0 9px; color: var(--ink);
  font-size: 25px; font-weight: 700;
  line-height: 1.2;
}
.game-card:hover .game-card__content h3,
.game-card:focus-visible .game-card__content h3 { color: var(--blue); }
.game-card__content p {
  color: #4e5c69; font-size: 15px; line-height: 1.55;
  flex: 1; margin: 0 0 21px;
}
.game-card__action {
  display: inline-flex; justify-content: center; align-items: center;
  gap: 9px; min-width: 129px; min-height: 42px;
  padding: 9px 18px; background: var(--blue); color: #fff;
  border-radius: 8px; font-size: 15px; font-weight: 600;
}
.game-card:hover .game-card__action,
.game-card:focus-visible .game-card__action { background: var(--blue-hover); }
.game-card__action svg {
  width: 17px; height: 17px; fill: none;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.coming-next {
  margin: 36px 0 34px; padding: 25px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.coming-next h2 {
  margin: 0 0 9px; font-size: 23px; font-weight: 700;
  line-height: 1.3; color: var(--ink);
}
.coming-next p { margin: 0; color: #4f5e6c; font-size: 16px; line-height: 1.6; }
.site-footer {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 13px; border-top: 1px solid var(--line);
  padding: 22px 0 32px;
}
.site-footer__name { font-size: 14px; color: #667480; }
.site-footer__links {
  display: flex; flex-wrap: wrap; column-gap: 22px; row-gap: 8px;
}
.site-footer__links a {
  color: var(--blue); font-size: 14px; text-decoration: none;
}
.site-footer__links a:hover, .site-footer__links a:focus-visible {
  text-decoration: underline; color: var(--blue-hover);
}
@media(max-width: 750px) {
  .site-shell { width: min(540px, calc(100% - 32px)); }
  .site-header { padding: 16px 0; }
  .brand { width: min(305px, 84%); }
  .intro { padding: 31px 0 28px; }
  .intro h1 { font-size: clamp(31px, 8vw, 40px); }
  .intro__subtitle { font-size: 18px; }
  .intro__details { font-size: 14px; }
  .games { padding-top: 24px; }
  .section-title h2 { font-size: 21px; }
  .game-grid { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .game-card { border-radius: 12px; }
  .game-card__content { padding: 19px 19px 21px; }
  .game-card__content h3 { font-size: 23px; }
  .game-card__content p { font-size: 14px; margin-bottom: 17px; }
  .coming-next { margin: 26px 0; padding: 20px; border-radius: 12px; }
  .coming-next h2 { font-size: 20px; }
  .coming-next p { font-size: 14px; }
  .site-footer { padding: 20px 0 30px; }
}
@media(max-width: 370px) {
  .site-shell { width: calc(100% - 26px); }
  .section-title h2 { font-size: 19px; }
  .section-title__counter { font-size: 12px; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-card { transition: none; }
}
