/* Writing Remix art (Phase 3). Each rule only turns on after its picture has loaded (html.art-<id>). */

/* big background behind the screen (start, lobby, podium) */
.artbg{position:fixed;inset:0;z-index:0;pointer-events:none;background:center/cover no-repeat;opacity:0;transition:opacity .6s ease}
.artbg.on{opacity:1}
@media (prefers-reduced-motion: reduce){.artbg{transition:opacity .25s ease}}

/* logo picture in place of the drawn title (the words stay for screen readers) */
.logo.has-art .vinyl{display:none}
.logo.has-art .title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.logoart{display:block;width:min(92vw,680px);height:auto;max-height:44vh;object-fit:contain;margin:0 auto;filter:drop-shadow(0 14px 30px #0009);animation:logobob 4s ease-in-out infinite}
@media(min-width:1000px){.logoart{width:100%;max-width:720px;max-height:56vh}}
@media(min-width:1600px) and (min-height:900px){.logoart{max-width:860px}}
@media(max-width:600px){.logoart{max-height:24vh;width:auto;max-width:92vw}}
@keyframes logobob{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-8px) rotate(1deg)}}
@media (prefers-reduced-motion: reduce){.logoart{animation-duration:8s}}
.logo.has-art .tag{margin-top:6px}
/* teacher gate (teacher page) keeps the logo a bit smaller so the code box fits */
body.teacher .logoart{max-height:38vh}

/* projector top bar logo */
.tb-logo.has-art{font-size:0;line-height:0;text-shadow:none}
.tb-logo.has-art b{display:none}
.tblogoart{height:clamp(40px,6.2vh,72px);width:auto;display:block;filter:drop-shadow(0 3px 6px #0008)}

/* corkboard behind the post-it wall */
html.art-corkboard .wall{background:#b9803f url(art/corkboard.webp) center/cover no-repeat;border-color:#5a3410}

/* sticky note paper look, tinted by each note's own color */
html.art-postit-paper .pi,
html.art-postit-paper .zbox,
html.art-postit-paper .vbox{background-image:url(art/postit-paper.webp);background-size:cover;background-position:center;background-blend-mode:multiply}

/* the Canned! badge picture on the podium */
.pod .badge.badgeart{background:none;border:0;padding:0;box-shadow:none;margin-bottom:2px;line-height:0}
.badgeimg{width:clamp(60px,6.5vw,118px);height:auto;display:block;filter:drop-shadow(0 4px 8px #0009);animation:badgepop .7s cubic-bezier(.3,1.6,.5,1) both;animation-delay:1.4s}
@keyframes badgepop{from{transform:scale(.2) rotate(-30deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}
@media (prefers-reduced-motion: reduce){.badgeimg{animation-duration:.35s;animation-delay:.3s}}

/* side tab icons */
.tab .tabicon{width:34px;height:34px;display:inline-block;vertical-align:middle;margin-inline-end:8px;filter:drop-shadow(0 2px 3px #0006)}
.tab.l .tabicon{transform:rotate(180deg)}
@media(max-width:600px){.tab .tabicon{width:26px;height:26px;margin-inline-end:6px}.tab.l .tabicon{transform:none}}

/* comic panels with her art: hide the stand-in emoji props, keep the top of the scene in view */
.panel.hasart .prop{display:none}
.panel.hasart{background-position:center top,0 0,center}

/* kid avatar pictures (Dec 6, 2026): sized by the emoji's font size, so every screen scales the same way */
img.avaimg{display:block;width:1.45em;height:1.45em;object-fit:contain;filter:drop-shadow(0 4px 0 #0006);pointer-events:none}
.ava b.has-ava{line-height:0}
.avgrid button.has-ava{display:grid;place-items:center;padding:4px;font-size:44px}
.avgrid button.has-ava img.avaimg{width:100%;height:auto;max-width:96px;aspect-ratio:1}
.pod .who.has-ava{line-height:0;display:grid;place-items:center}
.pod .who.has-ava img.avaimg{width:1.6em;height:1.6em}
#qMe b.has-ava img.avaimg,#vMe b.has-ava img.avaimg,#sMe b.has-ava img.avaimg{display:inline-block;vertical-align:middle;width:1.4em;height:1.4em;margin-right:.25em}
.avgrid{grid-template-columns:repeat(auto-fill,minmax(clamp(68px,9vw,112px),1fr))}
