/* ---------- Písma (lokálně, kvůli GDPR ne z Google Fonts) ---------- */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Barvy ---------- */
:root {
  --bg: #FBF7F0;
  --surface: #FFFFFF;
  --text: #2B2A28;
  --muted: #6B645B;
  --accent: #E07A2E;
  --accent-strong: #A8520F;
  --border: #E8DFD2;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E1A16;
    --surface: #29231D;
    --text: #F3EDE4;
    --muted: #B8AE9F;
    --accent: #F0924A;
    --accent-strong: #F6AE72;
    --border: #3A322A;
    color-scheme: dark;
  }
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--accent-strong); overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 1.6em 0 .6em; }

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ---------- Hlavička a patička ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 1.25rem; }
.logo-paw { width: 28px; height: 28px; color: var(--accent); flex: none; }
.logo-text b { color: var(--accent-strong); font-weight: 900; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { padding: 6px 10px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--muted); }
.lang-switch a[aria-current="page"] { background: var(--accent); color: #2B2A28; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .95rem; margin-top: 48px; }

/* ---------- Úvod ---------- */
.hero { padding-top: 48px; padding-bottom: 16px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.section { padding-bottom: 8px; }

/* ---------- Karty her ---------- */
.game-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.game-card a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; }
.game-card a:hover { border-color: var(--accent); }
.card-art { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { margin: 0 0 4px; }
.card-body p { margin: 0 0 10px; color: var(--muted); }
.badge { display: inline-block; font-size: .85rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--border); color: var(--text); }

/* ---------- Tlačítko ---------- */
.btn { display: inline-block; background: var(--accent); color: #2B2A28; font-weight: 800; padding: 10px 18px; border-radius: 999px; text-decoration: none; }

/* ---------- Právní stránky ---------- */
.game-stripe { padding: 10px 0; font-weight: 800; }
.game-stripe a { color: #1F2A12; text-decoration: none; }
.prose { max-width: 42rem; padding-top: 32px; }
.prose h2 { font-size: 1.35rem; }
.prose li + li { margin-top: .3em; }
.table-scroll { overflow-x: auto; margin: 1em 0; }
.table-scroll table { border-collapse: collapse; min-width: 32rem; width: 100%; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.meta { color: var(--muted); font-size: .95rem; }

/* ---------- Barvy her (karty, pruhy) ---------- */
.card-art--meadowrush {
  background: linear-gradient(180deg, #5BB8F0 0%, #A9DDFA 52%, #8CCB3C 52%, #6FAE2A 78%, #E8C15A 78%);
}
.card-art--meadowrush span {
  font-weight: 900; font-size: 1.6rem; color: #FFFFFF;
  text-shadow: 0 2px 0 #6B4A22, 0 0 12px rgba(0, 0, 0, .25);
}
.game-stripe--meadowrush { background: linear-gradient(90deg, #5BB8F0 0%, #8CCB3C 100%); }
