/* Responsive layer: loaded after the main stylesheet. */
html, body { width: 100%; max-width: 100%; min-width: 0; overflow-x: clip; }
body, main { display: block; inline-size: 100%; max-inline-size: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, li, dt, dd, summary,
.btn, .footer-column a, .group-head a, .games h3, .games p {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.games h3 {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.btn {
  height: auto;
  min-height: 45px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  line-height: 1.25;
}

.catalog .play {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  padding: 0 0 0 4px;
  opacity: .96;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  background: linear-gradient(145deg, #7b27ed, #451294);
  border: 3px solid #fff;
  box-shadow:
    0 0 0 5px rgba(146, 245, 156, .58),
    0 10px 30px rgba(0, 0, 0, .7),
    0 0 32px rgba(138, 223, 246, .7);
  text-shadow: 0 2px 5px rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  animation: playPulse 2s ease-in-out infinite;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.catalog .games article:hover .play,
.catalog .play:focus-visible {
  opacity: 1;
  color: #101016;
  background: linear-gradient(135deg, var(--mint), var(--cyan), var(--lav));
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, .8),
    0 14px 38px rgba(0, 0, 0, .75),
    0 0 42px rgba(146, 245, 156, .85);
  transform: translate(-50%, -50%) scale(1.1);
  outline: none;
}
.catalog .play:focus-visible { outline: 3px solid var(--cyan); outline-offset: 7px; }
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(146,245,156,.45), 0 10px 30px #000b, 0 0 24px rgba(138,223,246,.5); }
  50% { box-shadow: 0 0 0 9px rgba(146,245,156,.12), 0 12px 34px #000c, 0 0 42px rgba(138,223,246,.85); }
}

@media (max-width: 1439px) {
  :root { --page-gap: 28px; }
  .hero, .stats, .section, .final,
  .footer-top, .footer-bottom,
  .showcase, .page-section-action {
    width: auto;
    max-width: none;
    margin-left: var(--page-gap);
    margin-right: var(--page-gap);
  }
  header { padding-left: var(--page-gap); padding-right: var(--page-gap); }
  .catalog .art { height: auto; aspect-ratio: 10 / 13; }
}

@media (max-width: 1199px) {
  header { gap: 20px; }
  header nav { gap: 18px; }
  .hero { height: 560px; }
  h1 { font-size: clamp(48px, 6vw, 64px); }
  .games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .art { height: auto; aspect-ratio: 10 / 13; }
  .footer-top { gap: 38px; }
}

@media (max-width: 1050px) {
  body.menu-open { overflow: hidden; }
  header { height: 70px; }
  header > nav {
    display: flex;
    position: fixed;
    z-index: 40;
    inset: 70px 16px auto;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #1b1b24;
    box-shadow: 0 24px 70px #000b;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  header > nav.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  header > nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffff06;
  }
  .actions > button:last-child { display: block; }
  #search { top: 70px; }
  .hero { margin-top: 20px; }
  .content { gap: 55px; }
  .promo { gap: 30px; }
}

@media (max-width: 899px) {
  :root { --page-gap: 20px; }
  .hero { height: 530px; }
  .hero > img { object-position: 82% center; }
  .heroCopy { width: min(520px, 70%); }
  .heroCopy > p { font-size: 15px; }
  .stats b { font-size: 21px; }
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: 1fr 1fr; }
  .pay { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --page-gap: 16px; }
  html { scroll-padding-top: 76px; }
  header { padding-left: 14px; padding-right: 14px; }
  .logo { min-width: 118px; }
  .actions { gap: 7px; }
  .actions > button:first-child,
  .actions > button:last-child { width: 42px; height: 42px; }
  .hero {
    height: min(680px, calc(100svh - 92px));
    min-height: 560px;
    border-radius: 18px;
  }
  .hero > img { object-position: 100% center; }
  .heroCopy {
    width: auto;
    left: 20px;
    right: 20px;
    bottom: 24px;
    top: auto;
    transform: none;
    text-align: left;
  }
  h1 { font-size: clamp(37px, 10vw, 48px); letter-spacing: -2px; }
  .heroCopy .btn { margin: 12px 6px 0 0; }
  .heroCopy > small { margin-top: 11px; }
  .stats { grid-template-columns: 1fr 1fr; padding: 12px; }
  .stats div { padding: 10px 4px; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { margin-top: 64px; }
  .title h2, h2 { font-size: clamp(30px, 8vw, 38px); }
  .title p { position: static; margin-top: 8px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .catalog .games h3 { font-size: 13px; white-space: normal; line-height: 1.3; }
  .group-head { align-items: flex-start; gap: 15px; }
  .group-head a { flex: 0 0 auto; }
  .section-action .btn, .page-section-action .btn,
  .showcase figcaption .btn { width: 100%; }
  .between-games img { aspect-ratio: 1.35 / 1; object-position: center top; }
  .content-showcase img { aspect-ratio: 4 / 3; max-height: none; }
  .promo, .cols, .grid4, .features { grid-template-columns: 1fr; }
  .promo { padding: 25px; }
  .card { padding: 22px; }
  .card dl { grid-template-columns: 1fr; }
  .card dt { padding-bottom: 0; border-bottom: 0; }
  .card dd { padding-top: 2px; }
  .table { margin-left: calc(var(--page-gap) * -1); margin-right: calc(var(--page-gap) * -1); border-radius: 0; }
  .pay { grid-template-columns: 1fr 1fr; }
  .final { display: block; padding: 28px 24px; }
  .final .btn { width: 100%; margin-top: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-license { padding-left: var(--page-gap); padding-right: var(--page-gap); }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 8px; }
  .cookies { bottom: 10px; width: calc(100% - 20px); }
}

@media (max-width: 700px) {
  html, body, main { width: 100%; min-width: 0; max-width: 100%; }
  .hero,
  .stats,
  .section,
  .final,
  .showcase,
  .page-section-action,
  .footer-top,
  .footer-bottom {
    width: 100%;
    inline-size: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .hero,
  .stats,
  .showcase img,
  .final { border-radius: 0; }
  .catalog,
  .content,
  .footer-top,
  .footer-bottom,
  .page-section-action { padding-left: 14px; padding-right: 14px; }
  .promo { padding-left: 20px; padding-right: 20px; }
  .content .showcase {
    width: calc(100% + 28px);
    max-width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
  }
  .table { overflow-x: visible; }
  table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  th, td {
    padding: 10px 7px;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .group-head > div { min-width: 0; }
  .group-head h2 { overflow-wrap: anywhere; }
}

@media (max-width: 479px) {
  :root { --page-gap: 12px; }
  header { padding-left: 10px; padding-right: 10px; }
  .logo { min-width: 108px; font-size: 17px; }
  .logo i { font-size: 23px; }
  .logo small { left: 45px; top: 27px; }
  .actions > button:first-child,
  .actions > button:last-child { width: 40px; }
  header > nav { left: 10px; right: 10px; }
  .hero { min-height: 535px; margin-top: 12px; }
  .heroCopy { left: 16px; right: 16px; bottom: 18px; }
  h1 { font-size: clamp(32px, 9.3vw, 41px); }
  .heroCopy > p { line-height: 1.5; }
  .heroCopy .btn { width: 100%; margin-right: 0; }
  .stats { font-size: 11px; }
  .stats b { font-size: 19px; }
  .games { gap: 10px; }
  .catalog .games h3 { font-size: 12px; }
  .catalog .games p { font-size: 10px; }
  .group-head { display: block; }
  .group-head a { display: inline-block; margin-top: 7px; }
  .between-games img, .content-showcase img { aspect-ratio: 1 / 1; }
  .showcase img { border-radius: 12px; }
  .btn { min-height: 48px; padding-left: 16px; padding-right: 16px; }
  .pay { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; padding-top: 38px; }
  .footer-about { grid-column: auto; }
  .footer-column { padding-top: 20px; border-top: 1px solid var(--line); }
  .footer-license { align-items: flex-start; }
  .cookies .btn { flex: 1 1 130px; }
  .catalog .play { width: 54px; height: 54px; font-size: 20px; }
}

@media (max-width: 359px) {
  :root { --page-gap: 8px; }
  .logo { min-width: 98px; }
  .actions { gap: 4px; }
  .games { grid-template-columns: 1fr; }
  .catalog .art { aspect-ratio: 4 / 5; }
  .catalog .games h3 { font-size: 14px; }
  .between-games img, .content-showcase img { aspect-ratio: 4 / 5; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero { height: 440px; min-height: 440px; }
  .heroCopy { bottom: 14px; }
  .heroCopy h1 { font-size: 34px; }
  header > nav { max-height: calc(100vh - 84px); overflow-y: auto; }
}

@media (hover: none) {
  .catalog .play { opacity: 1; transform: translate(-50%, -50%) scale(.88); }
  .games article:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .catalog .play { animation: none !important; }
}
