/* Mimisbrunnr — product page.
   Shared shell (wrap, kicker, btn, header, footer) comes from site.css and the
   product-page blocks (hero, features, quote, principles, get) from fimbul.css. */

/* ---------- the ladder ----------
   Drawn after the game's own full ladder (FullLadder in the app): step number,
   a knot, the rank in serif, and a label on the secured steps and the top.
   The colours are the game's (Theme.swift), used nowhere else on the site. */

.m-ladder {
  margin: 0;
  width: 100%;
  max-width: 380px;
}
.m-ladder__panel {
  --m-aurora: #66E6A8;
  --m-silver: #C2CCD6;
  --m-silver-dim: #858F9E;
  --m-amber: #E8A645;
  background:
    radial-gradient(120% 50% at 30% 0%, rgba(102,230,168,0.17), transparent 70%),
    linear-gradient(180deg, #05081A 0%, #0D142B 100%);
  border-radius: 28px;
  padding: 24px 14px 18px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.12);
  color: var(--m-silver);
  -webkit-font-smoothing: antialiased;
}
.m-ladder__title {
  font-family: ui-serif, 'New York', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  color: var(--m-silver);
  margin-bottom: 14px;
}
.m-ladder__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
}
.m-step__n {
  width: 22px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--m-silver-dim);
}
.m-step__knot {
  width: 14px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(133,143,158,0.6);
}
.m-step__knot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.m-step__name {
  flex: 1;
  min-width: 0;
  font-family: ui-serif, 'New York', Georgia, serif;
  font-size: 16px;
  line-height: 1.35;
  color: var(--m-silver-dim);
}
.m-step__tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(194,204,214,0.8);
}

/* Secured steps and the top: a diamond knot and a heavier name. */
.m-step--safe .m-step__knot::before,
.m-step--top .m-step__knot::before {
  width: 9px;
  height: 9px;
  border-radius: 0;
  transform: rotate(45deg);
}
.m-step--safe .m-step__name,
.m-step--top .m-step__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--m-silver);
}
.m-step--top .m-step__tag { color: var(--m-amber); }

/* Climbed steps glow amber; the step being asked is lit in aurora green. */
.m-step--done .m-step__n,
.m-step--done .m-step__knot,
.m-step--done .m-step__name { color: var(--m-amber); }
.m-step--current {
  background: rgba(102,230,168,0.12);
  border-color: rgba(102,230,168,0.5);
}
.m-step--current .m-step__knot,
.m-step--current .m-step__name { color: var(--m-aurora); }

.m-ladder__caption {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-caption);
  text-align: center;
  margin: 18px auto 0;
  max-width: 34ch;
  text-wrap: pretty;
}

/* ---------- ways to play ---------- */

.m-mode__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-4);
}
.m-mode__head .f-feature__title { margin-top: 0; }
.m-tag--pro {
  background: var(--ink);
  color: #fff;
}
.m-modes__note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: var(--space-5) 0 0;
  max-width: 68ch;
  text-wrap: pretty;
}
.m-modes__note strong { color: var(--ink); font-weight: 600; }

/* ---------- the questions ---------- */

/* The eight categories, two to a row. */
.m-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px var(--space-5);
}

@media (max-width: 640px) {
  .m-ladder__panel { border-radius: 22px; }
  .m-cats { grid-template-columns: 1fr; }
}
