body {
  background: #181924;
  color: #e0e0e0;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  margin: 0;
  min-height: 100vh;
}
.container {
  max-width: 900px;
  margin: 2em auto;
  background: #23243a;
  padding: 2em 2em 1em 2em;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
h1, h2, h3 {
  color: #4c8aff;
  margin-bottom: 0.5em;
}
.balance, .portfolio, .market {
  margin-bottom: 1.5em;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.coin {
  background: #202133;
  margin-bottom: 2em;
  padding: 1em;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(30,30,60,0.15);
}
.coin h3 {
  margin-top: 0;
}
input[type="number"] {
  width: 80px;
  margin-right: 0.5em;
  padding: 0.3em;
  border-radius: 4px;
  border: 1px solid #444;
  background: #222;
  color: #e0e0e0;
}
button {
  background: #3143c5;
  border: none;
  color: #fff;
  padding: 0.5em 1.1em;
  border-radius: 5px;
  margin: 0.2em 0.2em 0.2em 0;
  cursor: pointer;
  transition: background 0.18s;
  font-size: 1em;
}
button:hover {
  background: #4664e4;
}
.reset-btn {
  float: right;
  margin-top: 1em;
  background: #ff4343;
}
.reset-btn:hover {
  background: #ff7676;
}
#game-log {
  margin: 1.5em 0 0.5em 0;
  background: #1a1b2d;
  padding: 1em;
  border-radius: 7px;
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.98em;
}
canvas {
  display: block;
  margin-top: 1em;
  background: #181924;
  border-radius: 5px;
  max-width: 100%;
  height: 220px !important;
}
@media (max-width: 700px) {
  .container {
    padding: 1em 0.4em;
  }
  button, input[type="number"] {
    font-size: 0.97em;
  }
}

/* ADMIN MENU STYLES */
.admin-btn {
  background: #222e4c;
  color: #ffdc5e;
  margin-left: 0.5em;
  font-weight: bold;
}

.admin-modal {
  display: none; /* default hidden */
  position: fixed;
  z-index: 999;
  left: 0; top: 0; width: 100%; height: 100%;
  overflow: auto;
  background: rgba(24,25,36,0.93);
}

.admin-modal-content {
  background: #23243a;
  margin: 8% auto;
  padding: 2em;
  border-radius: 12px;
  max-width: 370px;
  box-shadow: 0 2px 12px #0003;
  color: #e0e0e0;
  position: relative;
}

.admin-modal-content label {
  color: #ffdc5e;
  font-size: 1.09em;
  margin-right: 0.8em;
}

.admin-modal-content input[type="password"], 
.admin-modal-content input[type="number"] {
  background: #181924;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  margin: 0.6em 0 0.6em 0;
  padding: 0.4em;
  width: 100%;
}

.admin-modal-content button {
  background: #4664e4;
  border: none;
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 4px;
  margin-top: 0.5em;
  font-size: 1em;
}

.admin-modal-content .close {
  position: absolute;
  top: 8px; right: 14px;
  font-size: 2em;
  color: #ff7676;
  cursor: pointer;
}
