:root {
  --electric-blue: #2563ff;
  --aqua: #00d4e6;
  --sunny-yellow: #ffd43b;
  --coral: #ff6b6b;
  --navy: #0d1b3d;
  --soft-bg: #f5f7fb;
  --line: #dcecff;
  --ink-soft: #456083;
  --shadow: 0 18px 48px rgba(13, 27, 61, 0.13);
  --card-shadow: 0 10px 24px rgba(13, 27, 61, 0.12);
  --rounded-font: "Nunito Rounded", "Nunito", "Avenir Next Rounded", "Poppins", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  color: var(--navy);
  font-family: var(--rounded-font);
  line-height: 1.45;
}

.site-page:not(.landing-page) {
  overflow-x: hidden;
  background: #fff;
}

.site-page:not(.landing-page)::before,
.site-page:not(.landing-page)::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: clamp(640px, 44vw, 760px);
  content: "";
  pointer-events: none;
}

.site-page:not(.landing-page)::before {
  background:
    url("../images/interior-hero-banner.webp") right top / 100% auto no-repeat;
}

.site-page:not(.landing-page)::after {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 58%,
      rgba(255, 255, 255, 0.38) 74%,
      rgba(255, 255, 255, 0.82) 90%,
      #fff 100%
    );
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.layout-panel,
.site-footer {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(360px, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: min(calc(100% - clamp(32px, 7vw, 96px)), 1240px);
  min-height: 76px;
  margin-top: clamp(18px, 2.5vw, 34px);
  margin-bottom: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-page:not(.landing-page) .site-header {
  position: absolute;
  top: clamp(18px, 2.5vw, 34px);
  left: 50%;
  z-index: 10;
  margin-top: 0;
  transform: translateX(-50%);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: min(380px, 100%);
  height: auto;
  flex: 0 1 auto;
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 0;
  width: min(100%, 480px);
  justify-self: end;
  padding: 6px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(13, 27, 61, 0.08);
  backdrop-filter: blur(12px);
  font-size: 16px;
  font-weight: 900;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  text-align: center;
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav-icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--ink-soft);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.7;
  opacity: 0.72;
  transition: color 160ms ease, opacity 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--electric-blue);
  transform: translateY(-1px);
}

.site-nav a:hover .site-nav-icon,
.site-nav a:focus-visible .site-nav-icon {
  color: inherit;
  opacity: 0.95;
}

.parent-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  color: var(--navy);
  background: var(--sunny-yellow);
  border: 2px solid #ffc400;
  border-radius: 16px;
  box-shadow: 0 8px 0 #efb800;
  font-weight: 1000;
  transform: translateY(-4px);
  white-space: nowrap;
}

.mobile-bottom-nav {
  display: none;
}

.mobile-nav-icon {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.7;
}

.layout-panel {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
  padding: 28px clamp(18px, 3vw, 42px) 0;
}

.site-page:not(.landing-page) .layout-panel {
  padding: clamp(150px, 13vw, 190px) clamp(32px, 9vw, 136px) 0;
  background: transparent;
  border-top: 0;
  box-shadow: none;
}

.site-page:not(.landing-page) .layout-panel::before {
  display: none;
}

.landing-page .site-header {
  position: absolute;
  top: clamp(18px, 2.5vw, 34px);
  left: 50%;
  z-index: 10;
  margin-top: 0;
  transform: translateX(-50%);
}

.landing-page .layout-panel {
  width: 100%;
  margin: 0;
  padding: 0 0 58px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(229, 247, 255, 0.42) 0, rgba(247, 253, 255, 0.86) 720px, #fff 1060px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.landing-page .layout-panel::before {
  display: none;
}

.landing-page .content-section {
  width: min(calc(100% - clamp(32px, 7vw, 96px)), 1248px);
  margin-right: auto;
  margin-left: auto;
}

.landing-page .hero-section + .content-section {
  position: relative;
  z-index: 3;
  margin-top: clamp(-120px, -8vw, -90px);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 560px) 1fr;
  align-items: center;
  min-height: clamp(720px, 62vw, 860px);
  margin: 0;
  padding: clamp(168px, 14vw, 214px) clamp(32px, 9vw, 136px) clamp(170px, 14vw, 230px);
  overflow: visible;
  background: #dff5ff;
  border-radius: 0;
  isolation: isolate;
  margin-bottom: 70px;
}

