:root {
  --coal: #22303f;
  --ink: #2a2320;
  --parchment: #f2e3c1;
  --brass: #c89b4e;
  --amber: #ffb84d;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a1512;
  color: var(--ink);
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  overscroll-behavior: none;
}

#game {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: default;
  outline: none;
}

#boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 184, 77, 0.16), transparent 58%),
    radial-gradient(circle at 50% 120%, #2e4055 0%, #1a1512 62%);
  z-index: 10;
  transition: opacity 520ms ease, visibility 520ms ease;
}

#boot.hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-card {
  text-align: center;
  color: var(--parchment);
}

.boot-gear {
  font-size: 40px;
  color: var(--brass);
  animation: spin 4s linear infinite;
  line-height: 1;
}

#boot h1 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.18em;
  font-size: clamp(28px, 5vw, 52px);
  margin: 14px 0 6px;
  color: #e8c877;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

#boot p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e3cfa3;
  opacity: 0.75;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--parchment);
  background: #1a1512;
  z-index: 20;
}
