/* Pack B views (src/ui/games/rima.js, cudak.js, zadnji-glas.js). Linked from index.html after src/style.css. */

/* a picture lights up while Momo says its word */
.pic-tile.pb-say { background: var(--soft); border-color: var(--sun); transform: translateY(-4px); box-shadow: 0 6px 0 var(--shadow), 0 0 0 3px var(--sun); transition: transform .12s; }

/* the shared ending (SL-ON / BAL-ON) and the last letter, written only after the item is solved */
.pb-mark { color: var(--red); background: var(--hl); border-radius: 6px; padding: 0 2px; }
.pb-target .pic-btn { background: var(--soft); }
.pb-target .pic-word { min-height: 34px; font-size: clamp(20px, 7vw, 30px); white-space: nowrap; }
.pb-cap {
  position: absolute; left: 50%; bottom: -14px; translate: -50% 0; max-width: calc(100% + 16px); padding: 0 6px;
  font-size: clamp(12px, 3.6vw, 17px); font-weight: 800; letter-spacing: .03em; line-height: 1.5; white-space: nowrap;
  background: var(--paper); border: 2px solid var(--good-line); border-radius: 9px; animation: rise .3s ease-out;
}

/* Tko je čudak?: after solving, every picture shows its first letter; the odd one in red */
.pb-badge {
  position: absolute; left: -8px; top: -10px; z-index: 1; min-width: 36px; height: 36px; padding: 0 6px; display: grid; place-items: center;
  font-size: 21px; font-weight: 800; line-height: 1; background: var(--leaf); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 18px;
  box-shadow: 0 2px 0 var(--shadow); animation: pop .3s ease-out both;
}
.pb-badge.odd { background: var(--red); color: #fff; }

/* Tko je čudak? with four pictures: smaller tiles on short screens so the 2 x 2 grid fits */
@media (max-height: 700px) and (orientation: portrait) { .game-cudak .choices.n4 { max-width: 260px; } }
@media (orientation: landscape) and (max-height: 520px) {
  .game-cudak .pic-tile { max-width: 120px; margin: 0 auto; width: 100%; }
  .pb-cap { font-size: 13px; }
}