.hero-section::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.hero-section::after {
  position: absolute;
  right: 0;
  bottom: -220px;
  left: 0;
  z-index: 1;
  height: 360px;
  content: "";
  background:
    linear-gradient(180deg, rgba(237, 250, 255, 0) 0%, rgba(237, 250, 255, 0.3) 30%, rgba(255, 255, 255, 0.72) 72%, #fff 100%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 530px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--navy);
  font-size: 76px;
  font-weight: 1000;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 18px 0 20px;
  color: var(--electric-blue);
  font-size: 30px;
  font-weight: 900;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  color: var(--navy);
  background: var(--sunny-yellow);
  border: 2px solid #ffc929;
  border-radius: 999px;
  box-shadow: 0 8px 0 rgba(239, 184, 0, 0.95);
  font-size: 21px;
  font-weight: 1000;
}

.hero-badge span {
  font-size: 27px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 18px;
  border: 2px solid transparent;
  font-size: 20px;
  font-weight: 1000;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--electric-blue);
  box-shadow: 0 12px 18px rgba(37, 99, 255, 0.24);
}

.button-border-white {
  border: 2px solid #fff;
}

.button-secondary {
  color: var(--electric-blue);
  background: #fff;
  border-color: var(--electric-blue);
}

.button-icon,
.badge-icon,
.heading-icon,
.trust-icon {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-icon,
.badge-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.6;
}

.content-section {
  margin-top: 52px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 28px;
  font-weight: 1000;
  line-height: 1.1;
}

.section-heading a,
.section-heading p {
  margin: 0;
  color: var(--electric-blue);
  font-weight: 900;
}

.heading-icon {
  width: 30px;
  height: 30px;
  color: var(--electric-blue);
  stroke-width: 2.7;
}

.heart-heading {
  color: var(--coral);
}

.game-grid {
  display: grid;
  gap: 20px;
}

.pagination-info {
  margin-top: 50px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--electric-blue);
}

.featured-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2ecf8;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
}

.game-card-media {
  position: relative;
}

.game-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft-bg);
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.game-card:hover .game-card-image img,
.game-card:focus-within .game-card-image img {
  transform: scale(1.04);
}

.favourites-section[hidden],
[data-favourite-card][hidden] {
  display: none;
}

.favourite-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--coral);
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(13, 27, 61, 0.2);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.favourite-toggle:hover,
.favourite-toggle:focus-visible {
  transform: translateY(-2px) scale(1.04);
}

.favourite-toggle:focus-visible {
  outline: 3px solid var(--sunny-yellow);
  outline-offset: 2px;
}

.favourite-toggle.is-active {
  color: #fff;
  background: var(--coral);
  border-color: #ffb4b4;
  box-shadow: 0 8px 18px rgba(255, 107, 107, 0.35);
}

.favourite-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.favourite-toggle.is-active .favourite-icon,
.favourite-detail-button.is-active .favourite-button-icon {
  fill: currentColor;
}

.game-card-body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 12px;
}

.game-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 1000;
  line-height: 1.15;
  height: 2.3em;
  overflow: hidden;
}

.age-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: #087482;
  background: #bdf7fb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
}

.play-chip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--electric-blue);
  border-radius: 50%;
  box-shadow: 0 8px 14px rgba(37, 99, 255, 0.25);
}

.play-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.category-tile {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 144px;
  padding: 18px 12px 14px;
  background: linear-gradient(180deg, #fff, var(--soft-bg));
  border: 1px solid #ddeaf8;
  border-radius: 18px;
  box-shadow: 0 12px 22px rgba(13, 27, 61, 0.07);
  font-weight: 1000;
  transition: transform 160ms ease, border-color 160ms ease;
}

.category-tile:nth-child(2n) {
  border-color: rgba(0, 212, 230, 0.35);
}

.category-tile:nth-child(3n) {
  border-color: rgba(255, 212, 59, 0.5);
}

.category-tile:nth-child(4n) {
  border-color: rgba(255, 107, 107, 0.35);
}

.category-tile:hover,
.category-tile:focus-visible {
  border-color: var(--electric-blue);
  transform: translateY(-3px);
}

.category-tile img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.trust-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 110px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e4eef8;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(13, 27, 61, 0.07);
}

.trust-coral {
  border-color: rgba(255, 107, 107, 0.35);
}

.trust-aqua {
  border-color: rgba(0, 212, 230, 0.35);
}

.trust-blue {
  border-color: rgba(37, 99, 255, 0.28);
}

.trust-yellow {
  border-color: rgba(255, 212, 59, 0.55);
}

.trust-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 1000;
}

.trust-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.trust-symbol {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--electric-blue);
  background: #eef4ff;
  border-radius: 18px;
}

.trust-icon {
  width: 38px;
  height: 38px;
  stroke-width: 2.7;
}

.trust-coral .trust-symbol {
  color: var(--coral);
  background: #fff2f2;
}

.trust-aqua .trust-symbol {
  color: #00a8b8;
  background: #e8fbfd;
}

.trust-blue .trust-symbol {
  color: var(--electric-blue);
  background: #eef4ff;
}

.trust-yellow .trust-symbol {
  color: #d99a00;
  background: #fff7d7;
}

.parents-section h2 span {
  color: var(--aqua);
}

