/* =========================================================
   BIOLOGY BRAIN
   WATER MOLECULES & HYDROGEN BONDING
========================================================= */


:root {
  --bb-green: #1f7a45;
  --bb-green-dark: #155b33;
  --bb-green-soft: #eaf6ef;

  --ink: #1f2933;
  --muted: #667085;

  --line: #d9e2dc;

  --surface: #ffffff;
  --workspace: #eef8f3;

  --shadow:
      0 18px 45px
      rgba(29, 45, 36, .14);
}


/* =========================================================
   GLOBAL
========================================================= */

* {
  box-sizing: border-box;
}


html,
body {
  margin: 0;

  width: 100%;
  height: 100%;

  min-width: 0;
  min-height: 0;

  font-family:
      Inter,
      ui-sans-serif,
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      sans-serif;

  color: var(--ink);

  background: #edf1ee;

  overflow: hidden;
}


body {
  padding: 0;
}


/* =========================================================
   MODULE SHELL
========================================================= */

.module-shell {
  width: 100%;
  height: 100vh;

  min-width: 0;
  min-height: 0;

  margin: 0;

  display: grid;

  grid-template-rows:
      auto
      minmax(0, 1fr)
      auto;

  background: var(--surface);

  border:
      1px solid #dfe6e1;

  border-radius: 22px;

  overflow: hidden;

  box-shadow:
      var(--shadow);
}


/* =========================================================
   FULLSCREEN
========================================================= */

.module-shell:fullscreen,
.module-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;

  min-height: 0;

  margin: 0;

  border: none;
  border-radius: 0;

  box-shadow: none;
}


/* =========================================================
   TOP BAR
========================================================= */

.module-topbar {
  min-height: 68px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding:
      10px 20px;

  border-bottom:
      1px solid var(--line);

  background: #ffffff;

  z-index: 40;
}


.module-brand {
  display: flex;
  align-items: center;

  gap: 13px;

  min-width: 0;
}


.brand-mark {
  width: 42px;
  height: 42px;

  flex: 0 0 auto;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background:
      var(--bb-green);

  color: #ffffff;

  font-size: 22px;
}


.module-brand > div:last-child {
  min-width: 0;
}


.module-eyebrow {
  margin:
      0 0 2px;

  font-size: .75rem;
  font-weight: 800;

  letter-spacing: .08em;

  text-transform: uppercase;

  color:
      var(--bb-green);
}


.module-title {
  margin: 0;

  font-size:
      clamp(
          1.02rem,
          2vw,
          1.5rem
      );

  line-height: 1.15;
}


.module-meta {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap: 9px;
}


.badge {
  padding:
      7px 10px;

  border:
      1px solid var(--line);

  border-radius: 999px;

  background: #f8faf8;

  color: #435047;

  font-size: .78rem;
  font-weight: 800;
}


.icon-button {
  min-width: 40px;
  height: 40px;

  padding:
      0 12px;

  border:
      1px solid var(--line);

  border-radius: 11px;

  background: #ffffff;

  color: #334039;

  font-size: .95rem;
  font-weight: 800;

  white-space: nowrap;

  cursor: pointer;
}


.icon-button:hover,
.control-button:hover {
  background:
      #f7faf8;
}


/* =========================================================
   WORKSPACE
========================================================= */

.workspace {
  position: relative;

  width: 100%;

  min-width: 0;
  min-height: 0;

  overflow: hidden;

  background:
      radial-gradient(
          circle at 34% 20%,
          rgba(255, 255, 255, .96),
          transparent 34%
      ),
      linear-gradient(
          135deg,
          #f7fbf9 0%,
          var(--workspace) 100%
      );
}


/* =========================================================
   ACTIVITY STAGE
========================================================= */

.activity-stage {
  position: absolute;

  inset: 14px 18px;

  min-width: 0;
  min-height: 0;

  display: grid;
  place-items: center;

  overflow: hidden;
}


