.conditions {
  display: grid;
  gap: 14px;
}
.conditions-status {
  margin: 0;
}
.conditions-channel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #b99b70;
  border-radius: 14px;
  background: #fffaf0;
}
.conditions-channel-title {
  margin: 0;
  font-weight: 700;
}
.conditions-lantern {
  width: 90px;
  height: 90px;
  margin: auto;
  color: #81531f;
}
.conditions-lantern > .mx-i {
  display: block;
  width: 70%;
  height: 70%;
  margin: 15%;
}
.conditions-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
}
.conditions-choice input {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid #62462f;
  border-radius: 5px;
  background: #fffaf0;
  cursor: pointer;
}
.conditions-choice input:checked {
  background: #27523d;
  border-color: #27523d;
}
.conditions-choice input:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border: solid #fffaf0;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}
.conditions-choice input:focus-visible {
  outline: 3px solid #133f29;
  outline-offset: 3px;
}
.conditions-choice input:disabled {
  opacity: 0.55;
  cursor: default;
}
.conditions-neighbor {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
}
.conditions-neighbor .conditions-lantern {
  width: 72px;
  height: 72px;
}
.conditions-neighbor > .action,
.conditions-neighbor > .conditions-choice:not(:first-of-type) {
  grid-column: 1 / -1;
}
.conditions-status {
  color: #55432f;
}
.conditions .action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.conditions-ready-lantern {
  width: min(60%, 180px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, #e8b75b70, transparent 70%);
}

.conditions-v2 {
  gap: 16px;
}
.conditions-progress {
  margin: 0;
  font-weight: 700;
  color: #315b3c;
}
.conditions-task {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 2px solid #c9ad78;
  border-radius: 16px;
  background: #fffaf0;
  transition: border-color .3s ease, background-color .3s ease;
}
.conditions-task.is-complete {
  border-color: #39704a;
  background: #eaf5e8;
  box-shadow: 0 0 12px #82d58d4f;
  animation: conditions-complete .45s ease-out;
}
.conditions-wreath {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 0;
  padding: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, #214b32 57%, transparent 58%),
    repeating-conic-gradient(from 12deg, #245039 0deg 8deg, #648754 9deg 13deg, #316445 14deg 20deg);
  color: #ffe1a0;
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1;
}
.conditions-wreath::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 14% 70%, #c44845 0 2px, transparent 3px), radial-gradient(circle at 80% 18%, #fce09b 0 2px, transparent 3px), radial-gradient(circle at 85% 81%, #c44845 0 2px, transparent 3px); }
.conditions-task.is-complete .conditions-wreath { filter: drop-shadow(0 0 6px #77bc6b94); }
.conditions-wreath img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.conditions-v2 .conditions-task-kind,
.conditions-v2 .conditions-task-state {
  margin: 0;
  color: #415344;
  font-size: 15px;
}
.conditions-v2 .conditions-task-title {
  margin: 4px 0;
  overflow-wrap: anywhere;
  color: #273e2c;
  font-size: 20px;
  line-height: 1.2;
}
.conditions-task.is-complete .conditions-task-state {
  color: #235332;
  font-weight: 700;
}
.conditions-task > .action {
  grid-column: 1 / -1;
}
.conditions-story p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@keyframes conditions-complete {
  from { background: #fffaf0; border-color: #c9ad78; }
  to { background: #eaf5e8; border-color: #39704a; }
}
@media (prefers-reduced-motion: reduce) {
  .conditions-task { transition: none; animation: none; }
}
@media (max-width: 360px) {
  .conditions-task { grid-template-columns: 56px minmax(0, 1fr); padding: 12px; }
  .conditions-wreath { width: 56px; height: 56px; padding: 8px; font-size: 32px; }
}
