:root {
  --sea: #0b3f6b;
  --bg: #fff6df;
  --ink: #2b2140;
}

* {
  box-sizing: border-box;
}

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

#game {
  position: fixed;
  inset: 0;
  touch-action: none;
}

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

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

@media (orientation: portrait) and (pointer: coarse) {
  .turn-phone {
    display: flex;
  }
}

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

#oops[hidden] {
  display: none;
}

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

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