.tp-hry {
  --tp-barva: #8f2332;
  --tp-text: #302a27;
  --tp-okraj: #d8cdbd;
  max-width: 930px;
  margin: 18px auto 42px;
  color: var(--tp-text);
  line-height: 1.55;
}
.tp-hry *, .tp-hry *::before, .tp-hry *::after { box-sizing: border-box; }
.tp-hry h2, .tp-hry h3, .tp-form legend { font-family: Georgia, 'Times New Roman', serif; }
.tp-hry a { color: var(--tp-barva); }
.tp-hry :focus-visible { outline: 3px solid #75400e; outline-offset: 3px; }
.tp-karty { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 24px; }
.tp-karta { display: flex; min-width: 0; flex-direction: column; text-decoration: none; border-bottom: 1px solid var(--tp-okraj); }
.tp-karta img, .tp-scena img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 520; object-fit: cover; border-radius: 2px; }
.tp-karta > div { display: flex; flex: 1; flex-direction: column; padding: 12px 2px 15px; }
.tp-karta h2 { color: var(--tp-text); font-size: clamp(22px,3vw,29px); line-height: 1.17; margin: 0 0 6px; }
.tp-karta p { color: #463e37; margin: 0 0 12px; }
.tp-zacit { margin-top: auto; font-weight: 700; font-size: .95em; }
.tp-karta:hover h2, .tp-karta:focus-visible h2, .tp-zacit:hover { color: var(--tp-barva); text-decoration: underline; }
.tp-scena { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr); align-items: center; background: #f6f1e7; border: 1px solid var(--tp-okraj); }
.tp-scena > div { padding: clamp(16px,3.5vw,38px); }
.tp-scena p { font: 1.22rem/1.49 Georgia, 'Times New Roman',serif; margin: 0 0 .8em; }
.tp-form, .tp-vyklad, .tp-uprava { max-width: 760px; margin: 24px auto; }
.tp-form fieldset { padding: 14px 0 0; border: 0; margin: 23px 0; min-width: 0; }
.tp-form legend { padding: 0; color: var(--tp-text); font-size: clamp(19px, 2.9vw, 24px); font-weight: 700; line-height: 1.3; }
.tp-form .tp-odpoved { display: flex; gap: 12px; align-items: baseline; min-height: 44px; border: 1px solid var(--tp-okraj); border-radius: 3px; padding: 11px 14px; margin: 0 0 7px; background: #fffdf9; cursor: pointer; }
.tp-odpoved:has(input:checked) { background: #f7ebe6; border-color: var(--tp-barva); }
.tp-odpoved input { width: 1.1em; height: 1.1em; flex: 0 0 1.1em; margin: 0; accent-color: var(--tp-barva); align-self: flex-start; margin-top: .22em; }
.tp-form .tp-veci > label { display: block; font-weight: 700; margin: 12px 0 4px; }
.tp-form .tp-veci p { margin: 0 0 14px; }
.tp-veci select { display: block; padding: 10px; width: 100%; max-width: 440px; background: #fffdf9; color: var(--tp-text); border: 1px solid #908478; border-radius: 3px; font: inherit; min-height: 44px; }
.tp-akce { margin: 18px 0; }
.tp-form button { min-height: 46px; padding: 10px 23px; border: 0; border-radius: 3px; background: var(--tp-barva); color: #fff; font: 700 1rem/1.35 system-ui,sans-serif; cursor: pointer; }
.tp-form button:hover { background: #711b29; }
.tp-vyklad { border-top: 3px solid var(--tp-barva); padding: 18px 0 10px; }
.tp-vyklad .tp-vyklad-popis { font-weight: 700; color: var(--tp-barva); margin: 0 0 6px; }
.tp-vyklad h2 { font-size: clamp(25px, 4vw, 36px); line-height: 1.13; margin: 0 0 15px; color: var(--tp-text); }
.tp-vyklad p { margin: 8px 0 17px; }
.tp-vyklad h3 { border-top: 1px solid var(--tp-okraj); padding-top: 18px; margin: 18px 0 12px; font-size: 1.27rem; }
.tp-vyklad dt { font-weight: 700; margin: 13px 0 3px; }
.tp-vyklad dd { margin: 0 0 12px; }
.tp-uprava { border-block: 1px solid var(--tp-okraj); padding: 10px 0; }
.tp-uprava summary { cursor: pointer; padding: 5px; color: var(--tp-barva); font-weight: 700; }
.tp-znovu, .tp-chyba { max-width: 760px; margin: 18px auto; }
.tp-chyba { border-left: 3px solid var(--tp-barva); padding: 10px 13px; background: #faefea; }
.tp-dalsi { display: flex; flex-wrap: wrap; gap: 9px 24px; justify-content: space-between; border-top: 1px solid var(--tp-okraj); margin-top: 26px; padding-top: 12px; }
.tp-dalsi a { padding: 5px 0; font-weight: 700; }
.tp-hry [id] { scroll-margin-top: 24px; }
@media (max-width:640px) {
 .tp-karty { grid-template-columns: minmax(0,1fr); gap: 20px; }
 .tp-scena { grid-template-columns: minmax(0,1fr); }
 .tp-scena img { max-height: 230px; }
 .tp-scena p { font-size: 1.1rem; }
 .tp-form fieldset { margin-block: 18px; }
 .tp-form button { width: 100%; }
}
