/* Reserve a separate strip; the game measures #app for its rendering viewport. */
html body {
  --portfolio-strip: calc(40px + env(safe-area-inset-top, 0px));
  display: grid;
  grid-template-rows: calc(40px + env(safe-area-inset-top, 0px)) minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
body #app {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
#portfolio-return {
  position: relative;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  background: #10191e;
  border-bottom: 1px solid #a4d4bc33;
  color: #a4d4bc;
  font: 12px/1.4 system-ui, sans-serif;
  touch-action: manipulation;
}
#portfolio-return a { display: flex; align-items: center; align-self: stretch; color: inherit; text-decoration: none; }
#portfolio-return a:hover { color: #e4e7dc; text-decoration: underline; }
#portfolio-return a:focus-visible { outline: 2px solid #d8c393; outline-offset: -2px; }
#portfolio-return span { color: #a2b4af; font-size: 11px; }
body #startup { top: calc(40px + env(safe-area-inset-top, 0px)) !important; }
/* The game's menus and HUD also create fixed elements directly in body. */
body #arsenal-overlay,
body #blacksmith-overlay,
body #smith-review,
body .world-nameplates,
body .expedition-selection,
body .crypt-cinematic { top: var(--portfolio-strip); }
body #character-hud,
body #bag-open,
body #warden-hud,
body #loot-feed,
body #combat-announcement,
body #dungeon-curse,
body #hud-notifications,
body[data-location=dungeon] #minimap { translate: 0 var(--portfolio-strip); }
@media (max-width: 380px) { #portfolio-return span { display: none; } }