/* =========================================================
   MOLECULE WORKSPACE
========================================================= */

.molecule-demo {
  position: relative;

  width:
      min(
          900px,
          94%
      );

  height:
      min(
          500px,
          100%
      );

  max-width: 100%;
  max-height: 100%;

  min-width: 0;
  min-height: 0;
}


/* =========================================================
   STEP 1 — ATOMS
========================================================= */

.atom-image {
  position: absolute;

  display: block;

  user-select: none;
  -webkit-user-drag: none;

  z-index: 10;
}


/* =========================================================
   STEP 1 — OXYGEN
========================================================= */

.oxygen-image {
  width: 260px;
  height: auto;

  left: 50%;
  top: 20px;

  transform:
      translateX(-50%)
      scale(2.6);

  transform-origin:
      center center;
}


/* =========================================================
   STEP 1 — HYDROGEN
========================================================= */

.hydrogen-image {
  position: absolute;

  width: 165px;
  height: auto;

  transform:
      translate(-50%, -50%)
      scale(2.2);

  transform-origin:
      center center;

  cursor: grab;

  user-select: none;

  -webkit-user-drag: none;

  touch-action: none;

  z-index: 10;
}


.hydrogen-image:active {
  cursor: grabbing;
}


.hydrogen-left {
  left: 15%;
  top: 82%;
}


.hydrogen-right {
  left: 85%;
  top: 82%;
}


/* =========================================================
   STEP 1 — SNAP TARGETS
========================================================= */

.hydrogen-target {
  position: absolute;

  width: 120px;
  height: 120px;

  transform:
      translate(-50%, -50%);

  border-radius: 50%;

  opacity: 0;

  pointer-events: none;

  z-index: 1;
}


.hydrogen-target-left {
  left: 39%;
  top: 53%;
}


.hydrogen-target-right {
  left: 61%;
  top: 53%;
}


/* =========================================================
   STEP 1 — TEMPORARY COVALENT BONDS
========================================================= */

.covalent-bond {
  position: absolute;

  height: 10px;

  background:
      #303633;

  border-radius:
      999px;

  transform-origin:
      left center;

  opacity: 0;

  pointer-events: none;

  z-index: 2;
}


/* =========================================================
   STEP 1 — DRAG HINT
========================================================= */

.drop-hint {
  position: absolute;

  left: 50%;
  bottom: 4px;

  transform:
      translateX(-50%);

  padding:
      9px 14px;

  border-radius: 12px;

  background:
      rgba(255, 255, 255, .90);

  color:
      #526057;

  font-size:
      .86rem;

  font-weight: 700;

  white-space: nowrap;

  box-shadow:
      0 8px 20px
      rgba(42, 57, 48, .08);

  z-index: 13;
}


/* =========================================================
   FINISHED CANVA WATER MOLECULE
========================================================= */

.completed-water {
  position: absolute;

  width: 320px;
  height: auto;

  left: 50%;
  top: 42%;

  transform:
      translate(-50%, -50%);

  display: none;

  user-select: none;

  -webkit-user-drag: none;

  pointer-events: none;

  z-index: 10;
}


/* =========================================================
   STEP 2 — SHARED ELECTRONS
========================================================= */

.bond-electron {
  position: absolute;

  width: 14px;
  height: 14px;

  border-radius: 50%;

  background:
      #202623;

  box-shadow:
      0 2px 5px
      rgba(0, 0, 0, .18);

  transform:
      translate(-50%, -50%);

  opacity: 0;

  pointer-events: none;

  z-index: 14;

  transition:
      opacity .25s ease;
}


.bond-electron.visible {
  opacity: 1;
}


/* =========================================================
   STEP 2 — ELECTRON BUTTON
========================================================= */

