/* ojeb.cz: cenovky, razítka a účtenka. */

@font-face {
  font-family: "Bricolage";
  src: url("/static/bricolage-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  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;
}
@font-face {
  font-family: "Bricolage";
  src: url("/static/bricolage-latin-ext-wght.woff2") format("woff2");
  font-weight: 200 800;
  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;
}

:root {
  --paper: #f6f1e7;
  --paper-2: #eee6d6;
  --card: #fffdf8;
  --ink: #181715;
  --ink-2: #3d3a35;
  --muted: #706a60;
  --line: #e2dacb;
  --tag: #ffd84d;
  --tag-ink: #181715;
  --tile: #ffffff;
  --trhak: #0f9a4e;
  --dobra: #2a6fd6;
  --nicmoc: #858075;
  --ojeb: #e0312b;
  --warn: #b85c00;
  --focus: #2a6fd6;
  --shadow: 0 1px 0 rgb(24 23 21 / 0.05), 0 10px 28px -16px rgb(24 23 21 / 0.28);
  --shadow-lg: 0 2px 0 rgb(24 23 21 / 0.05), 0 24px 48px -24px rgb(24 23 21 / 0.35);
  --radius: 18px;
  --display: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --blend: multiply;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412;
    --paper-2: #1c1a17;
    --card: #211f1c;
    --ink: #f3eee5;
    --ink-2: #d8d1c5;
    --muted: #a39c90;
    --line: #37332d;
    --tag: #ffd84d;
    --tile: #efebe3;
    --trhak: #35c477;
    --dobra: #6aa4ff;
    --nicmoc: #9d978c;
    --ojeb: #ff5b50;
    --warn: #ffa64d;
    --focus: #6aa4ff;
    --shadow: 0 1px 0 rgb(0 0 0 / 0.3), 0 10px 28px -16px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 24px 48px -24px rgb(0 0 0 / 0.8);
    --blend: screen;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html:has(.page-jump) { scroll-padding-top: 124px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin: 0 0 8px; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 0 0 12px; }
h3, .h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
p { margin: 0 0 12px; }
code { font-family: var(--mono); font-size: 0.92em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; justify-content: center; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
section.wrap { margin-top: 40px; }
.link { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- hlavička ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.logo { text-decoration: none; color: var(--ink); }
.logo-mark { display: inline-flex; align-items: center; gap: 6px; }
.logo-mark svg { transform: rotate(-12deg); transition: transform 0.25s; }
.logo:hover .logo-mark svg { transform: rotate(8deg) scale(1.08); }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: -0.04em; }
.logo-tld { color: var(--ojeb); }
.menu { display: flex; gap: 4px; margin-left: 8px; }
.menu a { text-decoration: none; padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.menu a:hover { background: var(--paper-2); }
.menu a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.list-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 7px 10px 7px 12px; border-radius: 999px; border: 1.5px solid var(--ink);
}
.list-btn.active, .list-btn:hover { background: var(--ink); color: var(--paper); }
.list-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--tag); color: var(--tag-ink); font-size: 13px; font-weight: 800;
}
.list-count.bump { animation: bump 0.35s ease; }
@keyframes bump { 40% { transform: scale(1.45); } }

.menu-btn { display: none; }
@media (max-width: 860px) {
  .top-in { position: relative; gap: 10px; }
  .menu {
    display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 2px; padding: 8px 12px 14px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .top.open .menu { display: flex; }
  .menu a { padding: 12px 14px; font-size: 17px; border-radius: 14px; }
  .list-label { display: none; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
    border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer;
  }
  .menu-bars { display: grid; gap: 4px; }
  .menu-bars span { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s; }
  .top.open .menu-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .top.open .menu-bars span:nth-child(2) { opacity: 0; }
  .top.open .menu-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 -2px var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-primary { background: var(--tag); color: var(--tag-ink); border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { box-shadow: none; background: var(--paper-2); }
.btn-lg { padding: 16px 26px; font-size: 18px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* ---------- razítka ---------- */
.stamp {
  --c: var(--nicmoc);
  display: inline-block; flex: none;
  font-family: var(--display); font-weight: 800; font-size: 12px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap;
  color: var(--c); padding: 5px 8px 4px;
  border: 2.5px solid var(--c); border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 30%, transparent);
  transform: rotate(-7deg);
  mix-blend-mode: var(--blend);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-size: 140px 70px;
  mask-size: 140px 70px;
}
.stamp-trhak { --c: var(--trhak); }
.stamp-dobra { --c: var(--dobra); }
.stamp-nicmoc { --c: var(--nicmoc); }
.stamp-ojeb { --c: var(--ojeb); }
.stamp-sm { font-size: 10.5px; padding: 4px 6px 3px; border-width: 2px; }
.stamp-xl { font-size: 30px; padding: 9px 16px 7px; border-width: 4px; border-radius: 10px; transform: rotate(-9deg); }
.tilt-l { transform: rotate(-12deg); }
.tilt-r { transform: rotate(9deg); }
.slam { animation: slam 0.42s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes slam {
  0% { transform: scale(3.2) rotate(-24deg); opacity: 0; }
  55% { transform: scale(0.9) rotate(-8deg); opacity: 1; }
  100% { transform: scale(1) rotate(-9deg); opacity: 1; }
}

/* ---------- štítky ---------- */
.chain {
  display: inline-flex; align-items: center; font-weight: 800; font-size: 12px; letter-spacing: 0.02em;
  padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--paper); white-space: nowrap;
}
.chain-lidl { background: #0050aa; color: #fff042; }
.chain-penny { background: #cd1414; color: #fff; }
.chain-kaufland { background: #e10915; color: #fff; }
.chain-albert { background: #00a0e2; color: #fff; }
.chain-globus { background: #1b8f3a; color: #fff; }
.chain-billa { background: #ffe500; color: #d4001a; }
.chain-tesco { background: #00539f; color: #fff; }
.chain-hruska { background: #6f2c91; color: #fff; }
.chain-norma { background: #e3000f; color: #fff; }
.chain-coop { background: #ec6608; color: #fff; }
.cat { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.soon { font-size: 12px; font-weight: 700; color: var(--warn); }
.ended { font-size: 12px; font-weight: 700; color: var(--ojeb); }
.claim {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2); margin: 0 4px 4px 0;
}

/* ---------- cenovka ---------- */
.bigprice {
  position: relative; display: inline-flex; align-items: flex-start; gap: 1px;
  background: var(--tag); color: var(--tag-ink);
  font-family: var(--display); font-weight: 800; line-height: 1;
  padding: 6px 12px 5px 20px; border-radius: 5px 12px 12px 5px;
  font-variant-numeric: tabular-nums;
  box-shadow: 2px 2px 0 rgb(24 23 21 / 0.85);
}
.bigprice::before {
  content: ""; position: absolute; left: 7px; top: 50%; width: 7px; height: 7px; border-radius: 50%;
  transform: translateY(-50%); background: var(--card); box-shadow: inset 0 0 0 1.5px rgb(24 23 21 / 0.5);
}
.bp-whole { font-size: 34px; letter-spacing: -0.03em; }
.bp-cents { font-size: 16px; margin-top: 2px; }
.bp-cur { font-size: 12px; align-self: flex-end; margin-left: 4px; margin-bottom: 3px; opacity: 0.75; }
.was { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.was s { text-decoration-color: var(--ojeb); text-decoration-thickness: 2px; }
.claimed { color: var(--ojeb); font-weight: 800; white-space: nowrap; }

/* ---------- karta akce ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
/* karta se přizpůsobuje své šířce, ne šířce okna (úzké sloupce i na velké obrazovce) */
.card {
  container: card / inline-size;
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.card:has(.card-name:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
/* fotka sedí na světlé "dlaždici" v obou režimech */
.card-media {
  position: relative; aspect-ratio: 4 / 3; margin: 8px 8px 0; border-radius: 12px;
  background: var(--tile); display: grid; place-items: center; overflow: hidden;
}
.card-media .photo, .detail-photo .photo, .gcard-photo .photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px;
}
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 26px; }
.card-top .card-stamp { margin-left: auto; }
.photo-none { display: grid; place-items: center; width: 100%; height: 100%; padding: 16px; }
.photo-none span {
  font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.05; letter-spacing: -0.02em;
  text-align: center; color: rgb(24 23 21 / 0.22); text-transform: lowercase; overflow-wrap: anywhere;
}
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 14px; flex: 1; }
.card-title { margin: 0; font-size: inherit; }
.card-name {
  font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.4em; /* vždy dva řádky, ať ceny v řadě karet sedí pod sebou */
}
.card-name:focus-visible { outline: none; }
.card-name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-sub { font-size: 13.5px; color: var(--muted); margin-top: -3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.card .bp-whole { font-size: 30px; }
.card .bp-long .bp-whole { font-size: 25px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
.card-meta:empty { display: none; }
.card-meta .soon, .crow-meta .soon { font-size: inherit; }
.unit { color: var(--ink-2); font-weight: 600; }
.cond { color: var(--warn); font-weight: 700; }
.cond::before { content: "◆ "; font-size: 9px; vertical-align: 1px; }
.why {
  display: flex; align-items: center; gap: 6px; margin: 2px 0 0;
  font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink-2);
}
.why::before {
  content: "i"; flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff; background: var(--nicmoc);
}
.why-good { color: var(--trhak); }
.why-good::before { content: "✓"; background: var(--trhak); }
.why-bad { color: var(--ojeb); }
.why-bad::before { content: "!"; background: var(--ojeb); }
.cheaper {
  position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; gap: 2px;
  font-size: 12.5px; font-weight: 700; text-decoration: none; line-height: 1.3;
  color: var(--trhak); background: color-mix(in srgb, var(--trhak) 12%, transparent);
  padding: 4px 9px; border-radius: 999px;
}
.cheaper:hover { background: color-mix(in srgb, var(--trhak) 22%, transparent); }
.price-row .add { position: relative; z-index: 2; margin-left: auto; }
.add {
  display: inline-grid; place-items: center; cursor: pointer; flex: none;
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  font: 800 20px/1 var(--sans); border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  transition: transform 0.12s, background 0.15s, color 0.15s;
}
.add:hover { background: var(--ink); color: var(--paper); transform: scale(1.06); }
.add.in { background: var(--ink); color: var(--paper); }
.add.in .add-plus { display: inline-block; transform: rotate(45deg); }
.add-plus { line-height: 1; transition: transform 0.2s; }
.add-btn.in { background: var(--ink); color: var(--paper); }
.thumb {
  flex: none; width: 44px; height: 44px; border-radius: 9px; overflow: hidden;
  background: var(--tile); display: grid; place-items: center;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.thumb:empty { background: var(--paper-2); }
.detail-photo, .gcard-photo {
  position: relative; height: clamp(200px, 30vw, 280px);
  background: var(--tile); border-radius: 16px; margin-bottom: 16px; overflow: hidden;
}
.detail-photo .photo, .gcard-photo .photo { padding: 14px; }
/* s ambientním pozadím (app.js) sahá fotka až k hraně dlaždice */
.card-media.amb .photo, .detail-photo.amb .photo, .gcard-photo.amb .photo, .thumb.amb img { padding: 0; }
.more { font-size: 14px; font-weight: 600; color: var(--muted); }
/* úzká karta (mobil, sloupec vedle filtrů): menší písmo, ať se cena vejde na řádek */
@container card (max-width: 270px) {
  .card-media { margin: 6px 6px 0; border-radius: 10px; }
  .card-media .photo { padding: 4px; }
  .card-body { padding: 8px 10px 10px; gap: 4px; }
  .card-top { gap: 6px; min-height: 0; }
  .card-top .chain { font-size: 11px; padding: 3px 6px; }
  .card-top .stamp { font-size: 9.5px; padding: 3px 5px 2px; border-width: 2px; }
  .card-name { font-size: 15px; }
  .card-sub { font-size: 12.5px; }
  .price-row { gap: 4px 6px; }
  .card .bp-whole { font-size: 24px; }
  .card .bp-cents { font-size: 13px; }
  .card .bp-long .bp-whole { font-size: 20px; }
  .card .bigprice { padding: 5px 9px 4px 16px; }
  .card .bigprice::before { left: 6px; width: 6px; height: 6px; }
  .card .was { font-size: 12.5px; }
  .price-row .add { width: 30px; height: 30px; font-size: 18px; }
  .card-meta, .why { font-size: 12px; }
  .cheaper { font-size: 11.5px; padding: 3px 8px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 14px; }
}
.more-btn {
  grid-column: 1 / -1; justify-self: center; margin-top: 8px;
  font: 700 15px var(--sans); padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 1.5px dashed var(--ink); background: transparent; color: var(--ink);
}

/* ---------- úvod ---------- */
.hero { padding: 28px 0 12px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(44px, 8.4vw, 104px); letter-spacing: -0.045em; line-height: 0.92; margin: 6px 0 18px; }
.strike { position: relative; white-space: nowrap; }
.strike::after {
  content: ""; position: absolute; left: -3%; right: -4%; top: 52%; height: 0.11em; border-radius: 99px;
  background: var(--ojeb); transform: rotate(-4deg); transform-origin: left;
  animation: strike 0.7s 0.25s cubic-bezier(0.6, 0, 0.2, 1) both;
}
@keyframes strike { from { transform: rotate(-4deg) scaleX(0); } to { transform: rotate(-4deg) scaleX(1); } }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink-2); margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--trhak); box-shadow: 0 0 0 4px color-mix(in srgb, var(--trhak) 22%, transparent); }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.counter {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 18px;
  box-shadow: var(--shadow); transition: transform 0.15s;
}
.counter:hover { transform: translateY(-2px) rotate(-0.5deg); }
.counter-n { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.section-title { margin: 0 0 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
}

.duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; }
.duel-side { display: flex; flex-direction: column; }
.duel-vs { align-self: center; }
.duel-side .card { flex: 1; }
.duel .card-media { aspect-ratio: 2 / 1; }
.duel-label { font-family: var(--display); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; }
.duel-good .duel-label { color: var(--trhak); }
.duel-bad .duel-label { color: var(--ojeb); }
.duel-vs {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 20px; background: var(--ink); color: var(--paper);
  transform: rotate(-8deg);
}
@media (max-width: 760px) { .duel { grid-template-columns: 1fr; } .duel-vs { margin: -4px auto; } }

.tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 2px 16px 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-weight: 700; font-size: 14.5px; color: var(--ink-2); border: 1.5px solid var(--line); background: var(--card);
}
.tab:hover { border-color: var(--ink); }
.tab[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.top-block.htmx-swapping, .top-block.htmx-request .grid { opacity: 0.55; transition: opacity 0.15s; }
.top-more { margin: 14px 0 0; }
/* záložky jako přepínače (radio) ve formuláři */
.tab-opt { position: relative; flex: none; cursor: pointer; }
.tab-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tab-opt span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  font-weight: 700; font-size: 14.5px; color: var(--ink-2); border: 1.5px solid var(--line); background: var(--card);
}
.tab-opt span small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.tab-opt:hover span { border-color: var(--ink); }
.tab-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tab-opt input:checked + span small { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.tab-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 14px; background: var(--paper-2); border: 1.5px solid var(--line); flex: none; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 9px 14px; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.segmented input:checked + span { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.cmp-cats { margin-top: -4px; }
#cmp-results.htmx-request { opacity: 0.55; transition: opacity 0.2s; }
.crows-more summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 8px 4px 2px; }
.crows-more .crows { margin-top: 6px; }

.agent-teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--ink); color: var(--paper); border-radius: 24px; padding: 28px;
}
.agent-teaser p { color: color-mix(in srgb, var(--paper) 80%, transparent); max-width: 60ch; margin: 0; }
.agent-teaser .btn-dark { background: var(--tag); color: var(--tag-ink); border-color: var(--tag); }

/* ---------- letáky ---------- */
.leaflets { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.leaflet {
  display: flex; flex-direction: column; text-decoration: none; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.leaflet:hover { transform: translateY(-3px) rotate(-0.6deg); }
.leaflet-img { aspect-ratio: 3 / 4.4; overflow: hidden; background: var(--paper-2); }
.leaflet-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.leaflet-info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px 14px; }
.leaflet-info b { font-family: var(--display); font-size: 17px; line-height: 1.2; }
.leaflet-info .muted { font-size: 13px; }
.mini-counts { display: flex; gap: 6px; }
.mc { font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 999px; color: #fff; }
.mc-trhak { background: var(--trhak); }
.mc-dobra { background: var(--dobra); }
.mc-nicmoc { background: var(--nicmoc); }
.mc-ojeb { background: var(--ojeb); }
.archive { opacity: 0.7; }

.page-head { margin-top: 28px; }
.leaflet-head { display: grid; gap: 14px; }
.leaflet-head h1 { margin-top: 8px; }
.page-jump {
  position: sticky; top: 58px; z-index: 30; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent); scrollbar-width: thin;
}
.page-jump a {
  flex: none; min-width: 36px; text-align: center; padding: 6px 8px; border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: 14px; background: var(--card); border: 1px solid var(--line);
}
.page-jump a:hover { background: var(--ink); color: var(--paper); }
.pages { margin-top: 12px; }
.lpage {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr); gap: 24px; align-items: start;
  padding: 24px 0; border-bottom: 1px dashed var(--line);
}
.lpage-img { margin: 0; }
.lpage-img img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); background: var(--paper-2); }
.lpage-img figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.lpage-offers { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 6px; }
.row {
  display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: transform 0.12s;
}
.row:hover { transform: translateX(3px); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-name { font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.row-sub { font-size: 12.5px; color: var(--muted); }
.row-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.row-price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.footnotes { margin: 24px 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.footnotes summary { cursor: pointer; font-weight: 700; }
@media (max-width: 900px) {
  .lpage { grid-template-columns: minmax(0, 1fr); }
  .lpage-offers { position: static; }
}

/* ---------- filtry ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.search { flex: 1; }
.search input {
  width: 100%; font: 600 17px var(--sans); padding: 13px 16px 13px 44px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--card) no-repeat 14px 50% / 20px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23857f75' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  color: var(--ink); box-shadow: var(--shadow);
}
.search input:focus { border-color: var(--ink); outline: none; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sort select, .select select {
  font: 600 15px var(--sans); padding: 12px 34px 12px 14px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line); color: var(--ink); appearance: none;
  background: var(--card) no-repeat right 12px center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23857f75' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
}
.browse-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 28px; align-items: start; }
.facets { min-width: 0; }
.facets-toggle { display: none; }
.facet { padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.facet:last-child { border-bottom: 0; }
.facet-title {
  font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 6px;
}
.opt {
  display: flex; align-items: center; gap: 9px; padding: 6px 8px; margin: 0 -8px; border-radius: 9px;
  cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.opt:hover { background: var(--paper-2); }
.opt input {
  appearance: none; margin: 0; width: 17px; height: 17px; flex: none; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 5px; background: var(--card);
  display: grid; place-items: center; transition: background 0.12s, border-color 0.12s;
}
.opt input[type="radio"] { border-radius: 50%; }
.opt input:checked { background: var(--ink); border-color: var(--ink); }
.opt input[type="checkbox"]:checked::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px; transform: rotate(-45deg);
  border: solid var(--paper); border-width: 0 0 2px 2px;
}
.opt input[type="radio"]:checked::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); }
.opt input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt:has(input:checked) { color: var(--ink); font-weight: 800; }
.opt-label { flex: 1; min-width: 0; }
.opt-n { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.v-dot { border-radius: 50%; }
.v-dot.v-trhak { background: var(--trhak); }
.v-dot.v-dobra { background: var(--dobra); }
.v-dot.v-nicmoc { background: var(--nicmoc); }
.v-dot.v-ojeb { background: var(--ojeb); }
.results-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 14px; min-height: 34px; }
.result-count { margin: 0; color: var(--muted); font-weight: 600; }
.result-count b { color: var(--ink); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chip-x {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; text-decoration: none;
  font-size: 13.5px; font-weight: 700; background: var(--ink); color: var(--paper);
}
.chip-x:hover { background: var(--ojeb); }
.clear-all { display: inline-block; padding: 5px 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
#results.htmx-request { opacity: 0.55; transition: opacity 0.2s; }
@media (max-width: 900px) {
  .browse-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .facets { position: static; max-height: none; overflow: visible; padding: 0; }
  .facets-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
  .facets-toggle {
    display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
    padding: 12px 14px; font-weight: 800;
  }
  .facets-toggle::-webkit-details-marker { display: none; }
  .facets-toggle::after { content: "▾"; margin-left: auto; transition: transform 0.2s; }
  .facets-box[open] .facets-toggle::after { transform: rotate(180deg); }
  .facets-box .facet { padding: 4px 14px 12px; margin: 0; }
  .facets-box .facet:not(:last-child) { border-bottom: 1px solid var(--line); }
  .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--tag); color: var(--tag-ink); font-size: 12px; }
  .toolbar { flex-wrap: wrap; }
  .sort { width: 100%; }
  .sort select { flex: 1; }
}

/* ---------- detail ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--ink-2); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 28px; align-items: start; }
.detail-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 22px; box-shadow: var(--shadow);
}
.detail-card h1 { margin: 12px 0 4px; }
.detail-card .card-top { padding-right: 0; }
.detail-price { display: flex; align-items: center; gap: 16px; margin: 16px 0; }
.detail-price .bp-whole { font-size: 52px; }
.detail-price .bp-cents { font-size: 22px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.verdict-box {
  display: flex; align-items: center; gap: 20px; min-width: 0; padding: 16px; margin: 18px 0 4px;
  border-radius: 16px; background: var(--paper);
}
.verdict-box .score { font-size: 18px; margin: 0; }
.verdict-box .score b { font-family: var(--display); font-size: 28px; }
.signals { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sig { display: flex; gap: 12px; align-items: flex-start; }
.sig p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.sig-icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff; background: var(--nicmoc); margin-top: 1px;
}
.sig-good .sig-icon { background: var(--trhak); }
.sig-bad .sig-icon { background: var(--ojeb); }
.sig-w { margin-left: 8px; font-size: 12px; font-weight: 800; color: var(--muted); }
.note { margin-top: 16px; font-size: 14px; color: var(--ink-2); background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.claims { margin: 0 0 8px; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.detail .card-actions { margin-top: 20px; }
.detail-side { position: sticky; top: 84px; }
.page-shot { display: block; text-decoration: none; }
.page-shot img { border-radius: 14px; box-shadow: var(--shadow-lg); }
.page-shot-label { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.compare { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px 22px; }
.compare .h3 { margin-top: 0; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bar a { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; font-size: 14px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 12px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--nicmoc); }
.bar.me .bar-fill { background: var(--tag); box-shadow: inset 0 0 0 1.5px var(--ink); }
.bar.me .bar-label { font-weight: 800; }
.bar-val { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-side { position: static; max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .bar a { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .bar-label { grid-column: 1 / -1; white-space: normal; }
}
@media (max-width: 480px) {
  .detail-card { padding: 18px 16px; }
  .detail-price .bp-whole { font-size: 44px; }
  .verdict-box { flex-wrap: wrap; gap: 12px 16px; }
  .verdict-box > div { flex: 1 1 160px; }
  .verdict-box .stamp-xl { font-size: 24px; }
  .compare { padding: 16px 14px; }
}

/* ---------- týden: teď / příští ---------- */
.week-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-top: 14px; border-radius: 99px; background: var(--paper-2); }
.wt { padding: 7px 16px; border-radius: 99px; font-weight: 700; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.wt:hover { color: var(--ink); }
.wt[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.week-note { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.next-week {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px;
  margin: 8px 0 4px; padding: 16px 20px; border-radius: 20px; border: 2px dashed var(--line);
  background: var(--card); color: var(--ink); text-decoration: none;
}
.next-week:hover { border-color: var(--ink); }
.nw-kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.nw-text { grid-column: 1; font-weight: 600; }
.nw-go { grid-column: 2; grid-row: 1 / 3; font: 800 26px var(--display); }

/* ---------- hra ---------- */
.game-page { margin-top: 24px; }
.game { min-height: 60vh; }
.game-intro, .result { text-align: center; padding: 32px 8px; }
.game-intro .lead, .result .lead { margin: 0 auto 16px; }
.intro-stamps { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; }
.game-intro h1 { font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.04em; }
.hud { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.hud b { color: var(--ink); }
.streak.hot { color: var(--ojeb); }
.progress { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.progress span { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width 0.4s; }
.gcard {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 24px; box-shadow: var(--shadow-lg); animation: rise 0.35s ease both;
}
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.gcard-top { display: flex; gap: 10px; align-items: center; }
.gcard-name { font-size: clamp(26px, 4.4vw, 38px); margin: 14px 0 4px; }
.gcard-price { position: relative; display: flex; align-items: center; gap: 18px; margin: 22px 0 12px; flex-wrap: wrap; }
.gcard-price .bp-whole { font-size: 64px; }
.gcard-price .bp-cents { font-size: 26px; }
.gcard-was { font-size: 20px; color: var(--muted); text-decoration-color: var(--ojeb); text-decoration-thickness: 3px; }
.burst {
  display: grid; place-items: center; width: 92px; height: 92px; flex: none;
  font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; background: var(--ojeb);
  clip-path: polygon(50% 0%, 61% 13%, 77% 6%, 80% 23%, 96% 25%, 89% 40%, 100% 50%, 89% 60%, 96% 75%, 80% 77%, 77% 94%, 61% 87%, 50% 100%, 39% 87%, 23% 94%, 20% 77%, 4% 75%, 11% 60%, 0% 50%, 11% 40%, 4% 25%, 20% 23%, 23% 6%, 39% 13%);
  transform: rotate(-10deg);
}
.gcard-facts { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; color: var(--ink-2); }
.claim-li { display: inline; }
.gcard.revealed .stamp-xl { position: absolute; top: 18px; right: 18px; z-index: 2; font-size: 38px; background: color-mix(in srgb, var(--card) 70%, transparent); }
.gcard.ko { animation: shake 0.45s 0.3s both; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.guess { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.guess-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font: 800 24px var(--display); padding: 20px; border-radius: 20px; border: 3px solid;
  background: var(--card); transition: transform 0.1s, background 0.15s, color 0.15s;
}
.guess-btn:active { transform: scale(0.97); }
.g-ojeb { color: var(--ojeb); border-color: var(--ojeb); }
.g-ojeb:hover { background: var(--ojeb); color: #fff; }
.g-trhak { color: var(--trhak); border-color: var(--trhak); }
.g-trhak:hover { background: var(--trhak); color: #fff; }
.gk { font-size: 15px; opacity: 0.55; font-family: var(--sans); }
.verdict-msg { margin-top: 16px; padding: 18px 20px; border-radius: 20px; background: var(--card); border: 2px solid var(--line); animation: rise 0.3s 0.25s both; }
.verdict-msg.ok { border-color: var(--trhak); }
.verdict-msg.ko { border-color: var(--ojeb); }
.vm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vm-kicker { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.pts { font: 800 22px var(--display); color: var(--trhak); animation: pop 0.6s 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes pop { from { transform: translateY(10px) scale(0.6); opacity: 0; } }
.vm-title { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 4.4vw, 32px); line-height: 1.15; margin: 4px 0 6px; text-wrap: balance; }
.vm-fact { margin: 0 0 12px; font-weight: 600; color: var(--ink-2); }
.vm-streak { margin: 0 0 12px; font-weight: 700; color: var(--ojeb); }
.vm-streak.lost { color: var(--muted); }
.verdict-msg.ok .vm-title { color: var(--trhak); }
.verdict-msg.ko .vm-title { color: var(--ojeb); }
.next { display: flex; justify-content: center; margin: 18px 0 8px; }
.result-score { font-family: var(--display); font-size: 96px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: 8px 0; }
.result-score b { color: var(--trhak); }
.result-points { margin: 0 0 8px; font: 700 20px var(--display); color: var(--ink-2); }
.result-stats { list-style: none; padding: 0; margin: 0 auto 20px; display: grid; gap: 4px; color: var(--ink-2); }
@media (max-width: 560px) {
  .gcard { padding: 18px; }
  .gcard-price .bp-whole { font-size: 48px; }
  .burst { width: 76px; height: 76px; font-size: 18px; }
  .guess-btn { font-size: 20px; padding: 16px; }
  .gcard.revealed .stamp-xl { font-size: 26px; }
}

/* ---------- účtenka ---------- */
.receipt {
  position: relative; max-width: 440px; margin: 0 auto; padding: 26px 22px 34px;
  background: #fffef8; color: #232220; font: 14px/1.45 var(--mono);
  box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.5); transform: rotate(-0.6deg);
  --tag: #ffd84d; --ink: #232220;
}
.receipt a { color: inherit; text-decoration: none; }
.receipt a:hover { text-decoration: underline; }
.receipt-head { text-align: center; border-bottom: 2px dashed #b9b3a6; padding-bottom: 12px; margin-bottom: 12px; }
.receipt-head p { margin: 4px 0 0; letter-spacing: 0.2em; font-weight: 700; }
.receipt-head .small { letter-spacing: 0; font-weight: 400; color: #6b665d; }
.receipt-store { border-bottom: 1px dashed #cfc9bc; padding: 8px 0; }
.receipt-store-name { font-weight: 700; letter-spacing: 0.15em; margin: 0 0 6px; }
.receipt-line { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: start; padding: 4px 0; }
.rl-name { display: flex; flex-direction: column; }
.rl-meta { font-size: 12px; color: #77716a; }
.rl-v { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 1px 4px; border: 1.5px solid; border-radius: 3px; margin-top: 2px; }
.rl-trhak { color: #0f9a4e; } .rl-dobra { color: #2a6fd6; } .rl-nicmoc { color: #858075; } .rl-ojeb { color: #e0312b; }
.rl-price { font-weight: 700; text-align: right; min-width: 64px; }
.rl-x { background: none; border: 0; cursor: pointer; font-size: 18px; line-height: 1; color: #a39d92; padding: 0 2px; }
.rl-x:hover { color: #e0312b; }
.receipt-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; padding: 12px 0 6px; border-bottom: 2px dashed #b9b3a6; }
.receipt-savings { padding: 10px 0; display: grid; gap: 4px; }
.receipt-savings div { display: flex; justify-content: space-between; }
.receipt-savings .real { font-weight: 800; color: #0f9a4e; }
.receipt-warn { color: #e0312b; font-weight: 700; margin: 8px 0 0; }
.receipt-foot { text-align: center; margin: 14px 0 0; color: #6b665d; }
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background: linear-gradient(-45deg, transparent 8px, #fffef8 0) 0 0 / 16px 12px repeat-x,
              linear-gradient(45deg, transparent 8px, #fffef8 0) 0 0 / 16px 12px repeat-x;
}
.receipt-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* ---------- lístek: dvě podoby (seznam s fotkami, účtenka) ---------- */
.list-tools { display: flex; justify-content: center; margin: 0 0 20px; }
.listek:has(.empty) .list-tools { display: none; }
.listek:has(#lv-seznam:checked) .receipt { display: none; }
.listek:has(#lv-uctenka:checked) .shop-list { display: none; }
.shop-list { display: grid; gap: 14px; }
.sl-summary, .sl-store {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.sl-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; padding: 16px 18px; }
.sl-sum-main { display: flex; flex-direction: column; gap: 2px; }
.sl-k { font-size: 13px; font-weight: 600; color: var(--muted); }
.sl-total { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sl-sum-save { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.sl-sum-save div { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.sl-sum-save dt { color: var(--muted); font-weight: 600; }
.sl-sum-save dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl-sum-save .real dt, .sl-sum-save .real dd { color: var(--trhak); }
.sl-summary .receipt-warn { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14px; color: var(--ojeb); }
.sl-store { overflow: hidden; }
.sl-store-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sl-count { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.sl-sub { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl-items { list-style: none; margin: 0; padding: 0; }
.sl-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 16px; }
.sl-item + .sl-item { border-top: 1px solid var(--line); }
.sl-photo { position: relative; display: block; width: 72px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--tile); }
.sl-photo .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.sl-photo.amb .photo { padding: 0; }
.sl-photo .photo-none { padding: 6px; }
.sl-photo .photo-none span { font-size: 11px; }
.sl-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sl-name { font-weight: 700; font-size: 15.5px; line-height: 1.25; color: var(--ink); text-decoration: none; }
.sl-name:hover { text-decoration: underline; }
.sl-meta { margin: 0; font-size: 13px; color: var(--muted); }
.sl-when { font-size: 12.5px; }
.sl-when .soon { font-size: inherit; }
.sl-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; }
.sl-end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.sl-price { font-weight: 800; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sl-was { font-size: 13px; color: var(--muted); text-decoration-color: var(--ojeb); text-decoration-thickness: 2px; }
.sl-x {
  margin-top: 6px; width: 30px; height: 30px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--muted); font: 700 18px/1 var(--sans);
}
.sl-x:hover { border-color: var(--ojeb); color: var(--ojeb); }
@media (max-width: 560px) {
  .sl-summary { grid-template-columns: minmax(0, 1fr); }
  .sl-item { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .sl-photo { width: 60px; }
  .sl-store-head { padding: 10px 12px; }
}

/* ---------- pro agenty, pravidla ---------- */
.code-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 12px;
  overflow-x: auto;
}
pre.code-card { font-size: 14px; line-height: 1.5; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.copy-row code { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.api-list code, p code { overflow-wrap: anywhere; }
.prompts { padding-left: 20px; display: grid; gap: 6px; }
.prompts li::marker { content: "💬 "; }
.tools { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.tools dd { margin: 0; color: var(--ink-2); }
.api-list { padding-left: 20px; }
.rules { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.table-wrap { overflow-x: auto; }
.schedule td:first-child { white-space: nowrap; }
.rules th, .rules td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rules th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.rules .num { font-weight: 800; white-space: nowrap; }
.calc { font-variant-numeric: tabular-nums; font-weight: 600; margin: 2px 0 4px; }

/* ---------- prázdné stavy, patička, toast ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty-art { font-size: 44px; margin-bottom: 8px; }
.empty h3 { color: var(--ink); margin: 0 0 6px; }
.foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--paper-2); }
.foot-ai { border-bottom: 1px solid var(--line); }
.foot-ai-in { max-width: 1180px; margin: 0 auto; padding: 28px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.foot-ai-in p { max-width: 60ch; font-size: 15px; color: var(--muted); }
.foot-ai-in .foot-ai-title { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 6px; }
.foot-ai-links { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 28px 16px 40px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-in p { max-width: 52ch; font-size: 14px; color: var(--muted); margin-top: 10px; }
.foot-links { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.foot-links a { text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 14px; font-weight: 700;
  box-shadow: var(--shadow-lg); transition: transform 0.25s cubic-bezier(0.2, 1.2, 0.4, 1), visibility 0.25s; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.link-btn { all: unset; cursor: pointer; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.link-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; margin: 0 auto; max-width: 560px;
  display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--shadow-lg); font-size: 14px;
}
.consent[hidden] { display: none; }
.consent p { flex: 1 1 260px; margin: 0; }
.consent-btns { display: flex; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .top, .foot, .receipt-actions, .toast, .consent, .page-head .muted, .rl-x, .list-tools, .sl-x { display: none !important; }
  .sl-summary, .sl-store { box-shadow: none; }
  body { background: #fff; }
  .receipt { box-shadow: none; transform: none; }
}

/* ---------- srovnání ---------- */
.sig-link { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--dobra); text-decoration: none; }
.sig-link:hover { text-decoration: underline; }
.same-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.same-row {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-decoration: none;
}
.same-row:hover { border-color: var(--ink); }
.same-name { font-weight: 600; font-size: 15px; }
.same-price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; white-space: nowrap; }
.same-price .muted { font-size: 12px; font-weight: 500; }
.same-diff { font-size: 13px; font-weight: 800; white-space: nowrap; }
.d-cheaper { color: var(--trhak); }
.d-pricier { color: var(--ojeb); }
.d-same { color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); margin: -4px 0 12px; }
.lv::before, .lv-dot { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--nicmoc); }
.lv-product::before, .lv-dot.lv-product { background: var(--ink); box-shadow: 0 0 0 2px var(--tag); }
.lv-variety::before, .lv-dot.lv-variety { background: var(--dobra); }
.lv-type::before, .lv-dot.lv-type { background: var(--nicmoc); }
@media (max-width: 600px) {
  /* fotka vlevo, obchod a název pod sebou, cena vpravo, rozdíl a razítko pod tím */
  .same-row {
    grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px;
    grid-template-areas: "t b p" "t n n" "t d s";
  }
  .same-row > .thumb { grid-area: t; align-self: start; }
  .same-row > .chain { grid-area: b; justify-self: start; }
  .same-name { grid-area: n; font-size: 14px; overflow-wrap: break-word; }
  .same-price { grid-area: p; align-self: start; }
  .same-diff { grid-area: d; align-self: center; white-space: normal; }
  .same-row > .stamp { grid-area: s; justify-self: end; }
}

.cgroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.cgroup { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.cgroup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cgroup-head h3 { margin: 0; font-size: 18px; }
.cgroup-n { display: block; margin-top: 2px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.spread { flex: none; font-size: 12px; font-weight: 800; color: var(--ojeb); background: color-mix(in srgb, var(--ojeb) 12%, transparent); padding: 3px 8px; border-radius: 999px; }
.crows { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.crow {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "thumb name price" "thumb meta stamp";
  gap: 2px 10px; align-items: center; padding: 9px 11px; border-radius: 12px; text-decoration: none;
  border: 1px solid var(--line); background: var(--paper);
}
.crow:hover { border-color: var(--ink); }
.crow .thumb { grid-area: thumb; }
.crow-name .chain { font-size: 11px; padding: 2px 6px; vertical-align: 1px; }
.crow-name { grid-area: name; font-weight: 600; font-size: 14px; line-height: 1.3; }
.crow-name .muted { white-space: nowrap; }
.crow-price { grid-area: price; font-weight: 800; text-align: right; white-space: nowrap; }
.crow-meta { grid-area: meta; font-size: 13px; color: var(--muted); }
.crow-stamp { grid-area: stamp; justify-self: end; }
.crow-diff { font-weight: 700; color: var(--ojeb); }
.win .crow { border-color: var(--trhak); background: color-mix(in srgb, var(--trhak) 8%, var(--paper)); }
.win .crow-diff { color: var(--trhak); }
.sig-rule { color: inherit; text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
.sig-rule:hover { text-decoration: underline solid; }
.dispute { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.rules tr[id], h2[id] { scroll-margin-top: 88px; }
.rules tr:target td { background: color-mix(in srgb, var(--tag) 35%, transparent); }
