*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  min-height: 100%;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
a {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.app {
  min-height: 100svh;
  min-height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--paper);
  box-shadow: var(--shadow-float);
}

@media (min-width: 431px) {
  body {
    background:
      radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 160, 53, 0.18), transparent),
      linear-gradient(165deg, #1a2230 0%, #2c3648 45%, #1e2836 100%);
    padding: 24px 0;
  }

  .app {
    min-height: calc(100dvh - 48px);
    border-radius: 28px;
    overflow: hidden;
  }
}

.screen {
  display: none;
  min-height: 100svh;
  min-height: 100dvh;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.screen.is-active {
  display: flex;
  animation: screenIn 0.55s var(--ease-out) both;
}

@media (min-width: 431px) {
  .screen {
    min-height: calc(100dvh - 48px);
  }
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
