/* fermadraugiem.lv — /speles-pasaule/ (task 6e18c40d, plan/R119): one page per real thing of the game, written by
   landing/tools/build-pasaule.mjs. Loaded after pages.css, so the wood, the paper and the plank come from there; this file only
   lays out what is new: the game's own picture in the hero, the facts card, the link lists, the quests and the letters. */

/* the hero's picture is a sprite from the game (/spele/img/…): never larger than it was drawn */
.ps-art img{max-width:min(100%,260px);height:auto}
@media (min-width:900px){.ps-art img{max-width:300px}}

/* «Spēlē»: the Bodīte's rows on a paper card */
.ps-facts{padding:12px 16px;border:2px solid transparent;border-image:url(/img/site/win_card.webp) 24 fill / 12px stretch}
.ps-facts dd a{font-weight:700}

/* «… vēl» and «Uzdevumos»: links as paper tags in a row */
.ps-list{display:flex;flex-wrap:wrap;gap:8px 10px;margin:0;padding:0;list-style:none}
.ps-list li{margin:0;border:2px solid transparent;border-image:url(/img/site/win_card.webp) 24 fill / 9px stretch}
.ps-list a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;font-weight:700}
.ps-list--quests{display:block}
.ps-list--quests li{margin:0 0 8px;padding:6px 12px}
.ps-list--quests a{display:inline;min-height:0;padding:0}

/* the index: each part's things in columns, the name a link and one fact beside it */
.ps-index{margin:0;padding:10px 16px;list-style:none;columns:2 300px;column-gap:28px;border:2px solid transparent;
  border-image:url(/img/site/win_card.webp) 24 fill / 12px stretch}
.ps-index li{margin:0;padding:4px 0;break-inside:avoid;line-height:1.35}
.ps-index a{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
.ps-index span{display:block;margin-top:-8px;font-size:14.5px;color:#5A3A1C}

/* a neighbour's quests: one paper card each, the steps numbered */
.ps-quests{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px}
.ps-quest{padding:12px 16px;border:2px solid transparent;border-image:url(/img/site/win_card.webp) 24 fill / 12px stretch}
.ps-quest h3{margin:0 0 .2em;font:700 19px/1.25 var(--k-face);color:#2A6E16}
.ps-quest__lv{margin:0 0 .4em;font-size:14.5px;color:#5A3A1C}
.ps-quest ol{margin:0;padding-left:1.3em}
.ps-quest li{margin:0 0 .25em}

/* «Vēstulēs»: the letter's own words on a paper slip, who wrote it under them */
.ps-letters{display:grid;gap:12px}
.ps-letter{margin:0;padding:12px 18px;border:2px solid transparent;border-image:url(/img/site/win_card.webp) 24 fill / 12px stretch}
.ps-letter p{margin:0 0 .4em;font-style:italic}
.ps-letter footer{font-size:14.5px;color:#5A3A1C}

@media print{.ps-facts,.ps-list li,.ps-index,.ps-quest,.ps-letter{border-image:none;border-color:#ccc}}
