/* ==========================================================================
   Playtest Atlas — směr „Knihovna"
   Task-first varianta: nízký úvod, velké hledání, žánrové vstupy, výsledková
   pracovní plocha. Načítá se po base.css / night.css / radar.css / preview.css
   a kompletně přebíjí jejich vzhled na titulní stránce.

   Značka zůstává: inkoustová modř, Literata pro názvy, IBM Plex Sans pro
   ovládání, skutečné herní náhledy. Bez gradientů, neonu, skla, stínů
   a bez rámečkové mřížky. Hierarchii nese prostor, ne počet panelů.

   Vlastní třídy nesou prefix .st- (studio). Sdílené DOM hooky enginu
   ([data-q], [data-view], [data-radars], [data-visit-summary], …) zůstávají.
   ========================================================================== */

:root {
  --st-hair: rgba(236, 243, 247, .10);
  --st-hair-2: rgba(236, 243, 247, .20);
  --st-wash: rgba(236, 243, 247, .045);
  --st-ice-wash: rgba(131, 211, 233, .10);
  --st-ice-line: rgba(131, 211, 233, .55);
  --st-gutter: clamp(16px, 3.4vw, 40px);
  --st-head: 62px;
  --st-radius: 3px;
}

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--mist);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding-left: var(--st-gutter);
  padding-right: var(--st-gutter);
}

a { text-underline-offset: 3px; }

/* Focus: jeden jasný, tichý signál pro celou plochu. */
:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 2px;
  border-radius: 2px;
}
.st-search-input:focus-visible { outline-offset: 3px; }

/* ==========================================================================
   1. Pás náhledu a hlavička
   ========================================================================== */

.ra-preview-band {
  padding: 7px 0;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--st-hair);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.ra-preview-row { gap: 6px 18px; }
.ra-preview-copy { flex: 1 1 340px; }
.ra-preview-copy strong {
  color: var(--dim);
  font-weight: 600;
  letter-spacing: .01em;
}
.ra-preview-copy a {
  color: var(--mist);
  text-decoration: underline;
  text-decoration-color: var(--st-hair-2);
}
.ra-preview-copy a:hover { text-decoration-color: var(--ice); }
.ra-preview-actions { gap: 6px; }
.ra-preview-button {
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid var(--st-hair);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.ra-preview-button:hover {
  border-color: var(--st-ice-line);
  color: var(--mist);
  background: var(--st-wash);
}

/* Hlavička drží Moje hry stále na dohledu; nic nekřičí. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--st-hair-2);
}
.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  min-height: var(--st-head);
  padding-top: 6px;
  padding-bottom: 6px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--mist);
}
.wordmark-mark {
  width: 27px;
  height: 27px;
  border: 1px solid var(--ice);
  border-radius: 2px;
  display: grid;
  place-items: center;
  color: var(--ice);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1;
}
.wordmark-text {
  display: block;
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.1;
}
.wordmark-text small {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Navigace: obyčejné odkazy a přepínače, žádné pilulky. */
.topnav,
.masthead nav[aria-label="Hlavní navigace"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.topnav a,
.topnav button,
.masthead [data-view],
.language-switch a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--dim);
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: .005em;
  text-transform: none;
  text-decoration: none;
  transition: color 130ms ease, background-color 130ms ease;
}
.topnav a:hover,
.topnav button:hover,
.masthead [data-view]:hover,
.language-switch a:hover {
  color: var(--mist);
  background: var(--st-wash);
}
.topnav .support-nav { text-decoration: none; }
.masthead .topnav .st-support-nav {
  display: inline-flex;
  border: 1px solid var(--st-ice-line);
  background: var(--st-ice-wash);
  color: var(--ice);
  font-weight: 600;
}
.masthead .topnav .st-support-nav:hover {
  background: var(--ice);
  border-color: var(--ice);
  color: var(--bg-deep);
}
/* Aktivní stav jako podtržení textu, ne linka u okraje hlavičky. */
.topnav a[aria-current="page"],
.masthead [data-view][aria-pressed="true"] {
  color: var(--mist);
  text-decoration: underline;
  text-decoration-color: var(--ice);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  box-shadow: none;
}
.masthead [data-view][aria-pressed="true"]:hover { background: var(--st-ice-wash); }

