:root {
  --pulse-tap-target: 44px;
}

html {
  -webkit-text-size-adjust: 100%;
}

html[data-pulse-game],
html[data-pulse-game] body {
  min-height: 100%;
  min-height: 100dvh;
}

html[data-pulse-game] :is(button, a, input, select) {
  -webkit-tap-highlight-color: transparent;
}

html[data-pulse-game] :is(button, a, input, select):focus-visible {
  outline: 3px solid #67e8f9;
  outline-offset: 3px;
}

@media (pointer: coarse) {
  html[data-pulse-game] button,
  html[data-pulse-game] input,
  html[data-pulse-game] select,
  html[data-pulse-game] :is(.back, .brand, .arcade-link, .arcade-back) {
    min-height: var(--pulse-tap-target);
  }

  html[data-pulse-game] button,
  html[data-pulse-game] :is(.iconBtn, .icon-btn, .stepBtn) {
    min-width: var(--pulse-tap-target);
  }

  html[data-pulse-game] :is(.iconBtn, .icon-btn, .stepBtn) {
    width: var(--pulse-tap-target);
    height: var(--pulse-tap-target);
  }

  html[data-pulse-game] :is(.back, .brand, .arcade-link, .arcade-back) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-pulse-game] *,
  html[data-pulse-game] *::before,
  html[data-pulse-game] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

#pulse-orientation-prompt {
  display: none;
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  color: #fff;
  text-align: center;
  background: rgba(7, 16, 31, .94);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.pulse-orientation-mismatch #pulse-orientation-prompt {
  display: flex;
}

#pulse-orientation-prompt .pulse-orientation-card {
  width: min(340px, 100%);
  padding: 24px 22px;
  border: 2px solid rgba(103, 232, 249, .55);
  border-radius: 24px;
  background: #13243d;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}

#pulse-orientation-prompt .pulse-orientation-icon {
  display: block;
  margin-bottom: 10px;
  font-size: 52px;
  line-height: 1;
}

#pulse-orientation-prompt strong {
  display: block;
  color: #7de3ff;
  font-size: 22px;
}

#pulse-orientation-prompt p {
  margin: 9px 0 17px;
  color: rgba(255,255,255,.76);
  font-size: 14px;
  line-height: 1.45;
}

#pulse-orientation-prompt button {
  min-width: 160px;
  min-height: var(--pulse-tap-target);
  border: 0;
  border-radius: 14px;
  padding: 11px 18px;
  color: #fff;
  background: #ff4f91;
  box-shadow: 0 5px 0 #9f2458;
  font: 800 15px system-ui, sans-serif;
  cursor: pointer;
}
