:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --primary: #2f72ff;
  --text: #1c2433;
  --muted: #6f7a90;
  --success: #1dbf73;
  --border: #e1e7f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3fb 100%);
  color: var(--text);
}

.hero {
  text-align: center;
  padding: 2.4rem 1rem 1.2rem;
}

.hero h1 {
  margin: 0;
  font-size: 2rem;
}

.hero p {
  margin-top: 0.8rem;
  color: var(--muted);
}


.notice {
  margin: 0.75rem auto 0;
  max-width: 680px;
  background: #ecfdf3;
  color: #146c43;
  border: 1px solid #b4edcb;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
}

.notice.error {
  background: #fff1f1;
  color: #ab1f2e;
  border-color: #ffc9cf;
}
.layout {
  max-width: 1080px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(24, 48, 95, 0.06);
}

.run-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.full-width {
  grid-column: 1 / -1;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.primary {
  grid-column: 1 / -1;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  padding: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.stats-grid div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  display: grid;
  gap: 0.25rem;
}

.stats-grid span {
  color: var(--muted);
  font-size: 0.85rem;
}

.challenge {
  margin-top: 1rem;
}

.challenge-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.challenge-head p {
  margin: 0;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #dfe7f5;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2f72ff, #1dbf73);
  transition: width 0.3s ease;
}

.feed-card {
  grid-column: 1 / -1;
}

.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.feed {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.feed-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
  background: #fcfdff;
}

.feed-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.feed-item h3 {
  margin: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.note {
  margin: 0.6rem 0;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tags span {
  font-size: 0.85rem;
  background: #edf3ff;
  color: #3f5c95;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.cheer-btn {
  margin-top: 0.75rem;
  border: 1px solid #c8d8ff;
  background: #f2f7ff;
  color: #1f4ea7;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

@media (max-width: 840px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .run-form,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .feed-head {
    flex-direction: column;
    align-items: stretch;
  }
}
