.games-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 52%, rgba(153, 97, 13, .1), transparent 32rem),
    #070604;
}

.games-hero {
  position: relative;
  min-height: clamp(500px, 66svh, 720px);
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(224, 174, 60, .22);
}

.games-hero__picture,
.games-hero__picture img,
.games-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.games-hero__picture {
  z-index: -3;
}

.games-hero__picture img {
  display: block;
  object-fit: cover;
  object-position: center 52%;
}

.games-hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, .97) 0%, rgba(5, 4, 3, .82) 38%, rgba(5, 4, 3, .12) 73%),
    linear-gradient(180deg, rgba(5, 4, 3, .08), rgba(5, 4, 3, .84));
}

.games-hero__content {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 70px 28px;
}

.catalog-eyebrow {
  margin: 0 0 13px;
  color: var(--casino-gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .23em;
  text-transform: uppercase;
}

.games-hero h1,
.catalog-heading h2,
.online-room h2,
.catalog-help h2 {
  margin: 0;
  color: var(--casino-ivory);
  font-family: var(--casino-serif);
  font-weight: 600;
  letter-spacing: -.038em;
  line-height: .98;
  text-wrap: balance;
}

.games-hero h1 {
  max-width: 690px;
  font-size: clamp(52px, 7vw, 96px);
  text-shadow: 0 12px 40px rgba(0, 0, 0, .7);
}

.games-hero__content > p:not(.catalog-eyebrow) {
  max-width: 570px;
  margin: 22px 0 0;
  color: #d2c8b8;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.65;
}

.catalog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 30px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.catalog-button:hover,
.catalog-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.catalog-button--gold {
  color: #171006;
  background: linear-gradient(135deg, #f7df8d, #c99126);
  border-color: rgba(255, 236, 166, .78);
  box-shadow: inset 0 1px rgba(255, 255, 255, .52), 0 14px 30px rgba(151, 94, 8, .23);
}

.catalog-button--gold:hover,
.catalog-button--gold:focus-visible {
  filter: brightness(1.08);
}

.games-catalog,
.online-room,
.catalog-help {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
}

.games-catalog {
  padding: 110px 0;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}

.catalog-heading h2,
.online-room h2,
.catalog-help h2 {
  font-size: clamp(38px, 5vw, 66px);
}

.catalog-heading > p {
  max-width: 440px;
  margin: 0;
  color: var(--casino-muted);
  font-size: 15px;
  line-height: 1.7;
}

#games-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.game-box {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #f3ead8;
  border: 1px solid rgba(226, 176, 61, .22);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(27, 20, 11, .94), rgba(8, 6, 4, .98));
  box-shadow: 0 16px 38px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 243, 196, .05);
  text-decoration: none;
  transform: translateY(0);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.game-box:hover,
.game-box:focus-visible {
  border-color: rgba(245, 207, 85, .68);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .45), 0 0 0 1px rgba(245, 207, 85, .08);
  transform: translateY(-6px);
  outline: none;
}

.game-box__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #090603;
}

.game-box__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 53%, rgba(6, 4, 2, .7));
  pointer-events: none;
}

.game-box__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .3s ease;
}

.game-box:hover .game-box__media img,
.game-box:focus-visible .game-box__media img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

.game-box__media--contain img {
  object-fit: contain;
  padding: 12px;
  background: radial-gradient(circle at center, #3a2413, #070503 72%);
}

.game-badge {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  padding: 6px 9px;
  color: #171006;
  border: 1px solid rgba(255, 236, 166, .58);
  border-radius: 999px;
  background: linear-gradient(135deg, #f4d777, #bf8520);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.game-badge--subtle {
  color: #eadbbd;
  background: rgba(9, 6, 3, .75);
  border-color: rgba(239, 199, 105, .38);
  backdrop-filter: blur(8px);
}

.game-box__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 82px;
  padding: 17px 18px;
}

.game-box__body strong {
  min-width: 0;
  font-family: var(--casino-serif);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.05;
}

.game-box__body small {
  flex: 0 0 auto;
  color: #bda971;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.game-box__body b {
  margin-left: 4px;
  color: var(--casino-gold-light);
}

.game-box--featured {
  border-color: rgba(231, 185, 77, .38);
}

.online-room {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 110px;
  padding: clamp(44px, 6vw, 76px) clamp(24px, 6vw, 80px);
  overflow: hidden;
  border: 1px solid rgba(232, 186, 78, .4);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 50%, rgba(189, 124, 20, .21), transparent 20rem),
    linear-gradient(135deg, rgba(31, 22, 11, .97), rgba(8, 6, 4, .98));
  box-shadow: 0 30px 76px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 239, 176, .07);
}

