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

html, body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg-void);
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
}

button { font: inherit; touch-action: manipulation; }

#app {
  position: relative;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 164, 65, .08), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, .6), transparent 70%),
    var(--bg-inset);
}

/* Screens: exactly one is visible at a time (see js/ui/screens.js) */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

* { scrollbar-color: var(--border) transparent; scrollbar-width: thin; }
