* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f6f8;
  color: #1a1a1a;
  line-height: 1.5;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

header { text-align: center; margin-bottom: 16px; }
h1 { margin: 0 0 4px; font-size: 28px; }
.subtitle { margin: 0; color: #555; }
.date { margin: 6px 0 0; color: #777; font-size: 14px; }
h2 { margin: 0 0 10px; font-size: 20px; }
h3 { margin: 18px 0 8px; font-size: 16px; }

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.totals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat {
  background: #f0f7ff;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.stat-label { display: block; font-size: 13px; color: #555; }
.stat-value { display: block; font-size: 26px; font-weight: 700; margin-top: 4px; }

.timer-display {
  font-size: 44px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  margin: 10px 0;
  font-variant-numeric: tabular-nums;
}
.timer-status { text-align: center; margin: 0; color: #333; }
.progress {
  height: 10px;
  background: #e8e8e8;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: #1a8a4a;
  width: 0%;
  transition: width 0.5s linear;
}
.progress-text { text-align: center; color: #555; font-size: 14px; margin: 6px 0 14px; }

.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
button {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 16px;
  cursor: pointer;
}
button:hover:not(:disabled) { background: #155cb0; }
button:disabled { background: #c0c0c0; cursor: not-allowed; }
button.secondary { background: #fff; color: #1a73e8; border: 1px solid #1a73e8; }
button.secondary:hover:not(:disabled) { background: #eaf2fe; }
.link-button {
  background: none;
  color: #1a73e8;
  padding: 6px 0;
  font-size: 14px;
  text-decoration: underline;
}
.hint { color: #666; font-size: 14px; margin: 12px 0 4px; }
.message { color: #1a8a4a; font-weight: 600; min-height: 20px; margin: 8px 0 0; }

form label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: 14px; }
form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form button { margin-top: 14px; width: 100%; }

.reward-list, .checklist { list-style: none; padding: 0; margin: 0; }
.reward-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #eee;
  padding: 10px 0;
}
.reward-list .reward-info { flex: 1; }
.reward-list .reward-amounts { font-weight: 700; white-space: nowrap; }
.reward-list .reward-date { color: #777; font-size: 13px; }
.delete-btn {
  background: #fff;
  color: #c00;
  border: 1px solid #c00;
  padding: 6px 10px;
  font-size: 14px;
}
.checklist li {
  border-top: 1px solid #eee;
  padding: 10px 0;
}
.checklist label {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
}
.checklist input[type="checkbox"] { width: 20px; height: 20px; }
.checklist li.done span { text-decoration: line-through; color: #777; }

footer { text-align: center; color: #777; font-size: 13px; }

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  .timer-display { font-size: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .button-row button { flex: 1; }
}