/* Počet uložených her: malý, tichý, ale čitelný. */
[data-shelf-count] {
  min-width: 20px;
  padding: 1px 5px;
  border: 1px solid var(--st-hair-2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  color: var(--ice);
}
.masthead [data-view][aria-pressed="true"] [data-shelf-count] {
  border-color: var(--st-ice-line);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 6px;
  border-left: 1px solid var(--st-hair);
}
.language-switch a {
  min-width: 44px;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .09em;
  color: var(--muted);
}
.language-switch a[aria-current="true"] {
  color: var(--mist);
  text-decoration: underline;
  text-decoration-color: var(--ice);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  box-shadow: none;
}

/* Doplňková věta hlavičky duplikuje účel stránky — v úsporném úvodu nemá místo. */
.masthead-note { display: none; }

/* ==========================================================================
   2. Úvod knihovny: nízký, věcný, s jedním velkým úkolem
   ========================================================================== */

.st-hero.st-library {
  padding: clamp(16px, 2.1vw, 26px) 0 clamp(14px, 1.9vw, 22px);
  background: var(--bg);
  border-bottom: 1px solid var(--st-hair-2);
}
.st-hero-inner {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
  min-width: 0;
}
.st-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 44px;
  min-width: 0;
}
.st-hero-lead { min-width: 0; }
.st-hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 33px);
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--mist);
  overflow-wrap: anywhere;
}
.st-hero-purpose {
  margin-top: 7px;
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--dim);
  overflow-wrap: anywhere;
}

/* Přiznání místo slibu: hra v katalogu není potvrzená účast. */
.st-hero-access {
  max-width: 44ch;
  padding-left: 12px;
  border-left: 2px solid var(--st-ice-line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--dim);
  overflow-wrap: anywhere;
}
.st-hero-access strong { color: var(--dim); font-weight: 600; }
.st-hero-access a {
  color: var(--mist);
  text-decoration: underline;
  text-decoration-color: var(--st-ice-line);
}
.st-hero-access a:hover { text-decoration-color: var(--ice); }

