:root {
  --ink: #ffffff;
  --ink-soft: #9a9a9a;
  --paper: #000000;
  --floor: #000000;
  --line: #262626;
  --brand: #ffffff;
  --brand-ink: #000000;
  --done-bg: #000000;
  --done-ink: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--floor);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
}

.navbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.navbar img {
  height: 26px;
  width: auto;
  display: block;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.intro {
  margin-bottom: 22px;
  text-align: center;
}

.intro h1 {
  font-size: 19px;
  margin: 0 0 6px;
  line-height: 1.3;
}

.intro p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: 16px 0 24px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.task.done {
  background: var(--done-bg);
  border-color: var(--line);
}

.task.locked {
  opacity: 0.45;
}

.task.locked .task-action {
  cursor: not-allowed;
}

.task-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--floor);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.task-icon svg {
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
}

.task-body {
  flex: 1;
  min-width: 0;
}

.task-label {
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 2px;
  letter-spacing: 0.02em;
}

.task-title {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}

.task-action {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-action svg {
  width: 16px;
  height: 16px;
}

.task.done .task-action {
  border-color: var(--done-ink);
  color: var(--done-ink);
}

.footer-btn {
  margin-top: 26px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 9px;
  background: var(--line);
  color: var(--ink-soft);
  border: none;
  font-size: 14.5px;
  font-weight: 600;
  cursor: not-allowed;
}

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ad-slot {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ad-slot-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.ad-slot-box {
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
