/* Port Azura — screen furniture: menu, HUD, dialogue, minimap frame. */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0b1622; }
body { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: #f4f7fa; }
.hidden { display: none !important; }

#stage { position: fixed; inset: 0; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- start menu ---------- */
#menu {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(7, 24, 43, 0.88), rgba(214, 110, 44, 0.45) 130%);
  z-index: 40;
}
#menu-card { text-align: center; max-width: 560px; padding: 34px 44px; }
#game-title {
  font-size: 64px; letter-spacing: 6px; font-weight: 800;
  color: #ffd98a; text-shadow: 0 3px 0 #b3541e, 0 8px 26px rgba(0,0,0,0.55);
}
#game-tagline { margin: 8px 0 26px; font-size: 17px; color: #dcebf5; font-style: italic; }
.menu-btn {
  display: block; width: 280px; margin: 10px auto; padding: 13px 0;
  font-size: 19px; font-weight: 700; letter-spacing: 3px; cursor: pointer;
  color: #10222f; background: #ffd98a; border: 0; border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.menu-btn:hover { background: #ffe7b3; }
.menu-btn:disabled { background: #6d7b85; color: #2c3942; cursor: default; }
#controls-help { margin-top: 28px; text-align: left; font-size: 14px; line-height: 1.75; color: #cfe0ec; }
#controls-help h2 { font-size: 15px; letter-spacing: 2px; color: #ffd98a; margin-bottom: 4px; }
#controls-help ul { list-style: none; }
#controls-help b { color: #ffffff; }
.fineprint { margin-top: 12px; font-size: 11.5px; color: #93a9ba; }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
#hud-top-left { position: absolute; top: 16px; left: 18px; }
#wanted { font-size: 26px; letter-spacing: 3px; color: #ffd23e; text-shadow: 0 1px 3px #000; min-height: 30px; }
#wanted .off { color: rgba(255,255,255,0.22); }
#health-wrap { width: 190px; height: 13px; margin-top: 5px; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.35); border-radius: 3px; }
#health-bar { height: 100%; width: 100%; background: linear-gradient(90deg, #e3402e, #f2762e); border-radius: 3px; transition: width 0.15s; }
#weapon-label { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #eaf3fa; text-shadow: 0 1px 3px #000; }
#hud-top-right { position: absolute; top: 16px; right: 18px; text-align: right; }
#money { font-size: 30px; font-weight: 800; color: #8fe388; text-shadow: 0 2px 4px #000; }
#clock { font-size: 15px; color: #dcebf5; text-shadow: 0 1px 3px #000; }
#minimap {
  position: absolute; right: 18px; bottom: 18px; width: 190px; height: 190px;
  border: 2px solid rgba(255,255,255,0.5); border-radius: 50%;
  background: rgba(10, 26, 40, 0.72); box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}
#objective {
  position: absolute; left: 18px; bottom: 18px; max-width: 330px;
  background: rgba(8, 20, 32, 0.78); border-left: 4px solid #ffd23e;
  padding: 10px 14px; border-radius: 4px;
}
#objective-title { font-size: 13px; font-weight: 800; letter-spacing: 2px; color: #ffd23e; }
#objective-text { font-size: 14.5px; margin-top: 3px; color: #f2f7fb; }
#objective-dist { font-size: 12.5px; margin-top: 2px; color: #9fc3dd; }
#prompt {
  position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%);
  background: rgba(8, 20, 32, 0.85); padding: 8px 18px; border-radius: 20px;
  font-size: 15px; font-weight: 600; color: #fff; border: 1px solid rgba(255,255,255,0.35);
}
#toast {
  position: absolute; left: 50%; top: 84px; transform: translateX(-50%);
  background: rgba(8, 20, 32, 0.88); padding: 10px 22px; border-radius: 6px;
  font-size: 17px; font-weight: 700; color: #ffd98a; border: 1px solid rgba(255,217,138,0.5);
}
#crosshair {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: rgba(255,255,255,0.9); box-shadow: 0 0 4px #000;
}

/* ---------- dialogue ---------- */
#dialogue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  width: min(680px, 86vw); z-index: 30; cursor: pointer;
  background: rgba(6, 16, 26, 0.92); border: 1px solid rgba(255,217,138,0.55);
  border-radius: 8px; padding: 16px 20px 12px;
}
#dialogue-name { font-size: 13px; font-weight: 800; letter-spacing: 2px; color: #ffd23e; }
#dialogue-text { font-size: 17.5px; line-height: 1.5; margin-top: 5px; color: #f5f9fc; }
#dialogue-next { text-align: right; font-size: 12px; color: #9fc3dd; margin-top: 6px; }

/* ---------- wasted ---------- */
#wasted {
  position: absolute; inset: 0; z-index: 35; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: rgba(30, 4, 4, 0.72);
}
#wasted-title { font-size: 58px; font-weight: 800; letter-spacing: 10px; color: #e3402e; text-shadow: 0 4px 22px #000; }
#wasted-sub { margin-top: 10px; font-size: 16px; color: #e8d9d2; }
