/* Each wordmark shares measured letter height; ornaments use the SAME two PNGs. */
html body #play-selection-heading img,html body .album-title img,html body #screen-profile .profile-logo,html body #screen-profile [data-profile-part="logo"]{visibility:hidden!important;}
html body .sw-sublogo{position:absolute!important;left:50%!important;top:64px!important;height:70px!important;transform:translate(-50%,-50%)!important;pointer-events:none!important;z-index:4;display:block!important;}
html body .sw-sublogo img{position:absolute!important;display:block!important;max-width:none!important;max-height:none!important;object-fit:contain!important;visibility:visible!important;margin:0!important;padding:0!important;}
html body .sw-sublogo-text{left:47px!important;}
html body .sw-sublogo-star{left:0!important;top:0!important;width:58px!important;height:58px!important;}
html body .sw-sublogo-heart{right:0!important;top:5px!important;width:58px!important;height:58px!important;}
html body #game-category-dialog:not([data-step="modes"]) .sw-sublogo-play{display:none!important;}
@media(min-width:700px) and (orientation:landscape){html body .sw-sublogo{top:52px!important;}}
@media(max-width:699px){html body .sw-sublogo{top:38px!important;transform:translate(-50%,-50%) scale(.64)!important;}}

html body #screen-profile.profile-canva-active>.sw-sublogo.sw-sublogo-profile{display:block!important;visibility:visible!important;}

/* 2px letter tracking at rendered size, including the phone scale. */
html body .sw-sublogo{--sublogo-tracking:2px;}
@media(max-width:699px){html body .sw-sublogo{--sublogo-tracking:3.125px;}}

/* Play & Learn is the letter-scale reference. The PNG canvases share
   dimensions but the artwork uses different amounts of the canvas. */
html body .sw-sublogo {
  width: 834px !important;
  height: 125px !important;
  top: 0 !important;
  transform: translateX(-50%) scale(var(--sublogo-scale, 1)) !important;
  transform-origin: top center !important;
}
html body .sw-sublogo .sw-sublogo-star { display: none !important; }
html body .sw-sublogo .sw-sublogo-text {
  left: var(--sublogo-left) !important;
  top: var(--sublogo-top) !important;
  width: var(--sublogo-width) !important;
  height: calc(var(--sublogo-width) / 3) !important;
}
.sw-sublogo-play { --sublogo-left: 231.8665px; --sublogo-top: 0px; --sublogo-width: 370.2671px; --sublogo-heart-x: 584.122px; --sublogo-heart-y: 47.9962px; }
.sw-sublogo-album { --sublogo-left: 220px; --sublogo-top: -1px; --sublogo-width: 391px; --sublogo-heart-x: 596px; --sublogo-heart-y: 53px; }
.sw-sublogo-profile { --sublogo-left: 263px; --sublogo-top: 9px; --sublogo-width: 306px; --sublogo-heart-x: 565px; --sublogo-heart-y: 50px; }
.sw-sublogo-buddy { --sublogo-left: 286px; --sublogo-top: 16px; --sublogo-width: 260px; --sublogo-heart-x: 539px; --sublogo-heart-y: 50px; }
html body .sw-sublogo .sw-sublogo-heart {
  top: var(--sublogo-heart-y) !important;
  left: var(--sublogo-heart-x) !important;
  right: auto !important;
  width: 45.6857px !important;
  height: 45.6857px !important;
  transform: rotate(7.7deg) !important;
}
@media (max-width: 699px) { html body .sw-sublogo { --sublogo-scale: .64; } }
@media (min-width: 700px) and (orientation: landscape) { html body .sw-sublogo { --sublogo-scale: .8; } }

/* Play colour only. Midpoint in encoded RGB: 0.78 * source + 0.22 white;
   alpha, source PNG, word spacing and all layer geometry stay unchanged. */
html body .sw-sublogo-play .sw-sublogo-text,
html body .sw-sublogo-album .sw-sublogo-text,
html body .sw-sublogo-profile .sw-sublogo-text,
html body .sw-sublogo .sw-sublogo-heart{filter:contrast(0.6393442623) brightness(1.22);}
/* Buddy's approved PNG already has the lighter palette. Undo half of that
   existing white mix to match the approved midpoint, without adding more white. */
html body .sw-sublogo-buddy .sw-sublogo-text{filter:brightness(0.78) contrast(1.7857142857);}

/* Keep a semantic heading underneath the decorative approved wordmark. */
html body #screen-my-buddy .buddy-header:has(>.sw-sublogo-buddy)>h1{color:transparent!important;}
