/* Mascot cast (v1.1.6). Loaded after main.css. */
.awk-mascot{display:block;max-width:100%;height:auto}
.awk-mstage{position:relative;display:flex;align-items:flex-end;justify-content:center;width:100%;aspect-ratio:1/.9}
.awk-mstage:before{content:"";position:absolute;left:12%;right:12%;top:8%;bottom:4%;border-radius:50%;background:rgba(255,255,255,.28)}
.awk-mstage .awk-mascot{position:relative;width:86%;transition:transform .4s}

/* Browse by age: mascot on top, label below, nothing overlaps */
.awk-agetile{align-items:center;justify-content:flex-start;text-align:center;min-height:0;padding:14px 12px 18px;border:3px solid var(--ink)}
.awk-agetile .awk-mstage{margin-bottom:6px}
.awk-agetile b{text-shadow:0 2px 0 rgba(27,19,64,.35)}
.awk-agetile:hover .awk-mascot{transform:scale(1.07) translateY(-4px)}

/* Browse by type: mascot left, text right */
.awk-typetile{display:grid;grid-template-columns:104px 1fr;column-gap:14px;align-items:center;min-height:0;padding:14px 20px 14px 14px;border:3px solid var(--ink)}
.awk-typetile .awk-mstage{grid-row:1/3;width:104px}
.awk-typetile b{align-self:end}
.awk-typetile span{align-self:start}
.awk-typetile:hover .awk-mascot{transform:scale(1.08) rotate(-4deg)}

/* Archive hero art */
.awk-hero__art img{width:100%;height:auto;display:block}

/* Section header accent */
.awk-head__m{display:inline-block;width:1.15em;height:1.15em;margin-left:.3em;vertical-align:-.18em;transform:rotate(-6deg)}

/* Card type badge */
.awk-badge__m{display:inline-block;width:1.5em;height:1.5em;margin:-.35em .25em -.3em -.45em;vertical-align:middle}
.awk-badge--type{padding-left:8px}

/* Image-less cards and the single page gallery: mascot as the main picture, moderate size. */
.awk-emoji-tile .awk-mascot{width:min(52%,128px);height:auto;margin:0 auto;object-fit:contain}
.awk-gallery__emoji .awk-mascot{width:clamp(9rem,28vw,16rem);margin:0 auto}

/* Event fallback mascots */
.awk-ev__media img[src$='.svg']{object-fit:contain;padding:6% 10% 0;box-sizing:border-box}

/* Map pins and list icons */
.awk-pin i{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.92)}
.awk-pin i img{width:26px;height:26px;display:block}
.awk-lcard__ic{padding:6px;box-sizing:border-box}
.awk-lcard__ic img{width:100%;height:100%;display:block}

/* Empty states, 404 */
.awk-empty__mascot{width:130px;height:auto;margin:0 auto 6px;display:block}
.awk-lost{display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px 16px 10px}
.awk-lost img{width:min(240px,60vw);height:auto}
@media(prefers-reduced-motion:no-preference){.awk-empty__mascot,.awk-lost img{animation:awk-bob 3.2s ease-in-out infinite}}
@keyframes awk-bob{50%{transform:translateY(-6px)}}
.awk-minimap__empty{display:flex;align-items:center;gap:10px}
.awk-minimap__empty img{width:40px;height:40px}

/* Photo cards: never let a mascot <img> fill the photo (main.css targets every img in .awk-card__media). */
.awk-card__media .awk-badge img,
.awk-card__media .awk-card__mtag img,
.awk-card__media img.awk-badge__m{
	width:auto;height:auto;max-width:100%;object-fit:contain;transform:none
}
.awk-card:hover .awk-card__media .awk-badge img,
.awk-card:hover .awk-card__media .awk-card__mtag img,
.awk-card:hover .awk-card__media img.awk-badge__m{
	transform:none
}

/* Small round mascot tag, bottom-left of the photo, clear of Bookable and the heart. */
.awk-card__mtag{
	position:absolute;left:10px;bottom:10px;z-index:2;
	display:flex;align-items:center;justify-content:center;
	width:38px;height:38px;padding:2px;box-sizing:border-box;
	border-radius:50%;background:#fff;border:2px solid #1b1340;
	box-shadow:0 2px 0 #1b1340,0 4px 8px rgba(27,19,64,.18)
}
.awk-card__mtag .awk-mascot{width:28px;height:28px;display:block}

/* Map list cards with a photo: tiny tag in the top-left, away from the title at the bottom. */
.awk-lcard__mtag{
	position:absolute;right:8px;top:8px;left:auto;z-index:2;
	display:flex;align-items:center;justify-content:center;
	width:34px;height:34px;padding:2px;box-sizing:border-box;
	border-radius:50%;background:#fff;border:2px solid #1b1340;
	box-shadow:0 2px 0 #1b1340,0 3px 8px rgba(27,19,64,.25)
}
.awk-lcard__mtag img{width:24px;height:24px;display:block;object-fit:contain}

/* Photo must fill the 4/3 media box. height:100% loses to body.awk img{height:auto}
   (specificity 0,1,2), so the image keeps its intrinsic ratio and a strip of
   the colour wash shows at the bottom. Position it to fill the aspect-ratio box. */
body.awk .awk-card__media > img{
	position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;display:block
}
