/* ==========================================================================
   轻量级静态游戏大厅 — 主页样式
   纯 CSS、响应式、无障碍优先、无外部依赖
   ========================================================================== */

:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #eef2ff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #475569;
  --line: #dbe3ef;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-soft: #eef2ff;
  --green: #047857;
  --green-soft: #ecfdf5;
  --amber: #b45309;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 18px 40px -24px rgba(15, 23, 42, 0.32);
  --radius: 18px;
  --radius-sm: 12px;
  --content: 1120px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  line-height: 1.65;
  tab-size: 4;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(900px 460px at 85% -120px, rgba(99, 102, 241, 0.14), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-size: 1rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  margin: 0;
}

h1, h2, h3, h4, p, ul, ol, dl, dd {
  margin-top: 0;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  letter-spacing: -0.02em;
}

::selection {
  background: #c7d2fe;
  color: #1e1b4b;
}

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

.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* 导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(219, 227, 239, 0.9);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.main-nav {
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 22px -14px rgba(79, 70, 229, 0.8);
}

.btn-primary:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: #b8c4d8;
  background: #f8fafc;
}

.btn-large {
  min-height: 50px;
  padding: 12px 22px;
  font-size: 1.03rem;
}

.btn-small {
  min-height: 38px;
  padding: 6px 13px;
  font-size: 0.88rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 66px;
  background:
    radial-gradient(600px 300px at 10% 15%, rgba(199, 210, 254, 0.55), transparent 65%),
    radial-gradient(520px 300px at 95% 10%, rgba(253, 230, 138, 0.28), transparent 65%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 5px 11px;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 5.4vw, 4.2rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.hero h1 .gradient-text {
  background: linear-gradient(105deg, #4338ca 10%, #7c3aed 50%, #b45309 105%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.87rem;
  font-weight: 600;
}

.hero-facts li {
  display: flex;
  align-items: center;
}

.hero-facts li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 12px;
  border-radius: 50%;
  background: #94a3b8;
}

.hero-facts strong {
  color: var(--ink);
  font-weight: 800;
}

/* Hero 视觉 */
.hero-visual {
  position: relative;
}

.console-card {
  position: relative;
  z-index: 1;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 34px 80px -44px rgba(30, 41, 59, 0.55);
  transform: rotate(1.5deg);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 12px;
  color: #64748b;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.console-dots {
  display: inline-flex;
  gap: 5px;
}

.console-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.console-dots span:first-child { background: #fca5a5; }
.console-dots span:nth-child(2) { background: #fcd34d; }
.console-dots span:nth-child(3) { background: #86efac; }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.preview-tile {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.preview-tile:nth-child(1) { background: linear-gradient(145deg, #6d28d9, #4c1d95); }
.preview-tile:nth-child(2) { background: linear-gradient(145deg, #059669, #065f46); }
.preview-tile:nth-child(3) { background: linear-gradient(145deg, #d97706, #92400e); }
.preview-tile:nth-child(4) { background: linear-gradient(145deg, #db2777, #9d174d); }
.preview-tile:nth-child(5) { background: linear-gradient(145deg, #0284c7, #075985); }
.preview-tile:nth-child(6) { background: linear-gradient(145deg, #475569, #1e293b); }

.preview-tile-wide {
  grid-column: span 1;
}

.preview-icon {
  font-size: 1.65rem;
  line-height: 1;
}

.preview-label {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0.96;
}

.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px 2px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}

.hero-sticker {
  position: absolute;
  right: -12px;
  bottom: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  transform: rotate(-2deg);
}

/* 通用区块 */
.section {
  padding: 68px 0;
}

.section-tight {
  padding: 34px 0 0;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-header-left {
  max-width: 760px;
  margin: 0 0 30px;
  text-align: left;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-header h2,
.section-header-left h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.section-desc {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* 速览 */
.overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 34px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.overview-card h2 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.overview-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.overview-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.overview-fact {
  padding: 14px 16px;
  border: 1px solid #e6ebf3;
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.overview-fact dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.overview-fact dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

/* 游戏卡片 */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--card-accent, var(--primary));
}

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-4px);
  border-color: #b8c4d8;
  box-shadow: var(--shadow-md);
}

.card-slot { --card-accent: #6d28d9; --card-soft: #f3e8ff; }
.card-snake { --card-accent: #047857; --card-soft: #ecfdf5; }
.card-2048 { --card-accent: #b45309; --card-soft: #fffbeb; }
.card-memory { --card-accent: #be185d; --card-soft: #fdf2f8; }
.card-minesweeper { --card-accent: #0369a1; --card-soft: #eff6ff; }

.game-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 268px;
  padding: 24px;
}

.game-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.game-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--card-soft);
  font-size: 1.9rem;
  line-height: 1;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.game-name {
  margin: 2px 0 0;
  font-size: 1.23rem;
  letter-spacing: -0.02em;
}

.game-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.62;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-meta li {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--card-soft);
  color: var(--card-accent);
  font-size: 0.68rem;
  font-weight: 800;
}

.game-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--card-accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.game-cta .arrow {
  transition: transform 0.15s ease;
}

.game-card:hover .game-cta .arrow,
.game-card:focus-within .game-cta .arrow {
  transform: translateX(3px);
}

/* 游戏速查表 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.guide-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.guide-table caption {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 700;
  text-align: left;
}

.guide-table th,
.guide-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #edf1f7;
  text-align: left;
  vertical-align: top;
}

.guide-table thead th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.guide-table tbody th {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.guide-table a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.guide-table a:hover {
  color: var(--primary);
}

/* 特色 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-item {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--primary-soft);
  font-size: 1.22rem;
}

.feature-item h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.feature-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}

/* 来源 */
.sources {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(238, 242, 255, 0.65), rgba(247, 248, 252, 0.5));
}

.sources-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
  align-items: start;
}

.sources-intro p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.source-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #c7d2fe;
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.65;
}

.source-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-item {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
}

.source-item h3 {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.source-item p {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.source-item a {
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-verdict {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
}

.source-verdict::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.faq-item summary {
  position: relative;
  padding: 17px 50px 17px 19px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f1f5f9;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 19px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* 页脚 */
.site-footer {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
  padding: 40px 0 30px;
}

.footer-brand .brand {
  margin-bottom: 8px;
}

.footer-tagline {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
  align-content: start;
}

.footer-links a {
  padding: 4px 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0 24px;
  border-top: 1px solid #edf1f7;
  color: var(--muted);
  font-size: 0.77rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 响应式 */
@media (max-width: 960px) {
  .hero {
    padding: 58px 0 54px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-visual {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

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

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

  .sources-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .overview-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    min-height: 62px;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding-top: 9px;
    padding-bottom: 7px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }

  .nav-list {
    width: 100%;
    gap: 2px;
  }

  .nav-link {
    min-height: 36px;
    padding: 4px 8px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 44px 0 46px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .hero-lede {
    font-size: 0.98rem;
  }

  .hero-actions .btn {
    flex: 1 1 150px;
  }

  .hero-facts {
    gap: 5px 0;
  }

  .hero-facts li {
    font-size: 0.79rem;
  }

  .console-card {
    transform: none;
  }

  .preview-tile {
    min-height: 92px;
  }

  .hero-sticker {
    right: 8px;
  }

  .section {
    padding: 50px 0;
  }

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

  .game-link {
    min-height: 0;
    padding: 20px;
  }

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

  .overview-card {
    padding: 22px;
  }

  .overview-facts {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
  }

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

  .footer-bottom {
    display: block;
    line-height: 1.8;
  }

  .footer-bottom p + p {
    margin-top: 5px;
  }
}

@media (max-width: 400px) {
  .nav-link {
    font-size: 0.78rem;
    padding-inline: 7px;
  }

  .preview-grid {
    gap: 7px;
  }

  .preview-tile {
    min-height: 82px;
    padding: 9px;
  }

  .preview-icon {
    font-size: 1.4rem;
  }

  .preview-label {
    font-size: 0.63rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .game-card,
  .faq-item,
  .overview-card,
  .feature-item,
  .source-item {
    border: 1px solid ButtonText;
  }

  .game-card::before {
    background: Highlight;
  }
}