.info-page-shell {
  position: relative;
  --info-page-gutter: 40px;
}

.info-page-shell > .info-hero,
.info-page-shell > .content-section,
.info-page-shell > .info-band {
  margin-left: var(--info-page-gutter);
  margin-right: var(--info-page-gutter);
}

.info-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 340px);
  align-items: center;
  gap: 28px;
  min-height: 330px;
  margin-bottom: 30px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(37, 99, 255, 0.1), rgba(0, 212, 230, 0.08) 58%, rgba(255, 212, 59, 0.16)),
    #fff;
  border: 1px solid #dcecff;
  border-radius: 26px;
}

.parents-hero {
  background:
    linear-gradient(135deg, rgba(255, 212, 59, 0.2), rgba(255, 255, 255, 0.75) 48%, rgba(255, 107, 107, 0.1)),
    #fff;
}

.info-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 56px;
  font-weight: 1000;
  line-height: 0.98;
}

.info-hero .lede {
  max-width: 740px;
}

.licenses-hero {
  background:
    linear-gradient(135deg, rgba(0, 212, 230, 0.12), rgba(255, 255, 255, 0.74) 50%, rgba(37, 99, 255, 0.11)),
    #fff;
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-card {
  min-height: 236px;
  padding: 22px;
  background: #fff;
  border: 1px solid #e4eef8;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(13, 27, 61, 0.07);
}

.info-card .trust-symbol {
  margin-bottom: 18px;
}

.info-card h3,
.info-step-list h3,
.info-band h2 {
  margin: 0;
  font-weight: 1000;
  line-height: 1.08;
}

.info-card h3 {
  font-size: 23px;
}

.info-card p,
.info-step-list p,
.info-band p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-weight: 800;
}

.info-card-blue {
  border-color: rgba(37, 99, 255, 0.28);
}

.info-card-aqua {
  border-color: rgba(0, 212, 230, 0.35);
}

.info-card-coral {
  border-color: rgba(255, 107, 107, 0.35);
}

.info-card-yellow {
  border-color: rgba(255, 212, 59, 0.55);
}

.info-card-aqua .trust-symbol {
  color: #00a8b8;
  background: #e8fbfd;
}

.info-card-coral .trust-symbol {
  color: var(--coral);
  background: #fff2f2;
}

.info-card-yellow .trust-symbol {
  color: #d99a00;
  background: #fff7d7;
}

.info-band {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: center;
  margin-top: 30px;
  padding: 28px;
  color: var(--navy);
  background: #fff7d7;
  border: 2px solid rgba(255, 212, 59, 0.65);
  border-radius: 22px;
}

.info-band h2 {
  font-size: 30px;
}

.parent-trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-section-heading {
  align-items: end;
  display: block;
}

.about-section-heading > div {
  display: grid;
  gap: 6px;
}

.about-section-heading > p {
  color: var(--ink-soft);
  padding-top: 10px;
}

.about-us-grid {
  display: grid;
  gap: 20px;
}

.about-person-card {
  display: grid;
  grid-template-columns: minmax(148px, 188px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 238px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 251, 0.72)),
    #fff;
  border: 1px solid #e4eef8;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(13, 27, 61, 0.07);
}

.about-michael-card {
  border-color: rgba(0, 212, 230, 0.4);
}

.about-julian-card {
  border-color: rgba(255, 107, 107, 0.32);
}

.about-avatar {
  position: relative;
}

.about-avatar::after {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 34px;
  height: 34px;
  content: "";
  background: var(--sunny-yellow);
  border: 4px solid #fff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(13, 27, 61, 0.12);
}

.about-avatar img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 12px 22px rgba(13, 27, 61, 0.12);
}

.about-person-card h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 1000;
  line-height: 1;
}

.about-person-card p:last-child {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-weight: 800;
}

.info-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-step-list article {
  min-height: 190px;
  padding: 20px;
  background: linear-gradient(180deg, #fff, var(--soft-bg));
  border: 1px solid #ddeaf8;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(13, 27, 61, 0.07);
}

.info-step-list span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: #fff;
  background: var(--electric-blue);
  border-radius: 14px;
  font-weight: 1000;
}

.info-step-list h3 {
  font-size: 21px;
}

.game-hero,
.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 320px);
  align-items: center;
  gap: 28px;
  margin-bottom: 30px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(37, 99, 255, 0.09), rgba(0, 212, 230, 0.08)),
    #fff;
  border: 1px solid #dcecff;
  border-radius: 26px;
}

.category-hero {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
}

.game-hero-media {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.game-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}

.category-hero img {
  width: clamp(140px, 11vw, 190px);
  justify-self: end;
  filter: drop-shadow(0 16px 20px rgba(13, 27, 61, 0.18));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--electric-blue);
  font-size: 14px;
  font-weight: 1000;
  text-transform: uppercase;
}

