/* Perfectionism lesson. All rules scoped under .pfx-* */

.pfx-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pfx-hero { width: min(80%, 320px); }
.pfx-hero img { width: 100%; display: block; }

/* the circle */
.pfx-pad { width: 240px; height: 240px; border-radius: 20px; background: #F3EBDD; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .06); }
.pfx-cv { display: block; width: 240px; height: 240px; touch-action: none; cursor: crosshair; }
.pfx-pad canvas { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
.pfx-read { display: flex; gap: 12px; align-items: baseline; justify-content: center; min-height: 26px; font-size: 13px; font-weight: 700; color: var(--dim); }
.pfx-read b { font: 800 20px var(--serif); color: var(--gold); }
.pfx-read.pfx-warn .pfx-hint { color: #F07A7E; }

/* the reader's circle, small, over Ana and Leo */
.pfx-mid { display: flex; align-items: center; gap: 12px; }
.pfx-mini { width: 84px; height: 84px; border-radius: 14px; background: #F3EBDD; }
.pfx-mid span { font: 800 18px var(--serif); color: var(--gold); }

/* Ana and Leo */
.pfx-halves { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pfx-half { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: flex-start; text-align: center; min-height: 150px; padding: 12px 10px; border-radius: 18px; background: rgba(252, 192, 80, .1); border: 2px solid var(--gold); transition: background .3s, border-color .3s, box-shadow .3s; }
.pfx-half b { font: 700 19px var(--serif); line-height: 1.15; }
.pfx-half span { font-size: 13px; font-weight: 700; color: var(--dim); }
.pfx-half em { font-style: normal; font-size: 15px; line-height: 1.3; }
.pfx-tag { font-style: normal; font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--gold); }
.pfx-tag:empty { display: none; }
.pfx-half.pfx-fear { background: rgba(229, 72, 77, .1); border-color: var(--red); }
.pfx-half.pfx-fear .pfx-tag { color: #F07A7E; }
.pfx-half.pfx-lit { box-shadow: 0 0 0 4px rgba(229, 72, 77, .35); }


@media (max-height: 700px) {
  .pfx-hero { width: min(62%, 240px); }
  .pfx-pad, .pfx-cv { width: 210px; height: 210px; }
  .pfx-mini { width: 64px; height: 64px; }
  .pfx-half { min-height: 0; padding: 10px 8px; gap: 4px; }
  .pfx-half em { font-size: 14px; }
}
