/* BLOCK — Branded Black + Metallic Gold UI Overhaul layered over engine.css */

/* ── Top Bar ─────────────────────────────────────────────────────────────── */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 32px;
  background: rgba(6,6,8,0.96);
  border-bottom: 1px solid rgba(245,180,0,0.22);
  display: flex; align-items: center; justify-content: center; gap: 36px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px; letter-spacing: .15em;
  backdrop-filter: blur(6px);
}
.tb-x { color: #FFBF1A; text-decoration: none; transition: opacity .2s; }
.tb-x:hover { opacity: .75; }
.tb-ca { color: rgba(244,238,226,.6); }

/* offset screens that sit under bar */
#loading, #menu { padding-top: 32px !important; }

/* ── Server Select ───────────────────────────────────────────────────────── */
#serverSelect {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(6,6,8,0.96) !important;
  display: none !important;
  flex-direction: column; align-items: center; justify-content: center;
  pointer-events: auto;
}
#serverSelect.on {
  display: flex !important;
}
.ss-panel {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  width: 100%; max-width: 580px; padding: 48px 24px 36px;
}
.ss-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 44px; font-weight: 800; letter-spacing: .08em;
  color: #FFBF1A; text-shadow: 0 0 32px rgba(245,180,0,.45);
}
.ss-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .2em; color: rgba(244,238,226,.5);
  margin-top: -12px;
}
.server-list {
  display: flex; flex-direction: column; gap: 12px; width: 100%;
}
.srv-card {
  background: rgba(245,180,0,.06);
  border: 1px solid rgba(245,180,0,.22);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .18s, border-color .18s;
}
.srv-card:hover { background: rgba(245,180,0,.13); border-color: rgba(245,180,0,.5); }
.srv-region {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .14em; color: #F4EEE2;
}
.srv-players {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .1em; color: rgba(244,238,226,.5);
  margin-top: 4px;
}
.srv-fill-bar { height: 4px; border-radius: 2px; background: rgba(245,180,0,.18); margin-top: 6px; width: 180px; }
.srv-fill-inner { height: 4px; border-radius: 2px; background: #F5B400; transition: width .6s; }
.srv-status-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .14em; padding: 3px 10px;
  border-radius: 20px; margin-right: 12px;
  background: rgba(0,220,80,.12); color: #00DC50; border: 1px solid rgba(0,220,80,.3);
}
.srv-status-badge.filling { background: rgba(245,180,0,.12); color: #FFBF1A; border-color: rgba(245,180,0,.3); }
.srv-join {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: .1em;
  background: linear-gradient(130deg, #F5B400, #FFBF1A);
  color: #080808; border: none; border-radius: 6px;
  padding: 8px 22px; cursor: pointer; transition: opacity .18s;
}
.srv-join:hover { opacity: .82; }
.ss-back {
  margin-top: 4px; opacity: .65; font-size: 13px !important;
  padding: 10px 28px !important;
}

:root {
  --gold: #F5B400;
  --gold-hi: #FFBF1A;
  --gold-lo: #D89400;
  --cream: #F4EEE2;
  --lime: #B8FF00;
  --danger: #FF4B36;
  --font-mono: 'JetBrains Mono', monospace;
}

#loading {
  background: radial-gradient(circle at 50% 42%, rgba(245, 180, 0, 0.14), #080808 62%) !important;
}
.load-logo {
  width: 108px; height: 108px; border-radius: 14px;
  border: 1px solid rgba(245, 180, 0, 0.45);
  box-shadow: 0 0 48px rgba(245, 180, 0, 0.28);
}
.load-tip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  color: rgba(244, 238, 226, 0.62); margin-top: 8px;
}

/* Title Menu */
#menu {
  background: linear-gradient(95deg, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.66) 40%, rgba(8, 8, 10, 0.08) 100%) !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 36px 52px !important;
  text-align: left !important;
}
.mside { width: min(490px, 92vw); display: flex; flex-direction: column; }
#menuMain { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.brand-head { display: flex; align-items: center; gap: 18px; margin-bottom: 4px; }
.brand-logo {
  width: 84px; height: 84px; border-radius: 12px;
  border: 1px solid rgba(245, 180, 0, 0.5);
  box-shadow: 0 12px 38px rgba(245, 180, 0, 0.28);
}
.mtitle {
  font-size: 86px !important; font-style: italic; font-weight: 800; line-height: 0.85;
  letter-spacing: .06em !important; color: var(--cream) !important;
}
.msub {
  font-size: 23px !important; font-style: italic; font-weight: 700;
  letter-spacing: .09em !important; color: var(--gold-hi) !important;
  margin-bottom: 4px;
}
.menu-pot-pill {
  display: inline-flex; align-items: baseline; gap: 12px;
  padding: 10px 18px; background: rgba(12, 12, 16, 0.86);
  border: 1px solid rgba(245, 180, 0, 0.4);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  margin-bottom: 6px;
}
.menu-pot-pill span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: rgba(244,238,226,.65); }
.menu-pot-pill b { font-size: 30px; font-style: italic; color: var(--gold-hi); letter-spacing: .05em; }

