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

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #ff6ec7, #ff9cee);
  min-height: 100vh;
  color: white;
}

#app {
  max-width: 400px;
  margin: 0 auto;
  padding: 10px;
}

h1 {
  text-align: center;
  margin: 15px 0;
  font-size: 24px;
}

.game-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.egirl-display {
  position: relative;
  width: 250px;
  height: 300px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  overflow: hidden;
}

.egirl-display > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.categories {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 5px;
}

.category-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  background: rgba(255,255,255,0.3);
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.category-btn.active {
  background: rgba(255,255,255,0.8);
  color: #ff6ec7;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.item-btn {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 15px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: all 0.3s;
}

.item-btn.selected {
  border-color: white;
  background: rgba(255,255,255,0.6);
}

.action-btn {
  padding: 15px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(135deg, #ff6ec7, #ff9cee);
  color: white;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.action-btn:active {
  transform: scale(0.95);
}

@media (max-width: 480px) {
  #app {
    padding: 5px;
  }
  
  .egirl-display {
    width: 200px;
    height: 240px;
  }
}
