:root {
  --ink: #f2f6ee;
  --lime: #c9ff45;
  --orange: #ff7b3f;
  --panel: rgba(10, 14, 17, .88);
}

* { box-sizing: border-box; }

html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #0a0d0e; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.loading { position: fixed; left: 50%; top: 50%; translate: -50% -50%; z-index: 20; padding: 12px 18px; background: #101618; border: 1px solid #334044; letter-spacing: .08em; font-size: 12px; }
.loading.hidden { display: none; }

.panel { position: fixed; z-index: 10; left: clamp(24px, 6vw, 90px); top: 50%; translate: 0 -50%; width: min(520px, calc(100vw - 48px)); padding: 36px; background: linear-gradient(135deg, rgba(10,14,17,.96), rgba(10,14,17,.72)); border: 1px solid rgba(255,255,255,.16); border-left: 4px solid var(--lime); backdrop-filter: blur(18px); box-shadow: 0 24px 90px rgba(0,0,0,.44); }
.panel.hidden { display: none; }
.eyebrow { margin: 0 0 18px; color: var(--lime); font-weight: 800; letter-spacing: .24em; font-size: 11px; }
h1 { margin: 0; font-size: clamp(44px, 6vw, 78px); line-height: .85; letter-spacing: -.06em; font-weight: 950; }
h1 span { color: transparent; -webkit-text-stroke: 1px rgba(242,246,238,.72); }
.lede { color: #c7d0cc; line-height: 1.55; max-width: 46ch; margin: 24px 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); margin: 24px 0; }
.facts div { background: rgba(10,14,17,.88); padding: 14px 12px; }
.facts strong, .facts span { display: block; }
.facts strong { color: var(--lime); font-size: 15px; }
.facts span { margin-top: 4px; color: #8f9b96; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
button { border: 0; font: inherit; cursor: pointer; }
#start { width: 100%; padding: 16px 18px; display: flex; justify-content: space-between; background: var(--lime); color: #121712; font-weight: 900; letter-spacing: .08em; }
#start:hover { filter: brightness(1.08); }
.secondary { width: 100%; margin-top: 8px; padding: 12px; color: #dfe6e2; background: transparent; border: 1px solid #53605b; font-size: 12px; letter-spacing: .08em; }
.note { margin: 16px 0 0; color: #77827e; font-size: 11px; line-height: 1.45; }

#hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.hidden { display: none !important; }
.brand { position: absolute; left: 26px; top: 22px; padding-left: 12px; border-left: 3px solid var(--lime); }
.brand span, .brand small { display: block; }
.brand span { font-weight: 950; letter-spacing: -.03em; }
.brand small { color: #9da8a3; font-size: 9px; letter-spacing: .18em; }
#objective { position: absolute; top: 20px; left: 50%; translate: -50%; min-width: 250px; text-align: center; padding: 9px 18px; background: rgba(6,9,10,.66); border-top: 2px solid var(--lime); }
#objective small, #objective strong, #objective span { display: block; }
#objective small { color: var(--lime); font-size: 8px; letter-spacing: .22em; }
#objective strong { margin: 3px 0; font-size: 13px; }
#objective span { color: #9da8a3; font-size: 10px; }
#modeBadge { position: absolute; right: 24px; top: 24px; color: #141915; background: var(--lime); padding: 6px 9px; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; translate: -50% -50%; }
#crosshair::before, #crosshair::after, #crosshair i::before, #crosshair i::after { content: ""; position: absolute; background: rgba(255,255,255,.9); box-shadow: 0 0 3px #000; }
#crosshair::before { left: 11px; top: 0; width: 2px; height: 7px; }
#crosshair::after { left: 11px; bottom: 0; width: 2px; height: 7px; }
#crosshair i::before { top: 11px; left: 0; height: 2px; width: 7px; }
#crosshair i::after { top: 11px; right: 0; height: 2px; width: 7px; }
#crosshair b { position: absolute; left: 10px; top: 10px; width: 4px; height: 4px; border: 1px solid var(--lime); border-radius: 50%; }
#hitmarker { position: absolute; left: 50%; top: 50%; translate: -50% -54%; opacity: 0; font-size: 42px; color: #fff; font-weight: 300; transition: opacity .08s; text-shadow: 0 0 8px #000; }
#hitmarker.show { opacity: 1; }
#ammo { position: absolute; right: 28px; bottom: 26px; display: flex; align-items: end; gap: 8px; }
#ammo strong { font-size: 43px; line-height: .8; }
#ammo span { color: #a5afaa; font-size: 8px; letter-spacing: .12em; }
.controls { position: absolute; left: 24px; bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px 13px; max-width: 520px; color: #a7b0ac; font-size: 10px; }
kbd { color: #ecf3ef; border: 1px solid rgba(255,255,255,.35); border-radius: 3px; padding: 2px 5px; background: rgba(0,0,0,.35); font: inherit; font-weight: 800; }
.boss-card { position: fixed; z-index: 7; left: 50%; bottom: 62px; translate: -50%; width: min(430px, 70vw); text-align: center; }
.boss-card small, .boss-card strong { display: block; }
.boss-card small { color: var(--orange); font-size: 9px; letter-spacing: .35em; }
.boss-card strong { margin: 4px 0 7px; font-size: 19px; letter-spacing: .14em; }
#bossHealth { display: block; height: 6px; width: 100%; background: linear-gradient(90deg, var(--orange) var(--health, 100%), rgba(255,255,255,.13) var(--health, 100%)); border: 1px solid rgba(255,255,255,.38); }
.message { position: fixed; z-index: 8; left: 50%; top: 23%; translate: -50%; opacity: 0; color: var(--lime); font-weight: 950; font-size: clamp(23px, 4vw, 48px); text-align: center; text-transform: uppercase; letter-spacing: .06em; text-shadow: 0 3px 20px #000; transition: opacity .2s, transform .2s; pointer-events: none; }
.message.show { opacity: 1; transform: translateY(-8px); }
.return { position: fixed; z-index: 9; left: 50%; bottom: 28px; translate: -50%; padding: 12px 18px; background: var(--lime); color: #121712; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
#damageFlash { position: fixed; z-index: 4; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(circle, transparent 45%, rgba(255,123,63,.4)); }

@media (max-width: 650px) {
  .panel { padding: 24px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { display: flex; justify-content: space-between; align-items: center; }
  .facts span { margin: 0; }
  .controls { display: none; }
  #objective { top: 72px; }
}