.electron-control-button {
  position: absolute;

  left: 50%;
  bottom: 40px;

  transform:
      translateX(-50%);

  padding:
      11px 18px;

  border: none;
  border-radius: 11px;

  background:
      var(--bb-green);

  color: #ffffff;

  font-size: .9rem;
  font-weight: 800;

  white-space: nowrap;

  cursor: pointer;

  box-shadow:
      0 8px 18px
      rgba(31, 122, 69, .18);

  display: none;

  z-index: 16;
}


.electron-control-button:hover {
  background:
      var(--bb-green-dark);
}


.electron-control-button:disabled {
  opacity: .65;

  cursor: default;
}


/* =========================================================
   STEP 2 — PARTIAL-CHARGE BUTTON
========================================================= */

.charge-control-button {
  position: absolute;

  left: 50%;
  bottom: 40px;

  transform:
      translateX(-50%);

  padding:
      11px 18px;

  border: none;
  border-radius: 11px;

  background:
      var(--bb-green);

  color: #ffffff;

  font-size: .9rem;
  font-weight: 800;

  white-space: nowrap;

  cursor: pointer;

  box-shadow:
      0 8px 18px
      rgba(31, 122, 69, .18);

  display: none;

  z-index: 16;
}


.charge-control-button:hover {
  background:
      var(--bb-green-dark);
}


.charge-control-button:disabled {
  opacity: .65;

  cursor: default;
}


/* =========================================================
   STEP 2 — PARTIAL CHARGES
========================================================= */

.partial-charge {
  position: absolute;

  font-size: 1.6rem;
  font-weight: 900;

  color:
      var(--bb-green-dark);

  opacity: 0;

  pointer-events: none;

  z-index: 15;

  transition:
      opacity .3s ease,
      transform .3s ease;

  transform:
      scale(.8);
}


.partial-charge.visible {
  opacity: 1;

  transform:
      scale(1);
}


.oxygen-charge {
  left: 50%;
  top: 4%;

  transform:
      translateX(-50%)
      scale(.8);
}


.oxygen-charge.visible {
  transform:
      translateX(-50%)
      scale(1);
}


.hydrogen-charge-left {
  left: 31%;
  top: 61%;
}


.hydrogen-charge-right {
  left: 67%;
  top: 61%;
}


/* =========================================================
   STEP 3 — SECOND CANVA WATER MOLECULE
========================================================= */

.second-water {
  position: absolute;

  width: 320px;
  height: auto;

  left: 18%;
  top: 70%;

  transform:
      translate(-50%, -50%);

  display: none;

  cursor: grab;

  user-select: none;

  -webkit-user-drag: none;

  touch-action: none;

  z-index: 11;
}


.second-water:active {
  cursor: grabbing;
}


/* =========================================================
   STEP 3 — HYDROGEN BOND
========================================================= */

.hydrogen-bond-line {
  position: absolute;

  height: 4px;

  background:
      repeating-linear-gradient(
          to right,
          #4f8f72 0,
          #4f8f72 7px,
          transparent 7px,
          transparent 14px
      );

  border: none;

  transform-origin:
      left center;

  opacity: 0;

  pointer-events: none;

  z-index: 12;
}


/* =========================================================
   STEP 3 — HYDROGEN BOND TARGET GLOW
========================================================= */

.hydrogen-bond-target {
  position: absolute;

  width: 34px;
  height: 34px;

  border-radius: 50%;

  background:
      rgba(31, 122, 69, .18);

  box-shadow:
      0 0 0 8px
      rgba(31, 122, 69, .08),

      0 0 22px
      rgba(31, 122, 69, .45);

  transform:
      translate(-50%, -50%);

  opacity: 0;

  pointer-events: none;

  z-index: 13;
}


.hydrogen-bond-target.visible {
  opacity: 1;

  animation:
      hydrogenTargetPulse
      1.5s
      ease-in-out
      infinite;
}


