* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #05080c; overflow: hidden; }
body { font-family: ui-monospace, monospace; color: #f4f7f8; cursor: crosshair; }
canvas { display: block; }

#loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #05080c; letter-spacing: 0.42em; font-size: 14px; color: #7ec8e3;
  z-index: 5;
}
#loading[hidden] { display: none; }

#mark {
  position: absolute; top: 18px; left: 0; right: 0; text-align: center;
  letter-spacing: 0.48em; font-size: 11px; color: rgba(197, 230, 242, 0.55);
  pointer-events: none;
}

#nm {
  position: absolute; top: 40px; left: 0; right: 0; text-align: center;
  font-size: 13px; letter-spacing: 0.14em; color: rgba(244, 247, 248, 0.8);
  pointer-events: none;
}
#nm::after { content: " NM"; font-size: 9px; letter-spacing: 0.2em; color: #8aa0ab; }
#nm[hidden] { display: none; }

#strips {
  position: absolute; top: 72px; left: 28px; display: flex; flex-direction: column; gap: 2px;
  z-index: 2;
}
#strips button {
  background: none; border: 0; padding: 7px 0; text-align: left; cursor: pointer;
  color: #6d828c; font: 600 13px ui-monospace, monospace; letter-spacing: 0.28em;
}
#strips button.on { color: #f4f7f8; }
#strips button.next { color: #7ec8e3; }

#stick {
  position: absolute; top: 22px; right: 24px;
  font-size: 11px; letter-spacing: 0.16em; color: #6d828c;
  pointer-events: none;
}
#stick.live { color: #9ddead; }

#stall {
  position: absolute; top: 22%; left: 50%; transform: translateX(-50%);
  color: #ff5a3c; letter-spacing: 0.4em; font-weight: 700; font-size: 28px;
  pointer-events: none;
}
#stall[hidden] { display: none; }

#fpm {
  position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid rgba(126, 200, 227, 0.9); border-radius: 50%;
  pointer-events: none;
}
#fpm::before, #fpm::after {
  content: ""; position: absolute; background: rgba(126, 200, 227, 0.9);
}
#fpm::before { top: 50%; left: -7px; width: 6px; height: 2px; margin-top: -1px; }
#fpm::after { top: 50%; right: -7px; width: 6px; height: 2px; margin-top: -1px; }
#fpm[hidden] { display: none; }

#lamps {
  position: absolute; bottom: 108px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center; pointer-events: none;
}
#lamps i {
  width: 8px; height: 8px; border-radius: 50%; background: #7dce86;
  box-shadow: 0 0 8px rgba(125, 206, 134, 0.8);
}
#lamps b {
  width: 22px; height: 6px; margin-left: 8px;
  background: linear-gradient(#e6c27a, #e6c27a) 0 0 / 100% 100% no-repeat;
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 70%);
}

#hud {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 36px; pointer-events: none;
}
#hud div { text-align: center; min-width: 64px; }
#hud b { display: block; font-size: 28px; font-weight: 600; color: #e6c27a; }
#hud b.hot { color: #ff5a3c; }
#hud span { display: block; margin-top: 2px; font-size: 10px; letter-spacing: 0.18em; color: #8aa0ab; }

#card {
  position: absolute; inset: 0; display: grid; place-items: center;
  pointer-events: none; background: linear-gradient(to top, rgba(5, 8, 12, 0.45), transparent 55%);
}
#card[hidden] { display: none; }
#card .panel { text-align: center; }
#why { margin: 0; font-size: 40px; letter-spacing: 0.28em; font-weight: 600; }
#lines { margin: 14px 0 0; font-size: 16px; line-height: 1.7; color: #d5dde2; letter-spacing: 0.08em; }
