/* Comic-strip pictures for the new practice papers */
.comic-page { font-family: "Comic Sans MS", "Segoe UI", Arial, sans-serif; color: #1d2433; }
.comic-title { font-weight: 800; font-size: 20px; text-align: center; letter-spacing: .5px; margin: 0 0 6px; color: #7a2d8c; }
.comic-narr { margin: 0 0 10px; padding: 10px 14px; background: #fff8e1; border: 2px solid #f0c75e; border-radius: 10px; font-size: 16px; line-height: 1.5; }
.comic-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .comic-row { grid-template-columns: 1fr; } }

.cpanel { position: relative; aspect-ratio: 4 / 3; border: 3px solid #222; border-radius: 6px; overflow: hidden; container-type: inline-size;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", sans-serif; }
.ci { position: absolute; line-height: 1; white-space: nowrap; user-select: none; }
.ci.gold { filter: sepia(1) saturate(7) hue-rotate(-12deg) brightness(1.08); }
.cnum { position: absolute; right: 5px; bottom: 5px; z-index: 9; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #222;
  font: 700 14px/22px "Segoe UI", Arial, sans-serif; text-align: center; color: #222; }

/* speech bubbles */
.cb { position: absolute; z-index: 8; background: #fff; border: 2px solid #222; border-radius: 14px; padding: 4px 7px;
  font: 700 max(12px, 3.6cqw)/1.2 "Comic Sans MS", "Segoe UI", sans-serif; color: #111; text-align: center; }
.cb::after { content: ""; position: absolute; bottom: -10px; width: 14px; height: 14px; background: #fff; border-right: 2px solid #222; border-bottom: 2px solid #222; transform: rotate(45deg) skew(8deg, 8deg); }
.cb.tail-c::after { left: calc(50% - 7px); }
.cb.tail-l::after { left: 14px; }
.cb.tail-r::after { right: 14px; }
.cb.tail-n::after { display: none; }
.cb.sfx { background: #ffe14d; border-color: #d43; color: #d43; font-size: max(14px, 6.5cqw); letter-spacing: 1px; border-radius: 6px; transform: rotate(-6deg);
  width: max-content !important; white-space: nowrap; padding: 3px 10px; }

/* shapes */
.cs { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.cs.cave-door { background: radial-gradient(ellipse at 50% 100%, #000 55%, #2b1a0c 100%); border-radius: 50% 50% 4px 4px / 70% 70% 4px 4px; }
.cs.poster { background: #fbefc8; border: 3px solid #8a5a1e; box-shadow: 2px 3px 0 rgba(0,0,0,.3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  font-family: "Comic Sans MS", "Segoe UI", sans-serif; color: #5a3200; padding: 4px; }
.cs.poster b { font-size: 6cqw; line-height: 1.05; color: #b31d1d; }
.cs.poster span { font-size: 4cqw; font-weight: 700; line-height: 1.15; }
.cs.poster i { font-style: normal; font-size: 8cqw; filter: sepia(1) saturate(7) hue-rotate(-12deg); }

/* backgrounds */
.bg-outdoor { background: linear-gradient(#8fd3ff 0 62%, #78c850 62% 100%); }
.bg-road { background: linear-gradient(#a7dcff 0 58%, #7cc95a 58% 100%); }
.bg-road::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6%; height: 18%; background: #e2c48f; }
.bg-village { background: linear-gradient(#b5e2ff 0 60%, #c9b27c 60% 100%); }
.bg-forest { background: linear-gradient(#bfe7c1 0 55%, #4f9a3c 55% 100%); }
.bg-indoor { background: linear-gradient(#f7e3c0 0 68%, #b07a45 68% 100%); }
.bg-castle-in { background: repeating-linear-gradient(0deg, transparent 0 24px, rgba(0,0,0,.06) 24px 26px), linear-gradient(#c9c4bd 0 70%, #8d2f2f 70% 100%); }
.bg-clouds { background: linear-gradient(#cfe9ff 0 66%, #fff 66% 100%); }
.bg-clouds::before { content: ""; position: absolute; left: -5%; right: -5%; top: 58%; height: 16%; background: radial-gradient(circle at 10% 60%, #fff 35%, transparent 36%), radial-gradient(circle at 30% 50%, #fff 40%, transparent 41%), radial-gradient(circle at 55% 60%, #fff 38%, transparent 39%), radial-gradient(circle at 80% 50%, #fff 40%, transparent 41%); }
.bg-market { background: linear-gradient(#ffd9a0 0 60%, #e8c27a 60% 100%); }
.bg-desert { background: linear-gradient(#ffe2a8 0 58%, #f2c46b 58% 100%); }
.bg-cave { background: radial-gradient(ellipse at 50% 45%, #8b5a2b 0%, #4a2c12 70%, #2a1808 100%); }
.bg-cave-dark { background: radial-gradient(circle at 45% 60%, #3a2a1a 0%, #120b05 60%, #000 100%); }
.bg-palace { background: linear-gradient(#e5d4ff 0 62%, #f4f1ea 62% 100%); }
.bg-sky { background: linear-gradient(#5fb4ff, #cfeaff); }
.bg-party { background: radial-gradient(circle at 20% 30%, #ff8fb1 2px, transparent 3px) 0 0 / 28px 28px, radial-gradient(circle at 70% 60%, #7bd3ff 2px, transparent 3px) 0 0 / 34px 34px, linear-gradient(#fff3c4 0 66%, #9ad16b 66% 100%); }
