:root {
  --ui-bg: #f3f6f4;
  --ui-bg-elevated: #ffffff;
  --ui-bg-subtle: #e8eeea;
  --ui-bg-strong: #dce5df;
  --ui-ink: #111713;
  --ui-ink-soft: #4f5d55;
  --ui-ink-faint: #5f6d65;
  --ui-border: #cbd6cf;
  --ui-border-strong: #aebdb4;
  --ui-primary: #08794f;
  --ui-primary-strong: #05613f;
  --ui-primary-soft: #d6f5e4;
  --ui-on-primary: #ffffff;
  --ui-accent: #a76700;
  --ui-accent-soft: #fff0cf;
  --ui-danger: #c7324a;
  --ui-nav: #0b100d;
  --ui-nav-elevated: #131a16;
  --ui-nav-ink: #f2f7f4;
  --ui-nav-muted: #aebbb3;
  --ui-focus: #0ca66b;
  --ui-shadow-card: 0 1px 2px rgb(13 24 18 / 8%);
  --ui-shadow-raised: 0 16px 40px rgb(13 24 18 / 14%);
  --ui-radius-sm: 4px;
  --ui-radius-md: 6px;
  --ui-max: 1240px;
  --ui-reading: 760px;
  --ui-transition:
    color 180ms ease-out, background-color 180ms ease-out,
    border-color 180ms ease-out, box-shadow 180ms ease-out,
    transform 180ms ease-out;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ui-bg: #0a0e0c;
    --ui-bg-elevated: #131916;
    --ui-bg-subtle: #1a221e;
    --ui-bg-strong: #222d27;
    --ui-ink: #f0f6f2;
    --ui-ink-soft: #adb9b1;
    --ui-ink-faint: #8e9c93;
    --ui-border: #2a3730;
    --ui-border-strong: #3c4e44;
    --ui-primary: #6ce5a5;
    --ui-primary-strong: #97efbf;
    --ui-primary-soft: #153b29;
    --ui-on-primary: #07100b;
    --ui-accent: #f0b84d;
    --ui-accent-soft: #3a2c12;
    --ui-danger: #ff7080;
    --ui-nav: #070a08;
    --ui-nav-elevated: #111713;
    --ui-nav-ink: #f5faf7;
    --ui-nav-muted: #aab7af;
    --ui-focus: #78eead;
    --ui-shadow-card: 0 1px 2px rgb(0 0 0 / 30%);
    --ui-shadow-raised: 0 18px 48px rgb(0 0 0 / 42%);
    color-scheme: dark;
  }
}

html {
  scroll-padding-top: 88px;
  background: var(--ui-bg);
}

body {
  min-width: 320px;
  padding-top: 0;
  overflow-x: hidden;
  background: var(--ui-bg);
  color: var(--ui-ink);
  font-family:
    Inter, "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ui-primary);
  color: var(--ui-on-primary);
}

a,
button,
summary {
  transition: var(--ui-transition);
}

button,
summary {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--ui-focus);
  outline-offset: 3px;
}

.page-shell {
  min-height: 100dvh;
}

.container {
  width: min(100% - 40px, var(--ui-max));
  max-width: none;
  padding: 0;
}

.skip-link {
  top: 8px;
  left: 8px;
  z-index: 1200;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-primary);
  color: var(--ui-nav);
  font-weight: 750;
}

.skip-link:not(:focus) {
  top: -80px;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 68px;
  padding: 0;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: var(--ui-nav);
  box-shadow: none;
}

.top-nav::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--ui-primary);
  content: "";
  opacity: 0.6;
  pointer-events: none;
}

.top-nav .container {
  min-height: 68px;
}

.site-logo-link {
  min-height: 48px;
  gap: 11px;
  color: var(--ui-nav-ink);
}

.site-logo-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border: 0;
  border-radius: var(--ui-radius-md);
  box-shadow: none;
}

.site-logo {
  color: var(--ui-nav-ink);
  font-size: 1.12rem;
  font-weight: 780;
  letter-spacing: 0;
}

.navigation-menu {
  margin-left: auto;
}

.nav-links {
  gap: 4px;
}

.nav-link {
  position: relative;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--ui-radius-sm);
  color: var(--ui-nav-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgb(255 255 255 / 7%);
  color: var(--ui-nav-ink);
}

.nav-link.active,
.nav-link[aria-current="page"] {
  background: var(--ui-primary-soft);
  color: var(--ui-primary-strong);
}

