/* Scan a ticket (scan.js) and the "Print blank tickets" links. Bold look: white cards, chunky shadows, Fredoka. */
.tlink { display: inline-block; align-self: center; margin-top: 14px; font: 600 15px Fredoka, sans-serif; color: var(--ink); text-decoration: none; background: rgba(255,255,255,.7); padding: 8px 14px; border-radius: 999px; box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.tlink.home { display: table; margin: 18px auto 8px; padding: 4px 8px; font: 500 13px Fredoka, sans-serif; color: var(--ink); opacity: .6; background: none; box-shadow: none; text-decoration: underline; }
.what .tlink { display: table; margin: 14px auto 0; background: var(--paper); box-shadow: 0 3px 0 var(--line); }
.wcard.scanc { flex-direction: row; justify-content: flex-start; text-align: left; width: 100%; margin: 0 0 14px; padding: 14px 16px; gap: 14px; }
.wcard.scanc .ar { margin-left: auto; font-size: 26px; opacity: .35; }
.door.scand .ic { background: #e6f7ee; }
.door.scand { animation-delay: .03s; }
.wcard.scanc .sic, .snap .sic { width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: #e6f7ee; }

.scan .snap { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 28px 18px; border-radius: 26px; background: #fff; cursor: pointer; border: 3px dashed var(--line); box-shadow: 0 7px 0 #e3b62c; animation: pop .45s both; transition: transform .12s, box-shadow .12s; }
.scan .snap:active { transform: translateY(5px); box-shadow: 0 2px 0 #e3b62c; }
.scan .snap .sic { width: 76px; height: 76px; font-size: 40px; border-radius: 24px; }
.scan .snap b { font: 700 21px Fredoka, sans-serif; }
.scan .snap small { font-weight: 800; font-size: 13px; color: var(--muted); max-width: 300px; }
.scanfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.scanfoot .tlink { margin-top: 0; }

.reading-photo { position: relative; align-self: center; width: min(300px, 80%); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 6px #fff, 0 18px 30px -16px rgba(80,40,0,.55); transform: rotate(-2deg); }
.reading-photo img { display: block; width: 100%; }
.reading-photo .beam { position: absolute; left: 0; right: 0; height: 28%; background: linear-gradient(180deg, rgba(255,207,74,0), rgba(255,207,74,.55) 70%, rgba(255,90,78,.7)); animation: beam 1.8s ease-in-out infinite alternate; }
@keyframes beam { from { top: -28%; } to { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .reading-photo .beam { animation: none; top: 40%; opacity: .5; } }

.readcard { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; background: #fff; border-radius: 22px; padding: 12px; box-shadow: 0 5px 0 var(--line), 0 0 0 2px var(--line) inset; animation: pop .4s both; }
.readcard .ph { width: 100%; border-radius: 12px; transform: rotate(-2deg); box-shadow: 0 6px 12px -6px rgba(0,0,0,.4); }
.readcard .dk, .planned .dk { margin: 0 0 6px; font-weight: 800; font-size: 13px; color: var(--muted); }
.readcard ol { margin: 0; padding-left: 20px; font: 500 17px/1.35 Fredoka, sans-serif; }
.readcard li::marker { color: var(--coral); font-weight: 700; }
.readcard details { margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.readcard summary { cursor: pointer; }
.readcard .hw { margin: 4px 0 0; font: 500 15px/1.4 'Comic Sans MS', 'Chalkboard SE', Fredoka, sans-serif; color: var(--ink); }
.readcard .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.readcard .tags span { font-weight: 800; font-size: 13px; background: #fff4d6; border-radius: 999px; padding: 4px 10px; }

.star { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 22px; padding: 10px 14px; margin-top: 12px; box-shadow: 0 5px 0 var(--line), 0 0 0 2px var(--line) inset; }
.star .sface { width: 58px; height: 58px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff4d6; }
.star .sface .kidface, .star .sface svg, .kp .kidface, .kp svg { width: 100%; height: 100%; display: block; margin: 0; }
.star .sface.q { font: 700 28px Fredoka, sans-serif; color: var(--muted); }
.star small { display: block; font-weight: 800; font-size: 12px; color: var(--muted); }
.star b { font: 700 20px Fredoka, sans-serif; }
.star .skip { margin-left: auto; }
.star .go { margin: 0 0 0 auto; padding: 9px 16px; font-size: 15px; }
.star.none .go + .skip { margin-left: 4px; }
.kidpick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kidpick[hidden] { display: none; }
.kp { display: flex; align-items: center; gap: 8px; border: 0; background: #fff; border-radius: 16px; padding: 6px 12px 6px 6px; box-shadow: 0 3px 0 var(--line), 0 0 0 2px var(--line) inset; }
.kp > .kidface, .kp > svg { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.kp.on { box-shadow: 0 3px 0 var(--line), 0 0 0 3px var(--ink) inset; }
.kp.add span { width: 36px; height: 36px; display: grid; place-items: center; font-size: 20px; }
.scan .decided { margin-top: 14px; }
.planned { margin-top: 14px; }
.planned .prow { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; }
.pthumb { flex: none; width: 92px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px #fff, 0 6px 12px -6px rgba(0,0,0,.35); }
.pthumb svg { display: block; width: 100%; height: auto; }
.scan > .go.big { margin-top: 16px; }
.scan.busy .readcard, .scan.busy .planned { opacity: .5; }
.pstack { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 6px 0 4px; }
.pstack .pq { position: relative; width: 120px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #fff; transform: rotate(var(--r, 0deg)); box-shadow: 0 0 0 5px #fff, 0 12px 20px -10px rgba(80,40,0,.5); animation: pop .4s both; }
.pstack .pq img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pstack .pq b { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 13px Fredoka, sans-serif; }
.pstack .more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; border: 3px dashed var(--line); box-shadow: 0 6px 0 #e3b62c; transform: none; }
.pstack .more span { font: 700 34px Fredoka, sans-serif; color: var(--coral); }
.pstack .more small { font-weight: 800; font-size: 13px; color: var(--muted); }
.scan > .go.big#readGo { align-self: center; }
.reading-photo .pn { position: absolute; right: 8px; top: 8px; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 9px; font: 600 14px Fredoka, sans-serif; }
.readcard .phs { display: grid; gap: 8px; }
.who .readcard { margin-bottom: 14px; }
.tix .tpic { display: grid; place-items: center; overflow: hidden; background: #fff; font-size: 30px; }
.tix .tpic img { width: 100%; height: 100%; object-fit: cover; }
.readcard .dk2 { margin-top: 10px; }
.readcard .tdec { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.readcard .tdec li { background: #e6f7ee; border-radius: 10px; padding: 4px 9px; font-weight: 800; font-size: 13px; box-shadow: 0 2px 0 #97d7b8; }
