body {
  background: linear-gradient(115deg, #16192a 50%, #231f46 100%);
  color: #fff;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  margin: 0;
  min-height: 100vh;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30,33,64,0.98);
  padding: 18px 40px;
  box-shadow: 0 5px 40px #0005;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo span {
  color: #6a5af9;
  font-size: 1.45rem;
  letter-spacing: 1.5px;
  font-weight: bold;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: 6px 18px;
  font-size: 1.05em;
  border-radius: 7px;
  transition: background 0.1s, color 0.13s;
}
nav a.active, nav a:hover {
  background: linear-gradient(90deg,#17b5ff 10%, #6a5af9 100%);
  color: #fff;
}
.balance {
  margin-left: 26px;
  background: #231f46;
  border-radius: 8px;
  padding: 7px 14px;
  color: #fff;
  font-weight: bold;
  letter-spacing: 1.2px;
}
.modal {
  display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(28, 22, 48, 0.87); align-items: center; justify-content: center;
}
.modal-content {
  background: #221e3a;
  padding: 28px 26px 16px 26px;
  border-radius: 22px;
  max-width: 400px;
  min-width: 260px;
  margin: 50px auto 0 auto;
  position: relative;
  color: #fff;
  box-shadow: 0 8px 30px #6a5af977;
}
.modal .close {
  position: absolute; right: 15px; top: 14px; color: #8ec7f9; font-size: 1.5em; cursor: pointer;
}
#inventory-items {
  display: flex; flex-wrap: wrap; gap: 11px; margin-top: 18px; justify-content: flex-start;
}
#inventory-items .inv-item {
  background: linear-gradient(120deg, #2e2850 40%, #2a2e6c 100%);
  border-radius: 13px; min-width: 74px; padding: 9px 4px 4px 4px;
  text-align: center; color: #fff;
}
#inventory-items .inv-item img {
  max-width: 50px; margin-bottom: 3px;
}
#inventory-items .price {
  font-size: 0.95em; color: #8ec7f9;
}
@media (max-width: 900px) {
  .header { flex-direction: column; padding: 14px 10px; }
}
