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

body {
  background-color: #0d0c0b;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: Georgia, 'Times New Roman', serif;
  overflow: hidden;
}

#game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: calc(100% - 40px);
  max-width: calc(100vw - 40px);
}

#info-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
  background-color: #2a2622;
  border: 2px solid #3d3a35;
  border-radius: 4px;
  color: #c4b59d;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#player-name {
  font-weight: bold;
  color: #c9a855;
}

#player-count {
  color: #a89880;
}

#logout-btn {
  background: linear-gradient(to bottom, #8b3a3a 0%, #6a2a2a 100%);
  color: #e8e0d4;
  border: 1px solid #5a2020;
  border-top-color: #a04a4a;
  border-left-color: #a04a4a;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-family: Georgia, serif;
  box-shadow: 0 2px 3px rgba(0,0,0,0.4);
}

#logout-btn:hover {
  background: linear-gradient(to bottom, #9a4a4a 0%, #7a3a3a 100%);
}

#logout-btn:active {
  border-top-color: #5a2020;
  border-left-color: #5a2020;
  border-bottom-color: #a04a4a;
  border-right-color: #a04a4a;
}

#canvas-wrapper {
  position: relative;
}

#game-canvas {
  border: 4px solid #3d3a35;
  border-top-color: #4a4540;
  border-left-color: #4a4540;
  border-bottom-color: #1a1816;
  border-right-color: #1a1816;
  border-radius: 4px;
  background-color: #1a1816;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6), inset 0 0 20px rgba(0,0,0,0.3);
}

#zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#zoom-controls button {
  width: 34px;
  height: 34px;
  background: linear-gradient(to bottom, #3d3a35 0%, #2a2622 100%);
  color: #c9a855;
  border: 2px solid #1a1816;
  border-top-color: #4a4540;
  border-left-color: #4a4540;
  border-radius: 4px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

#zoom-controls button:hover {
  background: linear-gradient(to bottom, #4a4540 0%, #3d3a35 100%);
  color: #dfc070;
}

#zoom-controls button:active {
  border-top-color: #1a1816;
  border-left-color: #1a1816;
  border-bottom-color: #4a4540;
  border-right-color: #4a4540;
}

#skills-btn,
#equipment-btn,
#inventory-btn {
  position: absolute;
  bottom: 10px;
  padding: 8px 16px;
  background: linear-gradient(to bottom, #3d3a35 0%, #2a2622 100%);
  color: #c9a855;
  border: 2px solid #1a1816;
  border-top-color: #4a4540;
  border-left-color: #4a4540;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  font-family: Georgia, serif;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

#skills-btn {
  left: 10px;
}

#equipment-btn {
  right: 110px;
}

#inventory-btn {
  right: 10px;
}

#skills-btn:hover,
#equipment-btn:hover,
#inventory-btn:hover {
  background: linear-gradient(to bottom, #4a4540 0%, #3d3a35 100%);
  color: #dfc070;
}

#skills-btn:active,
#equipment-btn:active,
#inventory-btn:active {
  border-top-color: #1a1816;
  border-left-color: #1a1816;
  border-bottom-color: #4a4540;
  border-right-color: #4a4540;
}

#instructions {
  color: #706860;
  font-size: 12px;
  margin-top: 5px;
}

/* Login page styles */
.login-container {
  text-align: center;
}

.login-container h1 {
  color: #c9a855;
  margin-bottom: 30px;
  font-size: 32px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.auth-form {
  background: linear-gradient(to bottom, #2a2622 0%, #1a1816 100%);
  padding: 30px;
  border-radius: 6px;
  width: 320px;
  border: 3px solid #3d3a35;
  border-top-color: #4a4540;
  border-left-color: #4a4540;
  border-bottom-color: #151311;
  border-right-color: #151311;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.tabs {
  display: flex;
  margin-bottom: 20px;
  gap: 10px;
}

.tab {
  flex: 1;
  padding: 10px;
  background: linear-gradient(to bottom, #2a2622 0%, #1a1816 100%);
  color: #706860;
  border: 2px solid #3d3a35;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-family: Georgia, serif;
  transition: all 0.2s;
}

.tab:hover {
  color: #a89880;
  background: linear-gradient(to bottom, #3d3a35 0%, #2a2622 100%);
}

.tab.active {
  background: linear-gradient(to bottom, #8b5a2b 0%, #5c3d2e 100%);
  color: #e8e0d4;
  font-weight: bold;
  border-color: #a87c4f;
  border-top-color: #c49660;
  border-left-color: #c49660;
}

.form-content {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.form-content.active {
  display: flex;
}

.form-content input {
  padding: 12px 15px;
  border: 2px solid #3d3a35;
  border-radius: 4px;
  background: #1a1816;
  color: #c4b59d;
  font-size: 14px;
  font-family: Georgia, serif;
  outline: none;
  transition: border-color 0.2s;
}

.form-content input:focus {
  border-color: #8b5a2b;
}

.form-content input::placeholder {
  color: #706860;
}

.form-content button {
  padding: 12px;
  background: linear-gradient(to bottom, #8b5a2b 0%, #5c3d2e 100%);
  color: #e8e0d4;
  border: 2px solid #5c3d2e;
  border-top-color: #a87c4f;
  border-left-color: #a87c4f;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  font-family: Georgia, serif;
  transition: background 0.2s;
  margin-top: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.form-content button:hover {
  background: linear-gradient(to bottom, #a87c4f 0%, #8b5a2b 100%);
}

.form-content button:active {
  border-top-color: #5c3d2e;
  border-left-color: #5c3d2e;
  border-bottom-color: #a87c4f;
  border-right-color: #a87c4f;
}

.error {
  color: #8b3a3a;
  font-size: 13px;
  min-height: 20px;
}
