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

body {
  background: #050505;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Courier New', 'Lucida Console', monospace;
  padding: 20px;
}

.massive-title {
  font-size: 72px;
  font-family: 'Impact', 'Courier New', monospace;
  font-weight: 900;
  text-align: center;
  color: #cc3333;
  text-shadow: 3px 3px 0 #3a0a0a;
  letter-spacing: 8px;
  margin-bottom: 40px;
  word-break: keep-all;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 800px;
}

/* LOGIN / REGISTER */
.auth-box {
  max-width: 400px;
  margin: 0 auto;
}

input {
  width: 100%;
  background: #111;
  border: 1px solid #2a2020;
  padding: 14px;
  margin-bottom: 15px;
  color: #ddd;
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
}

input:focus {
  outline: none;
  border-color: #cc3333;
  background: #1a1111;
}

button {
  background: #1a1111;
  border: 1px solid #cc3333;
  color: #cc5555;
  font-family: monospace;
  font-size: 18px;
  font-weight: bold;
  padding: 12px;
  cursor: pointer;
  transition: all 0.05s;
}

button:active {
  background: #2a1515;
  transform: translateY(2px);
}

.switch {
  text-align: center;
  margin-top: 20px;
  color: #6a4a4a;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.switch:hover { color: #cc5555; }

.error-msg {
  margin-top: 15px;
  padding: 8px;
  background: #1a0a0a;
  color: #cc6666;
  font-size: 12px;
  text-align: center;
  border-left: 3px solid #cc3333;
}

/* GAME LAYOUT */
.game-layout {
  display: flex;
  gap: 40px;
  width: 100%;
}

/* LEFT MENU */
.left-stats {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 220px;
}

.stat-box {
  background: #0a0a0a;
  border: 1px solid #2a1a1a;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #dd8888;
}

.stat-box span {
  color: #fff;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.side-btn {
  width: 100%;
  padding: 15px;
  text-align: left;
  border-left: 4px solid transparent;
}

.side-btn.active-tab {
  background: #1a0a0a;
  border-left: 4px solid #cc3333;
  color: #fff;
}

.logout {
  margin-top: 20px;
  border-color: #6a3a3a;
  color: #aa5555;
}

/* RIGHT CONTENT */
.right-content {
  flex: 1;
}

.tab-view {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-display {
  font-size: 24px;
  font-weight: bold;
  color: #cc5555;
  margin-bottom: 20px;
}

.big-box-button {
  width: 100%;
  max-width: 400px;
  background: #0a0a0a;
  border: 3px solid #cc3333;
  padding: 50px 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 0 #3a1111;
  transition: 0.05s linear;
}

.big-box-button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #3a1111;
}

.box-icon {
  font-size: 72px;
  color: #cc4444;
  margin-bottom: 15px;
}

.box-label {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 4px;
  color: #ffffff; /* White text so it's easier on the eyes */
  font-family: Impact, monospace;
}

.result-area {
  margin-top: 30px;
  background: #0a0a0a;
  padding: 15px 30px;
  font-size: 16px;
  color: #cc7777;
  border-left: 3px solid #cc3333;
}

/* UPGRADES SCREEN */
.upg-title {
  color: #cc3333;
  font-family: Impact;
  letter-spacing: 3px;
  margin-bottom: 25px;
  border-bottom: 1px solid #2a1a1a;
  padding-bottom: 10px;
  width: 100%;
  text-align: center;
}

.upgrade-card {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #2a1a1a;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upg-info h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 5px;
}

.upg-info p {
  color: #888;
  font-size: 14px;
}

.highlight { color: #cc5555; font-weight: bold; }

.upg-buy-btn {
  width: auto;
  min-width: 150px;
  margin: 0;
}

.upg-buy-btn:disabled {
  background: #050505;
  border-color: #333;
  color: #555;
  cursor: not-allowed;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .game-layout {
    flex-direction: column;
  }
  .left-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-box { flex: 1; text-align: center; }
  .nav-menu { width: 100%; flex-direction: row; }
  .side-btn { padding: 10px; text-align: center; border-left: none; border-bottom: 4px solid transparent; }
  .side-btn.active-tab { border-left: none; border-bottom: 4px solid #cc3333; }
  .logout { margin-top: 0; }
  .upgrade-card { flex-direction: column; text-align: center; gap: 15px; }
  .upg-buy-btn { width: 100%; }
}
