/* Neural scaling law lesson. All rules scoped under .nsl-* */
.nsl-cap { font-size: 13px; font-weight: 700; color: var(--dim); padding-left: 2px; margin-bottom: 6px; }
.nsl-note { margin-top: 8px; text-align: center; font-size: 13px; color: var(--faint); }

/* the chart */
.nsl-chart { width: 100%; }
.nsl-chart svg { width: 100%; height: auto; display: block; overflow: visible; touch-action: none; }
.nsl-chart .ax { stroke: var(--line-strong); stroke-width: 1; }
.nsl-chart .gl { stroke: rgba(234,227,215,.09); stroke-width: 1; }
.nsl-chart .yl { fill: var(--dim); font: 700 12px var(--mono); }
.nsl-chart .xc { fill: var(--dim); font: 700 12px var(--sans); }
.nsl-chart .pt circle { fill: var(--violet-bright); stroke: var(--bg); stroke-width: 1.5; }
.nsl-chart .pt text { fill: var(--text); font: 700 12px var(--mono); }
.nsl-chart .pt.lit circle { fill: var(--gold); stroke-width: 2; filter: drop-shadow(0 0 7px rgba(252,192,80,.85)); }
.nsl-chart .pt.lit text { fill: var(--gold); }
.nsl-chart .fit { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-linecap: round; opacity: 0; transition: opacity .3s; }
.nsl-chart .fit.on { opacity: 1; }
.nsl-chart .ext { fill: none; stroke: var(--violet-bright); stroke-width: 2.5; stroke-dasharray: 6 5; animation: nslFade .5s both; }
@keyframes nslFade { from { opacity: 0; } }
.nsl-chart .rule line { stroke: var(--gold-deep); stroke-width: 1; stroke-dasharray: 3 4; opacity: .8; }
.nsl-chart .rule text, .nsl-chart .tg { fill: var(--dim); font: 700 12px var(--mono); }
.nsl-chart .rule text { fill: var(--gold); }
.nsl-chart .ray { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 4 4; }
.nsl-chart .tip { cursor: grab; }
.nsl-chart .tip .hit { fill: transparent; }
.nsl-chart .tip .dot { fill: var(--gold); stroke: #FFE2A0; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(252,192,80,.7)); }
.nsl-chart .tip text { fill: var(--gold); font: 700 14px var(--mono); }
.nsl-chart .tip.spent, .nsl-chart .ray.spent { opacity: .35; }

/* why small runs first */
.nsl-photo img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 16px; }

/* what computer power pays for */
.nsl-split { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nsl-pot { padding: 8px 18px; border-radius: 999px; background: var(--gold); color: #2A1B00; font: 800 15px var(--sans); }
.nsl-ways { display: flex; gap: 10px; width: 100%; }
.nsl-way { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line-strong); text-align: center; animation: nslFade .5s both; }

.nsl-way b { font-family: var(--serif); font-size: 18px; color: var(--text); }
.nsl-way span { font-size: 13px; color: var(--dim); }
.nsl-way i { display: block; width: 70%; height: 44px; margin-top: 6px; border-radius: 8px; }
.nsl-dials { background: radial-gradient(circle, var(--violet-bright) 0 5px, transparent 6px) 0 0 / 18px 15px; }
.nsl-books { background: repeating-linear-gradient(0deg, var(--gold) 0 7px, transparent 7px 10px); }

/* Gopher and Chinchilla */
.nsl-rivals { display: flex; gap: 10px; justify-content: center; }
.nsl-ai { flex: 1; max-width: 165px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line-strong); color: var(--text); font: inherit; cursor: pointer; transition: opacity .4s, border-color .3s, transform .3s; }
.nsl-ai:disabled { opacity: 1; cursor: default; }
.nsl-ai img { display: block; width: 100%; height: 104px; object-fit: contain; }
.nsl-ai b { font-family: var(--serif); font-size: 18px; text-align: center; }
.nsl-m { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 6px; }
.nsl-m em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--dim); }
.nsl-m i { display: block; height: 10px; border-radius: 5px; background: #06080f; overflow: hidden; }
.nsl-m u { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--violet), var(--violet-bright)); }
.nsl-ai.picked { border-color: var(--violet-bright); }
.nsl-ai.won { border-color: var(--gold); transform: scale(1.04); }
.nsl-ai.won b { color: var(--gold); }
.nsl-ai.lost { opacity: .4; }

@media (max-height: 700px) {
  .nsl-photo img { max-height: 150px; }
  .nsl-chart svg { max-height: 176px; }
  .nsl-chart .yl, .nsl-chart .xc, .nsl-chart .pt text, .nsl-chart .rule text, .nsl-chart .tg { font-size: 15px; }
  .nsl-chart .tip text { font-size: 16px; }
  .nsl-cap { margin-bottom: 2px; }
  .nsl-ai img { height: 60px; }
  .nsl-ai { padding: 8px; gap: 4px; }
}
