/* Logo colour tokens (Designer Bot, logo-font v1).
   Kept on :root only so the theme recolour pass does not invert them on Night Aarti.
   Official orange / ink / cream stay the same in every theme. */
:root{
  --logo:#CC7704;
  --logo-ink:#A35C00;
  --logo-cream:#F3EEE6;
}

/* UX Phase 5: KVK app logo. Responsive 317–1920 px. No motion on the logo except fades.
   Reduced motion and Kids: fades only (or none). The artwork itself is never animated. */
#boot-splash{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;background:#E9ECF0;margin:0;transition:opacity .28s ease}
#boot-splash img{width:min(300px,70vw);height:auto;display:block}
#boot-splash.out{opacity:0;pointer-events:none}
html.rm #boot-splash,html.calm #boot-splash,html.kidsm #boot-splash{transition:opacity .16s linear}
@media (prefers-reduced-motion:reduce){#boot-splash{transition:opacity .16s linear}}

.brand-logo{display:block;width:min(220px,72vw);height:auto;margin:0 auto;max-width:100%;animation:none}
.brand-logo-opening{width:min(180px,64%);margin:2px auto 8px;border-radius:12px}
.brand-logo-about{width:min(220px,70vw);margin:8px auto 10px;border-radius:14px}
@media (min-width:768px){
  .brand-logo{width:min(280px,36vw)}
  .brand-logo-opening{width:min(220px,56%)}
  .brand-logo-about{width:min(260px,32vw)}
  #boot-splash img{width:min(340px,40vw)}
}
@media (min-width:1280px){
  .brand-logo{width:min(320px,24vw)}
  .brand-logo-opening{width:min(240px,48%)}
  .brand-logo-about{width:min(280px,22vw)}
  #boot-splash img{width:min(360px,28vw)}
}
@media (max-width:360px){
  .brand-logo,.brand-logo-about{width:min(168px,78vw)}
  .brand-logo-opening{width:min(150px,70%)}
}
/* Never bounce, spin or Ken-Burns the logo. Fades (boot splash, opening card) are the only motion. */
.brand-logo,img.splash-logo,#boot-splash img{animation:none!important;transform:none!important}
html.rm .brand-logo,html.calm .brand-logo,html.kidsm .brand-logo{animation:none!important}
@media (prefers-reduced-motion:reduce){.brand-logo,img.splash-logo,#boot-splash img{animation:none!important;transform:none!important}}
.brand-about{text-align:center;margin:8px 22px 0}

/* Traced Game of Temples wordmark (inline SVG, currentColor). Never animates on its own; fades only with its parent.
   Colour is set on the placement wrapper and inherited; .wm-logo does not force orange, so journal ink can win. */
.wm-wrap{display:block;margin:0 auto;line-height:0;color:inherit}
.wm-wrap svg{display:block;width:100%;height:auto;color:inherit;fill:currentColor}
.wm-logo,.fr-parch .mark,.op-cap,.jr-cover .jr-wm{animation:none!important;transform:none!important}

/* Begin the yatra parchment: 190 px at 390+, 160 px (the orange floor) at 317. Cream paper, even in Night Aarti, so orange. */
.fr-parch .mark,.fr-parch .mark .wm-logo,.fr-parch .mark svg{font:inherit;letter-spacing:0;text-transform:none;color:var(--logo)}
.fr-parch .mark{width:190px;margin:6px auto 8px}
/* Opening arrival, under the torana: 200 px at 390+, 170 px at 317. Hidden at short heights, unchanged. */
.op-cap,.op-cap .wm-logo,.op-cap svg{font:inherit;letter-spacing:0;text-transform:none;text-align:center;color:var(--logo)}
.op-cap{width:200px;margin:10px auto 0}
/* Journal cover: 150 px in logo ink (below the 160 px orange floor); 130 px at 317. */
.jr-cover .jr-wm,.jr-cover .jr-wm .wm-logo,.jr-cover .jr-wm svg{color:var(--logo-ink);font:inherit;letter-spacing:0;text-transform:none}
.jr-cover .jr-wm{width:150px;margin:0 auto 10px;color:var(--logo-ink)}

@media (max-width:360px){
  .fr-parch .mark{width:160px}
  .op-cap{width:170px}
  .jr-cover .jr-wm{width:130px;color:var(--logo-ink)}
}
/* At 520 px, keep the 390 sizes (no extra bump). */

/* Night Aarti: cream on dark fills (arrival sky and the parchment card, which the dark-theme
   recolour pass turns dark), never orange there. Peacock Teal is a light theme: orange/ink
   on cream paper, not cream. The journal cover in Night Aarti currently renders as a light
   panel (pre-existing recolour of the aarti override), so it keeps logo ink for contrast. */
html[data-theme=aarti] .op-cap,
html[data-theme=aarti] .op-cap .wm-logo,
html[data-theme=aarti] .op-cap svg,
html[data-theme=aarti] .fr-parch .mark,
html[data-theme=aarti] .fr-parch .mark .wm-logo,
html[data-theme=aarti] .fr-parch .mark svg,
html[data-theme=aarti] .wm-logo{color:var(--logo-cream)}
html[data-theme=aarti] .jr-cover .jr-wm,
html[data-theme=aarti] .jr-cover .jr-wm .wm-logo,
html[data-theme=aarti] .jr-cover .jr-wm svg{color:var(--logo-ink)}

@media (prefers-reduced-motion:reduce){
  .wm-wrap,.wm-logo,.fr-parch .mark,.op-cap,.jr-cover .jr-wm{animation:none!important;transform:none!important}
}
html.rm .wm-wrap,html.calm .wm-wrap,html.kidsm .wm-wrap{animation:none!important;transform:none!important}