/* --- hledání: hlavní nástroj, ne doplněk --- */
.st-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}
.st-search-field { flex: 1 1 420px; min-width: 0; }
.st-search-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.st-search-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--st-radius);
  background: var(--bg-deep);
  color: var(--mist);
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.005em;
  transition: border-color 130ms ease;
}
.st-search-input::placeholder { color: #93a8b8; opacity: 1; }
.st-search-input:hover { border-color: var(--st-hair-2); }
.st-search-input:focus { border-color: var(--ice); }
.st-search-input::-webkit-search-cancel-button { filter: none; }

.st-search-go {
  flex: 0 0 auto;
  min-width: 44px;
  height: 60px;
  padding: 0 30px;
  border: 1px solid var(--ice);
  border-radius: var(--st-radius);
  background: var(--ice);
  color: #0b1522;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background-color 130ms ease, border-color 130ms ease;
}
.st-search-go:hover { background: #a2e2f2; border-color: #a2e2f2; }
.st-search-go:active { background: #6fc4dd; border-color: #6fc4dd; }

/* --- žánrové vstupy: skutečné tagy, skutečné odkazy --- */
.st-genres {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 2px;
  min-width: 0;
  margin: -2px 0 0;
}
.st-genre {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: rgba(236, 243, 247, .34);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.st-genre:first-child { padding-left: 0; }
.st-genre:hover {
  color: var(--mist);
  text-decoration-color: var(--ice);
}
.st-genre:active { color: var(--ice); }
.st-genres-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================================================
   3. Mobilní lišta — jen filtr, hledání je v úvodu na dosah
   ========================================================================== */

.mobilebar {
  position: sticky;
  top: var(--st-head);
  z-index: 60;
  padding: 6px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--st-hair-2);
}
.mobilebar-inner { gap: 8px; }
.mobilebar input[data-q] { display: none; }
.mobilebar .filter-trigger {
  flex: 1 1 auto;
  height: 44px;
  border: 1px solid var(--st-hair-2);
  border-radius: 2px;
  background: transparent;
  color: var(--mist);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
}
.mobilebar .filter-trigger:hover { border-color: var(--ice); color: var(--ice); }
/* Stejnou akci nese přilepená mobilní lišta; druhý identický trigger mate. */
.inline-filter,
.results-tools .inline-filter { display: none; }
.filter-count {
  background: var(--ice);
  color: #0b1522;
  font-size: 10px;
}
.inline-filter { font-size: 12px; }

/* ==========================================================================
   4. Pracovní plocha: tichý filtr vlevo, velké náhledy vpravo
   ========================================================================== */

.catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 34px);
  padding-top: clamp(18px, 2.4vw, 28px);
  padding-bottom: clamp(44px, 6vw, 84px);
  align-items: start;
}

@media (min-width: 1121px) {
  .catalog {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: clamp(26px, 3.4vw, 52px);
  }
  .rail {
    position: sticky;
    top: calc(var(--st-head) + 14px);
    align-self: start;
    max-height: calc(100vh - var(--st-head) - 28px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 clamp(14px, 1.6vw, 22px) 0 0;
    border: 0;
    border-right: 1px solid var(--st-hair);
    background: transparent;
    box-shadow: none;
    overflow: hidden;
  }
  /* Filtr se vejde do okna a roluje uvnitř, ne pod okraj. */
  .rail-scroll { flex: 1 1 auto; min-height: 0; }
  .tag-list { flex: 1 1 auto; min-height: 0; max-height: none; }
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--st-hair);
}
.rail-head h2 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--mist);
}
.rail-close {
  display: none;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--st-hair-2);
  border-radius: 2px;
  background: none;
  color: var(--dim);
  font-size: 12px;
}
.rail-scroll {
  padding: 12px 2px 8px 0;
  scrollbar-width: thin;
  scrollbar-color: #3c5269 transparent;
}
.rail[data-open="false"] { display: none; }

.filter-group { margin: 0 0 20px; }
.filter-group legend,
.group-head h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .005em;
  text-transform: none;
  color: var(--mist);
}
.group-head { margin-bottom: 8px; }
.group-note {
  padding: 0;
  border: 0;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--muted);
}
.group-help {
  margin: 5px 0 10px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.kind-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.kind-btn {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--st-hair-2);
  border-radius: 2px;
  background: transparent;
  color: var(--dim);
  font-size: 12px;
  white-space: nowrap;
}
.kind-btn:first-child { border-right: 1px solid var(--st-hair-2); }
.kind-btn:hover { border-color: var(--st-ice-line); color: var(--mist); }
.kind-btn[aria-pressed="true"] {
  background: var(--st-ice-wash);
  border-color: var(--ice);
  color: var(--mist);
  font-weight: 600;
}

.selected-list { gap: 6px; margin: 10px 0 4px; }
.selected-label {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--muted);
}
.selected-chip {
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--st-ice-line);
  border-radius: 2px;
  background: var(--st-ice-wash);
  color: var(--mist);
  font-size: 12.5px;
}
.selected-chip:hover { background: rgba(131, 211, 233, .16); }
.selected-x { color: var(--ice); }
.selected-clear {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
}
.selected-clear:hover { color: var(--mist); }

