/* src/components/jr/my-page/my-page.css — SJ2 My Page.
   Every number transcribed from art-source/design-sj2-2026-09-12/screens/SJ2 My Page.dc.html. */

.jr-mp-stage {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--sj-chrome-h);
  bottom: var(--sj-nav-h);
  overflow: hidden;
}

.jr-mp-scrim {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 253, 248, .9) 0%, rgba(255, 253, 248, .62) 44%, rgba(255, 253, 248, .2) 76%, rgba(255, 253, 248, 0) 100%);
}

.jr-mp-body {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  padding: 20px 34px 18px;
  display: flex;
  gap: 20px;
  align-items: stretch;
}

/* ---------------------------------------------------------------- the identity card */
.jr-mp-id {
  flex: 0 0 336px;
  align-self: flex-start;
  min-width: 0;
  box-sizing: border-box;
  padding: 24px 22px 22px;
  border: 2px solid #c3dda9;
  border-radius: 26px;
  background: var(--sj-card);
  box-shadow: 0 14px 34px rgba(35, 50, 44, .18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.jr-mp-avatar {
  position: relative;
  flex: none;
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 140ms cubic-bezier(.2, .75, .25, 1);
}
.jr-mp-avatar:hover { transform: scale(1.035); }
.jr-mp-avatar:active { transform: scale(.97); }

.jr-mp-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sj-teal-tint);
  border: 8px solid #ffffff;
  box-shadow: 0 0 0 3px var(--sj-teal-line), 0 10px 24px rgba(35, 50, 44, .14);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.jr-mp-face {
  display: block;
  width: 150px;
  height: 150px;
  background-color: var(--sj-sand);
  background-size: cover;
  background-position: center;
}

.jr-mp-camera {
  position: absolute;
  right: -2px;
  bottom: 16px;
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sj-orange);
  border: 4px solid var(--sj-card);
  box-shadow: 0 4px 12px rgba(35, 50, 44, .24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sj-card);
}

.jr-mp-levelpill {
  margin-top: -16px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border: 2px solid var(--sj-sun-ink);
  border-radius: var(--sj-r-pill);
  background: var(--sj-sun);
  font-family: var(--sj-font);
  font-weight: 600;
  font-size: 19px;
  color: var(--sj-ink);
}

.jr-mp-hint {
  margin: 9px 0 0;
  font-family: var(--sj-font);
  font-weight: 600;
  font-size: 16px;
  color: var(--sj-teal-ink);
}

.jr-mp-name {
  margin: 14px 0 2px;
  font-family: var(--sj-font);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.02;
  color: var(--sj-ink);
}

.jr-mp-class { margin: 0 0 14px; font-size: 19px; font-weight: 500; color: var(--sj-ink); }

.jr-mp-starpill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 20px;
  border: 1px solid #f6d98a;
  border-radius: var(--sj-r-pill);
  background: var(--sj-sun-tint);
  font-family: var(--sj-font);
  font-weight: 600;
  font-size: 20px;
  color: var(--sj-ink);
}
.jr-mp-starpill svg { color: var(--sj-sun); }

.jr-mp-nextlevel { margin: 10px 0 8px; font-size: 17px; font-weight: 500; color: var(--sj-ink); }

.jr-mp-startrack { display: flex; gap: 5px; margin-bottom: 20px; }

.jr-mp-look {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px;
  border: 2px solid var(--sj-teal);
  border-radius: 20px;
  background: var(--sj-teal-tint);
  color: var(--sj-teal-ink);
  box-shadow: 0 4px 0 var(--sj-teal);
  font-family: var(--sj-font);
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  transition: transform 120ms cubic-bezier(.2, .75, .25, 1), box-shadow 120ms cubic-bezier(.2, .75, .25, 1);
}
.jr-mp-look:active { transform: translateY(4px); box-shadow: 0 0 0 var(--sj-teal); }

.jr-mp-switch {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-family: var(--sj-font);
  font-weight: 500;
  font-size: 18px;
  color: var(--sj-ink);
}

/* ---------------------------------------------------------------- the right column */
.jr-mp-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.jr-mp-title {
  margin: 0 0 4px;
  width: fit-content;
  border-radius: 18px;
  font-family: var(--sj-font);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.04;
  color: var(--sj-ink);
}

.jr-mp-sub {
  margin: 0;
  width: fit-content;
  border-radius: 14px;
  font-size: 21px;
  font-weight: 600;
  color: #22322a;
}

/* Her headPad / headShift pair, for a heading standing on a painted world. */
.jr-mp-head-plated .jr-mp-title { padding: 6px 14px; margin-left: -14px; }
.jr-mp-head-plated .jr-mp-sub { padding: 4px 14px; margin-left: -14px; }

.jr-mp-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
}