.game-hero h1,
.category-hero h1 {
  margin: 0;
  font-size: 50px;
  font-weight: 1000;
  line-height: 1;
}

.author {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 800;
}

.author strong {
  color: var(--navy);
  font-weight: 1000;
}

.lede {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #075763;
  background: #c8fbff;
  border-radius: 999px;
  font-weight: 1000;
}

.favourite-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--electric-blue);
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--electric-blue);
  border-radius: 17px;
  box-shadow: 0 8px 18px rgba(37, 99, 255, 0.14);
  font-size: 17px;
  font-weight: 1000;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.favourite-detail-button:hover,
.favourite-detail-button:focus-visible {
  transform: translateY(-1px);
}

.favourite-detail-button:focus-visible {
  outline: 3px solid var(--sunny-yellow);
  outline-offset: 2px;
}

.favourite-detail-button .button-icon {
  width: 22px;
  height: 22px;
}

.favourite-detail-button.is-active {
  color: #fff;
  background: var(--coral);
  border-color: #d94c4c;
  box-shadow: 0 8px 18px rgba(255, 107, 107, 0.28);
}

.embed-section {
  width: min(100%, 133.333vh);
  margin-right: auto;
  margin-left: auto;
}

.embed-shell {
  position: relative;
  width: 100%;
  max-height: 100vh;
  overflow: hidden;
  background: var(--navy);
  border: 8px solid #eef7ff;
  border-radius: 26px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.embed-shell:fullscreen,
.embed-shell:-webkit-full-screen,
.embed-shell.is-fallback-fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  max-height: none;
  background: var(--navy);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.embed-shell.is-fallback-fullscreen {
  position: fixed !important;
  top: var(--arcade-fullscreen-top, 0) !important;
  left: var(--arcade-fullscreen-left, 0) !important;
  z-index: 999999 !important;
  width: var(--arcade-fullscreen-width, 100vw) !important;
  height: var(--arcade-fullscreen-height, 100vh) !important;
}

html.has-fallback-fullscreen {
  height: 100%;
  overflow: hidden;
}

body.has-fallback-fullscreen {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.has-fallback-fullscreen .layout-panel {
  z-index: 999998;
}

.game-embed {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  background: #dff6ff;
}

.embed-shell:fullscreen .game-embed,
.embed-shell:-webkit-full-screen .game-embed,
.embed-shell.is-fallback-fullscreen .game-embed {
  width: min(100vw, 133.333vh);
  height: min(100vh, 75vw);
}

.embed-shell.is-fallback-fullscreen .game-embed {
  width: var(--arcade-fullscreen-game-width, min(100vw, 133.333vh));
  height: var(--arcade-fullscreen-game-height, min(100vh, 75vw));
}

.fullscreen-exit-button {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 3;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  color: var(--electric-blue);
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--electric-blue);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(13, 27, 61, 0.22);
  font-size: 16px;
  font-weight: 1000;
  cursor: pointer;
}

.embed-shell:fullscreen .fullscreen-exit-button,
.embed-shell:-webkit-full-screen .fullscreen-exit-button,
.embed-shell.is-fallback-fullscreen .fullscreen-exit-button {
  display: inline-flex;
}

.game-fullscreen-button {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 16px;
}

.how-to-play {
  margin-top: 20px;
  padding: 22px;
  color: var(--ink-soft);
  background: linear-gradient(180deg, #fff, #f7fbff);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(13, 27, 61, 0.08);
}

.how-to-play h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 1000;
  line-height: 1.15;
}

.how-to-play-content {
  font-size: 18px;
  font-weight: 800;
}

.how-to-play-content > :first-child {
  margin-top: 0;
}

.how-to-play-content > :last-child {
  margin-bottom: 0;
}

.how-to-play-content ul,
.how-to-play-content ol {
  margin: 0;
  padding-left: 22px;
}

.how-to-play-content li + li {
  margin-top: 8px;
}

.how-to-play-content strong {
  color: var(--navy);
  font-weight: 1000;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 1000;
}

.pagination a {
  color: var(--electric-blue);
  background: #fff;
  border: 2px solid #d7e7fb;
}

.pagination span {
  color: #fff;
  background: var(--electric-blue);
}

.site-footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: 34px;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  border: 0;
  border-top: 1px solid #d8e8ff;
  box-shadow: 0 -10px 32px rgba(13, 27, 61, 0.08);
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--electric-blue), var(--aqua), var(--sunny-yellow), var(--coral));
  border-radius: 0 0 999px 999px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 1.1fr) minmax(360px, 1.35fr) minmax(190px, 0.75fr);
  gap: 34px;
  align-items: center;
  padding: 42px clamp(22px, 5vw, 76px) 34px;
}

.footer-logo .brand-logo {
  width: min(310px, 100%);
}

