/* How it works: MilaMeow at a glance, drawn in the homepage's cobalt, yellow and ink. */
.mm-info { display: grid; gap: 30px; margin: 0 0 64px; }
:where(.mm-info) figure { margin: 0; }
:where(.mm-info) img { display: block; width: 100%; height: auto; }
:where(.mm-info) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.mm-info) li { margin: 0; }

/* Numbers */
.mm-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 22px 12px;
  background: var(--sunshine);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 8px 10px 0 var(--ink);
}
.mm-stats li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding-inline: 8px; }
.mm-stats li + li::before { content: '✦'; position: absolute; inset-inline-start: -8px; top: 16px; color: var(--navy); font-size: 1rem; }
.mm-stats b { font: 800 clamp(1.8rem, 3.1vw, 2.7rem)/1.1 Rubik, Arial, sans-serif; letter-spacing: -.03em; color: var(--navy); white-space: nowrap; }
.mm-stats span { font: 800 .95rem/1.4 Rubik, Arial, sans-serif; color: var(--ink); }

/* Lesson loop */
.mm-loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
  padding: 44px 40px 96px;
  background: var(--navy);
  color: white;
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 10px 0 var(--ink);
}
.mm-loop::after {
  content: '';
  position: absolute;
  inset-inline: 16%;
  bottom: 26px;
  height: 44px;
  border: 5px dotted var(--sunshine);
  border-top: 0;
  border-radius: 0 0 60px 60px;
}
.mm-loop::before {
  content: '';
  position: absolute;
  inset-inline-start: calc(16% - 11px);
  bottom: 66px;
  border: 11px solid transparent;
  border-bottom: 14px solid var(--sunshine);
  border-top: 0;
}
.mm-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mm-step > strong { margin-top: 30px; font: 800 clamp(1.7rem, 2.6vw, 2.2rem)/1.1 Rubik, Arial, sans-serif; letter-spacing: -.03em; color: var(--sunshine); }
.mm-step > span { margin-top: 10px; font-size: 1.05rem; line-height: 1.6; color: white; }
.mm-stage { position: relative; display: grid; place-items: center; width: 100%; height: 330px; }
.mm-card { overflow: hidden; background: white; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 8px 0 var(--ink); }
.mm-step--meet .mm-card { width: min(230px, 88%); transform: rotate(-3deg); }
.mm-step--back .mm-card { width: min(250px, 92%); transform: rotate(3deg); }
.mm-fan .mm-card { position: absolute; width: min(170px, 60%); }
.mm-fan .mm-card:nth-of-type(1) { transform: translateX(-34%) rotate(-9deg) scale(.9); }
.mm-fan .mm-card:nth-of-type(2) { transform: translateX(34%) rotate(8deg) scale(.9); }
.mm-fan .mm-card:nth-of-type(3) { z-index: 1; transform: rotate(-1deg); }
.mm-num {
  position: absolute;
  top: 0;
  inset-inline-start: 4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  font: 800 1.45rem/1 Rubik, Arial, sans-serif;
  color: var(--ink);
  background: var(--sunshine);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 3px 4px 0 var(--ink);
  transform: rotate(-8deg);
}
.mm-arrow { position: absolute; top: 140px; inset-inline-start: -62px; width: 58px; height: 36px; color: var(--sunshine); }

/* Tiles */
.mm-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.mm-tile {
  position: relative;
  min-width: 0;
  padding: 24px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 6px 8px 0 var(--ink);
}
.mm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.mm-sticker {
  display: inline-block;
  padding: 6px 14px 7px;
  font: 800 1.08rem/1.35 Rubik, Arial, sans-serif;
  color: var(--ink);
  background: var(--sunshine);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 4px 0 var(--ink);
  transform: rotate(-2deg);
}
.mm-big { font: 800 3.4rem/1 Rubik, Arial, sans-serif; letter-spacing: -.04em; color: var(--navy); text-shadow: 3px 3px 0 var(--sunshine); }
.mm-info figcaption { margin-top: 8px; font: 800 .9rem/1.35 Rubik, Arial, sans-serif; text-align: center; color: var(--ink); }
.mm-tile .mm-card { border-width: 2px; border-radius: 16px; box-shadow: 4px 5px 0 var(--ink); }
.mm-tile figure.mm-card { overflow: visible; background: transparent; border: 0; box-shadow: none; }
.mm-tile figure.mm-card img { border: 2px solid var(--ink); border-radius: 16px; box-shadow: 4px 5px 0 var(--ink); background: white; }
.mm-chip, .mm-chips li { display: inline-block; padding: 4px 12px; font: 800 .82rem/1.5 Rubik, Arial, sans-serif; color: var(--ink); background: white; border: 2px solid var(--ink); border-radius: 99px; }

