*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-family);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  height: 100%;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  text-transform: lowercase;
}
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

#chassis {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#app {
  width: 100%;
  height: 100%;
  max-width: 480px;
  max-height: 480px;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  border-radius: var(--chassis-radius);
  box-shadow: 0 0 0 var(--chassis-inner) var(--surface),
              0 0 0 calc(var(--chassis-inner) + var(--chassis-border)) var(--rabbit-orange);
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  #app { max-width: none; max-height: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
}

#toast-host {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 20px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
