@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=Nunito:wght@600;700;800;900&display=swap');

:root {
  --ink: #253154;
  --muted: #7982a6;
  --purple: #8c53f6;
  --purple-dark: #6930d7;
  --blue: #4f75f2;
  --mint: #37c6a2;
  --mint-dark: #209a80;
  --yellow: #ffd66e;
  --pink: #ff8dbc;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.84);
  --line: rgba(142, 124, 213, 0.22);
  --shadow: 0 30px 80px rgba(84, 78, 150, 0.20);
  --shadow-soft: 0 16px 38px rgba(84, 78, 150, 0.13);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(198, 181, 255, 0.45), transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(185, 219, 255, 0.72), transparent 34rem),
    radial-gradient(circle at 88% 92%, rgba(174, 245, 214, 0.66), transparent 31rem),
    linear-gradient(180deg, #fbfbff 0%, #f5f7ff 48%, #e9fbf4 100%);
}

button,
input { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration: none; }

svg { display: block; }

.page {
  min-height: 100vh;
  padding: 24px clamp(22px, 4vw, 48px);
}

.login-page {
  padding: 24px;
}

.app-scene,
.login-scene {
  position: relative;
  width: min(1280px, 100%);
  min-height: calc(100vh - 48px);
  margin: 0 auto;
}

.login-scene {
  width: min(1540px, 100%);
  display: grid;
  grid-template-columns: minmax(470px, 0.92fr) minmax(450px, 1fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
}

.app-scene::before,
.login-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(132, 125, 202, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 125, 202, 0.008) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 68%);
  z-index: -3;
}

.app-scene::after,
.login-scene::after {
  content: "";
  position: fixed;
  left: -5%;
  right: -5%;
  bottom: -4%;
  height: 310px;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 18% 72%, rgba(163, 229, 180, 0.62), transparent 16rem),
    radial-gradient(circle at 84% 64%, rgba(102, 181, 160, 0.34), transparent 19rem),
    linear-gradient(180deg, rgba(232, 253, 242, 0), rgba(215, 249, 229, 0.86));
  z-index: -2;
}

/* Décor connexion */
.background-icon {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.74;
}

.background-icon svg {
  width: 100%;
  height: 100%;
  stroke: rgba(255, 255, 255, 0.92);
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 18px rgba(86, 89, 158, 0.13));
}

.book { width: 130px; height: 100px; left: 36px; top: 88px; transform: rotate(-8deg); }
.chat { width: 110px; height: 76px; left: 28px; top: 238px; }

.sparkle {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 62% 34%, 98% 35%, 69% 55%, 80% 90%, 50% 69%, 20% 90%, 31% 55%, 2% 35%, 38% 34%);
  filter: drop-shadow(0 8px 12px rgba(179, 132, 39, 0.18));
}

.sparkle-one { width: 44px; height: 44px; right: 9%; top: 94px; }
.sparkle-two { width: 36px; height: 36px; left: 82px; bottom: 160px; background: white; }
.sparkle-three { width: 34px; height: 34px; right: 16%; bottom: 120px; }

.castle {
  position: absolute;
  right: 1%;
  bottom: 20%;
  width: 230px;
  height: 280px;
  opacity: 0.34;
  filter: blur(0.3px);
  z-index: -2;
}

.castle span {
  position: absolute;
  bottom: 0;
  border-radius: 32px 32px 14px 14px;
  background: linear-gradient(180deg, rgba(147, 145, 246, 0.36), rgba(255, 255, 255, 0.22));
}

.castle span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  border-left: 38px solid transparent;
  border-right: 38px solid transparent;
  border-bottom: 72px solid rgba(147, 145, 246, 0.26);
}

.castle span:nth-child(1) { left: 0; width: 72px; height: 142px; }
.castle span:nth-child(2) { left: 72px; width: 96px; height: 206px; }
.castle span:nth-child(3) { right: 0; width: 70px; height: 126px; }

/* Connexion validée */
.mascot-column {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: end;
  overflow: visible;
}