@keyframes hydrogenTargetPulse {

  0%,
  100% {

      transform:
          translate(-50%, -50%)
          scale(.9);

      box-shadow:
          0 0 0 7px
          rgba(31, 122, 69, .06),

          0 0 16px
          rgba(31, 122, 69, .28);
  }


  50% {

      transform:
          translate(-50%, -50%)
          scale(1.12);

      box-shadow:
          0 0 0 11px
          rgba(31, 122, 69, .10),

          0 0 28px
          rgba(31, 122, 69, .55);
  }
}


/* =========================================================
   STEP 4 — NETWORK WATER MOLECULES
========================================================= */

.network-water {
  position: absolute;

  width: 220px;
  height: auto;

  transform:
      translate(-50%, -50%);

  display: none;

  cursor: grab;

  user-select: none;

  -webkit-user-drag: none;

  touch-action: none;

  z-index: 11;
}


.network-water:active {
  cursor: grabbing;
}


/* =========================================================
   STEP 4 — STARTING POSITIONS
========================================================= */

.network-water-1 {
  left: 15%;
  top: 25%;
}


.network-water-2 {
  left: 15%;
  top: 78%;
}


.network-water-3 {
  left: 86%;
  top: 75%;
}


/* =========================================================
   STEP 4 — TARGET GLOWS
========================================================= */

.network-target {
  position: absolute;

  width: 32px;
  height: 32px;

  transform:
      translate(-50%, -50%);

  border-radius: 50%;

  background:
      rgba(31, 122, 69, .18);

  box-shadow:
      0 0 0 8px
      rgba(31, 122, 69, .07),

      0 0 22px
      rgba(31, 122, 69, .42);

  opacity: 0;

  pointer-events: none;

  z-index: 14;
}


.network-target.visible {
  opacity: 1;

  animation:
      networkTargetPulse
      1.5s
      ease-in-out
      infinite;
}


@keyframes networkTargetPulse {

  0%,
  100% {

      transform:
          translate(-50%, -50%)
          scale(.9);
  }


  50% {

      transform:
          translate(-50%, -50%)
          scale(1.12);
  }
}


/* =========================================================
   STEP 4 — HYDROGEN BONDS
========================================================= */

.network-bond {
  position: absolute;

  height: 4px;

  background:
      repeating-linear-gradient(
          to right,
          #4f8f72 0,
          #4f8f72 7px,
          transparent 7px,
          transparent 14px
      );

  transform-origin:
      left center;

  opacity: 0;

  pointer-events: none;

  z-index: 8;
}


/* =========================================================
   FLOATING INSTRUCTIONS
========================================================= */

.instruction-popup {
  position: absolute;

  top: 22px;
  right: 22px;

  width:
      min(
          350px,
          calc(100% - 44px)
      );

  border:
      1px solid #d9e5dd;

  border-radius: 18px;

  background:
      rgba(255, 255, 255, .97);

  box-shadow:
      0 18px 42px
      rgba(28, 44, 34, .16);

  overflow: hidden;

  z-index: 30;
}


.instruction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding:
      12px 14px 11px 16px;

  background:
      var(--bb-green-soft);

  border-bottom:
      1px solid #dbe9df;

  cursor: grab;

  user-select: none;
}


.instruction-header:active {
  cursor: grabbing;
}


.instruction-step {
  font-size: .76rem;
  font-weight: 900;

  letter-spacing: .08em;

  text-transform: uppercase;

  color:
      var(--bb-green-dark);
}


.popup-actions {
  display: flex;

  gap: 6px;
}


.popup-action {
  width: 30px;
  height: 30px;

  border: none;
  border-radius: 8px;

  background:
      transparent;

  color:
      #536057;

  font-size: 1rem;

  cursor: pointer;
}


.popup-action:hover {
  background:
      rgba(31, 122, 69, .1);
}


.instruction-body {
  padding:
      16px 18px 17px;
}


.instruction-body h2 {
  margin:
      0 0 9px;

  font-size:
      1.22rem;

  line-height: 1.25;
}


