body {
  background: linear-gradient(#07111e, #1a4974);
  color: white;
  font-family: sans-serif;
  text-align: center;
}

.card {
  background: linear-gradient(#172a60, #221947 64%, #121212);
  border: 1px solid #ffffff1a;
  border-radius: 20px;
  padding: 40px;
  margin: 60px auto;
  max-width: 400px;
}

button {
  background: #4de7ff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 16px;
  cursor: pointer;
}
button:hover {
  background: #b084ff;
}

#egg {
  text-shadow: 0 0 30px #ffd166;
  margin: 10px 0;
}

#actions {
  margin-top: 16px;
}
#actions button {
  margin: 0 6px;
}
/* 状态行：图标、文字、数字三列对齐 */
.stat-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 16px;
  text-align: left;
}
.stat-icon {
  text-align: center;
}
.stat-value {
  font-weight: bold;
  color: #4de677;
  min-width: 36px;
  text-align: right;
}

/* 名字输入框和孵化按钮等高并排 */
.name-line {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 8px;
}
.name-line input {
  flex: 1;
  padding: 10px 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ffffff20;
  background: #ffffff10;
  color: white;
  outline: none;
}
.name-line input::placeholder {
  color: #9eb2cc;
}
.name-line input:focus {
  border-color: #4de7ff;
}
.name-line button {
  margin: 0;
}

#shop {
  margin: 10px 0;
}
.shop-item {
  margin: 4px;
}
#backpack {
  list-style: none;
  padding: 0;
}
#backpack li {
  padding: 4px 0;
  color: #ffd166;
}
