/* MathLock only. Shared product landing styles stay untouched. */
.lp-math .ml-preview-caption { margin-bottom: 15px; font-size: 12px; color: var(--lp-muted); }
.lp-math .ml-game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-math .ml-game { min-width: 0; overflow: hidden; border: 1px solid var(--lp-line); border-radius: 15px; background: #fffdf8; }
.lp-math .ml-game-visual { display: grid; place-items: center; min-height: 160px; padding: 10px 16px; border-bottom: 1px solid var(--lp-line); }
.lp-math .ml-game-visual svg { display: block; width: 100%; height: auto; max-width: 300px; }
.lp-math .ml-art-arithmetic { background: #f8eddf; }
.lp-math .ml-art-grid { background: #edf0e8; }
.lp-math .ml-art-memory { background: #eef0e6; }
.lp-math .ml-art-tap { background: #f8efdf; }
.lp-math .ml-art-echo { background: #edeaf4; }
.lp-math .ml-art-symbol { background: #eaf0ed; }
.lp-math .ml-svg-equation { font: 600 32px "Source Serif 4", Georgia, serif; }
.lp-math .ml-svg-label { font: 700 10px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .8px; }
.lp-math .ml-svg-digit { font: 600 18px ui-monospace, monospace; }
.lp-math .ml-svg-small { font: 600 13px ui-monospace, monospace; }
.lp-math .ml-game-copy { padding: 21px 23px 24px; }
.lp-math .ml-game-copy .ml-game-kind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; color: var(--lp-muted); font-size: 11px; line-height: 1.5; margin-bottom: 9px; }
.lp-math .ml-new, .lp-math .ml-pro { flex: none; border-radius: 4px; padding: 2px 6px; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.lp-math .ml-new { background: #e3eddf; color: #35604a; }
.lp-math .ml-pro { background: #efe8df; color: #725132; }
.lp-math .ml-game h3 { margin-bottom: 9px; font: 600 25px/1.25 "Source Serif 4", Georgia, serif; letter-spacing: -.6px; }
.lp-math .ml-game-copy > p:last-child { color: var(--lp-muted); font-size: 14px; line-height: 1.7; }
.lp-math .ml-games-note { margin-top: 18px; color: var(--lp-muted); font-size: 12px; }
.lp-math .ml-trail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 45px; margin: 2px 0 58px; padding: 37px 40px; border: 1px solid var(--lp-line); border-radius: 17px; background: #f2f0e6; }
.lp-math .ml-trail-copy { min-width: 0; }
.lp-math .ml-trail .lp-eyebrow { margin-bottom: 13px; }
.lp-math .ml-trail h2 { font-size: clamp(29px, 3vw, 37px); line-height: 1.2; }
.lp-math .ml-trail-copy > p:not(.lp-eyebrow) { color: var(--lp-muted); font-size: 14px; line-height: 1.8; margin-top: 17px; max-width: 470px; }
.lp-math .ml-trail-points { display: grid; gap: 9px; list-style: none; padding: 0; margin-top: 21px; font-size: 13px; }
.lp-math .ml-trail-points li { display: flex; align-items: baseline; gap: 12px; }
.lp-math .ml-trail-points span { flex: none; font: 500 11px ui-monospace, monospace; color: var(--lp-accent); }
.lp-math .ml-trail-copy .ml-trail-note { padding-top: 17px; border-top: 1px solid #dad8ca; font-size: 12px; }
.lp-math .ml-trail-link { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; margin-top: 12px; color: var(--lp-accent); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.lp-math .ml-trail-preview { min-width: 0; padding: 19px; border: 1px solid #dedbce; border-radius: 13px; background-color: #faf7f0; background-image: linear-gradient(#26291f08 1px, transparent 1px), linear-gradient(90deg, #26291f08 1px, transparent 1px); background-size: 22px 22px; }
.lp-math .ml-trail-preview svg { display: block; width: 100%; max-width: 350px; height: auto; margin-inline: auto; }
.lp-math .ml-trail-preview figcaption { margin-top: 16px; color: var(--lp-muted); text-align: center; font-size: 11px; }
.lp-math .ml-trail-number { font: 700 18px ui-monospace, monospace; }
.lp-math .ml-trail-doodle { font: 600 27px "Source Serif 4", Georgia, serif; }
@media (max-width: 900px) {
  .lp-math .ml-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .lp-math .ml-trail { gap: 25px; padding: 30px; }
}
@media (max-width: 640px) {
  .lp-math .ml-game-grid { gap: 14px; }
  .lp-math .ml-game-visual { min-height: 118px; padding: 8px; }
  .lp-math .ml-game-copy { padding: 16px; }
  .lp-math .ml-game h3 { font-size: 22px; }
  .lp-math .ml-game-copy > p:last-child { font-size: 13px; }
  .lp-math .ml-trail { grid-template-columns: minmax(0, 1fr); padding: 25px 22px; gap: 26px; margin-bottom: 38px; }
  .lp-math .ml-trail-preview { width: 100%; max-width: 360px; justify-self: center; }
}
@media (max-width: 460px) {
  .lp-math .ml-game-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-math .ml-game-visual { min-height: 145px; }
  .lp-math .ml-game-copy { padding: 19px 21px 22px; }
  .lp-math .ml-game h3 { font-size: 25px; }
  .lp-math .ml-game-copy > p:last-child { font-size: 14px; }
}