.instruction-body p {
  margin: 0;

  color:
      #4e5b53;

  line-height: 1.5;

  font-size:
      .94rem;
}


.instruction-goal {
  margin-top: 14px;

  padding:
      11px 13px;

  border:
      1px solid #e0e8e3;

  border-radius: 12px;

  background:
      #f7faf8;

  color:
      #435047;

  font-size:
      .86rem;
}


.instruction-goal strong {
  display: block;

  margin-bottom: 3px;
}


.instruction-restore {
  position: absolute;

  top: 20px;
  right: 20px;

  display: none;
  align-items: center;

  gap: 8px;

  padding:
      9px 13px;

  border:
      1px solid #d8e3db;

  border-radius: 999px;

  background:
      #ffffff;

  color:
      var(--bb-green-dark);

  font-weight: 850;

  box-shadow:
      0 10px 24px
      rgba(28, 44, 34, .1);

  cursor: pointer;

  z-index: 29;
}


/* =========================================================
   FOOTER
========================================================= */

.module-footer {
  min-height: 60px;

  flex-shrink: 0;

  display: grid;

  grid-template-columns:
      1fr
      auto
      1fr;

  align-items: center;

  gap: 16px;

  padding:
      8px 18px;

  border-top:
      1px solid var(--line);

  background:
      #ffffff;

  z-index: 40;
}


.footer-left,
.footer-right {
  display: flex;
  align-items: center;

  gap: 9px;
}


.footer-right {
  justify-content: flex-end;
}


.control-button {
  min-height: 40px;

  padding:
      0 14px;

  border:
      1px solid var(--line);

  border-radius: 11px;

  background:
      #ffffff;

  color:
      #334039;

  font-weight: 800;

  white-space: nowrap;

  cursor: pointer;
}


.control-button.primary {
  border-color:
      var(--bb-green);

  background:
      var(--bb-green);

  color:
      #ffffff;
}


.control-button.primary:disabled {
  opacity: .38;

  cursor: not-allowed;
}


.module-progress {
  display: flex;
  align-items: center;

  gap: 8px;
}


.progress-dot {
  width: 10px;
  height: 10px;

  border:
      2px solid #9db7a6;

  border-radius: 50%;

  background:
      #ffffff;
}


.progress-dot.active {
  border-color:
      var(--bb-green);

  background:
      var(--bb-green);
}


.sound-active {
  border-color:
      var(--bb-green);

  background:
      var(--bb-green-soft);

  color:
      var(--bb-green-dark);
}


/* =========================================================
   SHORT HEIGHTS
   IMPORTANT FOR DASHBOARD EMBEDDING
========================================================= */

@media (max-height: 760px) {

  .module-topbar {
      min-height: 60px;

      padding:
          8px 16px;
  }


  .brand-mark {
      width: 38px;
      height: 38px;

      font-size: 20px;
  }


  .module-eyebrow {
      font-size: .68rem;
  }


  .module-title {
      font-size:
          clamp(
              .98rem,
              1.8vw,
              1.3rem
          );
  }


  .icon-button {
      height: 36px;
      min-width: 36px;
  }


  .badge {
      padding:
          6px 9px;

      font-size: .72rem;
  }


  .module-footer {
      min-height: 54px;

      padding:
          6px 14px;
  }


  .control-button {
      min-height: 36px;

      padding:
          0 12px;

      font-size:
          .84rem;
  }


  .activity-stage {
      inset:
          8px 14px;
  }


  .molecule-demo {
      height:
          min(
              460px,
              100%
          );
  }


  .instruction-popup {
      top: 14px;
      right: 14px;
  }


  .instruction-header {
      padding:
          9px 12px;
  }


  .instruction-body {
      padding:
          13px 15px 14px;
  }


  .instruction-body h2 {
      font-size:
          1.08rem;
  }


  .instruction-body p {
      font-size:
          .88rem;
  }


  .instruction-goal {
      margin-top: 10px;

      padding:
          9px 11px;
  }
}