.footer-brand p {
  margin: 10px 0 0;
  color: var(--navy);
  font-weight: 900;
}

.footer-brand .footer-promise {
  color: var(--electric-blue);
  font-size: 22px;
  font-weight: 1000;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 26px;
}

.footer-links h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 1000;
}

.footer-links a {
  display: block;
  margin-top: 8px;
  font-weight: 800;
}

.license-list {
  display: grid;
  gap: 18px;
}

.license-card {
  padding: 22px;
  background: linear-gradient(180deg, #fff, var(--soft-bg));
  border: 1px solid #ddeaf8;
  border-radius: 18px;
  box-shadow: 0 12px 22px rgba(13, 27, 61, 0.06);
}

.license-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.license-card h3 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 26px;
  font-weight: 1000;
}

.license-card p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-weight: 800;
}

.license-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--navy);
  background: #fff7db;
  border: 1px solid rgba(255, 212, 59, 0.55);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 1000;
}

.license-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.license-meta div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
}

.license-meta dt {
  color: var(--navy);
  font-weight: 1000;
}

.license-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.license-files {
  margin-top: 16px;
  color: var(--navy);
  font-weight: 900;
}

.license-files summary {
  cursor: pointer;
}

.license-files ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 116px;
  padding: 18px 18px 18px 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  font-weight: 1000;
  text-align: center;
}

.footer-note span,
.footer-bar span:last-child {
  color: var(--coral);
}

