* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #070a12;
  color: #e9e2d3;
  font-family: 'Alegreya Sans', Georgia, serif;
  user-select: none;
  -webkit-user-select: none;
}
body {
  background:
    radial-gradient(ellipse at 50% 20%, #182037 0%, #0a0e18 45%, #05070c 100%);
}
#game { position: fixed; inset: 0; }
#game canvas { display: block; }

html.pixel-mode #game canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
html.pixel-mode .boot-title,
html.pixel-mode .boot-sub,
html.pixel-mode .boot-status {
  font-family: 'DotGothic16', monospace;
  letter-spacing: 2px;
}
html.pixel-mode .boot-title {
  font-size: 74px;
  font-weight: 700;
}
html.pixel-mode .boot-sub {
  font-style: normal;
  font-size: 34px;
}

#boot {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(39, 51, 79, .72) 0%, rgba(8, 11, 19, .97) 62%, #05070c 100%);
  transition: opacity 1.1s ease, visibility 1.1s ease;
}
#boot.hidden { opacity: 0; visibility: hidden; }
.boot-inner { text-align: center; position: relative; }
.boot-lantern {
  width: 46px; height: 62px;
  margin: 0 auto 30px;
  border: 3px solid rgba(255, 199, 122, .7);
  border-radius: 8px 8px 12px 12px;
  position: relative;
  box-shadow: 0 0 32px rgba(255, 169, 74, .45), inset 0 0 20px rgba(255, 169, 74, .4);
  animation: sway 4.2s ease-in-out infinite;
}
.boot-lantern::before {
  content: '';
  position: absolute; left: 50%; top: -15px; width: 26px; height: 16px;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 199, 122, .65);
  border-bottom: none;
  border-radius: 15px 15px 0 0;
}
.boot-lantern::after {
  content: '';
  position: absolute; left: 50%; top: 8px; width: 16px; height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, #ffe7ad 0%, #ffb34f 45%, rgba(255, 140, 40, .1) 75%);
  filter: blur(3px);
  border-radius: 50%;
}
@keyframes sway {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}
.boot-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 62px;
  letter-spacing: 3px;
  color: #f1e5cd;
  text-shadow: 0 3px 30px rgba(0,0,0,.8);
}
.boot-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 25px;
  color: #c7ad82;
  margin-top: -3px;
  letter-spacing: 1px;
}
.boot-status {
  margin-top: 38px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(226, 214, 192, .4);
}
