/* Per-riddle extras (functions/_lib/riddle-extras.js), loaded only on the riddles that have them. */
/* The mascot sits at the picture's bottom-left corner, inside the zoom strip, so the picture keeps its full width.
   It hangs partly into the page margin and covers only a small corner of the picture (never its middle); a tiny
   caption under it. left stays >= -16px (the main padding) so nothing sticks out past the screen edge. */
.rd .pic-hint .rmascot { pointer-events: auto; position: absolute; left: -13px; bottom: -14px; display: block; width: 64px; height: 90px; z-index: 2;
  text-decoration: none; -webkit-tap-highlight-color: transparent; }
.rd .pic-hint .rmascot img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(13, 42, 76, .35)); }
.rd .pic-hint .rmascot__c { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 1px; white-space: nowrap;
  font: 700 11px/1.35 "Heebo", system-ui, sans-serif; color: var(--navy, #0D2A4C); background: var(--cream, #F8F5EE); border: 1px solid var(--gold, #CCA667);
  border-radius: 999px; padding: 0 6px; }
.rd .pic-hint .rmascot:active { transform: scale(.94); }
.rd .pic-hint .rmascot:focus-visible { outline: 3px solid var(--gold, #CCA667); outline-offset: 2px; border-radius: 8px; }
@media (min-width: 600px) { .rd .pic-hint .rmascot { width: 80px; height: 113px; left: -14px; } }
/* With the mascot's caption hanging below the strip, keep a little more room before the title. */
.rd .pic-hint:has(.rmascot__c) { margin-bottom: 34px; }
/* The compact riddle-number chip (instead of the prev/next nav) with a small sticker on its corner. */
.rd .rnum { display: table; position: relative; margin: 14px auto 0; padding: 2px 16px; border: 2px solid var(--navy, #0D2A4C); border-radius: 999px;
  background: #fff; font-family: var(--hand); font-size: 20px; line-height: 28px; color: var(--navy, #0D2A4C); }
.rd .rnum__n b { font-family: "RiddleDigits", "Heebo", sans-serif; font-weight: 600; }
.rd .rnum__tb { position: absolute; top: -11px; left: -30px; transform: rotate(-9deg); white-space: nowrap;
  font: 800 11px/1 "Heebo", system-ui, sans-serif; color: var(--navy, #0D2A4C); background: var(--gold, #CCA667);
  padding: 4px 7px; border-radius: 7px; box-shadow: 0 1px 0 var(--navy, #0D2A4C), 0 2px 4px rgba(13, 42, 76, .25); }
.rd .rnum + .pic, .rd .rnum ~ .pic { margin-top: 12px; }
/* "לחידות נוספות" at the bottom; once the solution card shows, its own links take over. */
.rd .rmore { margin: 6px 0 14px; text-align: center; font-size: 15px; }
.rd .rmore a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; color: var(--navy, #0D2A4C); }
.rd section.done:not([hidden]) + .rmore { display: none; }
/* The "היום לפני" block in the solution card (after a solve only). */
.rd .tbx { margin: 14px 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--cream, #F8F5EE); border-inline-start: 4px solid var(--gold, #CCA667); text-align: start; }
.rd .tbx__k { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 800; font-size: 15px; color: var(--burgundy, #5D1832); }
.rd .tbx__k img { width: 22px; height: auto; }
.rd .tbx__t { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.rd .tbx__pic { display: block; width: 100%; height: auto; margin: 8px 0; border-radius: 10px; }
.rd .tbx__s { margin: 0 0 8px; font-size: 13px; color: #555; }
.rd .tbx__s a { color: inherit; }
.rd .tbx__go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--navy, #0D2A4C); }
