:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #071119;
  color: #f8f1d2;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  touch-action: none;
}

body {
  background:
    radial-gradient(circle at 18% 12%, rgba(248, 217, 114, 0.12), transparent 18rem),
    linear-gradient(180deg, #0b1b2a 0%, #071119 62%, #04090d 100%);
}

#game {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: stretch;
  min-width: 320px;
}

#harbor {
  width: 100vw;
  height: 100dvh;
  display: block;
  cursor: grab;
}

body[data-phase="aiming"] #harbor {
  cursor: grabbing;
}

#hud {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.25rem, 4.8vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0;
}

#status {
  max-width: 14rem;
  color: #f7d76a;
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  font-weight: 700;
  text-align: right;
}

@media (min-width: 700px) {
  #hud {
    top: 24px;
    left: 28px;
    right: 28px;
  }
}
