/* src/components/jr/welcome/welcome.css — SJ2 Welcome.
   Every number transcribed from art-source/design-sj2-2026-09-12/screens/SJ2 Welcome.dc.html.
   Her card width and CTA size vary with how many children the household has, so those two are
   the only values set inline (from welcome.js cardSizeFor). */

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

.jr-w-body {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  padding: 46px 34px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jr-w-eyebrow {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sj-font);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sj-sun-ink);
  background: #fff8e6;
  border: 1.5px solid var(--sj-sun-line);
  border-radius: var(--sj-r-pill);
  padding: 10px 24px;
  box-shadow: 0 4px 12px rgba(35, 50, 44, .1);
}

.jr-w-title {
  flex: none;
  margin: 14px 0 6px;
  font-family: var(--sj-font);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -.018em;
  color: var(--sj-ink);
  text-align: center;
}

.jr-w-sub {
  flex: none;
  margin: 0 0 26px;
  font-size: 22px;
  font-weight: 500;
  color: var(--sj-ink);
  text-align: center;
}

.jr-w-cards {
  flex: none;
  display: flex;
  gap: 28px;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1372px;
}

.jr-w-spacer { flex: 1 1 auto; min-height: 10px; }

/* ---------------------------------------------------------------- one learner card */
.jr-w-card {
  position: relative;
  margin-top: 56px;
  padding: 104px 26px 26px;
  box-sizing: border-box;
  background: var(--sj-card);
  border: 2px solid var(--sj-green-line);
  border-radius: var(--sj-r-hero);
  box-shadow: 0 16px 38px rgba(35, 50, 44, .2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* The whole card is the tap, including the 56px of face that overhangs the top. */
.jr-w-hit {
  position: absolute;
  left: 0;
  right: 0;
  top: -56px;
  bottom: 0;
  z-index: 1;
  border-radius: var(--sj-r-hero);
  display: block;
  cursor: pointer;
}

.jr-w-face {
  position: absolute;
  left: 50%;
  top: -56px;
  width: 140px;
  height: 140px;
  margin-left: -70px;
  border-radius: 50%;
  border: 6px solid var(--sj-card);
  box-shadow: 0 8px 20px rgba(35, 50, 44, .18);
  display: block;
  pointer-events: none;
  /* The tone behind the picture is the child's own; it is what shows while the avatar
     decodes, and it is a coloured disc, never a grey box. */
  background-color: var(--sj-sand);
  background-size: cover;
  background-position: center;
}

.jr-w-name-block { flex: none; text-align: center; }

.jr-w-name {
  margin: 0 0 4px;
  font-family: var(--sj-font);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.05;
  color: var(--sj-ink);
}

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

.jr-w-ready {
  flex: none;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--sj-green-line);
  border-radius: var(--sj-r-card);
  padding: 13px 16px;
}

.jr-w-ready-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sj-card);
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jr-w-ready-text { flex: 1 1 auto; min-width: 0; }

.jr-w-ready-line {
  display: block;
  font-family: var(--sj-font);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.15;
}

.jr-w-next-line {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: var(--sj-ink);
  margin-top: 2px;
}

.jr-w-stats { flex: none; display: flex; gap: 11px; }

.jr-w-stat {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 14px;
  padding: 11px 14px;
  font-family: var(--sj-font);
  font-weight: 600;
  font-size: 17px;
}

.jr-w-stat-stars {
  flex: 1 1 0;
  background: #fff8e6;
  border: 1px solid var(--sj-sun-line);
  color: var(--sj-ink);
}
.jr-w-stat-stars svg { fill: var(--sj-sun); }

.jr-w-stat-nights {
  flex: 1.35 1 0;
  background: var(--sj-sky-tint);
  border: 1px solid var(--sj-sky-line);
  color: var(--sj-sky-ink);
  white-space: nowrap;
}

.jr-w-cta { font-size: 23px; }

/* ---------------------------------------------------------------- Rover */
.jr-w-rover {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 318px;
  height: 392px;
  pointer-events: none;
}

.jr-w-rover-bubble {
  position: absolute;
  left: 56px;
  top: -16px;
  z-index: 2;
  width: 214px;
  background: var(--sj-card);
  border: 1px solid var(--sj-line);
  border-radius: 20px 20px 4px 20px;
  box-shadow: 0 8px 20px rgba(35, 50, 44, .16);
  padding: 14px 17px;
  box-sizing: border-box;
}

.jr-w-rover-line {
  margin: 0;
  font-size: 18px;
  line-height: 1.34;
  font-weight: 600;
  color: var(--sj-ink);
  text-wrap: pretty;
}

.jr-w-rover-art {
  position: absolute;
  right: -14px;
  bottom: 0;
  width: 296px;
  height: 296px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 14px 18px rgba(35, 50, 44, .24));
}
