/* ==========================================================================
   MÖRK BORG - BASE & THEMING
   ========================================================================== */
:root {
  --mb-yellow: #ffff00;
  --mb-black: #111111;
  --mb-dark-gray: #1e1e1e;
  --mb-pink: #ff0055;
  --mb-white: #f5f5f5;
  --mb-red: #cc0000;
  --mb-font-head: 'Impact', 'Arial Black', sans-serif;
  --mb-font-body: 'Courier New', Courier, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--mb-black);
  color: var(--mb-white);
  font-family: var(--mb-font-body);
  font-size: 14px;
  line-height: 1.4;
  padding: 10px;
}


/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
#app {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

header {
  background-color: var(--mb-yellow);
  color: var(--mb-black);
  padding: 15px;
  text-align: center;
  border: 4px solid var(--mb-white);
  box-shadow: 5px 5px 0px var(--mb-pink);
}

header h1 {
  font-family: var(--mb-font-head);
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

header p {
  font-weight: bold;
  font-size: 0.9rem;
}

/* ==========================================================================
   CARDS & PANELS
   ========================================================================== */
.mb-card {
  background-color: var(--mb-dark-gray);
  border: 3px solid var(--mb-yellow);
  padding: 12px;
  box-shadow: 4px 4px 0px var(--mb-black);
}

.mb-card.violence-card {
  border-color: var(--mb-pink);
  box-shadow: 4px 4px 0px var(--mb-pink);
}

.mb-card h2, .mb-card h3 {
  font-family: var(--mb-font-head);
  text-transform: uppercase;
  color: var(--mb-yellow);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.violence-card h2 {
  color: var(--mb-pink);
}

/* ==========================================================================
   TYPOGRAPHY & INPUTS
   ========================================================================== */
label {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
  color: var(--mb-yellow);
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  background-color: var(--mb-black);
  color: var(--mb-yellow);
  border: 2px solid var(--mb-yellow);
  padding: 8px;
  font-family: var(--mb-font-body);
  font-weight: bold;
  outline: none;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: var(--mb-pink);
}

/* Remove default spinner arrows from number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  appearance: textfield;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.mb-btn {
  background-color: var(--mb-yellow);
  color: var(--mb-black);
  border: 2px solid var(--mb-black);
  font-family: var(--mb-font-head);
  font-size: 1rem;
  padding: 8px 12px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.05s ease, background-color 0.1s ease;
  display: inline-block;
  text-align: center;
}

.mb-btn:hover {
  background-color: var(--mb-pink);
  color: var(--mb-white);
}

.mb-btn:active {
  transform: translate(2px, 2px);
}

.mb-btn-danger {
  background-color: var(--mb-red);
  color: var(--mb-white);
}

/* ==========================================================================
   GRID & STATS
   ========================================================================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.stat-box {
  background-color: var(--mb-black);
  border: 2px solid var(--mb-yellow);
  padding: 8px;
  text-align: center;
}

.stat-box .stat-val {
  font-size: 1.8rem;
  font-family: var(--mb-font-head);
  color: var(--mb-yellow);
}

/* ==========================================================================
   INVENTORY & LISTS
   ========================================================================== */
ul.mb-list {
  list-style: none;
  padding: 0;
}

ul.mb-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   MODALS / POPUPS
   ========================================================================== */
.mb-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.mb-modal-content {
  background-color: var(--mb-black);
  border: 4px solid var(--mb-yellow);
  padding: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 20px var(--