.footer-note img {
  width: 70px;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 86px;
  margin-bottom: -1px;
  padding-bottom: 1px;
  color: #fff;
  background: linear-gradient(180deg, #2d6bff 0%, var(--electric-blue) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-size: 17px;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: minmax(220px, 1fr);
    padding: 0;
  }

  .footer-bar {
    /* Needed for the bottom nav to be visible */
    padding-bottom: 150px !important;
    padding-top: 20px !important;
  }

  .brand-logo {
    width: min(300px, 62vw);
  }

  .layout-panel {
    margin-top: 40px;
  }

  .site-nav {
    display: none;
  }

  .parent-link {
    display: none;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    max-width: 760px;
    min-height: 78px;
    margin: 0 auto;
    padding: 8px;
    background: rgba(255, 255, 255, 0.97);
    border: 2px solid rgba(205, 231, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(13, 27, 61, 0.22);
  }

  .mobile-bottom-nav a {
    display: grid;
    grid-template-rows: 28px auto;
    place-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 60px;
    padding: 7px 4px 6px;
    color: var(--navy);
    border-radius: 18px;
    font-size: 13px;
    font-weight: 1000;
    line-height: 1;
    text-align: center;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  }

  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a:focus-visible {
    color: #fff;
    background: var(--electric-blue);
    outline: 0;
    transform: translateY(-2px);
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: 760px;
  }

  .hero-media img {
    object-position: 74% center;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid,
  .category-list,
  .trust-grid,
  .info-card-grid,
  .info-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-hero {
    grid-template-columns: 1fr;
  }

  .info-page-shell {
    --info-page-gutter: 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-links {
    padding-left: 0;
    border-left: 0;
  }

  .footer-note {
    max-width: 330px;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    width: calc(100% - 28px);
    min-height: 0;
    gap: 12px;
    margin-top: 12px;
    padding: 0;
    border-radius: 22px;
  }

  .landing-page .site-header {
    top: 12px;
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 12px;
    min-height: 0;
    padding: 0;
  }

  .site-page:not(.landing-page) .site-header {
    top: 12px;
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 12px;
    min-height: 0;
    padding: 0;
  }

  .brand-logo {
    width: min(270px, 78vw);
  }

  .site-nav,
  .landing-page .site-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 430px;
    padding: 5px;
    font-size: 13px;
  }

  .site-nav a,
  .landing-page .site-nav a {
    padding: 9px 6px;
  }

  .parent-link,
  .landing-page .parent-link {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 14px;
    box-shadow: 0 6px 0 #efb800;
  }

  .layout-panel {
    margin: 24px 0 24px;
    padding: 16px 12px 28px;
    border-radius: 26px;
  }

  .layout-panel::before {
    display: none;
  }

  .landing-page .layout-panel {
    margin: 0;
    padding-bottom: 34px;
    background:
      linear-gradient(180deg, rgba(229, 247, 255, 0.56) 0, rgba(248, 253, 255, 0.88) 720px, #fff 1000px);
    border-radius: 0;
    box-shadow: none;
  }

  .landing-page .content-section {
    width: calc(100% - 40px);
  }

  .hero-section {
    min-height: 700px;
    margin: 0;
    padding: 218px 20px 210px;
    align-items: start;
    border-radius: 0;
  }

  .landing-page .hero-section + .content-section {
    margin-top: -86px;
  }

  .hero-section::after {
    bottom: -168px;
    height: 290px;
  }

  .hero-media img {
    object-position: 72% center;
  }

  .hero-copy h1 {
    font-size: 42px;
    line-height: 1;
  }

  .hero-copy p {
    margin: 14px 0 18px;
    font-size: 20px;
  }

  .hero-badge {
    min-height: auto;
    gap: 8px;
    max-width: 100%;
    padding: 9px 14px;
    border-width: 2px;
    box-shadow: 0 5px 0 rgba(239, 184, 0, 0.95);
    font-size: 14px;
    white-space: nowrap;
  }

  .hero-badge .badge-icon {
    width: 21px;
    height: 21px;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 20px;
  }

  .button {
    width: 100%;
    min-height: 50px;
    border-radius: 15px;
    font-size: 16px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .info-page-shell {
    --info-page-gutter: 0;
  }

  .category-list,
  .trust-grid,
  .about-us-grid,
  .info-card-grid,
  .info-step-list,
  .parent-trust-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .game-card {
    max-height: 188px;
  }

  .game-card-image {
    width: 100%;
    height: 96px;
    aspect-ratio: auto;
  }

  .favourite-toggle {
    top: 7px;
    right: 7px;
    width: 36px;
    height: 36px;
  }

  .favourite-icon {
    width: 19px;
    height: 19px;
  }

  .game-card-body {
    align-items: center;
    gap: 8px;
    min-height: 70px;
    padding: 9px;
  }

  .game-card h3 {
    margin-bottom: 6px;
    font-size: 14px;
  }

  .age-pill {
    min-height: 21px;
    padding: 0 7px;
    font-size: 11px;
  }

  .play-chip {
    width: 34px;
    height: 34px;
    box-shadow: 0 6px 10px rgba(37, 99, 255, 0.22);
  }

  .play-icon {
    width: 18px;
    height: 18px;
  }

  .category-tile {
    min-height: 104px;
    max-height: 118px;
    gap: 7px;
    padding: 12px 8px 10px;
    border-radius: 14px;
    font-size: 14px;
  }

  .category-tile img {
    width: 50px;
    height: 50px;
  }

  .info-hero {
    min-height: 0;
    padding: 20px;
    border-radius: 20px;
  }

  .info-hero h1 {
    font-size: 34px;
  }

  .info-card,
  .info-step-list article {
    min-height: 0;
  }

  .about-section-heading {
    align-items: flex-start;
  }

  .about-section-heading > p {
    max-width: none;
    text-align: left;
  }

  .about-person-card {
    grid-template-columns: minmax(92px, 112px) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    min-height: 0;
    padding: 16px;
    border-radius: 18px;
  }

  .about-avatar img {
    border-radius: 16px;
  }

  .about-avatar::after {
    right: -6px;
    bottom: -6px;
    width: 26px;
    height: 26px;
    border-width: 3px;
    border-radius: 9px;
  }

  .about-person-card h3 {
    font-size: 23px;
  }

  .about-person-card p:last-child {
    font-size: 14px;
  }

  .info-band {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 18px;
  }

  .info-band h2 {
    font-size: 25px;
  }

  .game-hero,
  .category-hero {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 20px;
  }

  .game-hero h1,
  .category-hero h1 {
    font-size: 36px;
  }

  .lede {
    font-size: 17px;
  }

  .category-hero img {
    justify-self: start;
  }

  .footer-main {
    gap: 24px;
    padding: 24px 18px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .license-card {
    padding: 20px;
  }

  .license-card-header {
    display: grid;
    gap: 12px;
  }

  .license-card h3 {
    font-size: 24px;
  }

  .license-badge {
    justify-self: start;
  }

  .license-meta div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .footer-note {
    justify-self: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: auto;
    padding: 4px 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    gap: 12px;
    font-size: 17px;
    line-height: 1.15;
  }

  .footer-note p {
    margin: 0;
  }

  .footer-note img {
    width: 54px;
  }

  .footer-bar {
    min-height: 70px;
    gap: 18px;
    text-align: center;
    padding-bottom: 150px;
    padding-top: 20px;
  }
}

@media (max-width: 420px) {
  .site-header {
    width: calc(100% - 20px);
  }

  .layout-panel {
    padding: 14px 10px 26px;
  }

  .landing-page .layout-panel {
    padding: 0 0 30px;
  }

  .landing-page .site-header {
    width: calc(100% - 20px);
  }

  .site-page:not(.landing-page) .site-header {
    width: calc(100% - 20px);
  }

  .brand-logo {
    width: min(245px, 78vw);
  }

  .landing-page .hero-section {
    min-height: 640px;
    margin-inline: 0;
    padding: 204px 14px 160px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .hero-badge {
    padding-inline: 12px;
    font-size: 13px;
  }

  .button {
    min-height: 48px;
  }

  .footer-note {
    gap: 10px;
    font-size: 16px;
  }

  .footer-note img {
    width: 48px;
  }
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: end;
  gap: 26px;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(37, 99, 255, 0.1), rgba(0, 212, 230, 0.09) 58%, rgba(255, 212, 59, 0.2)),
    #fff;
  border: 1px solid #dcecff;
  border-radius: 26px;
}

.site-page:not(.landing-page) .info-hero,
.site-page:not(.landing-page) .game-hero,
.site-page:not(.landing-page) .category-hero,
.site-page:not(.landing-page) .catalog-hero {
  position: relative;
  padding: 0 0 clamp(52px, 6vw, 86px);
  overflow: visible;
  isolation: isolate;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-page:not(.landing-page) .catalog-hero,
.site-page:not(.landing-page) .category-hero {
  align-items: center;
}

.site-page:not(.landing-page) .game-hero {
  grid-template-columns: minmax(230px, 320px) minmax(0, 560px);
  justify-content: start;
  align-items: center;
}

.site-page:not(.landing-page) .game-hero-copy {
  grid-column: 2;
  grid-row: 1;
}

.site-page:not(.landing-page) .game-hero-media {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: 100%;
}

.site-page:not(.landing-page) .info-hero > *,
.site-page:not(.landing-page) .game-hero > *,
.site-page:not(.landing-page) .category-hero > *,
.site-page:not(.landing-page) .catalog-hero > * {
  position: relative;
  z-index: 1;
}

.site-page:not(.landing-page) .info-hero .lede,
.site-page:not(.landing-page) .game-hero .lede,
.site-page:not(.landing-page) .category-hero .lede,
.site-page:not(.landing-page) .catalog-hero .lede {
  color: var(--electric-blue);
  font-weight: 900;
}

@media (max-width: 1120px) {
  .site-page:not(.landing-page) .layout-panel {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .site-page:not(.landing-page)::before,
  .site-page:not(.landing-page)::after {
    height: 560px;
  }

  .site-page:not(.landing-page)::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.12) 52%, rgba(255, 255, 255, 0.9) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.72) 56%, rgba(255, 255, 255, 0.24) 100%),
      url("../images/interior-hero-banner.webp") 62% top / auto 560px no-repeat,
      #dff5ff;
  }

  .site-page:not(.landing-page) .layout-panel {
    margin-top: 0;
    padding-top: 128px;
    padding-right: clamp(12px, 4vw, 18px);
    padding-left: clamp(12px, 4vw, 18px);
  }

  .site-page:not(.landing-page) .info-hero,
  .site-page:not(.landing-page) .game-hero,
  .site-page:not(.landing-page) .category-hero,
  .site-page:not(.landing-page) .catalog-hero {
    min-height: 360px;
    padding: 30px 0 82px;
  }

  .site-page:not(.landing-page) .category-hero img {
    width: min(168px, 52vw);
  }

  .site-page:not(.landing-page) .game-hero {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .favourite-detail-button {
    min-height: 48px;
    padding-inline: 13px;
    font-size: 16px;
  }

  .site-page:not(.landing-page) .game-hero-copy,
  .site-page:not(.landing-page) .game-hero-media {
    grid-column: auto;
    grid-row: auto;
  }
}

.catalog-hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: 54px;
  font-weight: 1000;
  line-height: 1;
}

.catalog-search {
  position: relative;
  margin-top: 22px;
}

.catalog-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 25px;
  height: 25px;
  color: var(--electric-blue);
  stroke-width: 2.7;
  transform: translateY(-50%);
  pointer-events: none;
}

.catalog-search input {
  width: 100%;
  min-height: 64px;
  padding: 0 20px 0 58px;
  color: var(--navy);
  background: #fff;
  border: 3px solid #cde7ff;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(13, 27, 61, 0.08);
  font-size: 18px;
  font-weight: 900;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.catalog-search input:focus {
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 255, 0.12);
}

.catalog-search input::placeholder {
  color: #6b82a3;
}

.catalog-controls {
  position: relative;
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
  padding: clamp(20px, 3vw, 28px) clamp(16px, 3vw, 24px) clamp(16px, 3vw, 24px);
  background:
    linear-gradient(180deg, rgba(255, 247, 215, 0.72), rgba(255, 255, 255, 0.96) 44%),
    #fff;
  border: 2px solid #cde7ff;
  border-radius: 26px;
  box-shadow: 0 14px 28px rgba(13, 27, 61, 0.09);
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.filter-group h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 1000;
}

.filter-heading h2 {
  margin-bottom: 0;
}

.filter-kicker {
  margin: 0 0 3px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-filter-pills {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.filter-pill,
.filter-reset {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.filter-pill {
  min-height: 40px;
  padding: 0 14px;
  color: var(--navy);
  background: #f2f8ff;
  border: 2px solid #d6e9ff;
  border-radius: 999px;
  font-weight: 1000;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  border-color: var(--electric-blue);
  transform: translateY(-1px);
}

.filter-pill.is-active {
  color: #fff;
  background: var(--electric-blue);
  border-color: var(--electric-blue);
}

.tag-pill.is-active {
  color: #075763;
  background: #c8fbff;
  border-color: #56dfe8;
}

.category-choice {
  display: grid;
  grid-template-rows: 58px auto;
  place-items: center;
  gap: 8px;
  min-height: 118px;
  padding: 12px 8px 14px;
  background: linear-gradient(180deg, #fff, #f2f8ff);
  border-color: #d9eafd;
  border-radius: 20px;
  box-shadow: 0 8px 0 rgba(205, 231, 255, 0.9);
  font-size: 14px;
  line-height: 1.05;
}

.category-choice:nth-child(3n) {
  border-color: rgba(255, 212, 59, 0.8);
  box-shadow: 0 8px 0 rgba(255, 212, 59, 0.46);
}

.category-choice:nth-child(3n + 1) {
  border-color: rgba(0, 212, 230, 0.48);
  box-shadow: 0 8px 0 rgba(0, 212, 230, 0.2);
}

.category-choice:hover,
.category-choice:focus-visible {
  transform: translateY(-3px);
}

.category-choice.is-active {
  color: var(--navy);
  background: #fff7d7;
  border-color: #ffc400;
  box-shadow: 0 8px 0 #efb800;
}

.category-choice-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: #fff;
  border: 2px solid rgba(13, 27, 61, 0.08);
  border-radius: 18px;
}

.category-choice-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.category-choice-svg {
  width: 34px;
  height: 34px;
  color: var(--coral);
  stroke-width: 2.8;
}

.age-filter-pills .filter-pill {
  min-width: 86px;
  min-height: 52px;
  padding: 0 20px;
  background: #fff7d7;
  border-color: rgba(255, 212, 59, 0.78);
  border-radius: 16px;
  box-shadow: 0 5px 0 rgba(239, 184, 0, 0.42);
  font-size: 18px;
}

.age-pill-filter.is-active {
  color: #fff;
  background: var(--electric-blue);
  border-color: #00205f;
  transform: translateY(-2px);
}

.filter-reset {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: var(--coral);
  border-radius: 12px;
  box-shadow: 0 5px 0 rgba(189, 54, 54, 0.55);
  font-weight: 1000;
  z-index: 1;
}

.filter-reset:hover,
.filter-reset:focus-visible {
  background: #ed5555;
  transform: translateY(-1px);
}

.all-games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card[hidden] {
  display: none;
}

.catalog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  max-height: none;
}

.catalog-card .game-card-media {
  min-width: 0;
}

.catalog-card .game-card-image {
  height: auto;
}

.catalog-card-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 14px;
}

.catalog-card-topline,
.catalog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog-category-link {
  color: var(--electric-blue);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.catalog-card h3 {
  height: auto;
  margin: 0;
  font-size: 20px;
}

.catalog-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.catalog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.catalog-card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  color: #075763;
  background: #e5fbfd;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
}

.empty-results {
  margin-top: 20px;
  padding: 30px;
  text-align: center;
  background: #fff7d7;
  border: 2px solid rgba(255, 212, 59, 0.65);
  border-radius: 22px;
}

.empty-results[hidden] {
  display: none;
}

.empty-results h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 1000;
}

.empty-results p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-weight: 900;
}

.favourites-empty-action {
  width: fit-content;
  margin: 18px auto 0;
}

@media (max-width: 1120px) {
  .catalog-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .category-filter-pills {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .all-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .catalog-hero {
    gap: 18px;
    padding: 20px;
    border-radius: 20px;
  }

  .catalog-hero h1 {
    font-size: 36px;
  }

  .catalog-search input {
    min-height: 56px;
    font-size: 15px;
  }

  .catalog-controls {
    padding: 58px 16px 16px;
    border-radius: 18px;
  }

  .filter-reset {
    top: 14px;
    right: 14px;
    min-height: 36px;
    padding-inline: 12px;
    border-radius: 11px;
    font-size: 13px;
  }

  .filter-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-filter-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-choice {
    grid-template-columns: 44px 1fr;
    grid-template-rows: 1fr;
    justify-items: start;
    min-height: 70px;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
  }

  .category-choice-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .category-choice-icon img {
    width: 32px;
    height: 32px;
  }

  .category-choice-svg {
    width: 28px;
    height: 28px;
  }

  .filter-pill {
    min-height: 37px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .age-filter-pills .filter-pill {
    min-height: 42px;
    font-size: 15px;
  }

  .all-games-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card {
    max-height: none;
  }

  .catalog-card .game-card-image {
    height: 150px;
  }

  .catalog-card h3 {
    font-size: 19px;
  }
}