/* =========================================================
   TABLET WIDTH
========================================================= */

@media (max-width: 800px) {

  .module-shell {
      border-radius: 0;
  }


  .module-meta .badge {
      display: none;
  }


  .activity-stage {
      inset:
          12px;
  }


  .instruction-popup {
      top: 14px;
      right: 14px;

      width:
          min(
              330px,
              calc(100% - 28px)
          );
  }


  .molecule-demo {
      width: 96%;

      height:
          min(
              480px,
              100%
          );
  }


  .oxygen-image {
      width: 220px;
  }


  .hydrogen-image {
      width: 145px;
  }


  .completed-water,
  .second-water {
      width: 270px;
  }


  .network-water {
      width: 190px;
  }
}


/* =========================================================
   PHONE WIDTH
========================================================= */

@media (max-width: 560px) {

  .module-topbar {
      padding:
          8px 10px;

      gap: 10px;
  }


  .module-meta {
      gap: 5px;
  }


  .module-title {
      font-size:
          .98rem;
  }


  .brand-mark {
      width: 36px;
      height: 36px;
  }


  .icon-button {
      min-width: 34px;
      height: 34px;

      padding:
          0 8px;

      font-size:
          .8rem;
  }


  .molecule-demo {
      width: 100%;
      height: 100%;
  }


  .oxygen-image {
      width: 175px;
  }


  .hydrogen-image {
      width: 115px;
  }


  .hydrogen-left {
      left: 12%;
      top: 82%;
  }


  .hydrogen-right {
      left: 88%;
      top: 82%;
  }


  .completed-water,
  .second-water {
      width: 215px;
  }


  .network-water {
      width: 160px;
  }


  .partial-charge {
      font-size:
          1.25rem;
  }


  .instruction-popup {
      width:
          min(
              310px,
              calc(100% - 20px)
          );

      top: 10px;
      right: 10px;
  }


  .module-footer {
      grid-template-columns:
          auto
          1fr
          auto;

      gap: 8px;

      padding:
          6px 8px;
  }


  .footer-left {
      display: none;
  }


  .module-progress {
      justify-self: center;
  }


  .footer-right {
      grid-column: 3;
  }


  .control-button {
      min-height: 34px;

      padding:
          0 9px;

      font-size:
          .78rem;
  }
}


/* =========================================================
   MODULE COMPLETION SCREEN
========================================================= */

.module-complete-overlay {

    position:
        fixed;

    inset:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        24px;

    background:
        rgba(8, 12, 10, .72);

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transition:
        opacity .35s ease,
        visibility .35s ease;

    z-index:
        9999;
}


.module-complete-overlay.visible {

    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;
}


/* =========================================================
   CARD
========================================================= */

.module-complete-card {

    width:
        min(
            560px,
            100%
        );

    max-height:
        calc(100vh - 48px);

    overflow-y:
        auto;

    padding:
        30px;

    border:
        1px solid
        #dce6df;

    border-radius:
        26px;

    background:
        #ffffff;

    color:
        #1f2933;

    text-align:
        center;

    box-shadow:
        0 28px 80px
        rgba(0, 0, 0, .32);

    transform:
        translateY(20px)
        scale(.96);

    transition:
        transform .4s
        cubic-bezier(.2, .8, .2, 1);
}


