:root {
  --brand-blue: #0059c8;
  --brand-blue-dark: #003f9e;
  --brand-red: #e30012;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--brand-blue-dark);
}

body {
  position: fixed;
  inset: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: var(--brand-blue-dark);
  overflow: hidden;
}

.poster {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  flex: 0 0 auto;
}

.poster img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot {
  position: absolute;
  display: block;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.hotspot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
  border-radius: 18px;
}

.hotspot-order {
  left: 7.1%;
  top: 77.2%;
  width: 86%;
  height: 8.1%;
}

.hotspot-android {
  left: 7.1%;
  top: 87.35%;
  width: 42.7%;
  height: 6.6%;
}

.hotspot-ios {
  left: 52.1%;
  top: 87.35%;
  width: 40.8%;
  height: 6.6%;
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(18px, var(--safe-top)) 18px max(18px, var(--safe-bottom));
  background: rgba(0, 31, 78, 0.58);
}

.install-modal.is-open {
  display: flex;
}

.install-dialog {
  position: relative;
  width: min(100%, 360px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 22px 20px 20px;
  background: #ffffff;
  color: #06235c;
  box-shadow: 0 18px 44px rgba(0, 21, 63, 0.3);
}

.install-dialog h1 {
  margin: 0 38px 10px 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.install-dialog p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 769px) {
  .app {
    position: static;
    width: 100%;
    padding: 0 0 var(--safe-bottom);
  }

  .poster {
    width: min(100%, calc((100svh - var(--safe-bottom)) * 0.5655));
    max-width: 100vw;
    max-height: calc(100svh - var(--safe-bottom));
    aspect-ratio: 941 / 1664;
  }

  .poster img {
    max-width: 100vw;
    max-height: calc(100svh - var(--safe-bottom));
    object-fit: contain;
  }
}

@media (min-width: 769px) and (min-aspect-ratio: 941 / 1664) {
  .poster {
    width: auto;
    height: calc(100svh - var(--safe-bottom));
  }

  .poster img {
    width: auto;
    height: 100%;
  }
}
