/* Artwork dimensions are relative to the actual app width and retain the source ratio. */
#app.v85-app {
  --navigation-clearance: calc(92px + env(safe-area-inset-bottom, 0px));
  padding-bottom: var(--navigation-clearance) !important;
}
#app.v85-app > .container,
#app.v85-app :is(#childView,#treasureView,#historyView,#calendarView,#parentView,#pinView,#designView) {
  padding-bottom: 12px !important;
}
#app.v85-app #v85-parent-plan { padding-bottom: 12px !important; }
#app.v85-app[data-page="child"] #childView .main { padding-bottom: 5px !important; }
html { scroll-padding-bottom: calc(94px + env(safe-area-inset-bottom,0px)); }

#app.v85-app:is([data-page="child"],[data-page="treasure"],[data-page="history"]) > .container::before {
  height: auto;
  aspect-ratio: var(--art-ratio, 941 / 500);
  background-size: 100% auto;
  background-position: center top;
  clip-path: none;
  mask-image:
    linear-gradient(transparent 8.5%, black 13%, black 73%, transparent 100%),
    linear-gradient(90deg, black 19%, transparent 27%, transparent 73%, black 81%);
  mask-composite: intersect;
}
#app.v85-app[data-page="treasure"] > .container::before { --art-ratio: 941 / 530; }
#app.v85-app[data-page="history"] > .container::before { --art-ratio: 941 / 460; }
#app.v85-app[data-page="parent"] > .container::before {
  height: auto;
  aspect-ratio: 941 / 245;
  background-position: center top;
  clip-path: none;
  mask-image:
    linear-gradient(transparent 16.5%, black 23%, black 67%, transparent 100%),
    linear-gradient(90deg, black 22%, transparent 32%, transparent 73%, black 82%);
  mask-composite: intersect;
}
#app.v85-app:is([data-page="child"],[data-page="treasure"],[data-page="history"],[data-page="parent"]) .brand {
  padding-block: 6px !important;
  margin-bottom: 2px !important;
  height: clamp(93px, 25vw, 144px) !important;
}
#app.v85-app:is([data-page="child"],[data-page="treasure"],[data-page="history"],[data-page="parent"]) .brand .official-logo {
  width: min(47vw, 262px) !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
#app.v85-app .v111-heading h1 { text-wrap: balance; }
#app.v85-app .v111-heading p { text-wrap: balance; }
#app.v85-app #historyView .v85-result-hero > img {
  height: clamp(62px, 17vw, 100px) !important;
  object-fit: contain !important;
}
#app.v85-app #historyView .v111-achievement-stats {
  margin-inline: 6px;
  margin-top: -8px;
  padding-top: 11px;
}
#app.v85-app #historyView .v111-comparison { margin-bottom: 12px; }
#app.v85-app #treasureView .v113-chest-art {
  width: clamp(92px, 28vw, 140px);
  border-radius: 22%;
}
#app.v85-app #treasureView .v111-treasure-heading { padding-bottom: 8px; }
#app.v85-app #treasureView .v109-tier { display: grid; grid-template-rows: auto auto 1fr auto auto; }
#app.v85-app #treasureView .v109-tier .tier-status { min-height: 24px; display: grid; place-items: center; }
#app.v85-app #treasureView .v109-tier .tier-name { align-self: start; }
#app.v85-app #treasureView .v85-prize-note { margin-bottom: 5px !important; }

#app.v85-app .v85-bottom-nav {
  height: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  min-height: 0 !important;
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
}
#app.v85-app .v85-bottom-nav button {
  min-width: 0;
  min-height: 44px;
  font-size: clamp(10px, 3.05vw, 14px) !important;
}
#app.v85-app #v85-parent-plan .v106-save-footer {
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
}

#app.v85-app:is([data-page="child"],[data-page="treasure"],[data-page="history"],[data-page="parent"]) .v85-topactions {
  top: 5px !important;
  left: 5px !important;
  right: 5px !important;
}
#app.v85-app:is([data-page="child"],[data-page="treasure"],[data-page="history"],[data-page="parent"]) .v85-topactions button {
  width: 44px !important;
  height: 44px !important;
  font-size: 18px !important;
  border: 1px solid #f8deff8c !important;
  border-radius: 50% !important;
  background: #321068bd !important;
}
#app.v85-app #historyView .v111-comparison .v85-chart-track span.v85-color-0 {
  background: linear-gradient(#fff080,#ffbc29,#ef8910) !important;
}
