* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; background: #16181d; color: #e8e6df;
  font-family: 'Courier New', ui-monospace, Menlo, monospace;
}
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; margin: 0 0 6px; }
h1 { font-size: 2rem; letter-spacing: 0.5px; }
h1 .sub { color: #d98a3d; font-style: italic; }
.tag { color: #9a9890; font-size: 0.85rem; }
.hidden { display: none !important; }
.screen { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; }
.panel { background: #1f2229; border: 1px solid #3a3e48; border-radius: 10px; padding: 20px 24px; max-width: 900px; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
label { display: block; margin: 10px 0; font-size: 0.9rem; color: #c9c7bf; }
input, select { background: #0f1115; border: 1px solid #44484f; color: #e8e6df; border-radius: 5px; padding: 7px 9px; font-family: inherit; font-size: 0.95rem; width: 100%; margin-top: 4px; }
input[type=range] { width: 100%; }
button { cursor: pointer; border-radius: 6px; border: 1px solid #44484f; background: #2a2e36; color: #e8e6df; padding: 9px 16px; font-family: inherit; font-size: 0.95rem; }
button.primary { background: #c15b2c; border-color: #c15b2c; color: #fff; font-weight: bold; margin-top: 12px; }
button.primary:hover { background: #d9712f; }
button:disabled { opacity: 0.45; cursor: default; }

.row-split { display: flex; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.card { flex: 1; min-width: 280px; background: #191c22; border: 1px solid #333741; border-radius: 8px; padding: 14px; }

.version-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.version-card { border: 1px solid #3a3e48; border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.version-card.selected { border-color: #d9712f; background: #2a2016; }
.version-card b { color: #f2b35c; }
.version-card .vtag { display: block; color: #9a9890; font-size: 0.78rem; margin-top: 2px; }

.custom-options { margin-top: 10px; padding: 10px; border: 1px dashed #44484f; border-radius: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.custom-options .weapon-toggles { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.custom-options .weapon-toggles label { display: inline-flex; align-items: center; gap: 4px; width: auto; background: #0f1115; padding: 4px 8px; border-radius: 4px; }
.custom-options .weapon-toggles input { width: auto; margin: 0; }

.player-list { list-style: none; padding: 0; }
.player-list li { padding: 6px 10px; border-bottom: 1px solid #2c2f37; display: flex; align-items: center; gap: 8px; }
.player-list .swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

#hud-top { display: flex; justify-content: space-between; max-width: 1000px; margin: 8px auto 0; padding: 0 8px; font-size: 0.9rem; color: #d7b48a; }
canvas { display: block; margin: 6px auto 0; background: #15202e; border: 1px solid #333741; max-width: 100%; height: auto; }
#hud-bottom { max-width: 1000px; margin: 6px auto 0; display: flex; gap: 16px; align-items: center; padding: 10px; background: #1f2229; border: 1px solid #3a3e48; border-radius: 8px; flex-wrap: wrap; }
.controls-left { display: flex; gap: 14px; }
.stat { font-size: 0.85rem; color: #c9c7bf; }
.stat span { color: #f2b35c; font-weight: bold; }
.controls-mid { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; flex: 1; }
.controls-mid label { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.controls-mid input[type=range] { width: 110px; }
.controls-right { width: 140px; }
#timerBar { background: #0f1115; border-radius: 5px; height: 10px; overflow: hidden; border: 1px solid #44484f; }
#timerFill { height: 100%; background: #c15b2c; width: 100%; transition: width 0.3s linear; }

.shop-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; max-height: 50vh; overflow-y: auto; }
.shop-row { display: flex; align-items: center; justify-content: space-between; background: #191c22; border: 1px solid #333741; border-radius: 6px; padding: 8px 10px; gap: 10px; }
.shop-row .name { font-weight: bold; color: #f2b35c; min-width: 150px; }
.shop-row .price { color: #9a9890; min-width: 70px; }
.shop-row .buyctl { display: flex; gap: 6px; align-items: center; }
.shop-row .buyctl button { padding: 4px 10px; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center; z-index: 50; }
