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

body {
  background: #7ca853;
  color: #fff;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0; left: 0;
  background: radial-gradient(circle, #8bc34a 0%, #689f38 100%);
  z-index: 10;
}

.subtitle {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 3px;
  color: #ffcc00;
  margin-top: -25px;
  margin-bottom: 35px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hidden { display: none !important; }
h1 { color: #fff; font-size: 2rem; margin-bottom: 25px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.menu-title { color: #fff; font-size: 3.5rem; font-weight: 900; margin-bottom: 30px; letter-spacing: 4px; text-shadow: 0 4px 0px #4b7724, 0 6px 15px rgba(0,0,0,0.4); }

input, select {
  background: #fff;
  border: 4px solid #4b7724;
  color: #333;
  padding: 12px 16px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 100%;
  text-align-last: center;
}
input:focus, select:focus { outline: none; border-color: #ffcc00; }

.btn {
  background: #ffcc00;
  color: #333;
  border: none;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 5px 0 #cc9900, 0 5px 10px rgba(0,0,0,0.3);
  transition: all 0.1s;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 4px 0 #cc9900, 0 4px 8px rgba(0,0,0,0.3); }
.btn:disabled { background: #555; color: #888; box-shadow: none; cursor: not-allowed; }

/* HUB INTERFACE GRID */
.hub-container { display: flex; gap: 24px; width: 850px; max-width: 95vw; }
.hub-panel {
  flex: 1;
  background: rgba(40, 44, 36, 0.9);
  border: 4px solid #1e211a;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hub-panel h3 { font-size: 1.1rem; color: #ffcc00; margin-bottom: 15px; text-transform: uppercase; border-bottom: 2px solid #3c4234; padding-bottom: 8px; }

.class-desc {
  background: #1a1d16;
  border: 1px solid #3c4234;
  padding: 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #cbd6c5;
  text-align: left;
  line-height: 1.4;
  min-height: 110px;
  margin-bottom: 20px;
}

/* SMART VAULT STYLE */
.vault-counters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.vault-counters div { background: #1a1d16; border: 1px solid #3c4234; padding: 10px; border-radius: 6px; font-weight: bold; font-size: 0.9rem; }
.small-btn { padding: 8px 20px; font-size: 0.9rem; box-shadow: 0 3px 0 #cc9900; width: 100%; }
.unlock-toast { font-size: 0.9rem; color: #00d2ff; font-weight: bold; margin-top: 10px; min-height: 20px; }

/* HUD DISPLAY ELEMENT CONFIGS */
#topStats { position: absolute; top: 20px; left: 20px; background: rgba(0,0,0,0.6); padding: 12px 18px; border-radius: 6px; font-size: 0.9rem; pointer-events: none; z-index: 5; line-height: 1.4; border: 1px solid #333; }
.storm-warning { color: #ff9900; font-weight: bold; }

#bottomHud {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(40, 44, 36, 0.95);
  border: 4px solid #1e211a;
  padding: 14px;
  border-radius: 12px;
  pointer-events: none;
  z-index: 5;
  width: 500px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.hud-bar-container { display: flex; align-items: center; margin-bottom: 6px; font-weight: bold; }
.bar-label { width: 40px; font-size: 0.8rem; color: #a4b594; }
.bar-bg { flex-grow: 1; height: 14px; background: #1a1d16; border-radius: 4px; overflow: hidden; position: relative; border: 1px solid #3c4234; }
#hpBarFill { width: 100%; height: 100%; background: #22e666; transition: width 0.1s ease; }
#shieldBarFill { width: 25%; height: 100%; background: #00d2ff; transition: width 0.1s ease; }
.bar-text { width: 70px; text-align: right; font-size: 0.85rem; font-family: monospace; }

/* ABILITY HUD BAR */
.ability-dock {
  display: flex;
  align-items: center;
  background: #252a20;
  border: 2px solid #3d4734;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
  gap: 12px;
}
#abilityIcon { font-size: 1.4rem; background: #1a1d16; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 4px; border: 1px solid #4a5441; }
.ready-text { color: #22e666; font-weight: 900; font-size: 0.9rem; font-family: monospace; }
.cooldown-text { color: #ff5555; font-weight: 900; font-size: 0.9rem; font-family: monospace; }

/* INVENTORY SYSTEMS GRID */
.weapon-slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.inv-slot { background: #353b2e; border: 2px solid #23271e; padding: 10px; font-size: 0.85rem; border-radius: 6px; text-align: center; color: #b0bcac; font-weight: bold; position: relative; text-transform: uppercase; }
.slot-num { position: absolute; left: 6px; top: 4px; font-size: 0.65rem; color: #6d7a64; }
.active-slot { border-color: #ffcc00; color: #fff; background: #4a5441; box-shadow: inset 0 0 8px rgba(255,204,0,0.2); }

.ammo-pouch-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; font-size: 0.75rem; border-top: 1px solid #3c4234; padding-top: 8px; text-align: center; font-weight: bold; color: #cbd6c5; }
.text-yellow { color: #ffcc00; }

canvas { display: block; background: #80b24e; }
.storm-phase-damage {
  box-shadow: inset 0 0 100px rgba(255, 0, 0, 0.7);
  animation: pulseStorm 0.4s infinite alternate;
}
@keyframes pulseStorm {
  from { box-shadow: inset 0 0 60px rgba(255, 0, 0, 0.5); }
  to { box-shadow: inset 0 0 120px rgba(255, 0, 0, 0.8); }
}