/* Minimal reset — only what this game actually needs. */

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

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

body {
  /* An idle game is a tap target the size of the screen. Nothing should ever
     select, drag, or fire a double-tap zoom. */
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  /* Kills the 300ms tap delay on touch devices without disabling pinch-zoom
     for the whole document. */
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

button:disabled {
  cursor: default;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

/* Focus rings are for keyboards. Mouse and touch taps do not need them. */
:focus:not(:focus-visible) {
  outline: none;
}