.tag-search {
  height: 44px;
  margin: 10px 0 6px;
  padding: 0 11px;
  border: 1px solid var(--st-hair-2);
  border-radius: 2px;
  background: var(--bg-deep);
  color: var(--mist);
  font-size: 14px;
}
.tag-search::placeholder { color: #93a8b8; opacity: 1; }
.tag-list { max-height: 40vh; scrollbar-width: thin; scrollbar-color: #3c5269 transparent; }

.tag-list .tag-option,
.tag-option {
  min-height: 44px;
  padding: 7px 6px;
  border: 0;
  border-bottom: 1px solid var(--st-hair);
  color: var(--dim);
  font-size: 13px;
  line-height: 1.35;
}
.tag-list .tag-option:hover,
.tag-option:hover { color: var(--mist); background: var(--st-wash); }
.tag-list .tag-option[aria-pressed="true"],
.tag-option[aria-pressed="true"] {
  color: var(--mist);
  background: var(--st-ice-wash);
  border-bottom-color: var(--ice);
  font-weight: 600;
}
.tag-option::before { border-radius: 1px; opacity: .4; }
.tag-option[aria-pressed="true"]::before {
  background: var(--ice);
  box-shadow: inset 0 0 0 2px var(--bg);
  opacity: 1;
}
.tag-option .tag-count { font-size: 11.5px; color: var(--muted); }
.tag-option[aria-pressed="true"] .tag-count { color: var(--ice); }

.rail-foot {
  padding-top: 12px;
  border-top: 1px solid var(--st-hair);
}
.draft-info { font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.apply-btn {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ice);
  border-radius: 2px;
  background: var(--ice);
  color: #0b1522;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}
.apply-btn:hover { background: #a2e2f2; border-color: #a2e2f2; }
.apply-btn:active { background: #6fc4dd; border-color: #6fc4dd; }
.reset-draft,
.reset-all-link {
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: underline;
}
.reset-draft:not(:disabled):hover,
.reset-all-link:hover { color: var(--mist); }
.scrim { background: rgba(4, 8, 12, .66); }

/* ==========================================================================
   5. Hlavička výsledků
   ========================================================================== */

.results { min-width: 0; }
.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--st-hair-2);
}
.results-head h2 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .005em;
  line-height: 1.3;
  color: var(--mist);
}
.results-count {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.active-line {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.results-tools { gap: 10px; }
.sort-label {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.results-tools select {
  height: 44px;
  min-height: 44px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--st-hair-2);
  border-radius: 2px;
  background: var(--bg-deep);
  color: var(--mist);
  font-size: 12.5px;
}
.active-chips { margin-top: 12px; gap: 6px; }
.active-chips .selected-chip { font-size: 12px; }

/* ==========================================================================
   6. Uložená hledání — jeden tichý pruh nad náhledy
   ========================================================================== */

.st-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin: 0 0 16px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--st-hair);
  min-width: 0;
}
.st-searches > h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--mist);
}
.st-save-search { margin-left: auto; min-width: 0; }
.st-save-search > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 2px;
  color: var(--ice);
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: var(--st-ice-line);
  text-underline-offset: 4px;
}
.st-save-search > summary::-webkit-details-marker { display: none; }
.st-save-search > summary::after {
  content: "+";
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1;
  color: currentColor;
}
.st-save-search[open] > summary::after { content: "–"; }
.st-save-search > summary:hover { color: #a2e2f2; }

.st-save-search[open] {
  flex: 1 1 100%;
  margin: 4px 0 0;
  padding: 12px 0 4px;
  border-top: 1px solid var(--st-hair);
}
.st-save-search-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: end;
  min-width: 0;
}
.st-searches [data-radar-context],
.ra-context {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.ra-field-label,
.st-save-search label {
  display: block;
  margin-bottom: 5px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}
.ra-field,
.st-searches input[data-radar-name] {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--st-hair-2);
  border-radius: 2px;
  background: var(--bg-deep);
  color: var(--mist);
  font-family: var(--sans);
  font-size: 14px;
}
.ra-field::placeholder { color: #7e93a5; opacity: 1; }
.ra-save-filter,
.st-searches [data-save-radar] {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--st-hair-2);
  border-radius: 2px;
  background: transparent;
  color: var(--mist);
  font-size: 13px;
  font-weight: 600;
}
.ra-save-filter:hover,
.st-searches [data-save-radar]:hover {
  border-color: var(--ice);
  color: var(--ice);
}

