* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #222;
  font-family: Arial, sans-serif;
}

.player-board {
  width: 390px;
  min-height: 844px;
  background: #fff;
  padding-top: 14px;
  position: relative;
}

.player-info {
  width: 350px;
  height: 90px;
  margin: 0 auto;
  padding: 14px 20px;
  border-radius: 12px;
  background: #eee;
}

.player-name {
  font-size: 14px;
  margin-bottom: 16px;
}

.hp {
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.hp strong {
  font-size: 16px;
}

.character-area {
  width: 350px;
  height: 330px;
  margin: 59px auto 25px;
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  background-color: #ccc;
  background-image: url("village.png");
  background-size: cover;
  background-position: center;
}

.day {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 5;
  font-size: 12px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 5px;
}

.character-label {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 5;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 5px;
}

.warrior {
  position: absolute;
  width: 100px;
  height: 300px;
  left: 105px;
  top: 10px;
  z-index: 3;
}

.warrior-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.resources {
  width: 350px;
  height: 112px;
  margin: 0 auto;
  padding: 6px 12px;
  background: #ddd;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 46px 46px;
  gap: 8px;
}

.resource-card {
  background: #f6f6f6;
  border: 1px solid #c7c7c7;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.resource-card span {
  font-size: 11px;
  line-height: 1;
}

.resource-card strong {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1;
}

.actions {
  width: 350px;
  height: 170px;
  margin: 24px auto 20px;
  background: #ddd;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding-top: 45px;
}

.actions button {
  width: 94px;
  height: 44px;
  border: 1px solid #b8b8b8;
  border-radius: 10px;
  background: #ededed;
  font-size: 12px;
  cursor: pointer;
}

.actions button:active {
  transform: translateY(2px);
  background: #ddd;
}

@media (max-width: 390px) {
  .player-board {
    width: 100vw;
  }
}