.mascot-glow {
  position: absolute;
  left: -5%;
  right: 2%;
  bottom: 9%;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(181, 238, 221, 0.68), rgba(218, 229, 255, 0.64));
  filter: blur(3px);
  z-index: -1;
}

.mascot {
  width: min(780px, 122%);
  max-width: none;
  margin-left: -7%;
  object-fit: contain;
  filter: drop-shadow(0 34px 38px rgba(66, 68, 126, 0.17));
}

.auth-column {
  width: min(640px, 100%);
  justify-self: center;
}

.brand {
  text-align: center;
  margin-bottom: 22px;
}

.brand-title {
  margin: 0;
  font-family: 'Baloo 2', system-ui, sans-serif;
  letter-spacing: -0.05em;
}

.brand-line-main {
  display: block;
  color: var(--purple);
  font-size: clamp(3.1rem, 6.5vw, 6.35rem);
  line-height: 0.82;
  text-shadow: 0 5px 0 rgba(255, 255, 255, 0.96), 0 14px 22px rgba(109, 85, 190, 0.16);
}

.brand-line-bottom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
}

.brand-du {
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 58px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #63e4b7, #36c6a2);
  font-size: clamp(1.8rem, 3.1vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: none;
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.92), 0 10px 18px rgba(54, 198, 162, 0.16);
}

.brand-panda {
  color: var(--blue);
  font-size: clamp(3.1rem, 6.5vw, 6.35rem);
  line-height: 0.82;
  text-shadow: 0 5px 0 rgba(255, 255, 255, 0.96), 0 14px 22px rgba(79, 117, 242, 0.16);
}

