/* Knihy, které se hrají: the flat book cover (cart.js cover()), and the book picker (vyber.js): the three prices,
   the nine books as cards, and a bar that adds up the choice the way the cart will. */
.kcov { position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 100%; aspect-ratio: 3 / 4; padding: 11% 8% 0 15%; background: var(--c); color: var(--t); border: 3px solid var(--ink); border-radius: 4px 10px 10px 4px; overflow: hidden; container-type: inline-size; text-align: left; line-height: 1.2; }
.kcov::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: rgba(0, 0, 0, .14); border-right: 2px solid rgba(0, 0, 0, .25); }
.kcov-k { position: relative; font-weight: 800; font-size: 7.6cqi; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.kcov-t { position: relative; margin-top: 3%; font-family: var(--wide); font-stretch: 118%; font-weight: 900; font-size: 11cqi; line-height: .98; letter-spacing: -.02em; color: var(--h); white-space: nowrap; }
.kcov-art { position: absolute; left: 7%; right: 0; bottom: 0; height: 58%; }
.kcov-art svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.kcov-art img { position: absolute; right: 6%; bottom: 4%; width: 34%; height: auto; }

.vyber { margin-top: clamp(44px, 7vw, 84px); scroll-margin-top: 84px; }
.vy-head { text-align: center; max-width: 760px; margin: 0 auto clamp(20px, 3vw, 28px); }
.vy-kick { display: inline-block; background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 5px 13px; }
.vy-head h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin: 14px 0 10px; }
.vy-head p { color: var(--text); font-size: 17.5px; }

/* the three prices; the one the current choice falls under lights up */
.vy-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto clamp(22px, 3vw, 30px); }
.vy-tier { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 14px 16px; background: #fff; border: 3px solid var(--ink); border-radius: 22px; text-align: center; transition: transform .2s cubic-bezier(.2,.8,.2,1), background-color .2s, box-shadow .2s; }
.vy-tier.on { background: var(--yellow); transform: translateY(-4px); box-shadow: 0 6px 0 var(--ink); }
.vy-tier span { font-weight: 800; font-size: 15px; }
.vy-tier b { font-family: var(--wide); font-stretch: 125%; font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -.045em; line-height: 1.05; }
.vy-tier small { color: var(--muted); font-weight: 600; font-size: 14px; }
.vy-tier small s { margin-right: 4px; }
.vy-tier em { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 3px 10px; }
.vy-tier button { margin-top: 8px; font: inherit; font-weight: 800; font-size: 14px; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; background: var(--ink); color: #fff; cursor: pointer; }
.vy-tier.on button { background: #fff; color: var(--ink); }

/* the books: a card per book, tap to pick */
.vy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vy-card { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px 12px 12px; background: #fff; border: 3px solid var(--ink); border-radius: 22px; cursor: pointer; transition: transform .15s, box-shadow .15s, background-color .2s; -webkit-tap-highlight-color: transparent; }
.vy-card:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.vy-card.on { background: color-mix(in srgb, var(--c) 26%, #fff); box-shadow: 0 5px 0 var(--ink); }
.vy-card input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.vy-cov { display: block; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.vy-card.on .vy-cov { transform: rotate(-4deg) scale(1.04); }
.vy-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-right: 26px; }
.vy-txt b { font-weight: 800; font-size: 16.5px; line-height: 1.2; }
.vy-txt > span { color: var(--muted); font-size: 14px; line-height: 1.35; }
.vy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.vy-row em { font-style: normal; font-weight: 800; font-size: 15px; }
.vy-demo { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.vy-demo svg { width: 12px; height: 12px; }
.vy-check { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 50%; transition: background-color .15s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.vy-check svg { width: 15px; height: 15px; opacity: 0; }
.vy-card.on .vy-check { background: var(--ink); transform: scale(1.12); }
.vy-card.on .vy-check svg { opacity: 1; }
.vy-card input:focus-visible ~ .vy-check { outline: 3px solid var(--ink); outline-offset: 3px; }

/* the bar: stays at the bottom of the screen while the picker is in view */
.vy-bar { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 12px 12px 12px 16px; background: var(--ink); color: #fff; border-radius: 24px; box-shadow: 0 12px 34px rgba(22, 21, 19, .28); }
.vy-minis { display: flex; flex: none; min-width: 44px; }
.vy-minis .kcov { width: 34px; border-width: 2px; margin-left: -12px; box-shadow: -2px 0 0 var(--ink); }
.vy-minis .kcov:first-child { margin-left: 0; }
.vy-minis .kcov * { display: none; }
.vy-minis .vy-none { width: 34px; aspect-ratio: 3 / 4; border: 2px dashed rgba(255, 255, 255, .5); border-radius: 4px 8px 8px 4px; }
.vy-sum { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.vy-sum b { font-family: var(--wide); font-stretch: 125%; font-weight: 900; font-size: 1.35rem; letter-spacing: -.04em; }
.vy-sum b s { font-family: var(--body); font-stretch: 100%; font-weight: 600; font-size: 15px; letter-spacing: 0; opacity: .6; margin-left: 8px; }
.vy-sum span { font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.vy-sum button { all: unset; cursor: pointer; color: var(--yellow); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.vy-bar .btn { margin-left: auto; flex: none; min-height: 52px; padding: 0 24px; box-shadow: none; border-color: var(--yellow); }
.vy-bar .btn[disabled] { cursor: default; opacity: .45; }

@media (max-width: 1000px) { .vy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .vy-tiers { gap: 8px; }
  .vy-tier { padding: 16px 6px 12px; border-radius: 18px; }
  .vy-tier span { font-size: 13.5px; }
  .vy-tier b { font-size: 1.32rem; }
  .vy-tier small { font-size: 12.5px; }
  .vy-tier em { font-size: 10.5px; padding: 2px 8px; top: -11px; }
  .vy-tier button { font-size: 12.5px; padding: 5px 10px; }
  .vy-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .vy-card { grid-template-columns: 76px minmax(0, 1fr); padding: 10px; border-radius: 18px; }
  .vy-bar { flex-wrap: wrap; gap: 10px 12px; padding: 12px; border-radius: 20px; }
  .vy-minis { display: none; }
  .vy-sum { flex: 1 1 60%; }
  .vy-bar .btn { min-height: 48px; padding: 0 18px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .vy-tier, .vy-card, .vy-cov, .vy-check { transition: none; } }

/* all nine at once (homepage and shop) */
.vse { margin-top: clamp(40px, 6vw, 72px); scroll-margin-top: 84px; }
.vse-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(20px, 3.4vw, 40px); background: var(--pink-soft); border: 3px solid var(--ink); border-radius: 28px; }
.vse-cov { border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--paper); }
.vse-cov img { display: block; width: 100%; height: auto; }
.vse h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 14px 0 10px; }
.vse p { color: var(--text); max-width: 46ch; }
.vse-p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 16px 0 18px; }
.vse-p b { font-family: var(--wide); font-stretch: 125%; font-weight: 900; font-size: clamp(2rem, 4.6vw, 2.8rem); letter-spacing: -.045em; }
.vse-p s { color: var(--muted); font-weight: 700; font-size: 18px; }
.vse-p em { font-style: normal; background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 14px; border-radius: 999px; padding: 4px 12px; }
@media (max-width: 760px) { .vse-in { grid-template-columns: minmax(0, 1fr); } .vse-cov { max-width: 360px; } }