.mbtn {
  width: 290px !important; padding: 13px 26px !important;
  font-size: 21px !important; font-style: italic; font-weight: 800; letter-spacing: .12em !important;
  background: rgba(16, 16, 20, 0.86) !important; color: var(--cream) !important;
  border: 1px solid rgba(245, 180, 0, 0.36) !important;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)) !important;
  cursor: pointer; transition: transform .12s, background .12s, filter .12s;
}
.mbtn:hover { background: rgba(245, 180, 0, 0.16) !important; color: var(--gold-hi) !important; transform: translateY(-1px); }
#bPlay, #bResume {
  background: linear-gradient(135deg, #FFBF1A, #D89400) !important;
  color: #080808 !important; border: none !important;
  font-size: 26px !important; padding: 15px 32px !important;
  box-shadow: 0 12px 34px rgba(245, 180, 0, 0.36);
}
#bPlay:hover, #bResume:hover { filter: brightness(1.08); color: #080808 !important; }
.mbtn.small { width: auto !important; padding: 10px 20px !important; font-size: 16px !important; }

.menu-top-right {
  position: fixed; top: 26px; right: 36px; z-index: 55; display: flex; gap: 10px;
}
.wallet-btn {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  padding: 10px 18px; background: rgba(12,12,16,.86); color: var(--gold-hi);
  border: 1px solid rgba(245, 180, 0, 0.4); cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.wallet-btn.connected { border-color: var(--lime); color: var(--lime); }

.mkeys {
  margin-top: 12px; font-family: var(--font-mono); font-size: 11px;
  line-height: 1.9; letter-spacing: .1em; color: rgba(244, 238, 226, 0.65);
}
.mkeys b { color: var(--gold-hi); }

/* Weapons Loadout Grid inside CUSTOMIZE */
.wgrid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  max-height: 310px; overflow-y: auto; padding-right: 4px;
}
.wcard {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 9px 11px; background: rgba(244,238,226,.06);
  border: 1px solid rgba(244,238,226,.16); color: var(--cream); cursor: pointer;
}
.wcard:hover { border-color: var(--gold); background: rgba(245,180,0,.14); }
.wcard.on { border-color: var(--gold-hi); background: rgba(245,180,0,.22); box-shadow: inset 3px 0 0 var(--gold-hi); }
.wcard b { font-size: 15px; letter-spacing: .08em; }
.wcard span { font-family: var(--font-mono); font-size: 10px; color: rgba(244,238,226,.65); }

/* Customize Panel Polish */
#custom.panel.on {
  width: min(500px, 92vw) !important;
  background: rgba(10, 10, 14, 0.92) !important;
  border: 1px solid rgba(245, 180, 0, 0.36) !important;
  padding: 22px 24px !important;
}

