:root {
  --v8-violet: #76699b;
  --v8-mint: #78aa9f;
  --v8-gold: #dfc778;
  --v8-ink: #403a47;
  --v8-soft: #7b7480;
  --v8-line: rgba(64, 58, 71, 0.1);
}

.v8 .weekly-clues-area {
  margin-top: 24px;
}

.v8 .weekly-portrait {
  padding-top: 24px;
}

.v8 .weekly-portrait-head > span {
  color: var(--v8-violet);
  font-size: 10px;
  font-weight: 560;
}

.v8 .weekly-portrait-head h3 {
  margin: 6px 0 6px;
  font-size: 22px;
  font-weight: 540;
  line-height: 1.42;
}

.v8 .weekly-portrait-head p {
  max-width: 32em;
  color: var(--v8-soft);
  font-size: 11.5px;
  line-height: 1.65;
}

.v8 .weekly-tide {
  margin-top: 17px;
  padding: 15px 14px 13px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(222, 199, 120, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(243, 240, 246, 0.78), rgba(244, 248, 246, 0.72));
  border: 1px solid rgba(92, 82, 108, 0.08);
  border-radius: 8px;
}

.v8 .weekly-tide[data-weekly-state="empty"] {
  padding-top: 18px;
}

.v8 .weekly-tide-chart {
  height: 122px;
  padding: 0;
}

.v8 .weekly-tide-chart svg {
  height: 122px;
}

.v8 .weekly-tide-mist {
  fill: url("#weeklyTideMist");
}

.v8 .weekly-tide-line {
  stroke-width: 2.5;
  filter: drop-shadow(0 5px 8px rgba(103, 93, 145, 0.12));
}

.v8 .weekly-tide-line.is-emerging {
  stroke-dasharray: 3 6;
  stroke-width: 2;
  opacity: 0.72;
}

.v8 .weekly-tide-line.is-gap {
  stroke-dasharray: 2 7;
  opacity: 0.52;
}

.v8 .weekly-tide-halo {
  fill: rgba(111, 181, 168, 0.2);
  filter: blur(1px);
}

.v8 .weekly-tide-dot {
  fill: #fffdf8;
  stroke: var(--v8-violet);
  stroke-width: 2.4;
}

.v8 .weekly-release-link {
  fill: none;
  stroke: rgba(111, 181, 168, 0.74);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.v8 .weekly-after-dot {
  fill: #79b3a7;
  stroke: #fbfaf6;
  stroke-width: 1.6;
}

.v8 .weekly-day-buttons {
  gap: 0;
  margin-top: 1px;
}

.v8 .weekly-day-buttons button {
  min-height: 48px;
  padding: 3px 0 2px;
  color: #8e8792;
  font-size: 9.5px;
  background: transparent;
  border-radius: 0;
}

.v8 .weekly-day-buttons button i {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto 6px;
  overflow: hidden;
  background: #e7e3eb;
  border: 1px solid rgba(103, 93, 145, 0.08);
  border-radius: 50%;
  box-shadow: none;
}

.v8 .weekly-day-buttons button i::after {
  position: absolute;
  top: -1px;
  right: -3px;
  width: 15px;
  height: 18px;
  content: "";
  background: #f7f5f7;
  border-radius: 50%;
}

.v8 .weekly-day-buttons button.has-report i {
  background: linear-gradient(145deg, #f0d98e, #bea871);
  border-color: rgba(185, 154, 77, 0.22);
  box-shadow: 0 0 12px rgba(222, 199, 120, 0.24);
}

.v8 .weekly-day-buttons button.has-report i::after {
  display: none;
}

.v8 .weekly-day-buttons button.active {
  color: #4f4762;
  font-weight: 560;
  background: transparent;
}

.v8 .weekly-day-buttons button.active i {
  background: #82b6aa;
  border-color: rgba(85, 142, 130, 0.22);
  box-shadow: 0 0 0 5px rgba(111, 169, 155, 0.12), 0 0 16px rgba(111, 169, 155, 0.18);
}

.v8 .weekly-day-buttons button.active i::after {
  display: none;
}

.v8 .weekly-day-buttons button.active:not(.has-report) i {
  background: #e7e3eb;
  border-color: rgba(111, 169, 155, 0.36);
}

.v8 .weekly-day-buttons button.active:not(.has-report) i::after {
  display: block;
  background: #f7f5f7;
}

.v8 .weekly-day-detail {
  min-height: 0;
  margin: 10px 0 0;
  padding-top: 10px;
  color: #665f6b;
  font-size: 11px;
  line-height: 1.65;
  border-top: 1px solid rgba(64, 58, 71, 0.07);
}

.v8 .weekly-sparse-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  margin-top: 14px;
  padding: 18px 0 3px;
  border-top: 1px solid var(--v8-line);
}

.v8 .weekly-sparse-moon {
  position: relative;
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: linear-gradient(145deg, #e9d490, #c9b16d);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(223, 199, 120, 0.2);
}

.v8 .weekly-sparse-moon::after {
  position: absolute;
  top: -3px;
  right: -11px;
  width: 38px;
  height: 42px;
  content: "";
  background: #faf8f5;
  border-radius: 50%;
}

.v8 .weekly-sparse-note strong {
  display: block;
  color: #4a4351;
  font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  font-size: 17px;
  font-weight: 540;
  line-height: 1.5;
}

.v8 .weekly-sparse-note p {
  margin: 5px 0 0;
  color: #7e7782;
  font-size: 12px;
  line-height: 1.7;
}

.v8 .weekly-sparse-note button {
  grid-column: 2;
  justify-self: start;
  min-height: 38px;
  margin-top: 9px;
  padding: 0 14px;
  color: #fff;
  font: inherit;
  font-size: 12px;
  background: #665b87;
  border: 0;
  border-radius: 7px;
}

.v8 .weekly-portrait-boundary {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(64, 58, 71, 0.07);
}

@media (max-width: 350px) {
  .v8 .weekly-tide {
    padding-inline: 10px;
  }

  .v8 .weekly-tide-chart,
  .v8 .weekly-tide-chart svg {
    height: 112px;
  }

  .v8 .weekly-day-buttons button {
    font-size: 8.5px;
  }

  .v8 .weekly-day-buttons button i {
    width: 16px;
    height: 16px;
  }

  .v8 .weekly-sparse-note {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px 10px;
  }

  .v8 .weekly-sparse-moon {
    width: 32px;
    height: 32px;
  }
}