/* Games wall */
.mm-games { grid-column: 1 / -1; background: var(--paper-deep); }
.mm-games-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 20px 18px; }
.mm-game figure { position: relative; }
.mm-game img { height: clamp(150px, 15vw, 196px); object-fit: cover; object-position: top; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 4px 5px 0 var(--ink); background: white; }
.mm-game--wide { grid-column: span 2; }
.mm-game--wide img { object-position: center; }
.mm-badge {
  position: absolute;
  top: -10px;
  inset-inline-end: -6px;
  z-index: 1;
  padding: 2px 9px;
  font: 800 .75rem/1.5 Rubik, Arial, sans-serif;
  color: white;
  background: var(--navy);
  border: 2px solid var(--ink);
  border-radius: 8px;
  transform: rotate(6deg);
}

/* Worlds */
.mm-pile { position: relative; height: 330px; }
.mm-card--trail { position: absolute; top: 0; inset-inline-start: 4%; width: 52%; transform: rotate(3deg); }
.mm-card--album { position: absolute; bottom: 0; inset-inline-end: 0; width: 64%; transform: rotate(-3deg); }

/* Skills */
.mm-skills, .mm-science { display: flex; flex-direction: column; }
.mm-skills .mm-skill-list { flex: 1; align-content: center; }
.mm-skill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mm-skill-list li { display: flex; flex-direction: column; align-items: center; gap: 10px; font: 800 1.05rem/1.3 Rubik, Arial, sans-serif; }
.mm-icon { display: grid; place-items: center; width: 84px; height: 84px; color: var(--ink); background: var(--sunshine); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 4px 5px 0 var(--ink); }
.mm-skill-list li:nth-child(even) .mm-icon { color: white; background: var(--navy); }
.mm-icon svg { width: 40px; height: 40px; }

/* Science */
.mm-science { background: var(--ink); color: white; }
.mm-science .mm-sticker { box-shadow: 3px 4px 0 #00000080; }
body.content-page .mm-tag { padding: 3px 12px; font: 800 .85rem/1.5 Rubik, Arial, sans-serif; color: var(--ink); background: white; border: 2px solid white; border-radius: 99px; text-decoration: none; }
body.content-page .mm-tag:hover { background: var(--sunshine); }
.mm-curve { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; direction: ltr; }
.mm-curve-axis { fill: none; stroke: #FFFFFF80; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mm-curve-line { fill: none; stroke: white; stroke-width: 4; stroke-linecap: round; }
.mm-curve-jump { fill: none; stroke: var(--sunshine); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.mm-curve-start { fill: white; }
.mm-curve-label { fill: #FFFFFFB0; font: 800 11px Rubik, Arial, sans-serif; }
.mm-curve-dot { fill: var(--sunshine); stroke: var(--ink); stroke-width: 3; }
body.content-page .mm-legend { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font: 800 .9rem/1.4 Rubik, Arial, sans-serif; color: var(--sunshine); }
.mm-legend-dot { width: 14px; height: 14px; background: var(--sunshine); border: 2px solid white; border-radius: 50%; }
body.content-page .mm-note { margin: 12px 0 0; font-size: .92rem; line-height: 1.7; color: white; }

/* League */
.mm-league { background: var(--sunshine); }
.mm-league .mm-sticker { background: white; }
.mm-card--league { width: 78%; margin-inline: auto; transform: rotate(2deg); }
.mm-card--league img { height: 290px; object-fit: cover; object-position: top; }

/* The cat's world */
.mm-cat { display: flex; flex-direction: column; gap: 18px; background: var(--paper-deep); }
.mm-card--style img { height: 150px; object-fit: cover; object-position: top; }
.mm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mm-cat .mm-pair img { height: 170px; object-fit: cover; object-position: top; }

/* Parents */
.mm-parents .mm-pair img { height: 250px; object-fit: cover; object-position: top; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

@media (max-width: 1000px) {
  .mm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .mm-stats li:nth-child(4)::before { display: none; }
  .mm-loop { gap: 40px; padding-inline: 24px; }
  .mm-arrow { inset-inline-start: -44px; width: 44px; }
  .mm-stage { height: 280px; }
  .mm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .mm-info { gap: 24px; }
  .mm-stats { padding: 18px 6px; box-shadow: 5px 6px 0 var(--ink); }
  .mm-stats b { font-size: 1.75rem; }
  .mm-stats span { font-size: .82rem; }
  .mm-loop { grid-template-columns: minmax(0, 1fr); gap: 56px; padding: 34px 20px 40px 52px; box-shadow: 5px 6px 0 var(--ink); }
  .mm-loop::after { left: 18px; right: auto; top: 96px; bottom: 96px; width: 22px; height: auto; border: 5px dotted var(--sunshine); border-right: 0; border-radius: 30px 0 0 30px; }
  .mm-loop::before { left: 40px; right: auto; top: 88px; bottom: auto; border: 10px solid transparent; border-left: 14px solid var(--sunshine); border-right: 0; }
  .mm-arrow { top: -52px; inset-inline-start: calc(50% - 22px); transform: rotate(-90deg); }
  .mm-stage { height: 300px; }
  .mm-bento { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .mm-tile { padding: 20px; box-shadow: 5px 6px 0 var(--ink); }
  .mm-games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
  .mm-game img { height: clamp(130px, 38vw, 180px); }
  .mm-big { font-size: 2.8rem; }
}
@media print {
  .mm-stats, .mm-loop, .mm-tile { box-shadow: none; }
}
