:root {
  --page-background: #f7f7fa;
  --surface-background: #fff;
  --primary-color: #e4c988;
  --text-color: #202124;
  --muted-color: #62666b;
  --border-color: #b9b9b9;
  --container-width: 1200px;
  --content-width: 1160px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page-background);
  color: var(--text-color);
  font:
    15px/1.65 Arial,
    Helvetica,
    sans-serif;
  padding-bottom: 64px;
}
a {
  color: #d84642;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
header {
  background: #fff;
}
header nav {
  max-width: var(--container-width);
  margin: auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 16px;
}
header img,
.bottom img {
  width: 128px;
  height: auto;
}
.menu,
.account {
  display: flex;
  align-items: center;
  gap: 18px;
}
.menu a,
.account a {
  color: #25272a;
  font-size: 13px;
  font-weight: 600;
}
.account {
  margin-left: auto;
  gap: 10px;
  white-space: nowrap;
}
.account a:last-child,
.bottom > a:last-child,
.hero strong {
  background: var(--primary-color);
  color: #242424;
  padding: 9px 18px;
  border-radius: 4px;
}
main {
  max-width: var(--container-width);
  margin: 56px auto;
  background: #fff;
  padding: 24px 28px 40px;
}
h1 {
  text-align: center;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  margin: 5px 0 24px;
}
h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
  margin: 24px 0 15px;
}
h3 {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  margin: 23px 0 12px;
}
p {
  margin: 0 0 18px;
}
.intro {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.intro a {
  background: #35393c;
  color: #fff;
  border-radius: 30px;
  padding: 10px 22px;
  font-size: 13px;
}
.table-wrap {
  overflow-x: auto;
  margin: 22px 0 30px;
  scrollbar-width: none;
}
.table-wrap::-webkit-scrollbar {
  display: none;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: 14px;
}
td,
th {
  border: 1px solid var(--border-color);
  text-align: left;
  padding: 9px 12px;
}
th {
  font-weight: 500;
}
section > p > img {
  width: 100%;
  display: block;
}
.hero {
  max-width: 940px;
  margin: 32px auto;
  text-align: center;
}
.hero a {
  display: block;
  color: #222;
}
.hero img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 24px #0005;
}
.hero span {
  display: inline-block;
  margin: 12px;
}
.hero strong {
  display: inline-block;
}
.games {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 12px;
  margin: 22px 0 28px;
}
.games a {
  position: relative;
  color: #242424;
  min-width: 0;
  line-height: 1.3;
}
.games a:first-child {
  grid-row: span 2;
}
.games img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.games a:first-child img {
  aspect-ratio: 0.85;
}
.games strong,
.games small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}
.games small {
  color: #777;
  font-size: 11px;
}
.tag {
  position: absolute;
  top: 7px;
  left: 5px;
  background: #d9b866;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
}
footer {
  background: #34373b;
  color: #e5e5e5;
  text-align: center;
  padding: 35px 20px;
  font-size: 12px;
}
footer p {
  max-width: 960px;
  margin: 16px auto;
}
footer a {
  color: #eee;
  margin: 10px;
  display: inline-block;
}
footer hr {
  border: 0;
  border-top: 1px solid #878787;
}
footer img {
  max-width: 100px;
  max-height: 36px;
  object-fit: contain;
  margin: 8px 12px;
}
.bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(16px, calc((100vw - 1200px) / 2));
  box-shadow: 0 -1px 5px #0002;
  font-size: 14px;
  z-index: 5;
}
.bottom > a:last-child {
  white-space: nowrap;
}
@media (max-width: 760px) {
  header nav {
    gap: 8px;
    min-height: 58px;
  }
  .menu {
    display: none;
  }
  header img {
    width: 100px;
  }
  .account a {
    font-size: 12px;
  }
  .account a:last-child {
    padding: 8px 12px;
  }
  main {
    margin: 18px 10px;
    padding: 16px 14px 28px;
  }
  h1 {
    font-size: 27px;
  }
  h2 {
    font-size: 23px;
  }
  h3 {
    font-size: 19px;
  }
  body {
    font-size: 15px;
  }
  .intro a {
    font-size: 11px;
    padding: 8px 10px;
  }
  .games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .games a:first-child {
    grid-row: span 2;
    grid-column: span 2;
  }
  .bottom img {
    display: none;
  }
  .bottom {
    font-size: 11px;
    padding: 8px 10px;
  }
  .bottom > a:last-child {
    padding: 8px 10px;
  }
  .hero span {
    display: block;
  }
  footer img {
    max-width: 65px;
    margin: 5px;
  }
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px 16px;
  margin: 24px 0;
  align-items: start;
}

.games-grid > a {
  position: relative;
  display: block;
  min-width: 0;
  color: #171717;
  text-decoration: none;
}

.games-grid > a:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.games-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin: 0;
  transition: filter 0.2s ease;
}

.games-grid > a:first-child img {
  aspect-ratio: 0.88;
}

.games-grid h3 {
  margin: 10px 2px 4px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #171717;
  border: 0;
}

.games-grid > a:first-child h3 {
  font-size: 18px;
}

.games-grid small {
  display: block;
  margin: 0 2px;
  color: #4f2d18;
  font-size: 14px;
  line-height: 1.4;
}

.game-label {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  background: #22252a;
  color: #eed18a;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}

.games-grid > a:first-child .game-label {
  background: #20365b;
}

.games-grid > a:hover img {
  filter: brightness(1.1);
}

.games-grid > a:hover h3 {
  color: #a17b36;
}

/* Tablet */

@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .games-grid > a:first-child img {
    aspect-ratio: 0.78;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
    margin: 18px 0;
  }

  .games-grid > a:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .games-grid > a:first-child img {
    aspect-ratio: 1 / 1;
  }

  .games-grid h3,
  .games-grid > a:first-child h3 {
    font-size: 12px;
    margin: 6px 0 3px;
  }

  .games-grid small {
    font-size: 11px;
    margin: 0;
  }

  .game-label {
    padding: 4px 6px;
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
