/* Only the 2027 campaign lockup uses the poster-inspired display faces. */
@font-face{
 font-family:"MIVA Theme Song";src:url("assets/fonts/miva-theme-song-v277.woff") format("woff");
 font-style:normal;font-weight:700;font-display:swap;
}
body[data-page="home"] #event-theme {container-type:inline-size}
body[data-page="home"] .home-event-complete #event-theme > h2.v58-theme-title{
 position:relative;inline-size:max-content;max-inline-size:100%;
 white-space:nowrap;overflow-wrap:normal;word-break:normal;
 font:400 clamp(34px,13vw,92px)/1.2 Georgia,"Times New Roman",serif;
 font-size:min(16.4cqi,clamp(34px,13vw,92px));letter-spacing:-.055em;
 color:#f2e3c5;text-shadow:none;
}
body[data-page="home"][data-lang="zh"] .home-event-complete #event-theme > h2.v58-theme-title{
 font-family:"MIVA Theme Song","Songti SC","Noto Serif CJK SC",serif;font-weight:700;
 font-size:clamp(22px,8.3vw,62px);
 font-size:min(10.35cqi,clamp(22px,8.3vw,62px));letter-spacing:.012em;transform:skewX(-6deg);transform-origin:left center;
}
/* Reveal the glyphs alone, without a painted panel or second light layer. */
@media screen and (prefers-reduced-motion:no-preference) and (forced-colors:none) {
 body[data-page="home"].motion-on:not(.motion-paused) #event-theme > h2[data-theme-entrance]{
  animation:miva-theme-arrival-v273 1800ms cubic-bezier(.40,.12,.32,1) both!important;
 }
 body[data-page="home"].motion-on:not(.motion-paused) #event-theme > h2[data-theme-entrance="b"]{
  animation-name:miva-theme-arrival-alt-v273!important;
 }
 @supports ((mask-image:linear-gradient(#000,transparent)) or (-webkit-mask-image:linear-gradient(#000,transparent))){
  body[data-page="home"].motion-on:not(.motion-paused) #event-theme > h2[data-theme-entrance]{
   -webkit-mask:linear-gradient(90deg,#000 42%,#000c 47%,#0004 55%,transparent 62%) no-repeat 0 50%/280% 100%;
   mask:linear-gradient(90deg,#000 42%,#000c 47%,#0004 55%,transparent 62%) no-repeat 0 50%/280% 100%;
  }
 }
}
@keyframes miva-theme-arrival-v273{
 from{opacity:.80;-webkit-mask-position:100% 50%;mask-position:100% 50%}
 to{opacity:1;-webkit-mask-position:0 50%;mask-position:0 50%}
}
@keyframes miva-theme-arrival-alt-v273{
 from{opacity:.80;-webkit-mask-position:100% 50%;mask-position:100% 50%}
 to{opacity:1;-webkit-mask-position:0 50%;mask-position:0 50%}
}
@media(forced-colors:active){body[data-page="home"] #event-theme > h2{color:CanvasText;text-shadow:none}}
