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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.shiba-display {
  width: 100%;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 300px;
  justify-content: center;
}

#shibaImage {
  width: 100%;
  max-width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#shibaImage.loaded {
  opacity: 1;
}

.shiba-name {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease 0.2s;
}

.shiba-name.show {
  opacity: 1;
}

.generate-btn {
  width: 100%;
  max-width: 280px;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: #333;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Noto Sans JP', sans-serif;
}

.generate-btn:hover {
  background: #555;
  transform: translateY(-1px);
}

.generate-btn:active {
  transform: translateY(0);
}

.generate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 280px;
  opacity: 0;
  transition: opacity 0.3s ease 0.4s;
}

.stats.show {
  opacity: 1;
}

.stat-item {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

@media (max-width: 480px) {
  #shibaImage {
    max-width: 240px;
    height: 240px;
  }
  
  .shiba-name {
    font-size: 20px;
  }
}