body {
  background: #0d0d0d;
  color: white;
  font-family: monospace;
  padding: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#login-box {
    background: #121212;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
}

#login-box h2 {
    margin-top: 0;
}

#login-box input {
    display: block;
    width: 250px;
    padding: 10px;
    margin: 10px 0 20px 0;
    background: #222;
    border: 1px solid #444;
    color: white;
    font-size: 1em;
    border-radius: 4px;
}

#login-box button {
    width: auto;
    padding: 10px 30px;
    text-align: center;
}

#game-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.game-column {
  background: #121212;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#left-column {
  width: 40%;
}
#right-column {
  width: 60%;
}

h1, h2, h3 {
  color: #eee;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
  margin-top: 0;
}

p {
  margin: 8px 0;
}

.brainrot {
  background: #1a1a1a;
  padding: 10px;
  margin-bottom: 8px;
  border-left: 5px solid #888;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95em;
}

.brainrot img {
  width: 32px;
  height: 32px;
  background: #2f2f2f;
  border-radius: 4px;
}

button {
  background: #333;
  color: white;
  padding: 10px 15px;
  margin: 5px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border-radius: 4px;
  font-size: 1em;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: #555;
}
button:active {
    transform: scale(0.98);
}

button:disabled {
  background: #222;
  color: #666;
  cursor: not-allowed;
}

#ranking-container {
  flex-grow: 1;
}

#ranking {
  margin-top: 20px;
  padding-top: 10px;
}

.rank-item {
  padding: 8px;
  margin-bottom: 5px;
  background: #1a1a1a;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #1a1a1a;
}

.rank-item:hover {
  background: #2a2a2a;
}

.rank-item.selected {
  border-color: #eee;
}

.rank-item.is-you {
    font-weight: bold;
    border-color: #f1c40f;
}

#target-info {
  margin-top: 20px;
  padding: 10px;
  background: #1a1a1a;
  border-radius: 4px;
  min-height: 50px;
}

#log-container {
    margin-top: 0;
}

#log {
    margin-top: 10px;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 4px;
    height: 150px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column-reverse;
}

#log p {
    margin: 2px 0;
    font-size: 0.9em;
}

#sell-container, #shop, #powerups {
    margin-top: 20px;
}

#brainrot-sell-list {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
}

.sell-item label {
    display: block;
    cursor: pointer;
    padding: 4px;
    border-radius: 2px;
}

.sell-item label:hover {
    background: #2a2a2a;
}

.sell-evolve-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.sell-evolve-buttons button {
    flex: 1;
    text-align: center;
}

#shop-items, #permanent-upgrades {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.shop-item, .permanent-upgrade-item {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 5px 10px;
}

.shop-item small, .permanent-upgrade-item small {
    grid-column: 1 / -1;
    color: #999;
}

.shop-item button, .permanent-upgrade-item button {
    width: auto;
    padding: 5px 10px;
    font-size: 0.9em;
    text-align: center;
}

#evolve-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

#evolve-container select {
    flex-grow: 1;
    padding: 8px;
    background: #222;
    border: 1px solid #444;
    color: white;
    font-size: 0.95em;
    border-radius: 4px;
}

#evolve-container button {
    width: auto;
    text-align: center;
    padding: 8px 15px;
}

#achievement-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.achievement-item {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 4px;
    border-left: 5px solid #f1c40f; /* Gold border for achievements */
}

.achievement-item.locked {
    border-left-color: #555;
    color: #888;
}

.achievement-item.locked .achievement-name {
    color: #888;
}

.achievement-name {
    font-weight: bold;
    color: #f1c40f;
    margin-bottom: 5px;
}

.achievement-desc {
    font-size: 0.9em;
    color: #bbb;
}

.tab-buttons {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid #444;
    margin-bottom: 15px;
}
.tab-btn {
    flex-grow: 1;
    border: none;
    background: #222;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    margin: 0;
    width: auto;
    text-align: center;
}
.tab-btn.active {
    background: #3e3e3e;
    font-weight: bold;
}
.tab-btn:not(.active):hover {
    background: #333;
}
.tab-section {
    display: none;
}
.tab-section.active {
    display: block;
}