:root {
  color-scheme: light;
  --paper: #f3efe4;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: #ddd4c4;
  --card: #fffdf8;
  --accent: #0c6b4d;
  --accent-ink: #084835;
  --warn: #8a3b12;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, #fffaf0, transparent 28rem),
    var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--accent-ink); }
img { max-width: 100%; height: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

.wrap { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(40rem, calc(100% - 2rem)); }
.site-header, .site-footer {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
}
.site-footer { border-bottom: 0; border-top: 1px solid var(--line); margin-top: 4rem; }
.bar, .footer-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
.brand { font-weight: 700; letter-spacing: 0.04em; text-decoration: none; color: inherit; }
.nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; margin-left: auto; }
.nav a, .footer-bar a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.25em; }
.lang { position: relative; font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: 0.92rem; }
.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}
.lang summary::-webkit-details-marker { display: none; }
.lang-caret {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}
.lang[open] .lang-caret { transform: translateY(0.08rem) rotate(225deg); }
.lang ul {
  position: absolute;
  right: 0;
  z-index: 5;
  margin: 0.35rem 0 0;
  padding: 0.3rem;
  list-style: none;
  min-width: 8.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 0.7rem 1.6rem rgba(28, 25, 21, 0.08);
}
.lang a {
  display: block;
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 0.45rem;
}
.lang a[aria-current="true"] { font-weight: 700; }
.lang a[aria-current="true"]::before { content: "✓"; margin-right: 0.4rem; }
.crumbs { margin: 0 0 0.9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem 0.45rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: 0.88rem; }
.crumbs li { display: inline-flex; gap: 0.45rem; }
.crumbs li:not(:last-child)::after { content: "/"; }
.crumbs a { color: inherit; }

main { padding: 2.5rem 0 1rem; }
h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 0.85rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.7rem; }
h3 { font-size: 1.05rem; margin: 0.7rem 0 0.35rem; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eyebrow { font-family: "Avenir Next", "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--accent); margin: 0; }
.lede { font-size: 1.2rem; max-width: 42rem; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin: 0 0 1.5rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}
.filters label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.82rem; color: var(--muted); }
.filters input, .filters select {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.45rem 0.65rem;
  min-width: 11rem;
}
.filters button, .filters a {
  font: inherit;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  text-decoration: none;
  cursor: pointer;
}
.filters a { background: transparent; color: var(--accent-ink); border: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.card, .notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1rem;
}
.card a { text-decoration: none; }
.card img, main img { display: block; max-width: 100%; height: auto; border-radius: 0.8rem; }
.card h2, .card h3 { margin-top: 0; }
.game-card { padding: 0.55rem; }
.game-card a { display: flex; flex-direction: column; gap: 0.55rem; color: inherit; }
.game-card img, .thumb-fallback {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.8rem;
  background: #111;
}
.game-card h2, .game-card h3 { font-size: 1rem; line-height: 1.3; margin: 0; }
.card-title { display: block; padding: 0 0.15rem 0.2rem; }
.meta { color: var(--muted); font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: 0.92rem; }
.footer-bar nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.frame {
  aspect-ratio: 16 / 10;
  width: 100%;
  margin-top: 1.25rem;
  border: 0;
  border-radius: 1rem;
  background: #111;
}
@media (max-width: 720px) {
  .bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 0.75rem;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .lang { grid-column: 2; grid-row: 1; justify-self: end; }
  .nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; }
  .footer-bar { align-items: flex-start; flex-direction: column; }
}
[hidden] { display:none !important; }
.frame { height:auto; }
.category-list { columns:3; padding-left:1.5rem; }
.category-list li { padding:.35rem; }
@media(max-width:560px){ .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; } .category-list{columns:2;} .game-card h2{font-size:.9rem;} .filters input,.filters select{min-width:0;max-width:100%;} }