.seo-hero,
.seo-section,
.faq-section,
.internal-links {
  width: min(100% - 40px, var(--ui-max));
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.seo-hero {
  position: relative;
  padding-top: 56px;
  padding-bottom: 34px;
  text-align: left;
}

.seo-hero::before {
  display: block;
  width: 54px;
  height: 5px;
  margin-bottom: 24px;
  border-radius: 2px;
  background: var(--ui-primary);
  content: "";
}

.seo-hero h1 {
  max-width: 1040px;
  margin: 0 0 16px;
  color: var(--ui-ink);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}

.seo-hero p {
  max-width: 800px;
  margin: 0;
  color: var(--ui-ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.internal-links {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 40px;
}

.internal-links a {
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
  color: var(--ui-ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: none;
}

.internal-links a:hover,
.internal-links a:focus-visible {
  border-bottom-color: var(--ui-primary);
  background: transparent;
  color: var(--ui-primary-strong);
}

.seo-section {
  margin-top: 44px;
}

.seo-section > h2,
.faq-section > h2 {
  max-width: 860px;
  margin-bottom: 14px;
  color: var(--ui-ink);
  font-size: 1.72rem;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.22;
}

.seo-section > p,
.seo-section > ul,
.seo-section > ol {
  max-width: var(--ui-reading);
}

.seo-section p,
.seo-section li,
.faq-section p {
  color: var(--ui-ink-soft);
  font-size: 1rem;
  line-height: 1.78;
}

.seo-section strong {
  color: var(--ui-ink);
}

.seo-section a,
.faq-section a {
  color: var(--ui-primary-strong);
  text-decoration-color: color-mix(in srgb, var(--ui-primary) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.seo-section a:hover,
.faq-section a:hover {
  color: var(--ui-primary);
  text-decoration-color: currentColor;
}

.longform-page .seo-section {
  max-width: 900px;
}

.longform-page .seo-section p + p,
.trust-page .seo-section p + p {
  margin-top: 16px;
}

.trust-page .seo-hero,
.trust-page .seo-section {
  width: min(100% - 40px, 820px);
  max-width: none;
}

.trust-page .seo-section {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ui-border);
}

.policy-meta {
  display: inline-flex;
  margin-top: 16px;
  padding: 5px 8px;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-bg-subtle);
  color: var(--ui-ink-faint);
  font-size: 0.83rem;
}

.seo-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin-top: 22px;
}

.seo-panel {
  padding: 22px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
  box-shadow: var(--ui-shadow-card);
}

.seo-panel:first-child {
  border-top: 3px solid var(--ui-primary);
}

.seo-panel:last-child {
  border-top: 3px solid var(--ui-accent);
}

.seo-panel h3 {
  margin-bottom: 10px;
  color: var(--ui-ink);
  font-size: 1.05rem;
}

.faq-section {
  margin-top: 64px;
}

.faq-item {
  max-width: 900px;
  margin-bottom: 10px;
  padding: 20px 22px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
  box-shadow: none;
}

.faq-item h3 {
  margin-bottom: 8px;
  color: var(--ui-ink);
  font-size: 1.04rem;
  font-weight: 720;
}

.policy-note,
.source-note {
  padding: 26px 28px;
  border: 1px solid var(--ui-border);
  border-left: 5px solid var(--ui-accent);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
  box-shadow: var(--ui-shadow-card);
}

.editorial-figure {
  max-width: 900px;
  padding: 26px 20px 20px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
  box-shadow: var(--ui-shadow-card);
}

.editorial-figure figcaption {
  color: var(--ui-ink-faint);
}

.tag-filter {
  position: sticky;
  top: 76px;
  z-index: 40;
  width: min(100% - 40px, var(--ui-max));
  max-width: none;
  justify-content: flex-start;
  gap: 8px;
  margin: 24px auto 18px;
  padding: 10px 0;
  background: var(--ui-bg);
}

.tag-filter::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--ui-border);
  content: "";
}

.tag-btn {
  min-height: 44px;
  padding: 7px 15px;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  background: var(--ui-bg-elevated);
  color: var(--ui-ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.tag-btn:hover {
  border-color: var(--ui-border-strong);
  background: var(--ui-bg-subtle);
  color: var(--ui-ink);
}

.tag-btn.active,
.tag-btn[aria-pressed="true"] {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
  color: var(--ui-on-primary);
}

.game-grid {
  width: min(100% - 40px, var(--ui-max));
  max-width: none;
  margin: 22px auto 48px;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.seo-section .game-grid {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.game-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
  box-shadow: var(--ui-shadow-card);
  cursor: pointer;
  isolation: isolate;
  transition: var(--ui-transition);
}

.game-item[hidden] {
  display: none;
}

.game-item:hover {
  transform: translateY(-2px);
  border-color: var(--ui-border-strong);
  box-shadow: var(--ui-shadow-raised);
}

.game-item:focus-within {
  outline: 3px solid var(--ui-focus);
  outline-offset: 3px;
}

.game-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--ui-border);
  background: var(--ui-bg-strong);
}

.game-media::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  background: rgb(8 13 10 / 78%);
  color: #ffffff;
  content: ">";
  font-size: 1rem;
  font-weight: 800;
  line-height: 32px;
  text-align: center;
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--ui-transition);
}