/* Engine plní ul[data-radars]; řádky jsou tiché, ne karty. */
.st-searches [data-radars],
#osobni-radar [data-radars] {
  flex: 1 1 100%;
  display: grid;
  gap: 0;
  width: 100%;
  max-height: min(42vh, 360px);
  overflow-y: auto;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #3c5269 transparent;
}
.st-searches [data-radars]:empty { display: none; }

.ra-radar-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title actions" "meta actions" "count actions";
  align-items: start;
  gap: 3px 16px;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--st-hair);
}
.ra-radar-item.ra-is-active { border-top-color: var(--st-ice-line); }
.ra-radar-title {
  grid-area: title;
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mist);
  overflow-wrap: anywhere;
}
.ra-radar-meta {
  grid-area: meta;
  margin: 2px 0 0;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.ra-radar-count {
  grid-area: count;
  justify-self: start;
  font-size: 11.5px;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
}
.ra-radar-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.ra-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--st-hair-2);
  border-radius: 2px;
  background: transparent;
  color: var(--dim);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .005em;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 130ms ease, border-color 130ms ease, background-color 130ms ease;
}
.ra-button:hover {
  color: var(--mist);
  border-color: var(--st-ice-line);
}
.ra-button[aria-pressed="true"],
.ra-button.ra-is-on {
  color: var(--ice);
  border-color: var(--ice);
  background: var(--st-ice-wash);
}
.ra-button[data-radar-use] {
  border-color: var(--st-ice-line);
  color: var(--mist);
}
.ra-button[data-radar-remove] {
  border-color: var(--st-hair);
  color: var(--muted);
}
.ra-button[data-radar-remove]:hover {
  color: var(--mist);
  border-color: var(--st-hair-2);
}
.ra-radar-empty {
  padding: 10px 0;
  border-top: 1px solid var(--st-hair);
  color: var(--muted);
  font-size: 12.5px;
}

/* ==========================================================================
   7. Nové od minula — klidné oddělení od hledání
   ========================================================================== */

.st-news {
  padding: clamp(26px, 3.6vw, 44px) 0 clamp(30px, 4vw, 52px);
  margin-top: clamp(24px, 4vw, 48px);
  background: var(--bg-deep);
  border-top: 1px solid var(--st-hair-2);
  border-bottom: 1px solid var(--st-hair);
}
.st-news:not(:has(> .shell)) { padding-left: var(--st-gutter); padding-right: var(--st-gutter); }
.st-news h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.3vw, 31px);
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--mist);
}
.st-news [data-visit-summary] {
  max-width: 70ch;
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--dim);
  overflow-wrap: anywhere;
}
.st-news [data-visit-summary]:empty { display: none; }
.st-news-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--st-hair);
}
.st-news-controls label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--dim);
  cursor: pointer;
}
.st-news-controls input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ice);
}
.st-news-controls button,
.st-news-controls [data-mark-seen] {
  min-height: 44px;
  margin-left: auto;
  padding: 6px 14px;
  border: 1px solid var(--st-hair-2);
  border-radius: 2px;
  background: transparent;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: .005em;
  text-align: center;
  overflow-wrap: anywhere;
}
.st-news-controls button:hover,
.st-news-controls [data-mark-seen]:hover {
  border-color: var(--ice);
  color: var(--ice);
}
.st-news-controls button:disabled { opacity: .45; cursor: default; }

