* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

.container {
  width: min(100%, 405px);
  aspect-ratio: 9 / 16;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow-y: auto;
}

h1 {
  margin: 0 0 16px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.personal-target-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.personal-target-card .label,
.personal-target-card .value {
  text-align: center;
}

.personal-target-card .value {
  font-size: 20px;
}

.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

.label {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

.value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

input[type="text"],
input[type="file"] {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px;
  width: 100%;
}

button {
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.result {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}

.success {
  color: #047857;
}

.error {
  color: #b91c1c;
}

.notice {
  margin-top: 16px;
}

.notice-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.hero-panel {
  margin-top: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.hero-toggle {
  width: 100%;
  text-align: center;
  background: #dc2626;
  color: #fff;
  border: 0;
  border-radius: 0;
}

.hero-content {
  padding: 10px 12px;
}

.hero-list {
  display: grid;
  gap: 8px;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f9fafb;
  font-size: 13px;
  line-height: 1.35;
}

.hero-row strong {
  font-size: 13px;
  font-weight: 600;
}

.hero-empty {
  margin: 0;
  color: #6b7280;
  text-align: center;
}

@media (max-height: 720px) {
  .container {
    aspect-ratio: auto;
    min-height: calc(100vh - 24px);
  }
}
