.year-cycle-section {
  background: #f8f4ed;
}

.year-cycle-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
  gap: 1rem;
  align-items: stretch;
}

.current-year-card,
.year-wheel-panel,
.year-cycle-legend article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.current-year-card {
  padding: 1.25rem;
  color: var(--paper-strong);
  background:
    linear-gradient(145deg, rgba(23, 20, 17, 0.98), rgba(44, 36, 30, 0.94)),
    radial-gradient(circle at 80% 22%, rgba(201, 145, 47, 0.28), transparent 32%);
}

.current-year-symbol {
  width: min(14rem, 100%);
  margin: 0.8rem 0 1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.18);
}

.current-year-symbol svg {
  display: block;
  width: 100%;
  height: 100%;
}

.current-year-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.current-year-card p:not(.panel-kicker) {
  color: rgba(255, 250, 241, 0.78);
}

.year-wheel-panel {
  min-width: 0;
  padding: 1rem;
}

.year-cycle-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.year-cycle-legend article {
  padding: 0.85rem;
  box-shadow: none;
}

.year-cycle-legend strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--night);
}

.year-cycle-legend span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.year-cycle-wheel {
  display: grid;
  grid-template-columns: repeat(12, minmax(4.5rem, 1fr));
  gap: 0.35rem;
}

.year-cycle-node {
  min-width: 0;
  border: 1px solid #eadbc7;
  border-radius: 8px;
  padding: 0.45rem;
  background: #fffdf8;
}

.year-cycle-node.is-current {
  border-color: var(--gold);
  background: #fff2d9;
  box-shadow: inset 0 0 0 2px rgba(201, 145, 47, 0.38);
}

.year-cycle-node .year-node-symbol {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.year-cycle-node svg {
  display: block;
  width: 100%;
  height: 100%;
}

.year-cycle-node strong,
.year-cycle-node span {
  display: block;
  margin-top: 0.3rem;
  overflow-wrap: anywhere;
}

.year-cycle-node strong {
  color: var(--night);
  font-size: 0.72rem;
  line-height: 1.15;
}

.year-cycle-node span {
  color: var(--ink-soft);
  font-size: 0.66rem;
  line-height: 1.15;
}

@media (max-width: 1180px) {
  .year-cycle-layout {
    grid-template-columns: 1fr;
  }

  .year-cycle-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .year-cycle-wheel {
    grid-template-columns: repeat(6, minmax(4.5rem, 1fr));
  }
}

@media (max-width: 640px) {
  .year-cycle-legend {
    grid-template-columns: 1fr;
  }

  .year-wheel-panel {
    overflow-x: auto;
  }

  .year-cycle-wheel {
    min-width: 36rem;
  }
}
