/* The page is only a frame for the game: Ebitengine creates its own <canvas>,
   appends it to <body> and sizes it from body's client box, so body has to be
   exactly the viewport and nothing may scroll. */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

body {
  color: #d8cbb0;
  font: 15px/1.5 "Georgia", "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

canvas {
  display: block;
  /* The game hides the system cursor and draws its own. */
  cursor: none;
}

/* --- loading overlay ------------------------------------------------------ */

#boot {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: radial-gradient(ellipse at 50% 35%, #1d2a33 0%, #080b0e 70%);
}

#boot-card {
  width: min(560px, 100%);
  text-align: center;
}

#boot h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #f0e4c8;
  text-shadow: 0 2px 0 #000, 0 0 28px rgba(240, 228, 200, 0.25);
}

#boot-sub {
  margin: 0 0 32px;
  font-size: 14px;
  font-style: italic;
  color: #7f8a91;
}

#boot-status {
  margin: 0 0 12px;
  min-height: 1.5em;
}

#boot-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#boot-bar {
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #6f8f5f, #b7c98a);
  transition: width 120ms linear;
}

#boot-pct {
  margin: 10px 0 0;
  min-height: 1.5em;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #94a0a8;
}

#boot-play {
  display: none;
  margin-top: 18px;
  padding: 12px 40px;
  font: inherit;
  font-size: 18px;
  color: #10161a;
  background: linear-gradient(#e2d3ac, #bfa87b);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

#boot-play:hover { background: linear-gradient(#f2e5c4, #cdb888); }
#boot-play:active { transform: translateY(1px); }

#boot-error {
  display: none;
  margin: 18px 0 0;
  padding: 12px;
  max-height: 30vh;
  overflow: auto;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  font: 12px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #e7a99a;
  background: rgba(120, 40, 30, 0.18);
  border: 1px solid rgba(200, 90, 70, 0.35);
  border-radius: 4px;
}

#boot-hint {
  margin: 28px 0 0;
  font-size: 12px;
  color: #67727a;
}