.brand p {
  display: inline-flex;
  margin: 16px 0 0;
  padding: 10px 24px;
  border-radius: 999px;
  color: #7757d9;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}

.auth-card {
  position: relative;
  border-radius: 34px;
  padding: 16px 16px 22px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.auth-card::before {
  content: "";
  position: absolute;
  right: -24px;
  top: -28px;
  width: 56px;
  height: 56px;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 62% 34%, 98% 35%, 69% 55%, 80% 90%, 50% 69%, 20% 90%, 31% 55%, 2% 35%, 38% 34%);
  filter: drop-shadow(0 8px 12px rgba(179, 132, 39, 0.23));
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 76px;
}

.tab {
  border: 0;
  border-radius: 28px 28px 10px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  color: var(--mint-dark);
  background: rgba(250, 249, 255, 0.70);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tab svg,
.secondary-button svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.tab.active {
  color: var(--purple-dark);
  background: linear-gradient(180deg, #f2edff, #ffffff);
  transform: translateY(-2px);
}

.panel {
  display: none;
  border-radius: 28px;
  padding: 24px clamp(18px, 4vw, 40px) 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(142, 128, 200, 0.10);
}

.panel.active { display: block; }

.panel label { display: block; margin-bottom: 18px; }

.panel label span {
  display: block;
  margin-bottom: 8px;
  color: var(--purple-dark);
  font-weight: 900;
}

.message.error {
  margin: 16px 14px 0;
  border-radius: 18px;
  padding: 14px 16px;
  color: #9c174d;
  background: rgba(255, 142, 187, 0.18);
  border: 1px solid rgba(255, 142, 187, 0.36);
  font-weight: 900;
}

.message.error p { margin: 0; }

.field { position: relative; }

.field svg {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  fill: none;
  stroke: #9b83df;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field input {
  width: 100%;
  min-height: 56px;
  border: 2px solid rgba(151, 133, 214, 0.26);
  border-radius: 16px;
  outline: none;
  padding: 0 16px 0 56px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  font-weight: 800;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: rgba(139, 81, 244, 0.58);
  box-shadow: 0 0 0 5px rgba(139, 81, 244, 0.10);
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.primary-button,
.enter-button {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  cursor: pointer;
  color: white;
  background: linear-gradient(180deg, #a85cff, #7737e6);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.28), 0 8px 0 #5c26bf, 0 18px 34px rgba(119, 55, 230, 0.30);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.44rem;
  font-weight: 800;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.primary-button.mint,
.enter-button.ghost {
  background: linear-gradient(180deg, #48d8b5, #25aa8b);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.28), 0 8px 0 #17866d, 0 18px 34px rgba(37, 170, 139, 0.28);
}

.primary-button:hover,
.enter-button:hover { transform: translateY(-2px); }

.primary-button svg,
.enter-button svg {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  padding: 9px;
  stroke: white;
  stroke-width: 3;
  fill: none;
  background: rgba(255, 255, 255, 0.17);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 22px 0 16px;
  color: var(--purple-dark);
  font-weight: 900;
}

.divider::before,
.divider::after {
  content: "";
  height: 2px;
  border-radius: 999px;
  background: rgba(151, 133, 214, 0.20);
}

.secondary-button {
  width: min(380px, 100%);
  min-height: 58px;
  border: 2px solid rgba(151, 133, 214, 0.18);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  cursor: pointer;
  color: var(--mint-dark);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(92, 83, 150, 0.10);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
}

.safe-note {
  width: min(520px, calc(100% - 56px));
  display: grid;
  grid-template-columns: 48px 1fr 34px;
  align-items: center;
  gap: 14px;
  margin: 18px auto 0;
  border-radius: 20px;
  padding: 14px 18px;
  background: rgba(235, 242, 255, 0.88);
  border: 2px solid rgba(147, 168, 252, 0.24);
  box-shadow: var(--shadow-soft);
}

.shield {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), #6d8dff);
}

.shield svg,
.lock {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shield svg { width: 26px; height: 26px; }

.lock {
  width: 28px;
  height: 28px;
  stroke: #8798e8;
}

.safe-note strong { display: block; color: #2d4fca; font-weight: 900; }
.safe-note p { margin: 2px 0 0; color: #475989; font-size: 0.92rem; font-weight: 800; }

/* Pages connectées */
.topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 28px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--purple-dark);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
}

.brand-mini img {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(92, 83, 150, 0.13);
}

.player-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.player-nav span { color: var(--ink); }

.player-nav a {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--purple-dark);
  background: white;
  box-shadow: 0 9px 22px rgba(92, 83, 150, 0.10);
}

.player-nav .back-link { color: var(--mint-dark); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 22px;
  align-items: end;
  padding: 46px 0 28px;
}

.classes-page .hero {
  grid-template-columns: minmax(0, 1fr) 410px;
}

.hero-copy {
  min-width: 0;
  padding-left: 2px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint-dark);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 14px;
  color: var(--purple-dark);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: clamp(3rem, 6.2vw, 5.55rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.96), 0 10px 18px rgba(109, 85, 190, 0.13);
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.56;
}

.guide-card,
.player-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: center;
  border-radius: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.guide-card img,
.player-card img {
  width: 68px;
  height: 68px;
  border-radius: 24px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px rgba(92, 83, 150, 0.12);
}

.guide-card strong,
.player-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--purple-dark);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.28rem;
  line-height: 1;
}

.guide-card p,
.player-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.42;
}

/* Choix de classe V8.4 */
.worlds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.world-card {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  border-radius: 38px;
  padding: 28px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.world-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -118px;
  width: 270px;
  height: 270px;
  border-radius: 82px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(140, 83, 246, 0.23), rgba(255, 214, 110, 0.35));
  z-index: -1;
}

.college-world::after {
  background: linear-gradient(135deg, rgba(55, 198, 162, 0.28), rgba(79, 117, 242, 0.24));
}

.world-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--mint-dark);
  background: rgba(55, 198, 162, 0.16);
  font-weight: 900;
}

