.daily-system-guide {
  --daily-water: #237fbd;
  --daily-ball: #7250c7;
  --daily-stack: #c87525;
  --daily-ink: #243651;
}

.daily-system-quick-answer {
  border-left-color: #348ac5;
  background: linear-gradient(135deg, #e9f7ff, #f5f1ff 62%, #fff8ea);
}

.daily-system-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.daily-system-flow li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 18px 15px;
  border: 1px solid #d8e4f1;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(47, 68, 105, .07);
}

.daily-system-flow li:not(:last-child)::after {
  content: "›";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -10px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #5d78a2;
  transform: translateY(-50%);
  font-weight: 900;
}

.daily-system-flow li > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #416c9f;
  font-weight: 900;
}

.daily-system-flow strong {
  display: block;
  margin-bottom: 5px;
  color: var(--daily-ink);
}

.daily-system-flow p {
  margin: 0;
  color: #5d6d84;
  font-size: .92rem;
  line-height: 1.52;
}

.daily-assignment-figure {
  display: grid;
  grid-template-columns: minmax(140px, .55fr) 36px minmax(0, 2fr);
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid #d8e6f2;
  border-radius: 20px;
  background: #f7fbff;
}

.daily-assignment-figure figcaption {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dbe7f1;
  color: #52637a;
}

.daily-assignment-figure figcaption strong { color: var(--daily-ink); }
.daily-assignment-figure figcaption span { font-size: .9rem; }

.daily-assignment-date {
  display: grid;
  gap: 3px;
  justify-items: center;
  padding: 18px 12px;
  border-radius: 15px;
  color: #fff;
  background: #263e60;
}

.daily-assignment-date small { color: #cbd9e9; font-weight: 800; }
.daily-assignment-date strong { font-size: 1.05rem; }
.daily-assignment-arrow { text-align: center; color: #7a8da7; font-size: 1.8rem; font-weight: 900; }

.daily-assignment-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.daily-assignment-games a {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid currentColor;
  border-radius: 14px;
  text-decoration: none;
  background: #fff;
}

.daily-assignment-games a:hover { transform: translateY(-1px); }
.daily-assignment-games .is-water { color: var(--daily-water); background: #eff9ff; }
.daily-assignment-games .is-ball { color: var(--daily-ball); background: #f6f1ff; }
.daily-assignment-games .is-stack { color: var(--daily-stack); background: #fff7ea; }
.daily-assignment-games small { font-weight: 850; }
.daily-assignment-games strong { overflow-wrap: anywhere; color: var(--daily-ink); font-size: .95rem; line-height: 1.35; }

.daily-system-note,
.daily-test-files {
  margin: 24px 0;
  padding: 20px 22px;
  border-radius: 16px;
  background: #eef7ff;
  border: 1px solid #cfe3f3;
}

.daily-system-note p,
.daily-test-files p { margin: 6px 0 0; }

.daily-cycle-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.daily-cycle-example > span {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  align-items: center;
  gap: 8px;
  padding: 13px;
  border-radius: 16px;
  background: #eef5fc;
}

.daily-cycle-example small { padding: 0 5px; color: #58708f; font-weight: 850; }
.daily-cycle-example b { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; color: #fff; background: #5578aa; }
.daily-cycle-example i { color: #7b899b; font-size: .84rem; font-style: normal; font-weight: 800; }

.daily-pool-counts,
.daily-verification-grid,
.daily-rejection-list,
.daily-storage-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.daily-pool-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.daily-pool-counts article {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid #dae5ef;
  border-radius: 16px;
  background: #fff;
}
.daily-pool-counts strong { color: #315f91; font-size: 1.75rem; line-height: 1; }
.daily-pool-counts span { color: var(--daily-ink); font-weight: 850; }
.daily-pool-counts small { color: #67778c; }

.daily-system-table th,
.daily-system-table td { vertical-align: top; }
.daily-system-table tbody th:first-child { white-space: nowrap; }

.daily-verification-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.daily-verification-grid article {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #dce5ee;
  background: #fff;
}
.daily-verification-grid article > span { display: inline-flex; padding: 5px 10px; border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 900; }
.daily-verification-grid .is-water > span { background: var(--daily-water); }
.daily-verification-grid .is-ball > span { background: var(--daily-ball); }
.daily-verification-grid .is-stack > span { background: var(--daily-stack); }
.daily-verification-grid h3 { margin: 13px 0 7px; font-size: 1.08rem; }
.daily-verification-grid p { margin: 0; color: #5b6a7e; }

.daily-rejection-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.daily-rejection-list article {
  padding: 19px 20px;
  border: 1px solid #eadfd1;
  border-radius: 16px;
  background: #fffaf4;
}
.daily-rejection-list h3 { margin: 0 0 7px; font-size: 1.05rem; }
.daily-rejection-list p { margin: 0; }

.daily-storage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.daily-storage-grid article { padding: 22px; border-radius: 18px; }
.daily-storage-grid h3 { margin-top: 0; }
.daily-storage-grid ul { margin-bottom: 0; }
.daily-storage-grid .is-saved { background: #effaf5; border: 1px solid #cde8db; }
.daily-storage-grid .is-not-saved { background: #f4f6fa; border: 1px solid #dce2eb; }

.daily-test-steps {
  display: grid;
  gap: 10px;
  padding-left: 1.45rem;
}
.daily-test-steps li { padding-left: 7px; }
.daily-test-files { background: #f5f1ff; border-color: #ddd3f2; }
.daily-test-files h3 { margin: 0; }
.daily-test-files code { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .daily-system-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-system-flow li:not(:last-child)::after { display: none; }
  .daily-verification-grid { grid-template-columns: 1fr; }
  .daily-assignment-figure { grid-template-columns: 1fr; }
  .daily-assignment-arrow { transform: rotate(90deg); }
}

@media (max-width: 680px) {
  .daily-system-flow,
  .daily-pool-counts,
  .daily-rejection-list,
  .daily-storage-grid { grid-template-columns: 1fr; }
  .daily-assignment-figure { padding: 16px; }
  .daily-assignment-figure figcaption { display: grid; }
  .daily-assignment-games { grid-template-columns: 1fr; }
  .daily-cycle-example { grid-template-columns: 1fr; }
  .daily-cycle-example i { text-align: center; }
  .daily-cycle-example > span { grid-template-columns: 1fr repeat(4, minmax(0, 1fr)); }
  .daily-cycle-example small { font-size: .72rem; }
}