.game-item:hover .game-media::after,
.game-item:focus-within .game-media::after {
  opacity: 1;
  transform: translateX(0);
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease-out;
}

.game-item:hover .game-image {
  transform: scale(1.025);
}

.game-info {
  min-height: 190px;
  padding: 18px;
}

.game-title {
  min-height: 2.7em;
  margin-bottom: 10px;
  color: var(--ui-ink);
  font-size: 1.02rem;
  font-weight: 720;
  line-height: 1.35;
}

.game-item:hover .game-card-link,
.game-item:focus-within .game-card-link {
  color: var(--ui-primary-strong);
}

.game-summary {
  min-height: 4.65em;
  max-height: 4.65em;
  margin-bottom: 16px;
  color: var(--ui-ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
}

.game-tags {
  gap: 6px;
  margin-top: auto;
  margin-bottom: 0;
}

.game-tag {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-bg-subtle);
  color: var(--ui-ink-faint);
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
}

.game-logo-frame {
  background: #101512;
}

.embedded-game-section {
  width: min(100% - 40px, var(--ui-max));
  max-width: none;
  margin-top: 10px;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-md);
  background: var(--ui-bg-elevated);
  box-shadow: var(--ui-shadow-raised);
}

.embedded-game-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: var(--ui-nav-elevated);
  color: var(--ui-nav-ink);
}

.embedded-game-header h2 {
  font-size: 1.05rem;
}

.embedded-game-header p {
  color: var(--ui-nav-muted);
}

.embedded-game-frame {
  background: #050706;
}

.embedded-game-note {
  padding: 12px 16px;
  border-top: 1px solid var(--ui-border);
  color: var(--ui-ink-faint);
}

.cta-row {
  gap: 10px;
  margin-top: 24px;
}

.primary-cta,
.secondary-cta {
  min-height: 46px;
  padding: 10px 16px;
  border-radius: var(--ui-radius-sm);
  font-size: 0.9rem;
  font-weight: 750;
}

.longform-page .seo-section .primary-cta {
  background: var(--ui-primary);
  color: var(--ui-on-primary);
}

.longform-page .seo-section .primary-cta:hover {
  background: var(--ui-primary-strong);
  color: var(--ui-on-primary);
}

.longform-page .seo-section .secondary-cta {
  border-color: var(--ui-border-strong);
  background: var(--ui-bg-elevated);
  color: var(--ui-ink);
}

.longform-page .seo-section .secondary-cta:hover {
  border-color: var(--ui-primary);
  background: var(--ui-primary-soft);
  color: var(--ui-primary-strong);
}

.site-footer {
  margin-top: 88px;
  padding: 50px 0 24px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  background: var(--ui-nav);
  color: var(--ui-nav-muted);
}

.footer-content {
  grid-template-columns: 1.25fr 1fr 1fr 0.8fr;
  gap: 36px;
}

.footer-section h3 {
  margin-bottom: 12px;
  color: var(--ui-nav-ink);
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: uppercase;
}

.footer-section p,
.footer-section li {
  color: var(--ui-nav-muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.footer-section ul li {
  margin: 0;
}

.footer-section a {
  min-height: 36px;
  color: var(--ui-nav-muted);
}

.footer-section a:hover,
.footer-section a:focus-visible {
  color: var(--ui-primary);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-color: rgb(255 255 255 / 10%);
  color: var(--ui-nav-muted);
  font-size: 0.78rem;
  text-align: left;
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgb(0 0 0 / 72%);
}

.modal-content {
  position: relative;
  width: min(1100px, 100%);
  overflow: hidden;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--ui-radius-md);
  background: var(--ui-nav);
  box-shadow: var(--ui-shadow-raised);
}

.game-iframe {
  display: block;
  width: 100%;
  min-height: 70dvh;
  border: 0;
}

.close-modal {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  background: var(--ui-nav);
  color: var(--ui-nav-ink);
  font-size: 1.5rem;
}

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

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

  .nav-link {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 0.8rem;
  }
}

