/* ==========================================================================
   NeuroWorm — stylesheet
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  color: #eee;
  font-family: 'Courier New', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/*  Main menu                                                                 */
/* -------------------------------------------------------------------------- */

#menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

#menu h1 {
  font-size: 52px;
  color: #0ff;
  text-shadow: 0 0 20px #0ff, 0 0 40px #08a;
  letter-spacing: 6px;
}

#menu .sub {
  color: #666;
  font-size: 13px;
  max-width: 480px;
  text-align: center;
  line-height: 1.6;
}

.mbtn {
  background: none;
  border: 2px solid #0ff;
  color: #0ff;
  padding: 12px 36px;
  font-family: inherit;
  font-size: 17px;
  cursor: pointer;
  transition: all .2s;
  min-width: 200px;
}

.mbtn:hover {
  background: #0ff;
  color: #000;
  box-shadow: 0 0 20px #0ff;
}

.mbtn.camp {
  border-color: #a0f;
  color: #a0f;
}

.mbtn.camp:hover {
  background: #a0f;
  color: #000;
  box-shadow: 0 0 20px #a0f;
}

#bosses {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.boss-card {
  border: 1px solid #333;
  padding: 8px 12px;
  font-size: 10px;
  color: #888;
  text-align: center;
  width: 120px;
}

.boss-card .ch {
  font-size: 11px;
  margin-bottom: 2px;
}

.keys {
  color: #444;
  font-size: 10px;
  margin-top: 6px;
}

/* -------------------------------------------------------------------------- */
/*  Gameplay container                                                        */
/* -------------------------------------------------------------------------- */

#gc {
  display: none;
  flex-direction: column;
  align-items: center;
}

#top {
  display: flex;
  width: 820px;
  padding: 5px 10px;
  background: #0a0a0a;
  border: 1px solid #222;
  border-bottom: none;
  font-size: 12px;
  gap: 16px;
  align-items: center;
}

#top .l { color: #555; }
.top .v { color: #0ff; }

#crow {
  display: flex;
  border: 1px solid #222;
}

#arena {
  display: block;
  background: #111;
}

#bp {
  display: block;
  background: #0a0a0a;
  border-left: 1px solid #222;
}

#bot {
  display: flex;
  align-items: center;
  width: 820px;
  padding: 5px 10px;
  background: #0a0a0a;
  border: 1px solid #222;
  border-top: none;
  font-size: 11px;
  gap: 10px;
  min-height: 42px;
  flex-wrap: wrap;
}

#aicons {
  display: flex;
  gap: 6px;
}

#spark { margin-left: auto; }

/* -------------------------------------------------------------------------- */
/*  Overlays (lore, credits, pause, game over, unlock toast)                  */
/* -------------------------------------------------------------------------- */

.ov {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 100;
  text-align: center;
}

#lore {
  background: rgba(0, 0, 0, .93);
  padding: 40px;
}

#lore .bn { font-size: 34px; margin-bottom: 6px; }
#lore .bt { font-size: 15px; color: #888; margin-bottom: 16px; }
#lore .bq { font-size: 16px; color: #999; font-style: italic; margin-bottom: 24px; }
#lore .ch { color: #555; font-size: 12px; }

#credits { background: #000; }

#unlock {
  display: none;
  position: fixed;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .92);
  border: 2px solid #0f0;
  color: #0f0;
  padding: 14px 28px;
  font-size: 18px;
  z-index: 90;
  text-shadow: 0 0 10px #0f0;
}

#pause-ov {
  background: rgba(0, 0, 0, .7);
  font-size: 44px;
  color: #0ff;
  text-shadow: 0 0 20px #0ff;
  z-index: 80;
}

#go-ov {
  background: rgba(0, 0, 0, .85);
  gap: 14px;
  z-index: 80;
}

#go-ov .t { font-size: 40px; color: #f44; text-shadow: 0 0 20px #f44; }
#go-ov .s { font-size: 20px; color: #0ff; }

/* -------------------------------------------------------------------------- */
/*  Boss HP bar                                                               */
/* -------------------------------------------------------------------------- */

#bossbar {
  display: none;
  height: 10px;
  width: 160px;
  background: #222;
  border: 1px solid #444;
  position: relative;
}

#bossfill {
  height: 100%;
  background: #f0a;
  transition: width .3s;
}
