*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--outside);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  min-height: 44px;
}
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:hover { filter: brightness(1.12); }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2 { margin: 0; }

.app {
  max-width: 456px;
  margin: 0 auto;
  padding: 26px 28px 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  min-height: 100dvh;
}

@media (max-width: 600px) {
  body { background: var(--bg); }
  .app {
    border: 0;
    border-radius: 0;
    max-width: 456px;
    margin: 0 auto;
    padding: calc(17px + env(safe-area-inset-top)) 24px env(safe-area-inset-bottom);
  }
}

@media (max-width: 350px) {
  .app { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