.module-complete-overlay.visible
.module-complete-card {

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   TOP AREA
========================================================= */

.completion-burst {

    width:
        72px;

    height:
        72px;

    margin:
        0 auto 12px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        50%;

    background:
        #eaf6ef;

    font-size:
        2.15rem;

    animation:
        completionBurst
        .55s ease;
}


@keyframes completionBurst {

    0% {

        transform:
            scale(.5)
            rotate(-15deg);

        opacity:
            0;
    }


    70% {

        transform:
            scale(1.12)
            rotate(4deg);

        opacity:
            1;
    }


    100% {

        transform:
            scale(1)
            rotate(0deg);
    }
}


.completion-eyebrow {

    margin:
        0 0 5px;

    color:
        #1f7a45;

    font-size:
        .72rem;

    font-weight:
        900;

    letter-spacing:
        .12em;
}


.module-complete-card h2 {

    margin:
        0;

    font-size:
        clamp(
            1.45rem,
            3vw,
            2rem
        );

    line-height:
        1.16;
}


/* =========================================================
   XP
========================================================= */

.completion-xp {

    margin:
        20px 0 24px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    gap:
        3px;
}


.completion-xp-plus {

    color:
        #58b92f;

    font-size:
        2rem;

    font-weight:
        950;
}


.completion-xp-total {

    color:
        #7a847e;

    font-size:
        .78rem;

    font-weight:
        750;
}


/* =========================================================
   PROGRESS SECTIONS
========================================================= */

.completion-progress-section {

    margin-top:
        14px;

    padding:
        15px 16px;

    border:
        1px solid
        #e1e7e3;

    border-radius:
        16px;

    background:
        #f9fbfa;

    text-align:
        left;
}


.completion-section-heading {

    display:
        grid;

    grid-template-columns:
        auto
        1fr
        auto;

    align-items:
        center;

    gap:
        11px;

    margin-bottom:
        11px;
}


.completion-section-icon,
.completion-badge-icon {

    width:
        42px;

    height:
        42px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        12px;

    background:
        #eaf6ef;

    font-size:
        1.25rem;
}


.completion-badge-icon {

    background:
        #f2eff9;
}


.completion-section-label {

    display:
        block;

    margin-bottom:
        2px;

    color:
        #1f7a45;

    font-size:
        .62rem;

    font-weight:
        900;

    letter-spacing:
        .08em;
}


.completion-section-heading strong {

    display:
        block;

    font-size:
        .84rem;
}


.completion-progress-number {

    color:
        #48554d;

    font-size:
        .78rem;

    font-weight:
        900;
}


/* =========================================================
   PROGRESS BAR
========================================================= */

.completion-progress-track {

    width:
        100%;

    height:
        12px;

    overflow:
        hidden;

    border-radius:
        999px;

    background:
        #dce3df;
}


.completion-progress-fill {

    width:
        0;

    height:
        100%;

    border-radius:
        inherit;

    background:
        #59b832;

    transition:
        width 1.05s
        cubic-bezier(.2, .8, .2, 1);
}


.badge-progress-fill {

    background:
        #1f7a45;
}


.completion-progress-message {

    margin:
        8px 0 0;

    color:
        #667085;

    font-size:
        .72rem;

    line-height:
        1.4;
}


/* =========================================================
   BUTTONS
========================================================= */

.completion-actions {

    margin-top:
        24px;

    display:
        grid;

    gap:
        9px;
}


.completion-primary-button,
.completion-secondary-button {

    min-height:
        46px;

    border-radius:
        12px;

    font:
        inherit;

    font-weight:
        850;

    cursor:
        pointer;
}


.completion-primary-button {

    border:
        0;

    background:
        #1f7a45;

    color:
        #ffffff;

    box-shadow:
        0 9px 20px
        rgba(31, 122, 69, .20);
}


.completion-primary-button:hover {

    background:
        #248d51;
}


.completion-secondary-button {

    border:
        1px solid
        #d9e2dc;

    background:
        #ffffff;

    color:
        #455248;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .module-complete-overlay {

        padding:
            14px;
    }


    .module-complete-card {

        padding:
            22px 18px;

        border-radius:
            20px;
    }


    .completion-xp-plus {

        font-size:
            1.7rem;
    }
}
/* Official sprouting-brain mark; retain its original proportions. */
.brand-mark { background: transparent; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
