/* Matriz estilo gráfico: eixo Y — “Impacto” fora à esquerda; eixo X — “Esforço” à direita */

.pmc {
  --pmc-axis: rgba(126, 195, 255, 0.65);
  --pmc-axis-bg: rgba(15, 20, 25, 0.45);
  --pmc-cell: #1e2835;
  --pmc-cell-hover: #252f3e;
  --pmc-active-glow: rgba(61, 156, 245, 0.35);

  max-width: 720px;
  margin: 0 auto;
  padding: 0.35rem 0.25rem 0.75rem;
}

.pmc--teaser .pmc__cell {
  cursor: default;
}

.pmc--teaser .pmc__plotInner {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(126, 195, 255, 0.12);
}

.pmc__graph {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.55rem;
}

.pmc__yOutside {
  flex: 0 0 1.35rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0.35rem;
}

.pmc__mainCol {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pmc__effortEnd {
  display: flex;
  justify-content: flex-end;
  padding-right: 0.35rem;
  margin-top: -0.15rem;
}

.pmc__axisName {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong, #7ec3ff);
}

.pmc__axisName--y {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.22em;
  line-height: 1;
  white-space: nowrap;
}

.pmc__plot {
  width: 100%;
}

.pmc__plotInner {
  position: relative;
  padding-left: 10px;
  padding-bottom: 10px;
  border-radius: 16px;
  background: linear-gradient(
      135deg,
      rgba(61, 156, 245, 0.06),
      transparent 42%,
      rgba(94, 207, 154, 0.05)
    ),
    var(--pmc-axis-bg);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pmc__axisLine {
  position: absolute;
  background: var(--pmc-axis);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}

.pmc__axisLine--y {
  left: 2px;
  bottom: 2px;
  width: 2px;
  top: 0.5rem;
}

.pmc__axisLine--x {
  left: 2px;
  right: 0.5rem;
  bottom: 2px;
  height: 2px;
}

.pmc__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(6.15rem, 1fr));
  gap: 3px;
  padding: 0.5rem 0.5rem 0.35rem 0.35rem;
}

.pmc__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.55rem 0.35rem;
  text-align: center;
  background: var(--pmc-cell);
  border-radius: 12px;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.pmc__cell:hover {
  background: var(--pmc-cell-hover);
}

.pmc__cellEmoji {
  font-size: 1.65rem;
  line-height: 1;
}

@media (min-width: 520px) {
  .pmc__cellEmoji {
    font-size: 1.85rem;
  }
}

.pmc__cellName {
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--text, #e8eef4);
  font-weight: 600;
}

@media (min-width: 520px) {
  .pmc__cellName {
    font-size: 0.92rem;
  }
}

.pmc__cellConcept {
  margin-top: 0.12rem;
  font-size: 0.58rem;
  line-height: 1.35;
  color: var(--muted, #9aa8b6);
  font-weight: 500;
  hyphens: auto;
  max-width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (min-width: 520px) {
  .pmc__cellConcept {
    font-size: 0.64rem;
    line-height: 1.4;
  }
}

.pmc__cellMystery {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  color: var(--muted, #9aa8b6);
  user-select: none;
}

@media (min-width: 520px) {
  .pmc__cellMystery {
    font-size: 2.45rem;
  }
}

.pmc__cell--mystery {
  justify-content: center;
}

.pmc__cell--mystery:hover {
  background: var(--pmc-cell-hover);
}

@media (max-width: 480px) {
  .pmc__graph {
    gap: 0.4rem;
  }

  .pmc__yOutside {
    flex-basis: 1.15rem;
    padding-top: 0.25rem;
  }

  .pmc__axisName--y {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  .pmc__grid {
    grid-template-rows: repeat(3, minmax(5.6rem, auto));
  }
}
