/* Child screens: « Qui joue ? » and the child home. Desktop-first, keyboard-only usable. */
.kid {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-12) 40px;
}
.kid__header { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.kid__spacer { flex-grow: 1; }
.kid__link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-muted);
}
.kid__link:hover { color: var(--ink); }
.kid__footer { display: flex; justify-content: flex-end; padding-top: var(--space-8); }
.kid__name { font-size: 20px; font-weight: 800; }
/* The class, discreetly under the first name (§3.2, §9.4). */
.kid__identity { display: flex; flex-direction: column; }
.kid__classe { font-size: 14px; line-height: 18px; font-weight: 700; color: var(--ink-muted); }
.kid__main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  padding: var(--space-12) 0;
}
.kid__main .flash { max-width: 640px; }
.kid__title { font-size: 48px; line-height: 52px; font-weight: 800; text-align: center; }
.kid__hint { font-size: 16px; font-weight: 600; color: var(--ink-muted); }
.kid__text { font-size: 20px; line-height: 30px; font-weight: 600; text-align: center; max-width: 560px; }

/* ProfileTile */
.profile-tiles { display: flex; gap: var(--space-8); flex-wrap: wrap; justify-content: center; max-width: 1560px; }
.profile-tile {
  width: 220px;
  height: 240px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: box-shadow var(--transition);
}
.profile-tile:hover { box-shadow: var(--shadow-lift); color: var(--ink); }
.profile-tile:focus-visible { outline-offset: 3px; }
.profile-tile__name { font-size: 26px; line-height: 32px; font-weight: 800; max-width: 190px; overflow-wrap: anywhere; text-align: center; }
.profile-tile__classe { margin-top: -16px; font-size: 16px; line-height: 20px; font-weight: 700; color: var(--ink-muted); }
.profile-tile--add {
  background: transparent;
  box-shadow: none;
  border: 3px dashed var(--line-strong);
  color: var(--ink-muted);
}
.profile-tile--add:hover { box-shadow: none; color: var(--ink); border-color: var(--ink-muted); }
.profile-tile__plus {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 3px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 500;
}
.profile-tile--add .profile-tile__name { font-size: 22px; font-weight: 700; }

/* ModeButton: three on one line, 300 × 200 as drawn on the Main screen */
.mode-buttons { display: flex; gap: var(--space-6); justify-content: center; flex-wrap: wrap; }
.mode-button {
  width: 300px;
  height: 200px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow var(--transition);
}
.mode-button:hover { box-shadow: var(--shadow-lift); color: var(--ink); }
.mode-button:focus-visible { outline-offset: 3px; }
.mode-button__badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
}
.mode-button__badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.mode-button--calcul .mode-button__badge { background: var(--brand-soft); color: var(--brand); }
.mode-button--fluence .mode-button__badge { background: var(--star-soft); color: var(--star); }
.mode-button--problemes .mode-button__badge { background: var(--info-soft); color: var(--info); }
.mode-button__name { display: block; font-size: 32px; line-height: 38px; font-weight: 800; }
.mode-button__text { display: block; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink-muted); }

/* « Mes records en fluence » (Main screen) */
.fluence-records { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: var(--space-3); }
.fluence-records__card { list-style: none; margin: 0; background: var(--surface-raised); border: 2px solid var(--line); border-radius: var(--radius-md); padding: var(--space-2) var(--space-4); }
.fluence-records__row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; }
.fluence-records__row:last-child { border-bottom: 0; }

/* Reward (DS): star and streak chips of the child home */
.reward-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 44px;
  padding: 0 18px 0 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.reward-chip__icon { width: 24px; height: 24px; flex: none; }
.reward-chip__word { font-family: var(--font-sans); font-size: 15px; }
.reward-chip--star { background: var(--star-soft); }
.reward-chip--star .reward-chip__icon { fill: var(--star); }
.reward-chip--streak { background: var(--brand-soft); }
.reward-chip--streak .reward-chip__icon { fill: var(--brand); }
.kid__header .reward-chip ~ .kid__link { margin-left: var(--space-4); }

/* « Mes badges » and « Mes records en fluence » under the mode buttons (Main screen) */
.kid__shelf { display: flex; gap: var(--space-12); align-items: flex-start; flex-wrap: wrap; }
.badge-showcase { flex: 1 1 420px; display: flex; flex-direction: column; gap: var(--space-3); }
.badge-showcase__list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-3); flex-wrap: wrap; }
.kid__shelf .fluence-records { flex: 0 1 360px; }

/* Badge card (DS Reward): 150 × 160, greyed at 50 % until won */
.badge-card {
  width: 150px;
  height: 160px;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  border: 2px solid var(--line);
  background: var(--surface-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--space-3);
  text-align: center;
}
.badge-card:focus-visible { outline-offset: 3px; }
.badge-card--pending { opacity: 0.5; }
.badge-card__name { font-size: 15px; line-height: 18px; font-weight: 800; }
.badge-card__detail { font-size: 12px; line-height: 15px; color: var(--ink-muted); }

.badge-disc {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-disc--long { font-size: 18px; }
.badge-disc--success { background: var(--success-soft); color: var(--success); }
.badge-disc--star { background: var(--star-soft); color: var(--ink); }
.badge-disc--pending { background: var(--surface-sunken); color: var(--ink-muted); }
.badge-disc__icon { width: 28px; height: 28px; }
.badge-disc__icon--star { fill: var(--star); }
.badge-disc__icon--bolt { fill: none; stroke: var(--star); stroke-width: 2.2; stroke-linejoin: round; }
.badge-disc--pending .badge-disc__icon--star { fill: var(--ink-muted); }
.badge-disc--pending .badge-disc__icon--bolt { stroke: var(--ink-muted); }

/* « Nouveau badge » on a bilan */
.new-badges { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; list-style: none; margin: 0; padding: 0; }
.new-badge {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  text-align: left;
}
.new-badge__name { font-size: 20px; font-weight: 800; }

/* Help lines in two wordings (input_hint): keys on a computer, taps on a touch screen. */
.hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .hint-keys { display: none; }
  .hint-touch { display: inline; }
}
