.guide-portrait-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-system-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(19, 31, 44, 0.94), rgba(11, 19, 28, 0.96));
}

.guide-system-strip img {
  display: block;
  width: 100%;
  max-width: 40px;
  aspect-ratio: 1;
  justify-self: center;
  object-fit: contain;
}

.guide-grid,
.roadmap-grid,
.glossary-grid,
.next-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.guide-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.roadmap-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glossary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.next-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card,
.roadmap-card,
.glossary-card,
.next-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 31, 44, 0.94), rgba(11, 19, 28, 0.96));
  transition: transform 180ms ease, border-color 180ms ease;
}

.guide-card:hover,
.roadmap-card:hover,
.glossary-card:hover,
.next-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.guide-card,
.roadmap-card,
.next-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.15rem;
}

.glossary-card {
  padding: 1.05rem;
}

.guide-card-head,
.roadmap-card-head,
.next-card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.guide-icon,
.next-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 12, 18, 0.88);
}

.guide-icon img,
.next-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.guide-step,
.roadmap-phase,
.glossary-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.guide-step {
  justify-content: center;
  min-width: 48px;
  background: rgba(92, 144, 255, 0.14);
  color: #dce8ff;
  font-weight: 700;
}

.guide-chip,
.roadmap-chip,
.next-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.76rem;
}

.tone-blue {
  background: rgba(92, 144, 255, 0.14);
  color: #dce8ff;
}

.tone-cyan {
  background: rgba(88, 201, 223, 0.16);
  color: #ddfbff;
}

.tone-gold {
  background: rgba(215, 186, 120, 0.16);
  color: #ffefc7;
}

.tone-green {
  background: rgba(134, 219, 163, 0.16);
  color: #e8fff0;
}

.tone-purple {
  background: rgba(166, 123, 255, 0.18);
  color: #ebdfff;
}

.guide-card h3,
.roadmap-card h3,
.glossary-card h3,
.next-card h3 {
  margin: 0;
}

.guide-card p,
.roadmap-card p,
.glossary-card p,
.next-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.guide-card-list,
.roadmap-list,
.glossary-list {
  display: grid;
  gap: 0.52rem;
  margin: 0;
  padding-left: 1.1rem;
}

.guide-card-list li,
.roadmap-list li,
.glossary-list li {
  color: var(--muted);
  line-height: 1.56;
}

.roadmap-card {
  gap: 1rem;
}

.roadmap-phase {
  background: rgba(92, 144, 255, 0.12);
  color: #dce8ff;
  font-weight: 700;
}

.roadmap-block {
  padding: 0.78rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.roadmap-block strong {
  display: block;
  font-size: 0.84rem;
}

.roadmap-block ul {
  margin: 0.72rem 0 0;
  padding-left: 1.1rem;
}

.roadmap-block li {
  color: var(--muted);
  line-height: 1.54;
}

.roadmap-block.is-warn {
  background: rgba(255, 255, 255, 0.03);
}

.guide-action,
.next-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: fit-content;
  padding: 0.58rem 0.92rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(92, 144, 255, 0.2), rgba(88, 201, 223, 0.14));
  color: #eff6ff;
  font-size: 0.84rem;
}

.glossary-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.glossary-kicker {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.next-card {
  min-height: 220px;
}

.next-chip {
  margin-top: 0.1rem;
}

.guide-section-tail {
  margin-top: 1.1rem;
}

@media (max-width: 1180px) {
  .roadmap-grid,
  .glossary-grid,
  .next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .guide-system-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .guide-portrait-strip,
  .guide-system-strip,
  .roadmap-grid,
  .glossary-grid,
  .next-grid {
    grid-template-columns: 1fr;
  }

  .guide-card-head,
  .roadmap-card-head,
  .next-card-head {
    align-items: flex-start;
  }
}