/* ========== BLOCK IN-GAME HUD ========== */
.cut-card {
  background: rgba(10, 10, 14, 0.84);
  border: 1px solid rgba(245, 180, 0, 0.36);
  backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.hud-top-center {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.pot-banner { display: flex; align-items: center; gap: 18px; padding: 8px 24px; }
.pot-logo-mini { width: 28px; height: 28px; border-radius: 5px; }
.pot-block { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.pot-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: .24em; color: rgba(244,238,226,.6); }
.pot-amount { font-size: 28px; font-style: italic; font-weight: 800; color: var(--gold-hi); letter-spacing: .04em; }
.pot-divider { width: 1px; height: 26px; background: rgba(245, 180, 0, 0.35); }
.round-status-text { font-size: 20px; font-style: italic; font-weight: 800; letter-spacing: .08em; color: var(--cream); min-width: 190px; text-align: center; }
.round-status-text.carrier-you { color: var(--lime); }
.round-status-text.carrier-enemy { color: var(--gold-hi); }

.zone-strip { display: flex; gap: 8px; }
.zone-pill {
  padding: 4px 12px; background: rgba(8, 8, 10, 0.8);
  border: 1px solid rgba(245, 180, 0, 0.25);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: rgba(244,238,226,.65);
}
.zone-pill.nearest { border-color: var(--gold-hi); color: var(--gold-hi); background: rgba(245, 180, 0, 0.18); }

/* 3D Projected World Markers */
#worldMarkers { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 18; }
.wmarker {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  will-change: transform;
  padding: 3px 9px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em;
  background: rgba(8, 8, 10, 0.82); border: 1px solid rgba(245, 180, 0, 0.55); color: var(--gold-hi);
  white-space: nowrap;
}
.wmarker span { color: var(--cream); opacity: 0.85; margin-left: 4px; }
.wmarker.mk-bag, .wmarker.mk-carrier {
  background: rgba(245, 180, 0, 0.92); color: #080808; border-color: #fff2c2;
  box-shadow: 0 0 18px rgba(245, 180, 0, 0.65);
}
.wmarker.mk-bag span, .wmarker.mk-carrier span { color: #080808; }
.wmarker.mk-zone.hot { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 16px rgba(184, 255, 0, 0.4); }

.minimap-wrap { position: fixed; top: 16px; left: 16px; padding: 6px; }
#minimapCanvas { display: block; width: 168px; height: 168px; }
.minimap-caption { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--gold); text-align: center; margin-top: 4px; }

#killFeed { position: fixed; top: 16px; right: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; width: 320px; }
.kill-entry {
  padding: 6px 12px; background: rgba(8, 8, 10, 0.82); border-right: 3px solid var(--gold);
  font-family: var(--font-mono); font-size: 11px; color: var(--cream);
}
.kill-entry.bag-event { border-right-color: var(--gold-hi); color: var(--gold-hi); font-weight: 700; }
.kill-entry.camp-event { border-right-color: var(--danger); color: #ff8e80; }

.hud-bottom-left { position: fixed; bottom: 20px; left: 20px; padding: 14px 20px; min-width: 240px; }
.hp-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.hp-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: rgba(244,238,226,.62); }
.hp-num { font-size: 36px; font-style: italic; font-weight: 800; line-height: 0.9; color: var(--cream); }
.hp-track { height: 7px; background: rgba(244, 238, 226, 0.14); overflow: hidden; }
.hp-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transition: width .12s; }
.hp-fill.low { background: var(--danger); }
.hud-carrier-tag { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--lime); display: none; }
.hud-carrier-tag.show { display: block; }

.hud-bottom-right { position: fixed; bottom: 20px; right: 20px; padding: 14px 20px; min-width: 290px; text-align: right; }
.weapon-slots { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.w-slot { font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; border: 1px solid rgba(244,238,226,.16); color: rgba(244,238,226,.6); }
.w-slot.active { border-color: var(--gold-hi); background: var(--gold-hi); color: #080808; font-weight: 700; }
.ammo-row { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; }
.ammo-cur { font-size: 40px; font-style: italic; font-weight: 800; line-height: 0.9; color: var(--cream); }
.ammo-max { font-family: var(--font-mono); font-size: 14px; color: rgba(244,238,226,.6); }
.reload-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--gold-hi); margin-top: 4px; min-height: 14px; }

#carPrompt {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  padding: 10px 24px; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; color: var(--lime); border-color: rgba(184, 255, 0, 0.55); display: none;
}
#carPrompt.show { display: block; }