/* ==========================================================================
   8. Náhledy her: velký celek, žádný rámeček
   ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px) clamp(18px, 2.2vw, 34px);
  margin-top: 18px;
  align-items: start;
}

.game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  transition: none;
}
.game-card:hover,
.game-card:focus-within { border-color: transparent; }
@media (hover: hover) { .game-card:hover { transform: none; } }
.game-card:focus-visible { outline: 3px solid var(--ice); outline-offset: 6px; }

/* Artwork zabírá celou šířku sloupce — je to hlavní vizuál, ne miniatura. */
.card-media {
  position: relative;
  display: block;
  border: 0;
  border-radius: 2px;
  background: var(--bg-deep);
  overflow: hidden;
  text-decoration: none;
}
.card-media .thumb { aspect-ratio: 460 / 215; background: var(--bg-deep); }
.card-media .thumb img { transition: opacity 220ms ease; }
.game-card:hover .card-media .thumb img { opacity: .94; }
.card-media:focus-visible { outline-offset: 3px; }
.thumb-fallback { padding: 16px; font-size: 12px; color: #8296a8; }

.badge-new {
  left: 9px;
  top: 9px;
  padding: 3px 7px;
  border-radius: 2px;
  background: var(--ice);
  color: #0b1522;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 0;
  padding: 13px 0 0;
  border: 0;
}
.card-title {
  font-family: var(--serif);
  font-size: clamp(18.5px, 1.55vw, 22px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.008em;
  color: var(--mist);
  overflow-wrap: anywhere;
}
.card-title a { text-decoration: none; }
.card-title a:hover {
  color: var(--ice);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ra-card-date {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ra-card-date-label { color: var(--muted); }

/* Kompletní popis: čitelný odstavec, žádné ořezávání. */
.game-card .card-desc,
.card-desc {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  margin-top: 1px;
  color: var(--dim);
  font-size: 13.8px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.game-card .card-tag,
.card-tag {
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid var(--st-hair);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .005em;
  text-transform: none;
  text-align: left;
}
.card-tag:hover { border-color: var(--ice); color: var(--mist); }
.card-tag:active { background: var(--st-ice-wash); }

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--st-hair);
}
.card-detail,
.card-steam {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12.5px;
  text-decoration: none;
}
.card-detail { color: var(--ice); font-weight: 600; }
.card-detail:hover { text-decoration: underline; }
.card-steam { margin-left: auto; color: var(--muted); }
.card-steam:hover { color: var(--mist); text-decoration: underline; }
.card-actions .ra-button { font-size: 11.5px; padding: 5px 11px; }

.more-wrap { padding: 30px 0 6px; text-align: center; }
.more-btn {
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--st-hair-2);
  border-radius: 2px;
  background: transparent;
  color: var(--mist);
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: .005em;
  text-transform: none;
}
.more-btn:hover { border-color: var(--ice); color: var(--ice); background: var(--st-wash); }

.empty {
  max-width: 66ch;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px) 0;
  border: 0;
  border-top: 1px solid var(--st-hair-2);
}
.empty-kicker {
  display: none;
}
.empty h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 2.4vw, 29px);
  line-height: 1.18;
  color: var(--mist);
}
.empty p { margin-top: 8px; color: var(--dim); font-size: 14px; line-height: 1.62; }
.empty-actions { gap: 10px; margin-top: 20px; }
.btn-primary {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ice);
  border-radius: 2px;
  background: var(--ice);
  color: #0b1522;
  font-size: 13px;
  font-weight: 700;
}
.btn-ghost {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--st-hair-2);
  border-radius: 2px;
  background: transparent;
  color: var(--mist);
  font-size: 13px;
}
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }

/* ==========================================================================
   9. Zbytek stránky: výklad, podpora, patička — stejný klid
   ========================================================================== */

.explain,
.support-section,
.seo-fallback { border-top: 1px solid var(--st-hair); }
.explain h2,
.support-section h2,
.seo-fallback h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.01em;
}
.steps h3,
.seo-fallback h3 { font-family: var(--serif); font-weight: 600; }

