/* Unit 9, Lesson 3: cycle explorer, name the phase game. */
.md-card { background: var(--card); border-radius: 24px; padding: clamp(18px, 3.5vw, 30px); box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px rgba(60, 50, 30, .25); margin-top: 20px; }
.md-lab { display: block; font-size: 15px; color: var(--ink-2); margin: 0 0 8px; }
.md-lab b { color: var(--ink); }
.fd { margin-top: 28px; background: var(--card); border-radius: 24px; padding: clamp(16px, 3vw, 28px); box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px rgba(60, 50, 30, .25); }
.fd-top { display: flex; justify-content: space-between; gap: 16px 24px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.fd-top small, .pg-score small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fd-top > div > b { display: block; margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.35; }
.pg-score { text-align: right; flex: none; }
.pg-score b { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--good); font-variant-numeric: tabular-nums; }
.fd-why { margin-top: 16px; font-size: 16px; line-height: 1.55; padding-left: 14px; border-left: 4px solid var(--line); }
.fd-why[data-tone="good"] { border-color: var(--good); }
.fd-why[data-tone="warn"] { border-color: var(--wants); }
.fd-next { margin-top: 16px; width: 100%; justify-content: center; }
.fd-next:disabled { opacity: .5; cursor: default; }
.rr-wide .fd-why, .rr-wide .fd-next { max-width: 720px; }
@media (max-width: 760px) {
  .fd-top { flex-direction: column; }
  .pg-score { text-align: left; }
}
/* Cycle explorer */
.cy-wave { display: block; width: 100%; height: auto; margin-bottom: 12px; }
.cy-trend { fill: none; stroke: var(--line); stroke-width: 3; stroke-dasharray: 8 8; }
.cy-line { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.cy-dot { fill: var(--good); stroke: var(--card); stroke-width: 4; transition: fill .3s; }
.cy-dot[data-k="peak"], .cy-dot[data-k="con"] { fill: var(--wants); }
.cy-dot[data-k="tro"] { fill: var(--ink-3); }
.cy-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; margin: 20px 0 0; }
.cy-out dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cy-out dd { margin: 4px 0 0; font-size: 16px; line-height: 1.45; }
/* Name the phase */
.np-news { margin: 20px 0 0; max-width: 680px; padding: 16px 18px; border-radius: 14px; background: var(--paper-2); font-family: var(--serif); font-size: clamp(18px, 2.2vw, 21px); line-height: 1.45; }
.np-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 4px; max-width: 720px; }
.sm-btn { font: inherit; font-weight: 600; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 8px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.sm-btn:hover:not(:disabled) { border-color: var(--ink-3); transform: translateY(-2px); }
.sm-btn:disabled { cursor: default; }
.sm-btn.right { border-color: var(--good); background: color-mix(in srgb, var(--good) 12%, var(--card)); }
.sm-btn.wrong { border-color: var(--wants); background: color-mix(in srgb, var(--wants) 8%, var(--card)); }
.sm-btn.alt { border-color: var(--good); border-style: dashed; }
#np-result { margin-top: 8px; }
@media (max-width: 560px) {
  .np-opts { grid-template-columns: 1fr 1fr; }
}
/* Art */
.hl-hare { animation: hl-hare 2.4s ease-in-out infinite; }
@keyframes hl-hare { 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .hl-hare { animation: none; } }