.online-room > div {
  max-width: 760px;
}

.online-room p:not(.catalog-eyebrow) {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--casino-muted);
  line-height: 1.7;
}

.online-room .catalog-button {
  flex: 0 0 auto;
  margin: 0;
}

.catalog-help {
  padding: 0 0 110px;
}

.catalog-help > h2 {
  max-width: 640px;
}

.catalog-help ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.catalog-help li {
  display: grid;
  padding: 25px;
  border-top: 1px solid rgba(232, 186, 78, .35);
  background: linear-gradient(180deg, rgba(30, 22, 12, .42), transparent);
}

.catalog-help li > span {
  color: var(--casino-gold);
  font-family: var(--casino-serif);
  font-size: 22px;
}

.catalog-help li > strong {
  margin-top: 24px;
  color: #f1e7d5;
  font-family: var(--casino-serif);
  font-size: 24px;
  font-weight: 600;
}

.catalog-help li > small {
  margin-top: 10px;
  color: #9f978a;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1020px) {
  #games-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .games-hero {
    min-height: 600px;
    align-items: start;
  }

  .games-hero__picture img {
    object-position: center 44%;
  }

  .games-hero__shade {
    background:
      linear-gradient(180deg, rgba(5, 4, 3, .94) 0%, rgba(5, 4, 3, .5) 43%, rgba(5, 4, 3, .14) 72%, rgba(5, 4, 3, .84) 100%),
      linear-gradient(90deg, rgba(5, 4, 3, .35), transparent 65%);
  }

  .games-hero__content {
    padding: 48px 20px 220px;
  }

  .games-hero h1 {
    max-width: 510px;
    font-size: clamp(45px, 13vw, 68px);
  }

  .games-hero__content > p:not(.catalog-eyebrow) {
    max-width: 460px;
    margin-top: 17px;
    font-size: 15px;
  }

  .catalog-button {
    min-height: 47px;
    margin-top: 22px;
    padding: 11px 19px;
    font-size: 10px;
  }

  .games-catalog,
  .online-room,
  .catalog-help {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .games-catalog {
    padding: 76px 0;
  }

  .catalog-heading {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
  }

  .catalog-heading h2,
  .online-room h2,
  .catalog-help h2 {
    font-size: clamp(35px, 10.8vw, 50px);
  }

  .catalog-heading > p {
    font-size: 14px;
  }

  #games-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .game-box {
    border-radius: 15px;
  }

  .game-box__body {
    display: grid;
    gap: 8px;
    min-height: 88px;
    padding: 13px;
  }

  .game-box__body strong {
    font-size: clamp(15px, 4.4vw, 19px);
  }

  .game-box__body small {
    font-size: 8px;
  }

  .game-badge {
    top: 8px;
    left: 8px;
    padding: 5px 7px;
    font-size: 7px;
  }

  .online-room {
    display: grid;
    gap: 28px;
    margin-bottom: 76px;
    padding: 45px 24px;
    border-radius: 22px;
  }

  .online-room .catalog-button {
    justify-self: start;
  }

  .catalog-help {
    padding-bottom: 76px;
  }

  .catalog-help ol {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 28px;
  }

  .catalog-help li {
    grid-template-columns: 46px 1fr;
    column-gap: 10px;
    padding: 22px 4px;
    background: none;
  }

  .catalog-help li > span {
    grid-row: 1 / span 2;
  }

  .catalog-help li > strong {
    margin-top: 0;
    font-size: 22px;
  }

  .catalog-help li > small {
    margin-top: 7px;
  }
}

@media (max-width: 360px) {
  #games-container { gap: 8px; }
  .game-box__body { padding: 11px; }
  .game-box__body strong { font-size: 14px; }
}