.site-foot { border-top: 1px solid var(--st-hair-2); background: var(--bg-deep); }
.foot-head {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--mist);
}
.foot-text { font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.foot-links a { min-height: 44px; font-size: 13px; color: var(--dim); }
.foot-links a:hover { color: var(--mist); }
.foot-bottom {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--muted);
  border-top-color: var(--st-hair);
}

/* ==========================================================================
   10. Kompatibilita: původní blok #osobni-radar, pokud na stránce zůstane
   ========================================================================== */

#osobni-radar.ra-section {
  padding: clamp(18px, 2.4vw, 26px) 0;
  border-bottom: 1px solid var(--st-hair-2);
  background: var(--bg);
}
#osobni-radar .ra-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#osobni-radar .ra-kicker { display: none; }
#osobni-radar .ra-title {
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 400;
  color: var(--mist);
}
#osobni-radar .ra-lede { font-size: 13.5px; color: var(--dim); }
#osobni-radar .ra-visit {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0;
  color: var(--muted);
}
#osobni-radar .ra-switch {
  max-width: 420px;
  border: 1px solid var(--st-hair-2);
  background: transparent;
}
#osobni-radar .ra-view {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .01em;
  text-transform: none;
  border-left-color: var(--st-hair);
}
#osobni-radar .ra-view[aria-pressed="true"] {
  background: var(--st-ice-wash);
  box-shadow: inset 0 -2px 0 var(--ice);
}
#osobni-radar .ra-mark { font-size: 12px; }
#osobni-radar .ra-manage-summary { font-size: 12.5px; color: var(--dim); }
#osobni-radar .ra-field,
#osobni-radar .ra-save-filter { border-color: var(--st-hair-2); }

/* ==========================================================================
   11. Responsivita
   ========================================================================== */

@media (max-width: 1240px) {
  .st-hero-top { gap: 10px 30px; }
  .st-hero-access { max-width: 38ch; }
}

@media (max-width: 1120px) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 95;
    width: min(92vw, 400px);
    height: 100dvh;
    max-height: 100dvh;
    padding: 16px 16px max(12px, env(safe-area-inset-bottom));
    background: var(--bg);
    border-right: 1px solid var(--st-hair-2);
    box-shadow: none;
    overflow: hidden;
  }
  .rail[data-open="true"] { display: flex !important; }
  .rail-head h2 { font-size: 15px; }
  .rail-close { display: inline-flex; align-items: center; }
  .rail-foot { background: transparent; }
  .mobilebar { display: block; }
}

@media (max-width: 900px) {
  .st-search-input { height: 56px; font-size: 17px; }
  .st-search-go { height: 56px; padding: 0 22px; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .card-title { font-size: 19px; }
}

@media (max-width: 720px) {
  :root { --st-head: 56px; }

  /* Dva zřetelné řádky místo neviditelného horizontálního přetečení. */
  .masthead-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    min-height: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    overflow: visible;
  }
  .wordmark { grid-column:1; grid-row:1; gap:8px; }
  .wordmark-mark { width: 24px; height: 24px; font-size: 14px; }
  .wordmark-text { font-size: 15px; white-space: nowrap; }
  .wordmark-text small { display: none; }
  .topnav,
  .masthead nav[aria-label="Hlavní navigace"] {
    grid-column:1/-1;
    grid-row:2;
    flex-wrap:wrap;
    gap: 0;
    margin-left:0;
    justify-content:space-between;
  }
  .topnav a,
  .topnav button,
  .masthead [data-view] {
    flex: 0 0 auto;
    padding: 0 8px;
    font-size: 12.8px;
    white-space: nowrap;
  }
  .language-switch { grid-column:2; grid-row:1; margin-left:0; padding-left:4px; }

  .st-hero.st-library { padding-top: 14px; padding-bottom: 12px; }
  .st-hero-inner { gap: 11px; }
  .st-hero-title { font-size: clamp(23px, 6.4vw, 30px); }
  .st-hero-purpose { margin-top: 5px; font-size: 13.8px; line-height: 1.5; }
  .st-hero-access {
    max-width: none;
    font-size: 12px;
    line-height: 1.5;
    padding-left: 10px;
  }
  .st-search { gap: 8px; }
  .st-search-label { margin-bottom: 4px; font-size: 12px; }
  .st-search-field { flex: 1 1 170px; }
  .st-search-input { height: 48px; font-size: 16px; padding: 0 14px; }
  .st-search-go { flex: 0 0 auto; width: auto; height: 48px; padding: 0 18px; font-size: 14px; }

  /* Žánry jako vodorovný pás: jeden řádek, žádné přelomení úvodu. */
  .st-genres {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #607b91 #101b2b;
    margin-right: calc(-1 * var(--st-gutter));
    padding-right: var(--st-gutter);
  }

  .st-genre { flex: 0 0 auto; font-size: 12.8px; padding: 0 9px; }
  .mobilebar { position:static; }

  .results-head { padding-bottom: 10px; gap: 8px 14px; }
  .st-searches { padding: 8px 0 10px; margin-bottom: 14px; }

  .grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .card-title { font-size: 19.5px; }
  .card-desc { font-size: 13.5px; }

  .st-searches { gap: 2px 12px; }
  .st-save-search { margin-left: 0; }
  .st-save-search-body { grid-template-columns: minmax(0, 1fr); }
  .st-searches [data-save-radar],
  .ra-save-filter { width: 100%; }
  .st-news-controls button,
  .st-news-controls [data-mark-seen] { margin-left: 0; width: 100%; }
  .foot-bottom { flex-direction: column; gap: 4px; }
}

