:root {
  --night: #12324f;
  --snow: #f4fbff;
  --ink: #12324f;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Trebuchet MS", system-ui, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

#game {
  position: fixed;
  inset: 0;
}

/* Shows until the game adds its canvas. */
#game:empty::before {
  content: "Loading...";
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--snow);
  font-size: 1.5rem;
  font-weight: 700;
}

.back {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--snow);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.needs-keyboard {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--night);
  color: var(--snow);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

@media (pointer: coarse) {
  .needs-keyboard {
    display: flex;
  }
}

#oops {
  position: fixed;
  inset: 0;
  padding: 48px 16px;
  background: var(--snow);
}

#oops[hidden] {
  display: none;
}

#oops h1 {
  margin: 0 0 16px;
}

#oops p {
  max-width: 640px;
  font-size: 1.25rem;
  line-height: 1.4;
}
