html,
body {
  margin: 0;
  height: 100%;
  background: #0a1420;
  color: #e9e2cf;
  font:
    14px Georgia,
    "Times New Roman",
    serif;
  overflow: hidden;
}
canvas {
  display: block;
  touch-action: none;
}
#hud,
#bar {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  background: linear-gradient(#16263a, #0c1724);
  flex-wrap: wrap;
}
#hud {
  top: 0;
  border-bottom: 2px solid #c8a95a;
}
#bar {
  bottom: 0;
  min-height: 44px;
  border-top: 2px solid #c8a95a;
  padding-right: 150px;
  max-height: 48vh;
  overflow-y: auto;
}
#bar button {
  text-align: left;
}
small {
  font-size: 11.5px;
  opacity: 0.85;
}
#info {
  font-weight: bold;
  margin-right: auto;
  color: #f0d68a;
  letter-spacing: 0.5px;
}
#msg {
  position: fixed;
  left: 0;
  right: 0;
  top: 58px;
  text-align: center;
  color: #ffe28a;
  pointer-events: none;
  text-shadow: 0 1px 3px #000;
  padding: 0 10px;
}
button {
  font: inherit;
  color: #f0e6c8;
  background: linear-gradient(#24405f, #152a42);
  border: 1px solid #c8a95a;
  border-radius: 14px;
  padding: 8px 13px;
  cursor: pointer;
}
button:hover {
  filter: brightness(1.2);
}
#endBtn {
  position: fixed;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  padding: 12px 16px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(#e2c26a, #a57f2c);
  color: #1a1206;
  border-color: #f3dc98;
}
#panel,
#end,
#tech {
  position: fixed;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #101c2b;
  border: 2px solid #c8a95a;
  border-radius: 10px;
  padding: 16px 20px;
  max-width: 470px;
  width: calc(100% - 60px);
  max-height: calc(100% - 60px);
  overflow: auto;
  display: none;
}
#panel h3,
#end h2 {
  margin: 0 0 8px;
  color: #f0d68a;
}
#panel ul {
  margin: 6px 0 12px;
  padding-left: 18px;
  line-height: 1.45;
}
#end {
  text-align: center;
}
@media (max-width: 700px) {
  #hud,
  #bar {
    gap: 6px;
    padding: 6px 8px;
    font-size: 13px;
  }
  button {
    padding: 9px 10px;
  }
  #bar {
    padding-right: 130px;
  }
}
#pass {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #0a1420;
  border: 6px solid #c8a95a;
  text-align: center;
  padding: 20px;
}
#pass h2 {
  margin: 0;
  color: #f0d68a;
  font-size: 30px;
}
#pass p {
  margin: 0;
  max-width: 420px;
  font-size: 16px;
}
#passBtn {
  padding: 14px 26px;
  font-size: 17px;
  font-weight: bold;
  background: linear-gradient(#e2c26a, #a57f2c);
  color: #1a1206;
  border-color: #f3dc98;
}

#net {
  display: none;
  width: 100%;
  color: #9fd0ff;
  font-size: 14px;
}
#onl {
  margin-top: 10px;
}
#onCode {
  width: 90px;
  padding: 8px;
  font: inherit;
  text-transform: uppercase;
  background: #0c1724;
  color: #fff;
  border: 1px solid #c8a95a;
  border-radius: 8px;
}