@media (max-width: 560px) {
  /* Podpora má vlastní sekci i odkaz v patičce; v hlavičce na malé šířce mizí. */
  .topnav .support-nav,
  .masthead .support-nav { display: none; }
}

@media (max-width: 400px) {
  :root { --st-gutter: 14px; }
  .wordmark-text { display:block; }
  .masthead [data-view],
  .topnav a { padding: 0 7px; font-size: 12.2px; }
  .st-hero.st-library { padding-top: 14px; }
  .st-hero-title { font-size: 23px; }
  .st-search-input { height: 52px; padding: 0 14px; font-size: 16px; }
  .st-search-go { height: 52px; }
  .st-genre { padding: 0 6px; font-size: 12.5px; }
  .results-tools { width: 100%; }
  .results-tools select { flex: 1 1 auto; max-width: none; }
  .empty-actions .btn-primary,
  .empty-actions .btn-ghost { width: 100%; }
}

@media (max-width: 360px) {
  .st-search-field { flex: 1 1 100%; }
  .st-search-go { flex: 1 1 100%; width: 100%; }
}

@media (max-width: 340px) {
  .wordmark-text { font-size: 14px; }
  .masthead [data-view] { padding: 0 6px; font-size: 11.8px; }
  .st-hero-purpose { font-size: 13.5px; }
  .st-genre { padding: 0 5px; font-size: 12px; }
  .ra-radar-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "meta" "actions"; }
  .ra-radar-actions { justify-content: flex-start; }
}

/* ==========================================================================
   12. Klid a tisk
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .card-media .thumb img,
  .topnav a,
  .topnav button,
  .masthead [data-view],
  .ra-button,
  .st-search-input,
  .st-search-go { transition: none; }
  .game-card:hover .card-media .thumb img { opacity: 1; }
}

@media (prefers-contrast: more) {
  :root {
    --st-hair: rgba(236, 243, 247, .3);
    --st-hair-2: rgba(236, 243, 247, .5);
    --dim: #cfdde8;
    --muted: #b6c7d5;
  }
  .st-genre { text-decoration-color: currentColor; }
}

@media print {
  .masthead,
  .mobilebar,
  .rail,
  .st-searches,
  .ra-preview-band,
  .more-wrap { display: none !important; }
  .grid { grid-template-columns: 1fr 1fr; }
  body { background: #fff; color: #101b2b; }
}
