/* Keep the installed web app stable and remove doubled safe-area spacing. */
html,
body,
#root {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  background: #b7222d;
  color-scheme: light only;
  touch-action: manipulation;
}

body {
  position: fixed;
  inset: 0;
  background: #e9e9e9;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#root,
.stage {
  height: 100dvh;
  min-height: 100dvh;
}

.stage {
  overflow: hidden;
}

.phone {
  height: 100dvh;
  touch-action: manipulation;
}

/* The OS already reserves the status-bar area in standalone mode. */
.reference-home,
.offers-page,
.friends-reference-page,
.account-reference-page,
.gifts-page,
.barcode-settings-page {
  padding-top: 0;
}

.voucher-apply-hero {
  padding-top: 0;
}

.voucher-cup-layer {
  top: 13%;
}

.voucher-apply-hero > button {
  top: 1.5%;
}

.voucher-collapsed-head {
  padding-top: 8px;
}

/* The device already draws its own system gesture area. */
.home-indicator {
  display: none;
}

@media (width < 520px) {
  .stage {
    display: block;
    padding: 0;
  }

  .phone {
    width: 100vw;
    max-height: none;
    border-radius: 0;
  }
}