.jr-mp-eyebrow {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sj-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.jr-mp-eyebrow-green { color: var(--sj-green-ink); }
.jr-mp-eyebrow-sun { color: var(--sj-sun-ink); }
.jr-mp-eyebrow-teal { color: var(--sj-teal-ink); }
.jr-mp-eyebrow-orange { color: var(--sj-orange-deep); }

/* ---------------------------------------------------------------- the bookshelf */
.jr-mp-shelf {
  min-width: 0;
  padding: 18px 22px 0;
  border: 2px solid #c3dda9;
  border-radius: var(--sj-r-panel);
  background: var(--sj-card);
  box-shadow: 0 12px 28px rgba(35, 50, 44, .16);
  display: flex;
  flex-direction: column;
}

.jr-mp-shelf-head { display: flex; align-items: flex-start; gap: 16px; }
.jr-mp-shelf-text { flex: 1 1 auto; min-width: 0; }

.jr-mp-shelf-count {
  margin: 0 0 3px;
  font-family: var(--sj-font);
  font-weight: 700;
  font-size: 29px;
  line-height: 1.08;
  color: var(--sj-ink);
}

.jr-mp-shelf-note { margin: 0; font-size: 18px; font-weight: 500; color: var(--sj-ink); }

.jr-mp-find {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  background: var(--sj-orange);
  color: var(--sj-card);
  box-shadow: 0 5px 0 var(--sj-orange-deep);
  font-family: var(--sj-font);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}

.jr-mp-shelf-row {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 4px;
}

.jr-mp-slot {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 8px 8px 3px 3px;
  border: 1.5px dashed var(--sj-line-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.jr-mp-slot-next {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sj-orange);
  color: var(--sj-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The shelf's own wooden board, running the full width of the card. */
.jr-mp-shelf-board {
  margin: 10px -22px 0;
  height: 17px;
  border-radius: 0 0 21px 21px;
  background: linear-gradient(180deg, #d8a469 0%, #c1874c 44%, #a86f3c 100%);
  box-shadow: 0 -2px 0 rgba(255, 255, 255, .24) inset;
}

/* ---------------------------------------------------------------- the next badge */
.jr-mp-nextbadge {
  min-width: 0;
  grid-row: span 2;
  padding: 18px 22px;
  border: 2px solid #f6d98a;
  border-radius: var(--sj-r-panel);
  background: var(--sj-card);
  box-shadow: 0 12px 28px rgba(35, 50, 44, .16);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.jr-mp-eyebrow-left { align-self: flex-start; margin-bottom: 12px; }

.jr-mp-nextbadge-disc {
  position: relative;
  flex: none;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--sj-sun-tint);
  border: 4px solid var(--sj-sun);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sj-sun-ink);
}

.jr-mp-nextbadge-lock {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sj-ink);
  border: 3px solid var(--sj-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sj-card);
}

.jr-mp-nextbadge-name {
  margin: 14px 0 4px;
  font-family: var(--sj-font);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.08;
  color: var(--sj-ink);
}

.jr-mp-nextbadge-progress {
  margin: 0 0 10px;
  font-family: var(--sj-font);
  font-weight: 600;
  font-size: 20px;
  color: var(--sj-sun-ink);
}

.jr-mp-nextbadge-how {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--sj-ink);
  text-wrap: pretty;
}

.jr-mp-badges {
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--sj-line);
}

.jr-mp-badges-head {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.jr-mp-badges-head .jr-mp-eyebrow { margin: 0; gap: 9px; }

.jr-mp-seeall {
  font-family: var(--sj-font);
  font-weight: 600;
  font-size: 16px;
  color: var(--sj-teal-ink);
}

.jr-mp-chips { display: flex; gap: 10px; }

.jr-mp-chip {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.jr-mp-chip-disc {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px dashed var(--sj-line-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sj-font);
  font-weight: 700;
  font-size: 19px;
}

.jr-mp-chip-lock {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--sj-ink);
  border: 2px solid var(--sj-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sj-card);
}

.jr-mp-chip-name {
  display: block;
  text-align: center;
  font-family: var(--sj-font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: var(--sj-ink);
}

.jr-mp-chip-progress { display: block; font-size: 14px; font-weight: 500; color: var(--sj-ink); }

/* ---------------------------------------------------------------- the word jar */
.jr-mp-jar {
  min-width: 0;
  padding: 18px 22px;
  border: 2px solid #f4b28f;
  border-radius: var(--sj-r-panel);
  background: var(--sj-card);
  box-shadow: 0 12px 28px rgba(35, 50, 44, .16);
  display: flex;
  gap: 18px;
  align-items: center;
}

.jr-mp-jar-text { flex: 1 1 auto; min-width: 0; }

.jr-mp-aa {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #fff0df;
  border: 1px solid #f4b28f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sj-font);
  font-weight: 700;
  font-size: 12px;
  color: var(--sj-orange-deep);
}

.jr-mp-jar-count {
  margin: 0 0 4px;
  font-family: var(--sj-font);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.02;
  color: var(--sj-ink);
}

.jr-mp-jar-note {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--sj-ink);
  text-wrap: pretty;
}

.jr-mp-jar-art {
  position: relative;
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--sj-sand);
}

/* ---------------------------------------------------------------- my week */
.jr-mp-week {
  min-width: 0;
  grid-column: span 2;
  padding: 16px 22px;
  border: 2px solid var(--sj-teal-line);
  border-radius: var(--sj-r-panel);
  background: var(--sj-card);
  box-shadow: 0 12px 28px rgba(35, 50, 44, .16);
  display: flex;
  align-items: center;
  gap: 24px;
}

.jr-mp-week-text { flex: none; }
.jr-mp-week-text .jr-mp-eyebrow { margin: 0 0 3px; }
.jr-mp-week-note { margin: 0; font-size: 18px; font-weight: 500; color: var(--sj-ink); }

.jr-mp-week-strip { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }

.jr-mp-week-cell { flex: 1 1 0; min-width: 0; display: flex; align-items: center; }

.jr-mp-week-col {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.jr-mp-week-dot { display: block; width: 52px; height: 52px; border-radius: 50%; }

.jr-mp-week-label { font-family: var(--sj-font); font-weight: 600; font-size: 17px; }

.jr-mp-week-link {
  flex: 1 1 auto;
  min-width: 6px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: var(--sj-r-pill);
  background: var(--sj-teal-tint);
}
