/* Imprinting lesson. All rules scoped under .ip-* */

.ip-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ip-note { font-size: 12px; color: var(--faint); text-align: center; }
.ip-hero img { display: block; width: 100%; max-width: 380px; max-height: 40vh; object-fit: contain; margin: 0 auto; }

/* the field */
.ip-field { display: block; width: 100%; max-width: 400px; height: auto; max-height: 44vh; touch-action: none; }
.ip-pond { fill: #3C6FA8; opacity: .8; }
.ip-tufts path { fill: none; stroke: #4F8A57; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ip-inc rect { fill: #6B5A8E; stroke: #8E7CB8; stroke-width: 1.5; }
.ip-inc .ip-glass { fill: #F6D38A; opacity: .55; stroke: none; }
.ip-inc text { font: 700 12px var(--sans); fill: #CFE6D2; text-anchor: middle; }
.ip-w { cursor: default; }
.ip-bob .ip-body { animation: ipBob .28s ease-in-out infinite alternate; }
@keyframes ipBob { to { transform: translateY(-2.5px) rotate(3deg); } }
.ip-mark { stroke: #fff; stroke-width: 1.5; }
.ip-mg .ip-mark { fill: var(--gold); }
.ip-mv .ip-mark { fill: #9B6BFF; }
.ip-lid rect { fill: #8A6A48; stroke: #B08A60; stroke-width: 2; }
.ip-lid path { stroke: #6E5238; stroke-width: 2; fill: none; }
.ip-key { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.ip-key span { display: flex; align-items: center; gap: 6px; }
.ip-key i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #fff; }
.ip-key .g { background: var(--gold); }
.ip-key .v { background: #9B6BFF; }

/* the lane */
.ip-lane { display: block; width: 100%; max-width: 400px; height: auto; max-height: 32vh; touch-action: none; }
.ip-lanebg { fill: #241F3C; }
.ip-rail { fill: #3A3160; }
.ip-age rect { fill: var(--surface); stroke: var(--gold); stroke-width: 1.5; }
.ip-age text { font: 700 14px var(--sans); fill: var(--text); text-anchor: middle; }
.ip-scared .ip-body { animation: ipShake .1s linear 10; }
@keyframes ipShake { 50% { transform: translateX(2px); } }
.ip-alarm { font: 800 30px var(--sans); fill: var(--red); text-anchor: middle; }

/* the chart */
.ip-chart { display: block; width: 100%; max-width: 380px; height: auto; max-height: 34vh; }
.ip-peak { fill: var(--gold); opacity: .14; }
.ip-axis { stroke: var(--line-strong); stroke-width: 1.5; }
.ip-follow { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ip-fear { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 7 5; stroke-linecap: round; }
.ip-lbl { font: 600 13px var(--sans); fill: var(--dim); }
.ip-lbl.m { text-anchor: middle; }
.ip-lbl.e { text-anchor: end; }
.ip-lf { fill: var(--gold); font-weight: 700; }
.ip-lr { fill: var(--red); font-weight: 700; }

/* people */
.ip-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 380px; }
.ip-vc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.ip-vc img { width: 80px; height: 80px; object-fit: contain; }
.ip-vc b { font: 700 15px var(--sans); color: var(--text); }
.ip-vc span { font-size: 13px; color: var(--dim); }
.ip-hum { border-color: var(--gold); }

@media (max-height: 700px) {
  .ip-field { max-height: 38vh; }
  .ip-lane { max-height: 28vh; }
  .ip-chart { max-height: 30vh; }
  .ip-vc img { width: 64px; height: 64px; }
}