@media (min-width: 769px) {
  .navigation-menu[open] > .nav-links {
    display: flex;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }

  .container,
  .seo-hero,
  .seo-section,
  .faq-section,
  .internal-links,
  .tag-filter,
  .game-grid,
  .embedded-game-section {
    width: min(100% - 28px, var(--ui-max));
  }

  .top-nav,
  .top-nav .container {
    min-height: 62px;
  }

  .site-logo-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .site-logo {
    font-size: 1rem;
  }

  .mobile-nav-toggle {
    border-radius: var(--ui-radius-sm);
    color: var(--ui-nav-ink);
  }

  .navigation-menu > .nav-links {
    top: calc(100% + 7px);
    width: min(340px, calc(100vw - 28px));
    gap: 2px;
    padding: 8px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: var(--ui-radius-md);
    background: var(--ui-nav-elevated);
    box-shadow: var(--ui-shadow-raised);
  }

  .nav-link {
    min-height: 46px;
    padding: 0 13px;
    font-size: 0.88rem;
  }

  .seo-hero {
    padding-top: 38px;
    padding-bottom: 26px;
  }

  .seo-hero::before {
    width: 42px;
    height: 4px;
    margin-bottom: 18px;
  }

  .seo-hero h1 {
    font-size: 2.25rem;
    line-height: 1.12;
  }

  .seo-hero p {
    font-size: 1rem;
  }

  .internal-links {
    gap: 7px;
    margin-bottom: 32px;
  }

  .internal-links a {
    flex: 1 1 calc(50% - 7px);
    justify-content: center;
    text-align: center;
  }

  .seo-section {
    margin-top: 36px;
  }

  .seo-section > h2,
  .faq-section > h2 {
    font-size: 1.45rem;
  }

  .policy-note,
  .source-note {
    padding: 22px 20px;
  }

  .seo-columns {
    grid-template-columns: 1fr;
  }

  .tag-filter {
    top: 66px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tag-filter::-webkit-scrollbar {
    display: none;
  }

  .tag-btn {
    max-width: none;
    flex: 0 0 auto;
    padding-right: 15px;
    padding-left: 15px;
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .game-info {
    min-height: 176px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    margin-top: 64px;
    padding-top: 40px;
  }
}

@media (max-width: 430px) {
  .seo-hero h1 {
    font-size: 2rem;
  }

  .internal-links a {
    flex-basis: 100%;
  }

  .game-info {
    padding: 16px;
  }

  .embedded-game-section {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

.page-shell[data-page="home"] .seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  column-gap: 48px;
  padding-top: 40px;
  padding-bottom: 22px;
}

.page-shell[data-page="home"] .seo-hero::before {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}

.page-shell[data-page="home"] .seo-hero h1 {
  grid-column: 1;
  align-self: end;
  margin-bottom: 0;
  font-size: 2.75rem;
}

.page-shell[data-page="home"] .seo-hero p {
  grid-column: 2;
  align-self: end;
  max-width: none;
  font-size: 1rem;
  line-height: 1.65;
}

.page-shell[data-page="home"] .internal-links {
  margin-bottom: 24px;
}

.page-shell[data-page="home"]
  .seo-section[aria-labelledby="why-roguelite"] {
  display: block;
  margin-top: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
}

.page-shell[data-page="home"]
  .seo-section[aria-labelledby="why-roguelite"]
  > h2 {
  max-width: 880px;
  margin-bottom: 10px;
}

.page-shell[data-page="home"]
  .seo-section[aria-labelledby="why-roguelite"]
  > p {
  max-width: 960px;
  margin: 0;
}

.page-shell[data-page="home"] .tag-filter {
  margin-top: 14px;
  margin-bottom: 10px;
}

.page-shell[data-page="home"] .game-grid {
  margin-top: 12px;
}

@media (min-width: 1180px) {
  .page-shell[data-page="home"] .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-shell[data-page="home"] .seo-hero {
    display: block;
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .page-shell[data-page="home"] .seo-hero::before {
    margin-bottom: 14px;
  }

  .page-shell[data-page="home"] .seo-hero h1 {
    margin-bottom: 10px;
    font-size: 2rem;
  }

  .page-shell[data-page="home"] .seo-hero p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .page-shell[data-page="home"] .internal-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    margin-bottom: 18px;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-shell[data-page="home"] .internal-links a {
    min-width: 0;
    justify-content: flex-start;
    padding: 9px 0;
    font-size: 0.8rem;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
  }

  .page-shell[data-page="home"]
    .seo-section[aria-labelledby="why-roguelite"] {
    display: block;
    margin-top: 18px;
    padding: 18px 0;
  }

  .page-shell[data-page="home"]
    .seo-section[aria-labelledby="why-roguelite"]
    > h2 {
    margin-bottom: 8px;
    font-size: 1.35rem;
  }

  .page-shell[data-page="home"]
    .seo-section[aria-labelledby="why-roguelite"]
    > p {
    font-size: 0.93rem;
    line-height: 1.58;
  }

  .page-shell[data-page="home"] .tag-filter {
    margin-top: 10px;
    margin-bottom: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .page-shell[data-page="home"] .game-grid {
    margin-top: 8px;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .page-shell[data-page="home"] .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .game-item:hover,
  .game-item:hover .game-image,
  .game-item:hover .game-media::after {
    transform: none;
  }
}
