@font-face {
  font-family: Bricolage;
  src: url("/assets/bricolage.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f9fd;
  --white: #fff;
  --ink: #243950;
  --muted: #566c83;
  --line: #dce7f1;
  --accent: #a44b08;
  --accent-soft: #ffeed5;
  --rail: #fff;
  --blue-soft: #e9f3ff;
  --player-backdrop: #161f2d;
  --display: Bricolage, "Arial", sans-serif;
  --rail-width: 208px;
  --topbar-height: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  display: grid;
  grid-template: "rail header" auto "rail main" 1fr "rail footer" auto / var(--rail-width) minmax(0, 1fr);
  min-height: 100svh;
  margin: 0;
  background: linear-gradient(#eaf5ff, var(--paper) 260px);
  color: var(--ink);
  font: 1rem/1.55 system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:where(button, a, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, ul { margin: 0; }
.shell { width: min(calc(100% - 56px), 1390px); margin-inline: auto; }
main { grid-area: main; min-width: 0; }
[id] { scroll-margin-top: calc(var(--topbar-height) + 16px); }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 20; padding: 8px 12px; background: var(--white); }
.skip-link:focus { top: 12px; }

.site-rail {
  grid-area: rail;
  position: sticky;
  inset-block-start: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 22px;
  height: 100vh;
  height: 100dvh;
  padding: 23px 15px 16px;
  overflow-y: auto;
  border-inline-end: 1px solid var(--line);
  background: var(--rail);
  scrollbar-width: thin;
}
.brand { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font: 800 1.05rem/1 var(--display); letter-spacing: -.051em; white-space: nowrap; }
.site-rail > .brand { margin: 4px 5px 4px; }
.brand-accent { color: #b63726; }
.brand-mark { display: grid; place-items: center; flex-shrink: 0; width: 30px; aspect-ratio: 1; }
.brand-mark > span {
  width: 100%;
  aspect-ratio: 1;
  background: url("/assets/heart.png?v=2") center / contain no-repeat;
}
.rail-navigation { display: grid; gap: 14px; }
.rail-group { display: grid; gap: 3px; }
.rail-group + .rail-group { padding-block-start: 13px; border-block-start: 1px solid var(--line); }
.rail-label { margin: 0 10px 5px; color: var(--muted); font-size: .75rem; font-weight: 750; }
.rail-group a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #364d66;
  font-size: .87rem;
  font-weight: 650;
}
.rail-group a:hover { background: var(--blue-soft); color: var(--ink); }
.rail-group a[aria-current] { background: var(--accent-soft); color: #764013; font-weight: 780; }
.filter-icon { display: grid; place-items: center; flex: 0 0 19px; height: 19px; border-radius: 6px; background: #2873b8; color: #fff; }
.filter-icon::before { content: ""; width: 9px; height: 9px; background: currentColor; border-radius: 2px; }
.filter-icon--all, .filter-icon--action, .filter-icon--racing { background: #c56916; }
.filter-icon--arcade, .filter-icon--strategy, .filter-icon--music { background: #7656bf; }
.filter-icon--new, .filter-icon--casual, .filter-icon--kids { background: #bf515c; }
.filter-icon--random, .filter-icon--simulation, .filter-icon--puzzle, .filter-icon--sports { background: #298263; }
.filter-icon--all::before { width: 4px; height: 4px; border-radius: 1px; transform: translate(-2.5px, -2.5px); box-shadow: 5px 0, 0 5px, 5px 5px; }
.filter-icon--arcade::before, .filter-icon--strategy::before, .filter-icon--new::before { rotate: 45deg; }
.filter-icon--casual::before, .filter-icon--sports::before, .filter-icon--kids::before { border-radius: 50%; }
.filter-icon--history::before { border-radius: 1px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.filter-icon--action::before { clip-path: polygon(54% 0, 86% 0, 65% 37%, 100% 37%, 32% 100%, 44% 56%, 6% 56%); }
.filter-icon--adventure::before { clip-path: polygon(50% 0, 100% 100%, 50% 69%, 0 100%); }
.filter-icon--runner::before, .filter-icon--random::before { clip-path: polygon(0 0, 49% 0, 100% 50%, 49% 100%, 0 100%, 53% 50%); }
.filter-icon--racing::before { clip-path: polygon(0 0, 100% 0, 100% 65%, 20% 65%, 20% 100%, 0 100%); }
.filter-icon--music::before { clip-path: polygon(35% 0, 100% 0, 100% 33%, 64% 24%, 64% 90%, 39% 100%, 0 92%, 0 63%, 35% 58%); }
.filter-icon--puzzle::before { clip-path: polygon(0 22%, 38% 22%, 38% 0, 66% 0, 66% 22%, 100% 22%, 100% 52%, 75% 52%, 75% 75%, 100% 75%, 100% 100%, 0 100%); }
.rail-footer { display: flex; flex-wrap: wrap; gap: 12px; margin: auto 10px 0; color: var(--muted); font-size: .78rem; }
.rail-footer a:hover { text-decoration: underline; }

.site-header {
  grid-area: header;
  position: sticky;
  inset-block-start: 0;
  z-index: 4;
  border-block-end: 1px solid var(--line);
  background: #eef7ff;
}
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--topbar-height); }
.mobile-header { display: none; }
.search { display: flex; align-items: center; gap: 10px; width: min(100%, 640px); padding: 4px 4px 4px 13px; border: 1px solid #cfdfee; border-radius: 27px; background: var(--white); box-shadow: 0 3px 12px rgb(38 80 132 / .07); }
.search:focus-within { border-color: #b47436; }
.search input { flex: 1; min-width: 0; min-height: 39px; padding: 4px; border: 0; outline: none; background: transparent; color: var(--ink); font-size: .95rem; }
.search input::placeholder { color: var(--muted); }
.search button { flex: 0 0 auto; min-height: 39px; padding: 4px 21px; border: 1px solid #e99c28; border-radius: 22px; background: #ffbf59; color: #4e2b0f; font-size: .9rem; font-weight: 760; }
.search button:hover { background: #ffb343; }
.search-icon { position: relative; flex: 0 0 14px; width: 14px; height: 14px; margin-right: 2px; border: 2px solid currentColor; border-radius: 50%; color: var(--accent); }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; inset: 10px auto auto 8px; background: currentColor; transform: rotate(45deg); transform-origin: left; }
.bookmark-button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
}
.bookmark-button { flex: 0 0 auto; padding: 0 14px; border-color: #efce9a; border-radius: 24px; background: #fff7e9; font-size: .84rem; font-weight: 750; white-space: nowrap; }
.bookmark-button:hover { border-color: #d89c4f; background: var(--accent-soft); }
.icon-button:hover { border-color: #9ab5d0; background: var(--blue-soft); }
.bookmark-icon { width: 12px; height: 15px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%); }
.icon-button { width: 43px; padding: 0; }
.menu-icon { width: 17px; height: 2px; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }
.close-button { font-size: 1.55rem; line-height: 1; }

dialog { border: 1px solid var(--line); border-radius: 13px; background: var(--white); color: var(--ink); }
dialog:not([open]) { display: none; }
dialog::backdrop { background: rgb(22 31 45 / .56); }
.mobile-menu { inset: 0 auto 0 0; width: min(320px, 88vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 14px 16px 20px; border-radius: 0 13px 13px 0; background: var(--rail); }
.menu-heading, .dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.mobile-menu .rail-group a { min-height: 43px; }
.bookmark-dialog { width: min(460px, calc(100vw - 30px)); padding: 20px; }
.bookmark-dialog h2 { font: 800 1.45rem/1.1 var(--display); }
.bookmark-steps { display: grid; gap: 13px; padding-inline-start: 19px; color: var(--muted); }
.bookmark-steps strong { display: block; color: var(--ink); }
.bookmark-steps kbd { color: var(--ink); font-weight: 700; }
.bookmark-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
[data-bookmark-status]:not(:empty) { margin-top: 10px; overflow-wrap: anywhere; color: var(--muted); }

.discover { margin-top: 27px; }
.discovery-heading, .section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; margin-block-end: 12px; }
.discovery-heading h1, .section-heading h1, .content-page h1 { font: 800 clamp(2rem, 4vw, 3.15rem)/1.04 var(--display); letter-spacing: -.055em; }
.section-heading h2 { font: 800 clamp(1.45rem, 2.5vw, 2.12rem)/1.13 var(--display); letter-spacing: -.042em; }
.results-count { color: var(--muted); font-size: .88rem; }
.text-link { color: #325d87; font-size: .86rem; font-weight: 750; }
.text-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.shuffle-button { min-height: 38px; padding: 0; border: 0; background: transparent; }
.filters { display: flex; gap: 7px; margin-block: 14px 18px; padding: 3px 3px 6px; overflow-x: auto; scrollbar-width: thin; }
.filters a { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 36px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); font-size: .84rem; font-weight: 650; }
.filters a:hover { border-color: var(--ink); }
.filters a[aria-current] { border-color: #e5bb84; background: var(--accent-soft); color: #764013; }

.featured-grid { display: grid; grid-template: repeat(2, minmax(0, 1fr)) / minmax(0, 1.9fr) minmax(0, 1fr); gap: 10px; height: clamp(280px, 31vw, 410px); }
.featured-card { position: relative; display: flex; min-width: 0; align-items: flex-end; justify-content: space-between; gap: 8px; isolation: isolate; overflow: hidden; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; color: #fffaf4; }
.featured-card--main { grid-row: span 2; padding: clamp(16px, 2.8vw, 34px); }
.featured-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.featured-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 21%, rgb(15 29 52 / .88) 100%); }
.featured-card:hover img { transform: scale(1.035); }
.featured-details { display: grid; gap: 4px; min-width: 0; }
.featured-label { font-size: .74rem; font-weight: 700; color: #f8e6d9; }
.featured-details strong { font: 800 clamp(1.18rem, 2.25vw, 2rem)/1.1 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.featured-card--main .featured-details strong { font-size: clamp(1.9rem, 5vw, 4rem); }
.featured-play { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; background: #ffcf86; color: #432411; }
.featured-card--main .featured-play { width: 45px; height: 45px; }
.play-icon { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent currentColor; margin-left: 2px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: fit-content; min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: 8px 15px; font-weight: 750; font-size: .9rem; }
.button--ink { background: var(--ink); color: var(--white); }
.button--ink:hover { background: #32506f; }
.button--accent { background: var(--accent); color: #fff; }
.button--accent:hover { background: #873b08; }

.catalogue { margin-block: 31px 39px; }
.catalogue--browse { min-height: 44vh; margin-top: 29px; }
.game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; gap: 13px 10px; padding: 0; }
.game-card { min-width: 0; }
.game-card a { display: block; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 2px 7px rgb(32 66 103 / .06); }
.game-card a:hover { border-color: #98b4cf; }
.cover { aspect-ratio: 16/10; overflow: hidden; background: var(--blue-soft); }
.game-card .cover { position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; color: transparent; }
.cover-badge {
  position: absolute;
  inset: 5px auto auto 5px;
  padding: 3px 6px 2px;
  border: 1px solid rgb(255 255 255 / .42);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgb(20 28 47 / .32), inset 0 1px 0 rgb(255 255 255 / .68);
  font: 800 .6875rem/1 var(--display);
  letter-spacing: .05em;
}
.cover-badge--new { background: linear-gradient(#ffd375, #fa9a32 52%, #e37213 54%, #ec821c); color: #492300; }
.cover-badge--hot { background: linear-gradient(#e64c57, #cb2033 52%, #b40e29 54%, #bf1830); color: #fff; }
.cover--arcade, .cover--sports { background-color: #bccbdc; }
.cover--puzzle, .cover--strategy, .cover--board { background-color: #dce7c7; }
.cover--runner, .cover--casual { background-color: #eed6a6; }
.cover--action, .cover--music { background-color: #d5b1ca; }
.cover--simulation, .cover--adventure { background-color: #ecc0a3; }
.cover--racing { background-color: #c3d6d8; }
.game-name { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; padding: 8px 8px 0; }
.game-name h3 { font: 800 clamp(.89rem, 1.5vw, 1.02rem)/1.15 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.card-play { color: var(--accent); line-height: 1; }
.card-play .play-icon { border-width: 4px 0 4px 6px; }
.game-card p { margin: 3px 8px 7px; color: var(--muted); font-size: .75rem; }
.empty { border-top: 1px solid var(--line); padding-block: 24px; }
.empty p { margin-block: 6px 12px; color: var(--muted); }

.game-page { max-width: 960px; margin: 26px auto 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 12px; font-size: .875rem; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.game-heading { margin-bottom: 21px; }
.game-heading h1 { font: 800 clamp(2.5rem, 5vw, 4.5rem)/1.02 var(--display); letter-spacing: -.043em; }
.game-heading p { color: var(--muted); max-width: 62ch; margin-top: 8px; }
.game-stage { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 220px; border: 1px solid var(--ink); border-radius: 4px; background: var(--player-backdrop); }
.game-stage--landscape, .game-stage--all { aspect-ratio: 4/3; max-height: 75svh; }
.game-stage--portrait { height: min(680px, 75svh); }
.game-stage > .cover { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.stage-start { z-index: 1; }
.player-unavailable { color: #fff; text-align: center; padding: 8px 12px; }
.game-stage.is-playing > .cover { display: none; }
.game-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--player-backdrop); }
.game-stage--portrait iframe { width: min(100%, 480px); margin-inline: auto; }
.player-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 6px; font-size: .875rem; color: var(--muted); }
.player-toolbar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.player-toolbar button { border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); min-height: 44px; padding: 5px 12px; }
.player-toolbar button:hover { border-color: var(--ink); }
.player-toolbar [data-fullscreen] { background: var(--ink); color: var(--white); }
.player-toolbar [data-fullscreen]:hover { background: #32506f; }
.player-toolbar [data-player-status]:empty { display: none; }
.has-expanded-player, .has-expanded-player body { overflow: hidden; overscroll-behavior: none; }
.has-fullscreen-player, .has-fullscreen-player body { background: var(--player-backdrop); }
.player.is-expanded { position: fixed; z-index: 12; inset: 0; width: 100%; height: 100%; height: 100dvh; }
.player.is-fullscreen { display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--player-backdrop); padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.player.is-fullscreen::backdrop { background: var(--player-backdrop); }
.player.is-fullscreen .game-stage { width: 100%; height: 100%; min-height: 0; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; container-type: size; --frame-ratio: calc(4 / 3); }
.player.is-fullscreen .game-stage--portrait { --frame-ratio: .75; }
@media (orientation: portrait) {
  .player.is-fullscreen .game-stage--all { --frame-ratio: .75; }
}
.player.is-fullscreen .game-stage > :is(iframe, .cover) {
  width: min(100cqw, calc(100cqh * var(--frame-ratio)));
  height: min(100cqh, calc(100cqw / var(--frame-ratio)));
  margin: auto;
  border-radius: 0;
}
.player.is-fullscreen .player-toolbar { justify-content: center; padding: 0 12px 12px; color: var(--white); background: var(--player-backdrop); }
.player.is-fullscreen .player-toolbar button { color: var(--white); border-color: #7588a2; background: transparent; }
.player.is-fullscreen .player-toolbar button:hover { background: #28394e; }
.restart-dialog { width: min(calc(100% - 32px), 390px); padding: 20px; border: 1px solid var(--ink); border-radius: 5px; background: var(--paper); color: var(--ink); }
.restart-dialog:not([open]) { display: none; }
.restart-dialog::backdrop { background: rgb(22 31 45 / .65); }
.restart-dialog h2 { font: 800 1.6rem/1.15 var(--display); letter-spacing: -.04em; }
.restart-dialog p { margin: 8px 0 19px; color: var(--muted); }
.restart-dialog form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.button--quiet { border-color: var(--line); background: var(--white); color: var(--ink); }
.button--quiet:hover { border-color: var(--ink); }
.game-guide { max-width: 70ch; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.game-guide h2 { font: 800 clamp(1.6rem, 3vw, 2.35rem)/1.1 var(--display); letter-spacing: -.035em; }
.game-guide ol { margin: 12px 0 19px; padding-inline-start: 1.4em; }
.game-guide li { padding-inline-start: 4px; }
.game-guide li + li { margin-top: 8px; }
.game-guide li::marker { color: var(--accent); font-weight: 750; }
.game-guide h3 { font: 780 1.15rem/1.2 var(--display); margin-bottom: 5px; }
.game-guide p { color: var(--muted); }
.related { border-top: 1px solid var(--line); padding-top: 18px; }
.content-page { max-width: 68ch; margin: 54px 0; }
.content-page p { margin: 16px 0; }
.privacy-policy h2 { margin-top: 28px; font: 800 1.35rem/1.2 var(--display); letter-spacing: -.025em; }
.privacy-policy ul { padding-left: 1.3em; }
.privacy-policy li + li { margin-top: 10px; }
.privacy-policy .policy-date { color: var(--muted); font-size: .85rem; }
.site-footer { grid-area: footer; border-top: 1px solid var(--line); padding-block: 22px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-content p { color: var(--muted); font-size: .81rem; margin: 6px 0 0 38px; }
.footer-content nav { display: flex; gap: 16px; font-size: .9rem; font-weight: 650; color: var(--muted); flex-wrap: wrap; }
.footer-content nav a:hover { color: var(--accent); }


@media (max-width: 1250px) {
  .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1030px) {
  :root { --rail-width: 191px; }
  .shell { width: calc(100% - 36px); }
  .site-rail { padding-inline: 10px; }
  .site-rail .brand { font-size: .97rem; }
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 801px) {
  :root { --topbar-height: 60px; }
  .discover { margin-top: 15px; }
  .discovery-heading, .catalogue .section-heading { margin-block-end: 8px; }
  .discovery-heading h1, .catalogue--browse h1 { font-size: clamp(1.5rem, 2.15vw, 2rem); letter-spacing: -.04em; }
  .home-shelf .section-heading h2 { font-size: 1.3rem; letter-spacing: -.03em; }
  .discover .filters, .catalogue--browse .filters { margin-block: 8px 10px; }
  .filters a { min-height: 31px; padding-block: 3px; }
  .featured-grid { grid-template: minmax(0, 1fr) / repeat(3, minmax(0, 1fr)); height: clamp(122px, 12vw, 176px); }
  .featured-card--main { grid-row: auto; padding: 11px 13px; }
  .featured-details strong, .featured-card--main .featured-details strong { font-size: clamp(1rem, 1.6vw, 1.5rem); }
  .featured-play, .featured-card--main .featured-play { width: 32px; height: 32px; }
  .home-shelf { margin-block: 17px 23px; }
  .shuffle-button { min-height: 28px; }
  .home-shelf .game-grid, .catalogue--browse .game-grid { gap: 9px; }
  .home-shelf .game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .catalogue--browse { margin-top: 16px; }
  .catalogue--browse .game-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  :is(.home-shelf, .catalogue--browse) .cover { aspect-ratio: 16/9; }
  :is(.home-shelf, .catalogue--browse) .game-name { padding: 6px 7px 0; }
  :is(.home-shelf, .catalogue--browse) .game-name h3 { font-size: .91rem; }
  :is(.home-shelf, .catalogue--browse) .game-card p { margin: 2px 7px 6px; }
  #continue .game-grid { grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); max-width: 970px; }
  #continue .game-card a { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 7px; padding: 5px; }
  #continue .cover { grid-row: span 2; align-self: center; aspect-ratio: 1; border-radius: 6px; }
  #continue .game-name { align-self: end; padding: 0; }
  #continue .game-name h3 { font-size: .83rem; }
  #continue .card-play { display: none; }
  #continue .game-card p { margin: 0; }
}
@media (min-width: 1280px) {
  .home-shelf .game-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (width < 1280px) {
  .home-shelf .game-card:nth-child(n + 7) { display: none; }
}
@media (max-width: 800px) {
  :root { --topbar-height: 112px; }
  body { grid-template: "header" auto "main" 1fr "footer" auto / minmax(0, 1fr); }
  .site-rail { display: none; }
  .header-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 8px; padding-block: 7px; }
  .mobile-header { display: flex; align-items: center; gap: 8px; }
  .mobile-header .brand { font-size: 1.05rem; }
  .search { grid-row: 2; grid-column: 1 / -1; width: 100%; }
  .search button { padding-inline: 16px; }
  .bookmark-button { grid-column: 2; grid-row: 1; }
  .discover { margin-top: 20px; }
  .featured-grid { height: clamp(240px, 42vw, 330px); }
  .filters a { min-height: 42px; }
  .site-footer { margin-top: 10px; }
}
@media (max-width: 555px) {
  .shell { width: calc(100% - 26px); }
  .mobile-header { gap: 4px; }
  .mobile-header .brand { font-size: clamp(.76rem, 3.2vw, 1.05rem); gap: 4px; }
  .mobile-header .brand-mark { width: 26px; }
  .mobile-header .icon-button { width: 36px; padding: 0; border-color: transparent; background: transparent; }
  .bookmark-button { padding-inline: 8px; font-size: .78rem; }
  .discovery-heading { align-items: center; }
  .discovery-heading h1 { font-size: clamp(1.65rem, 6.8vw, 2.25rem); }
  .discovery-heading .text-link { font-size: .77rem; }
  .featured-grid { grid-template: clamp(160px, 47vw, 225px) clamp(106px, 27vw, 145px) / repeat(2, minmax(0, 1fr)); height: auto; gap: 7px; }
  .featured-card { padding: 8px; }
  .featured-card--main { grid-column: 1 / -1; grid-row: 1; padding: 12px; }
  .featured-details strong { font-size: 1rem; }
  .featured-card--main .featured-details strong { font-size: clamp(1.7rem, 7vw, 2.45rem); }
  .featured-label { font-size: .68rem; }
  .featured-play { width: 27px; height: 27px; }
  .featured-card--main .featured-play { width: 38px; height: 38px; }
  .catalogue { margin-block: 22px 28px; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 7px; }
  .game-page { margin-top: 18px; }
  .footer-content { align-items: flex-start; flex-direction: column; gap: 14px; }
  .bookmark-steps { font-size: .9rem; }
}
@media (max-width: 410px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .mobile-header .brand { font-size: .85rem; line-height: 1.05; }
  .mobile-header .brand-accent { display: block; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .game-stage--all { aspect-ratio: 3/4; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-card img { transition: none; }
}