#crosshair { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; pointer-events: none; }
.ch-line { position: absolute; background: rgba(244, 238, 226, 0.92); box-shadow: 0 0 4px #000; }
.ch-top { width: 2px; height: 7px; left: 12px; top: 1px; }
.ch-bot { width: 2px; height: 7px; left: 12px; bottom: 1px; }
.ch-left { width: 7px; height: 2px; top: 12px; left: 1px; }
.ch-right { width: 7px; height: 2px; top: 12px; right: 1px; }
.ch-dot { position: absolute; width: 3px; height: 3px; left: 11.5px; top: 11.5px; border-radius: 50%; background: var(--gold-hi); }

#hitMarker { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg); width: 22px; height: 22px; opacity: 0; pointer-events: none; transition: opacity .08s; }
#hitMarker::before, #hitMarker::after { content: ''; position: absolute; background: var(--gold-hi); }
#hitMarker::before { width: 2px; height: 22px; left: 10px; top: 0; }
#hitMarker::after { width: 22px; height: 2px; top: 10px; left: 0; }
#hitMarker.kill::before, #hitMarker.kill::after { background: var(--lime); }

#centerBanner { position: fixed; top: 22%; left: 50%; transform: translateX(-50%); text-align: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
#centerBanner.show { opacity: 1; }
.cb-kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: .28em; color: var(--gold-hi); }
.cb-main { font-size: 68px; font-style: italic; font-weight: 800; line-height: 0.92; color: var(--cream); text-shadow: 0 8px 30px #000; }

#cashoutProgress { position: fixed; top: 62%; left: 50%; transform: translateX(-50%); width: 320px; padding: 14px 20px; text-align: center; display: none; }
#cashoutProgress.show { display: block; }
.co-title { font-size: 26px; font-style: italic; font-weight: 800; color: var(--gold-hi); margin-bottom: 8px; }
.co-track { height: 8px; background: rgba(244,238,226,.16); overflow: hidden; }
.co-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--lime)); }

#antiCampAlert { position: fixed; top: 30%; left: 50%; transform: translateX(-50%); text-align: center; padding: 16px 34px; background: rgba(28, 6, 4, 0.9); border: 2px solid var(--danger); display: none; }
#antiCampAlert.show { display: block; }
.ac-title { font-size: 42px; font-style: italic; font-weight: 800; color: var(--danger); line-height: 1; }
.ac-sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; color: var(--cream); margin-top: 6px; }

#respawnOverlay, #winOverlay { position: fixed; inset: 0; z-index: 35; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
#respawnOverlay { background: rgba(8, 8, 10, 0.56); }
#respawnOverlay.show, #winOverlay.show { display: flex; }
.respawn-title { font-size: 74px; font-style: italic; font-weight: 800; color: var(--danger); }
.respawn-by { font-family: var(--font-mono); font-size: 14px; letter-spacing: .16em; color: var(--cream); }
.respawn-count { font-size: 52px; font-style: italic; color: var(--gold-hi); }

#winOverlay { background: radial-gradient(circle at 50% 45%, rgba(245, 180, 0, 0.28), rgba(8, 8, 10, 0.88) 70%); }
.win-kicker { font-family: var(--font-mono); font-size: 14px; letter-spacing: .3em; color: var(--gold-hi); }
.win-title { font-size: 92px; font-style: italic; font-weight: 800; line-height: 0.88; color: var(--cream); }
.win-player { font-size: 44px; font-style: italic; color: var(--gold-hi); }
.win-pot { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--lime); }
.win-next { font-family: var(--font-mono); font-size: 13px; letter-spacing: .2em; color: rgba(244,238,226,.7); margin-top: 12px; }

#scoreboard { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 42; width: min(640px, 92vw); padding: 20px 24px; display: none; }
#scoreboard.show { display: block; }
.sb-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid rgba(245,180,0,.35); margin-bottom: 12px; }
.sb-title { font-size: 30px; font-style: italic; color: var(--gold-hi); }
.sb-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; }
.sb-table th { text-align: left; padding: 6px 8px; color: rgba(244,238,226,.6); border-bottom: 1px solid rgba(244,238,226,.14); }
.sb-table td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.05); }
.sb-table tr.me { background: rgba(245,180,0,.15); color: var(--gold-hi); font-weight: 700; }

#blockToast { position: fixed; top: 130px; left: 50%; transform: translateX(-50%); padding: 8px 18px; background: rgba(8,8,10,.88); border: 1px solid var(--gold); color: var(--gold-hi); font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 45; }
#blockToast.show { opacity: 1; }

#howToModal { background: rgba(6,6,8,.82); z-index: 80; }
.howto-box { width: min(620px, 92vw); padding: 26px 30px; text-align: left; }
.howto-box h2 { font-size: 36px; font-style: italic; color: var(--gold-hi); margin: 0 0 16px; }
.howto-box p { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--cream); margin: 10px 0; padding-left: 12px; border-left: 3px solid var(--gold); }
