/* V60 — ONE authoritative stylesheet for the approved home artwork.
   No older V55–V59 stylesheet is loaded. Every hotspot stays a real button.
   Artwork is NEVER stretched or cropped; browser/wide-screen surround is ambience. */
html:has(body.home-screen) {
  height:100%!important;
  overflow:hidden!important;
  background:#160c0a!important;
}
body.home-screen {
  position:fixed!important;inset:0!important;
  box-sizing:border-box!important;
  width:100%!important;height:100vh!important;height:100dvh!important;
  min-height:0!important;margin:0!important;padding:0!important;
  overflow:hidden!important;overscroll-behavior:none!important;
  background:#160c0a!important;background-image:none!important;
}
body.home-screen main {
  position:relative!important;isolation:isolate!important;
  box-sizing:border-box!important;width:100%!important;max-width:none!important;
  height:100vh!important;height:100dvh!important;min-height:0!important;
  max-height:100dvh!important;margin:0!important;padding:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  overflow:hidden!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;background:#160c0a!important;
}
/* Soft continuation of the SAME art on displays wider than the portrait artwork.
   It fills spare space without stretching any faces in the foreground art. */
body.home-screen main::before {
  content:''!important;pointer-events:none!important;
  position:absolute!important;inset:-40px!important;z-index:-1!important;
  background-image:linear-gradient(180deg,#10090899,#20120a2e,#120807bb),url('./approved-saudi-home.png')!important;
  background-size:cover!important;background-position:center center!important;
  filter:blur(42px) brightness(.48) saturate(.67)!important;
  transform:scale(1.06)!important;opacity:.90!important;
}
body.home-screen main::after {content:none!important;display:none!important}
body.home-screen .top,body.home-screen .footer,
body.home-screen #hima-splash {display:none!important}
body.home-screen #app {
  box-sizing:border-box!important;display:flex!important;flex:1 1 auto!important;
  align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;max-width:none!important;
  max-height:100%!important;min-height:0!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
  background:transparent!important;
}
body.home-screen #app .approved-home {
  position:absolute!important;display:block!important;flex:0 0 auto!important;
  left:50%!important;top:50%!important;
  box-sizing:border-box!important;
  /* Content-aware fit: trim ONLY empty outer picture margins on short viewports.
     The title, faces, two top icons and five action buttons remain visible. */
  width:min(100vw,50.833dvh)!important;
  height:min(216.178vw,109.89dvh)!important;
  max-width:100vw!important;max-height:none!important;
  min-width:0!important;min-height:0!important;
  aspect-ratio:853 / 1844!important;
  padding:0!important;margin:0 auto!important;
  overflow:hidden!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:#160c0a!important;mask-image:none!important;-webkit-mask-image:none!important;
  transform:translate(-50%,-47.4%)!important;line-height:0!important;direction:ltr!important;
}
body.home-screen #app .approved-home > img.approved-home-art {
  position:absolute!important;inset:0!important;display:block!important;
  width:100%!important;height:100%!important;min-height:0!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center center!important;
  padding:0!important;margin:0!important;border:0!important;
  transform:none!important;pointer-events:none!important;
  user-select:none!important;-webkit-user-select:none!important;
}
/* Exact coordinates measured from 853x1844 approved artwork. */
body.home-screen #app .approved-home .approved-hotspot {
  position:absolute!important;display:block!important;z-index:10!important;
  box-sizing:border-box!important;padding:0!important;margin:0!important;
  border:0!important;outline:0!important;
  min-height:0!important;min-width:0!important;
  background:transparent!important;background-image:none!important;
  box-shadow:none!important;filter:none!important;text-shadow:none!important;
  color:transparent!important;font-size:0!important;line-height:0!important;
  transform:none!important;touch-action:manipulation!important;
  cursor:pointer!important;-webkit-appearance:none!important;appearance:none!important;
}
body.home-screen #app .approved-home #homeSettings.approved-settings {
  left:6.55%!important;right:auto!important;top:6.22%!important;
  width:11.50%!important;height:5.32%!important;border-radius:50%!important;
}
body.home-screen #app .approved-home #homeProfile.approved-profile {
  left:auto!important;right:6.30%!important;top:6.22%!important;
  width:11.50%!important;height:5.32%!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  overflow:hidden!important;border-radius:50%!important;
  background:transparent!important;
}
/* No duplicate gold ring: retain the original border photographed in the artwork.
   The child covers ONLY the original golden person glyph, inside the existing ring. */
body.home-screen #app .approved-home #homeProfile.approved-profile > .v17-home-avatar {
  display:block!important;position:relative!important;flex:0 0 auto!important;
  box-sizing:border-box!important;
  width:86%!important;height:86%!important;
  max-width:86%!important;max-height:86%!important;
  min-width:0!important;min-height:0!important;
  padding:0!important;margin:0!important;
  border:0!important;border-radius:50%!important;
  background:#1d100e!important;box-shadow:none!important;
  overflow:hidden!important;transform:none!important;
  object-fit:cover!important;object-position:50% 50%!important;
  visibility:visible!important;opacity:1!important;pointer-events:none!important;
}
body.home-screen #app .approved-home #homeProfile.approved-profile > span.v17-home-avatar {
  display:grid!important;place-items:center!important;
  font-size:clamp(16px,3.25vw,28px)!important;line-height:1!important;
  color:#e5bf7e!important;
}
body.home-screen #app .approved-home #homeSettings::before,
body.home-screen #app .approved-home #homeSettings::after,
body.home-screen #app .approved-home #homeProfile::before,
body.home-screen #app .approved-home #homeProfile::after {
  content:none!important;display:none!important;
}
body.home-screen #app .approved-home #online.approved-play {
  left:4.40%!important;right:auto!important;top:64.40%!important;
  width:91.50%!important;height:7.35%!important;border-radius:32px!important;
}
body.home-screen #app .approved-home #help.approved-help {
  left:4.50%!important;right:auto!important;top:73.80%!important;
  width:43.40%!important;height:6.60%!important;border-radius:18px!important;
}
body.home-screen #app .approved-home #scores.approved-scores {
  right:4.50%!important;left:auto!important;top:73.80%!important;
  width:43.40%!important;height:6.60%!important;border-radius:18px!important;
}
body.home-screen #app .approved-home #inviteHome.approved-invite {
  left:4.50%!important;right:auto!important;top:82.00%!important;
  width:43.40%!important;height:6.60%!important;border-radius:18px!important;
}
body.home-screen #app .approved-home #aboutHome.approved-about {
  right:4.50%!important;left:auto!important;top:82.00%!important;
  width:43.40%!important;height:6.60%!important;border-radius:18px!important;
}
body.home-screen #app .approved-home .approved-hotspot:focus-visible {
  outline:2px solid #f4d69c!important;outline-offset:-2px!important;
}
body.home-screen #app > #resume {
  position:fixed!important;z-index:30!important;
  bottom:calc(env(safe-area-inset-bottom) + 6px)!important;
  left:50%!important;transform:translateX(-50%)!important;
  width:min(84vw,400px)!important;margin:0!important;
  min-height:40px!important;max-height:46px!important;
}
@supports not (height:100dvh) {
  body.home-screen,body.home-screen main{height:100vh!important;max-height:100vh!important}
  body.home-screen #app .approved-home{
    width:min(100vw,50.833vh)!important;
    height:min(216.178vw,109.89vh)!important;
  }
}
/* END V60 */