.world-card h2 {
  margin: 14px 0 0;
  color: var(--blue);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.world-orb {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  color: var(--yellow);
}

.world-orb svg {
  width: 46px;
  height: 46px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.world-card > p {
  max-width: 520px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.55;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.class-pill {
  min-height: 74px;
  border: 2px solid rgba(142, 124, 213, 0.16);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.class-pill span {
  color: var(--ink);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.class-pill small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 900;
}

.class-pill.active {
  border-color: rgba(140, 83, 246, 0.46);
  background: linear-gradient(180deg, #f5efff, #ffffff);
  box-shadow: 0 12px 26px rgba(140, 83, 246, 0.14);
}

.class-pill.preview {
  border-color: rgba(55, 198, 162, 0.34);
  background: linear-gradient(180deg, #effdf8, #ffffff);
}

.class-pill.locked {
  opacity: 0.72;
  cursor: default;
}

.class-pill.locked small::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(121, 130, 166, 0.42);
}

.status-strip {
  margin-top: 22px;
  overflow: hidden;
  border-radius: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.status-strip article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.status-strip span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-weight: 900;
}

.status-strip strong {
  color: var(--purple-dark);
  font-size: 1.4rem;
}

/* Missions CE2 V9.2 */
.missions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.missions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mission-card {
  position: relative;
  overflow: hidden;
  min-height: 255px;
  border-radius: 30px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mission-card::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border-radius: 48px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(140, 83, 246, 0.15), rgba(255, 214, 110, 0.22));
  z-index: -1;
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.mission-card.locked { opacity: 0.78; }
.mission-card.featured { border-color: rgba(140, 83, 246, 0.22); }
.mission-card.recommended { border-color: rgba(55, 198, 162, 0.30); }

.mission-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.mission-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.mission-chip.ready { color: var(--purple-dark); background: rgba(140, 83, 246, 0.12); }
.mission-chip.next { color: var(--mint-dark); background: rgba(55, 198, 162, 0.16); }
.mission-chip.build { color: #66708f; background: rgba(121, 130, 166, 0.12); }
.mission-chip.locked-chip { color: #8a91a8; background: rgba(121, 130, 166, 0.10); }

.mission-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 24px rgba(92, 83, 150, 0.10);
}

.mission-icon svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mission-icon.violet { color: var(--purple); }
.mission-icon.blue { color: var(--blue); }
.mission-icon.mint,
.mission-icon.teal { color: var(--mint-dark); }
.mission-icon.yellow { color: #e6ae2f; }
.mission-icon.pink { color: #e65f98; }
.mission-icon.grey { color: #9aa1b6; }

.mission-card h2 {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.mission-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.44;
}

.mission-progress {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: auto;
  margin-bottom: 14px;
  background: rgba(142, 124, 213, 0.12);
}

.mission-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--blue));
}

.mission-card > strong {
  color: var(--purple-dark);
  font-weight: 900;
}

.side-panel {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 108px;
}

.panda-tip,
.daily-card,
.stats-card {
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.panda-tip {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
}

.panda-tip img {
  width: 76px;
  height: 76px;
  border-radius: 26px;
  box-shadow: 0 12px 26px rgba(92, 83, 150, 0.12);
}

.panda-tip span,
.daily-card span,
.stats-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--mint-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.panda-tip p,
.daily-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.44;
}

.daily-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--purple-dark);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.75rem;
  line-height: 1;
}

.stats-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  padding: 0;
  overflow: hidden;
}

.stats-card article {
  padding: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.stats-card strong {
  color: var(--purple-dark);
  font-size: 1.55rem;
}

/* Pages modules */
.empty-state {
  width: min(760px, calc(100% - 32px));
  margin: 8vh auto;
  border-radius: 34px;
  padding: clamp(30px, 6vw, 52px);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.empty-state img {
  border-radius: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

.empty-state h1 {
  margin: 0 0 14px;
  color: var(--purple-dark);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.empty-state span {
  display: block;
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.55;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.empty-actions a,
.empty-state > a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a85cff, #7737e6);
  color: white;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .login-scene {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mascot-column {
    min-height: 440px;
    justify-items: center;
  }

  .mascot {
    width: min(590px, 108%);
    margin-left: 0;
  }

  .mascot-glow {
    left: 12%;
    right: 12%;
    bottom: 5%;
  }

  .auth-column { margin-top: -30px; }

  .hero,
  .missions-layout {
    grid-template-columns: 1fr;
  }

  .guide-card,
  .player-card,
  .side-panel {
    max-width: 620px;
  }

  .side-panel { position: static; }

  .missions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worlds {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page { padding: 14px 16px; }

  .login-page { padding: 14px; }

  .login-scene { min-height: auto; }

  .mascot-column { min-height: 320px; }

  .mascot { width: min(470px, 112%); }

  .book,
  .chat,
  .castle { display: none; }

  .brand-line-main,
  .brand-panda { font-size: clamp(2.8rem, 16vw, 4.35rem); }

  .brand-du {
    width: 56px;
    height: 44px;
    border-radius: 18px;
    font-size: 1.8rem;
  }

  .auth-card { border-radius: 28px; padding: 12px; }

  .tabs,
  .two-fields,
  .class-grid,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .tab {
    min-height: 56px;
    border-radius: 20px;
    font-size: 1.08rem;
  }

  .panel { padding: 20px 16px 22px; }

  .safe-note {
    width: 100%;
    grid-template-columns: 42px 1fr;
  }

  .lock { display: none; }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .player-nav {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .player-nav a { text-align: center; }

  .hero { padding-top: 36px; }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.1rem);
    line-height: 0.95;
  }

  .guide-card,
  .player-card,
  .panda-tip {
    grid-template-columns: 70px 1fr;
  }

  .world-card {
    min-height: auto;
    border-radius: 30px;
    padding: 20px;
  }

  .world-header { align-items: center; }

  .world-card h2 {
    font-size: clamp(2.2rem, 11vw, 3.3rem);
  }

  .world-orb {
    width: 64px;
    height: 64px;
    border-radius: 22px;
  }

  .world-orb svg {
    width: 36px;
    height: 36px;
  }

  .missions-grid {
    grid-template-columns: 1fr;
  }

  .mission-card { min-height: 230px; }

  .stats-card { grid-template-columns: 1fr; }
}


/* Module Lire l’heure V11 */
.time-module .topbar {
  margin-bottom: 0;
}

.time-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 22px;
  align-items: end;
  padding: 42px 0 26px;
}

.time-hero-copy {
  min-width: 0;
  padding-left: 2px;
}

.time-hero h1 {
  margin: 0 0 14px;
  color: var(--purple-dark);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: clamp(3rem, 6.2vw, 5.55rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.96), 0 10px 18px rgba(109, 85, 190, 0.13);
}

.time-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.56;
}

.time-score-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  border-radius: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.time-score-card img {
  width: 76px;
  height: 76px;
  border-radius: 26px;
  object-fit: contain;
  box-shadow: 0 12px 26px rgba(92, 83, 150, 0.12);
}

.time-score-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--mint-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.time-score-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--purple-dark);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.42rem;
  line-height: 1;
}

.time-score-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.42;
}

.time-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.time-path {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 12px;
}

.path-step {
  border: 2px solid rgba(142, 124, 213, 0.16);
  border-radius: 24px;
  min-height: 82px;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(92, 83, 150, 0.08);
  cursor: pointer;
}

.path-step span {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
}

.path-step strong {
  color: var(--purple-dark);
  font-weight: 900;
}

.path-step small {
  color: var(--muted);
  font-weight: 800;
}

.path-step.active {
  border-color: rgba(140, 83, 246, 0.45);
  background: linear-gradient(180deg, #f5efff, #ffffff);
  box-shadow: var(--shadow-soft);
}

.time-panel {
  min-width: 0;
}

.time-section {
  display: none;
  border-radius: 36px;
  padding: clamp(20px, 4vw, 32px);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.time-section.active {
  display: block;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: var(--mint-dark);
  background: rgba(55, 198, 162, 0.16);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.lesson-grid,
.exercise-zone {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.clock-card,
.interactive-clock,
.answer-zone,
.quiz-card,
.digital-exercise {
  border-radius: 28px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.clock-shell,
.interactive-clock {
  display: grid;
  place-items: center;
}

.learn-clock,
.interactive-clock svg,
.quiz-clock svg {
  width: min(100%, 320px);
  height: auto;
}

.clock-face {
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(140, 83, 246, 0.25);
  stroke-width: 5;
}

.clock-numbers text {
  fill: var(--purple-dark);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
}

.hand {
  stroke-linecap: round;
}

.hour-hand {
  stroke: var(--purple-dark);
  stroke-width: 9;
}

.minute-hand {
  stroke: var(--mint-dark);
  stroke-width: 6;
}

.clock-center {
  fill: var(--yellow);
  stroke: white;
  stroke-width: 3;
}

.big-mark {
  stroke: rgba(37, 49, 84, 0.28);
  stroke-width: 4;
  stroke-linecap: round;
}

.small-mark {
  stroke: rgba(37, 49, 84, 0.16);
  stroke-width: 2;
  stroke-linecap: round;
}

.lesson-cards {
  display: grid;
  gap: 14px;
}

.mini-lesson,
.rule-row article,
.digital-grid article {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 22px rgba(92, 83, 150, 0.08);
}

.mini-lesson strong,
.rule-row strong {
  display: block;
  color: var(--purple-dark);
  font-weight: 900;
}

.mini-lesson p,
.rule-row p,
.digital-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.44;
}

.rule-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.rule-row span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
}

.module-button {
  min-height: 58px;
  border: 0;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  cursor: pointer;
  color: white;
  background: linear-gradient(180deg, #a85cff, #7737e6);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.28), 0 7px 0 #5c26bf, 0 16px 28px rgba(119, 55, 230, 0.28);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
}

.module-button.secondary {
  margin-top: 12px;
  background: linear-gradient(180deg, #48d8b5, #25aa8b);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.28), 0 7px 0 #17866d, 0 16px 28px rgba(37, 170, 139, 0.24);
}

.question-label {
  margin: 0 0 14px;
  color: var(--purple-dark);
  font-weight: 900;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.answer-grid button,
.controls-grid button {
  min-height: 54px;
  border: 2px solid rgba(142, 124, 213, 0.16);
  border-radius: 18px;
  cursor: pointer;
  color: var(--purple-dark);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(92, 83, 150, 0.08);
}

.answer-grid button:hover,
.controls-grid button:hover {
  border-color: rgba(140, 83, 246, 0.42);
  transform: translateY(-2px);
}

.feedback {
  min-height: 48px;
  margin-top: 14px;
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(142, 124, 213, 0.08);
  font-weight: 900;
}

.feedback.success {
  color: var(--mint-dark);
  background: rgba(55, 198, 162, 0.14);
}

.feedback.error {
  color: #9c174d;
  background: rgba(255, 142, 187, 0.18);
}

.big-target {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 2.6rem;
  line-height: 1;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.digital-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.digital-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--mint-dark);
  font-weight: 900;
}

.digital-grid strong {
  display: block;
  color: var(--blue);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 2.1rem;
  line-height: 1;
}

.digital-exercise {
  margin-top: 16px;
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--purple-dark);
  font-weight: 900;
}

.quiz-clock {
  display: grid;
  place-items: center;
  margin: 10px 0 18px;
}

.final-score {
  text-align: center;
  padding: 24px;
}

.final-score span {
  display: block;
  margin-bottom: 10px;
  color: var(--mint-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-score strong {
  display: block;
  color: var(--purple-dark);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 4rem;
  line-height: 1;
}

.final-score p {
  color: var(--muted);
  font-weight: 900;
}

.hidden {
  display: none;
}

@media (max-width: 1120px) {
  .time-hero,
  .time-layout,
  .lesson-grid,
  .exercise-zone {
    grid-template-columns: 1fr;
  }

  .time-path {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .time-score-card {
    max-width: 620px;
  }

  .rule-row,
  .digital-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .time-hero {
    padding-top: 36px;
  }

  .time-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.1rem);
    line-height: 0.95;
  }

  .time-path,
  .answer-grid,
  .rule-row,
  .digital-grid,
  .controls-grid {
    grid-template-columns: 1fr;
  }

  .time-section {
    border-radius: 28px;
    padding: 18px;
  }

  .time-score-card {
    grid-template-columns: 70px 1fr;
  }
}


.method-box {
  margin: 22px 0;
  border-radius: 26px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(92, 83, 150, 0.08);
}

.method-box span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: var(--purple-dark);
  background: rgba(140, 83, 246, 0.12);
  font-weight: 900;
}

.method-box ol {
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.method-box li + li {
  margin-top: 6px;
}


.warning-box {
  border: 2px solid rgba(255, 214, 110, 0.72);
  background: rgba(255, 248, 224, 0.86);
}

.warning-box span {
  color: #a06e00;
  background: rgba(255, 214, 110, 0.32);
}


/* V11.5 - heure numérique simplifiée */
.digital-simple-layout {
  display: grid;
  gap: 18px;
}

.digital-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.digital-examples article {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 22px rgba(92, 83, 150, 0.08);
}

.digital-examples span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--mint-dark);
  font-weight: 900;
}

.digital-examples strong {
  display: block;
  color: var(--blue);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 2.1rem;
  line-height: 1;
}

.digital-examples p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.42;
}

.compact-method {
  margin: 0;
}

.digital-trainer {
  border-radius: 30px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.trainer-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.trainer-tab {
  min-height: 48px;
  border: 2px solid rgba(142, 124, 213, 0.16);
  border-radius: 18px;
  cursor: pointer;
  color: var(--purple-dark);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.trainer-tab.active {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: transparent;
}

.trainer-card {
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.trainer-card h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.practice-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: var(--mint-dark);
  background: rgba(55, 198, 162, 0.16);
  font-weight: 900;
  font-size: 0.78rem;
}

#digitalQuestion {
  display: block;
  margin-bottom: 16px;
  color: var(--purple-dark);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}

@media (max-width: 920px) {
  .digital-examples,
  .trainer-tabs {
    grid-template-columns: 1fr;
  }
}

/* V12 - mission croissance et graphiques */
.mission-icon.green {
  color: var(--mint-dark);
}

.growth-module .time-hero h1 {
  font-size: clamp(2.85rem, 5.6vw, 5rem);
}

.growth-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.growth-cards article,
.compare-box article {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 22px rgba(92, 83, 150, 0.08);
}

.growth-cards span,
.compare-box span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--mint-dark);
  font-weight: 900;
}

.growth-cards strong,
.compare-box strong {
  display: block;
  color: var(--blue);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.growth-cards p,
.compare-box p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.42;
}

.growth-graph-layout,
.growth-practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.growth-chart-card {
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.growth-chart-card h3 {
  margin: 0 0 4px;
  color: var(--blue);
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.growth-chart-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 800;
}

.growth-chart-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.growth-chart-bg {
  fill: rgba(255, 255, 255, 0.86);
}

.growth-axis {
  stroke: rgba(37, 49, 84, 0.36);
  stroke-width: 4;
  stroke-linecap: round;
}

.growth-grid-line {
  stroke: rgba(142, 124, 213, 0.14);
  stroke-width: 2;
}

.growth-line {
  fill: none;
  stroke: var(--mint-dark);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.growth-point {
  fill: var(--purple);
  stroke: white;
  stroke-width: 4;
}

.growth-axis-label,
.growth-value-label,
.growth-axis-title {
  fill: var(--muted);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 900;
  font-size: 16px;
  text-anchor: middle;
}

.growth-value-label {
  fill: var(--purple-dark);
  font-size: 15px;
}

.growth-axis-title {
  fill: var(--ink);
  font-size: 17px;
}

.y-label {
  text-anchor: end;
}

.compare-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.compact-chart h3 {
  margin-bottom: 10px;
}

@media (max-width: 1050px) {
  .growth-graph-layout,
  .growth-practice-layout,
  .growth-cards,
  .compare-box {
    grid-template-columns: 1fr;
  }
}
