/* Cardometer — uzupelnienia do style.css z eksportu (29 X 2026) */
.betabar { background: var(--deep); color: #fff; font-size: 13px; text-align: center; padding: 6px 16px; }
.pill--lang { display: inline-flex; align-items: center; color: var(--ink); }
.mt { margin-top: 22px; }

/* kafel karty: proporcje skanu 63 x 88 mm */
.tgrid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.tcard { display: flex; flex-direction: column; }
.tcard__img { display: block; aspect-ratio: 245 / 342; background: var(--soft); border-radius: var(--r-sm); overflow: hidden; }
.tcard__img img { width: 100%; height: 100%; object-fit: contain; }
.tcard .tile__body { gap: 2px; }

/* sety */
.setgrid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.settile__logo { display: flex; align-items: center; justify-content: center; height: 96px; padding: 12px; background: var(--soft); border-radius: var(--r-sm); }
.settile__logo img { max-height: 72px; width: auto; object-fit: contain; }
.sethead { flex-direction: row; gap: 28px; align-items: center; flex-wrap: wrap; padding: 24px; margin-bottom: 8px; }
.sethead > div { flex: 1 1 320px; min-width: 0; display: grid; gap: 10px; justify-items: start; }
.sethead > div > .lead, .sethead > div > .search { justify-self: stretch; }
.sethead__logo { max-width: 260px; max-height: 120px; width: auto; object-fit: contain; }
.minis--inline { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.deal__logo { width: 64px; height: 40px; object-fit: contain; }
.deals .deal { grid-template-columns: 64px minmax(0, 1fr); }
.deals .deal__body { display: grid; gap: 2px; }
.deal__logo--empty { display: block; width: 64px; height: 40px; border-radius: 8px; background: var(--soft); }

/* karta */
.gallery__main--card { aspect-ratio: 600 / 825; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.gallery__main--card img { width: 100%; height: 100%; object-fit: contain; }
.card-top--tcg { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.table-wrap { overflow-x: auto; }
.rankcard { display: inline-flex; align-items: center; gap: 10px; }
.rankcard img { width: 40px; height: 56px; object-fit: contain; border-radius: 4px; }

/* funkcje przeniesione z Klockometru: alerty, kalkulator, fakty, strony informacyjne */
.alertform { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line, #F3E6CF); }
.alertform__h { font-size: 15px; }
.alertform__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.alertform__row label { display: grid; gap: 4px; flex: 1 1 160px; font-size: 12px; color: var(--muted, #64748B); }
.alertform__row input, .calcform textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--card, #fff); border: 1px solid var(--line, #E5D9C3); border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.alertform__row input:focus, .calcform textarea:focus { outline: 2px solid #FF8A00; outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--soft); font-size: 14px; }
.notice--ok { background: #E7F6EC; color: #14532D; }
.notice--err { background: #FDECEC; color: #7F1D1D; }
.calcform { display: grid; gap: 10px; justify-self: stretch; }
.calcform textarea { min-height: 170px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.calcform .btn { justify-self: start; }
.calcsum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.calcsum > span:first-child { font-weight: 700; }
.facts p { max-width: 80ch; line-height: 1.65; }
.seg-links { display: flex; flex-wrap: wrap; gap: 8px; }
.prose { padding: 28px; max-width: 860px; }
.prose h2 { margin: 26px 0 8px; font-size: 20px; }
.prose p { line-height: 1.7; max-width: 76ch; }
.prose .lead { font-size: 17px; }
td.up, td.down { font-weight: 700; white-space: nowrap; }
.sethead .tag a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* produkty zamkniete */
.sgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.stile__img { aspect-ratio: 1 / 1; background: #fff; }
.stile__img img { object-fit: contain; padding: 8px; box-sizing: border-box; }
.ellipsis2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery__main--sealed { aspect-ratio: 1 / 1; background: #fff; }
.gallery__main--sealed img { padding: 16px; box-sizing: border-box; }

/* telefon: naglowek z eksportu wychodzil poza ekran (427 px przy 390 px) */
@media (max-width: 720px) {
  .header__top { gap: 10px; flex-wrap: wrap; }
  .logo { flex: 0 1 auto; min-width: 0; height: 48px; }
  .logo img { height: 64px; }
  .header__actions { flex-shrink: 0; }
  .pill { height: 36px; padding: 0 10px; }
  .header__top .search { order: 3; flex: 1 1 100%; }
  .header__actions { margin-left: auto; }
  .nav { overflow-x: auto; white-space: nowrap; }
  .card-top--tcg { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
