@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Inter:wght@400;600&display=swap');

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: #000; color: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#game { display: block; }

#hud { position: fixed; inset: 0; pointer-events: none; }
.shadow, #clock, #money, #wanted, #wname, #ammo, #area, #speedo, #objective, #timer, #big {
  text-shadow: 0 1px 2px rgba(0,0,0,.85), 0 0 12px rgba(0,0,0,.35);
}
#info { position: absolute; top: 18px; left: 22px; }
#clock { font: 700 28px/1 Oswald, sans-serif; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
#weather { font-size: 11px; opacity: .85; text-transform: uppercase; letter-spacing: 3px; margin-top: 4px; }

#topright { position: absolute; top: 16px; right: 24px; text-align: right; }
#money { font: 700 34px/1 Oswald, sans-serif; color: #7fd36e; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
#wanted { font-size: 26px; letter-spacing: 4px; color: rgba(255,255,255,.18); height: 30px; margin-top: 4px; }
#wanted b { color: #fff; font-weight: 400; }
#wanted.flash b { animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
#weaponbox { margin-top: 6px; }
#wname { font: 500 18px Oswald, sans-serif; text-transform: uppercase; letter-spacing: 2px; }
#ammo { font: 700 22px Oswald, sans-serif; font-variant-numeric: tabular-nums; }
#ammo small { opacity: .6; font-size: 15px; }

#area {
  position: absolute; right: 30px; bottom: 120px; font: 700 34px Oswald, sans-serif; text-transform: uppercase;
  letter-spacing: 2px; opacity: 0; transition: opacity .8s; text-align: right;
}
#area small { display: block; font: 400 12px Inter, sans-serif; letter-spacing: 4px; opacity: .8; }

#mapwrap { position: absolute; left: 22px; bottom: 18px; width: 210px; }
#minimap {
  width: 210px; height: 210px; border-radius: 50%; display: block;
  box-shadow: 0 0 0 3px rgba(0,0,0,.55), 0 6px 20px rgba(0,0,0,.4);
}
#bars { display: flex; gap: 6px; margin-top: 8px; }
.bar { flex: 1; height: 7px; background: rgba(0,0,0,.55); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: #5fbf5a; transition: width .2s; }
.bar.armor i { background: #4a9ad8; }

#speedo {
  position: absolute; right: 30px; bottom: 26px; font: 700 52px/1 Oswald, sans-serif; display: none;
  font-variant-numeric: tabular-nums;
}
#speedo small { font: 400 15px Inter, sans-serif; margin-left: 6px; opacity: .8; }

#crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; display: none; }
#crosshair i { position: absolute; background: #fff; box-shadow: 0 0 2px rgba(0,0,0,.9); }
#crosshair i:nth-child(1) { width: 2px; height: 7px; left: -1px; top: -12px; }
#crosshair i:nth-child(2) { width: 2px; height: 7px; left: -1px; top: 5px; }
#crosshair i:nth-child(3) { width: 7px; height: 2px; left: -12px; top: -1px; }
#crosshair i:nth-child(4) { width: 7px; height: 2px; left: 5px; top: -1px; }
#crosshair.hit i { background: #ff4040; }
#crosshair.dot i { width: 3px !important; height: 3px !important; left: -1.5px !important; top: -1.5px !important; }

#objective {
  position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); max-width: 70%;
  font-size: 18px; text-align: center; line-height: 1.4;
}
#objective b { color: #ffd23b; font-weight: 600; }
#timer { position: absolute; right: 26px; top: 160px; font: 700 30px Oswald, sans-serif; font-variant-numeric: tabular-nums; }
#toasts { position: absolute; left: 22px; top: 74px; display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
#toasts div { background: rgba(0,0,0,.72); padding: 9px 13px; border-radius: 4px; font-size: 13.5px; line-height: 1.45; }
#toasts div b { color: #ffd23b; }

#prompt {
  position: absolute; left: 50%; bottom: 140px; transform: translateX(-50%); display: none;
  background: rgba(0,0,0,.6); padding: 8px 14px; border-radius: 4px; font-size: 14px;
}
#big { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; opacity: 0; transition: opacity .5s; }
#bigtitle { font: 700 86px/1 Oswald, sans-serif; letter-spacing: 6px; text-transform: uppercase; }
#bigsub { font: 500 22px Oswald, sans-serif; letter-spacing: 3px; margin-top: 10px; color: #7fd36e; }
#big.wasted #bigtitle { color: #d8302f; }
#big.busted #bigtitle { color: #4a9ad8; }
#big.passed #bigtitle { color: #ffd23b; }
#hurt { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(160,0,0,.75)); opacity: 0; }

#debug {
  position: absolute; top: 200px; right: 16px; margin: 0; display: none; white-space: pre;
  font: 12px/1.45 ui-monospace, Menlo, monospace; background: rgba(0,0,0,.6); padding: 10px 12px; border-radius: 6px;
}
#help {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 12.5px; line-height: 1.75;
  background: rgba(0,0,0,.5); padding: 10px 16px; border-radius: 6px; text-align: center;
}
kbd { background: rgba(255,255,255,.16); border-radius: 3px; padding: 1px 5px; font-family: inherit; font-size: 11px; }

#menu { position: fixed; inset: 0; display: grid; align-items: center; justify-items: start; padding-left: 8vw; }
#menu.title { background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%); }
#menu.pause { background: rgba(4,6,10,.62); backdrop-filter: blur(6px); }
#menu .panel { width: min(420px, 84vw); text-shadow: 0 2px 12px rgba(0,0,0,.5); }
#mtitle { font: 700 76px/1 Oswald, sans-serif; letter-spacing: 14px; margin: 0; }
#msub { margin: 10px 0 30px; opacity: .8; letter-spacing: 4px; text-transform: uppercase; font-size: 12px; min-height: 1em; }
#mbody { display: flex; flex-direction: column; gap: 8px; }
.mbtn {
  font: 500 20px Oswald, sans-serif; letter-spacing: 3px; text-transform: uppercase; text-align: left;
  padding: 10px 18px; border: 0; border-left: 3px solid transparent; background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85); cursor: pointer; transition: all .15s;
}
.mbtn:hover, .mbtn:focus-visible { background: rgba(255,255,255,.16); color: #fff; border-left-color: #ffd23b; padding-left: 24px; outline: none; }
.mbtn.primary { color: #fff; background: rgba(255,210,59,.18); border-left-color: #ffd23b; }
.mtable { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13.5px; }
.mtable > div, .mtable label { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 10px; background: rgba(255,255,255,.05); }
.mtable kbd { white-space: nowrap; }
.settings select, .settings input[type=range] { width: 170px; accent-color: #ffd23b; }
.settings select { background: #1a1d22; color: #fff; border: 1px solid #444; padding: 4px 6px; font: inherit; }
#loading {
  position: fixed; inset: 0; display: grid; place-items: center; background: #05070c; text-align: center;
}
#ltitle { font: 700 54px Oswald, sans-serif; letter-spacing: 12px; }
#lstatus { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; opacity: .7; margin-top: 12px; }
#ltip { font-size: 13px; opacity: .55; margin-top: 40px; max-width: 520px; line-height: 1.5; }

#credit {
  position: fixed; right: 14px; bottom: 8px; z-index: 10;
  font: 500 13px Oswald, sans-serif; letter-spacing: 2px; color: #fff; opacity: .6; text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.85);
}
#credit:hover { opacity: 1; }
