#unity-footer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0 6px;
  box-sizing: border-box;
  background: #182719;
  color: #f2eed0;
}
#unity-logo-title-footer { margin-right: auto; flex: 0 0 102px; }
#unity-build-title { float: none; margin: 0 6px; line-height: 44px; white-space: nowrap; }
#unity-fullscreen-button {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.iherd-control svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iherd-control:hover { background: #314734 !important; }
.iherd-control:focus-visible { outline: 2px solid #f2eed0; outline-offset: -3px; }
.iherd-control[aria-pressed="true"] { background: #395b35 !important; color: #b9f397 !important; }
.iherd-control:disabled { opacity: 0.35; cursor: default !important; }
.iherd-control .iherd-icon-exit { display: none; }
.iherd-control[aria-pressed="true"] .iherd-icon-enter { display: none; }
.iherd-control[aria-pressed="true"] .iherd-icon-exit { display: block; }
#iherd-controls-status {
  position: absolute;
  right: 6px;
  bottom: 50px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 6px;
  background: #182719;
  color: #f2eed0;
  font: 14px/1.4 Arial, sans-serif;
  z-index: 3;
  pointer-events: none;
}
#iherd-controls-status:empty { display: none; }
.unity-mobile #unity-footer { display: flex; justify-content: flex-end; }
.unity-mobile #unity-logo-title-footer { display: none; }
.unity-mobile #unity-build-title { font-size: 14px; }
#unity-container.unity-mobile {
  display: flex;
  flex-direction: column;
  height: var(--iherd-viewport-height, 100dvh);
}
.unity-mobile #unity-player { flex: 1 1 0; min-height: 0; height: auto; }
#unity-container.iherd-fullscreen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  transform: none;
  box-sizing: border-box;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: #182719;
}
.iherd-fullscreen #unity-player { flex: 1 1 0; min-height: 0; height: auto; }
.iherd-fullscreen #unity-canvas { width: 100% !important; height: 100% !important; }
#unity-container.iherd-maximised {
  height: var(--iherd-viewport-height, 100dvh);
  z-index: 10;
}
/* On iPhone, give the footer's space to the canvas and float its restore control. */
.iherd-maximised #unity-footer {
  position: absolute;
  right: env(safe-area-inset-right);
  bottom: env(safe-area-inset-bottom);
  width: 56px;
  background: transparent;
}
.iherd-maximised #unity-logo-title-footer,
.iherd-maximised #unity-build-title { display: none; }
.iherd-maximised #unity-fullscreen-button { background: #182719; }
