/* IBM Plex Sans Arabic (SIL OFL 1.1، الترخيص بـ fonts/IBM-Plex-Sans-Arabic-OFL.txt). */

/* "IBM Plex Sans Arabic" للنص، و"AWAPHs Arabic" للحروف العربية بس داخل العناوين اللي تبقى Arial. */

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "AWAPHs Arabic";
  src: url("../../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "AWAPHs Arabic";
  src: url("../../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "AWAPHs Arabic";
  src: url("../../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

@font-face {
  font-family: "AWAPHs Arabic";
  src: url("../../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

:root {
  --paper: #f5f1e7;
  --ink: #19212b;
  --red: #ef4640;
  --blue: #284dbb;
  --yellow: #ffe16a;
  --line: 2px solid var(--ink);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", Tahoma, "AWAPHs Arabic", Arial, sans-serif;
  font-size: 14px;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.65;
}
p {
  line-height: 2.1;
}
.topbar {
  max-width: 1400px;
  margin: auto;
  padding: 23px 5%;
  border-bottom: var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}
.brand b {
  font-family: "AWAPHs Arabic", Arial, sans-serif;
  display: block;
  font-size: 27px;
  letter-spacing: -1.4px;
  font-weight: 900;
}
.brand-dot {
  color: var(--red);
}
.brand small {
  font-size: 9px;
}
.brand-mark {
  display: grid;
  place-items: center;
  position: relative;
  background: var(--red);
  color: var(--paper);
  font: bold 28px "AWAPHs Arabic", Arial;
  width: 43px;
  height: 43px;
  border: var(--line);
  transform: rotate(-8deg);
  box-shadow: 3px 3px var(--ink);
}
.brand-mark span {
  position: absolute;
  left: 6px;
  top: 17px;
  font-size: 20px;
  color: var(--yellow);
}
nav {
  display: flex;
  gap: 32px;
  font-size: 12px;
  font-weight: 700;
}
nav button:hover {
  color: var(--red);
}
.edition {
  font: 10px monospace;
  letter-spacing: 1px;
}
.page {
  max-width: 1280px;
  margin: auto;
  padding: 0 40px;
}
.hidden {
  display: none !important;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  padding: 70px 0 65px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
  display: block;
  margin-bottom: 15px;
}
.eyebrow i,
.availability i {
  width: 8px;
  height: 8px;
  background: var(--red);
  display: inline-block;
  border-radius: 50%;
  margin-left: 8px;
}
.hero h1 {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.75;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.underlined {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.underlined:after {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  bottom: 10px;
  height: 20px;
  background: var(--yellow);
  z-index: -1;
  transform: rotate(-3deg);
}
.hero p {
  font-size: 15px;
  color: #58606a;
  margin-bottom: 28px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--red);
  color: #fff;
  border: var(--line);
  box-shadow: 4px 4px var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 23px;
  font-size: 13px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.primary:not(:disabled):hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px var(--ink);
}
.primary span {
  font-size: 24px;
  line-height: 1;
}
.hero-meta {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  font-size: 9px;
  color: #555;
}
.hero-meta span:before {
  content: "✦";
  color: var(--red);
  margin-left: 6px;
}
.hero-art {
  aspect-ratio: 1.05;
  background: #c4d8ec;
  border: 3px solid var(--ink);
  box-shadow: 9px 9px var(--ink);
  position: relative;
  transform: rotate(2deg);
  overflow: hidden;
  background-image: radial-gradient(#658ab940 1px, transparent 1px);
  background-size: 7px 7px;
}
.panel-corner {
  position: absolute;
  top: 0;
  left: 0;
  font: 9px monospace;
  letter-spacing: 1px;
  padding: 12px;
  background: var(--yellow);
  border-bottom: var(--line);
  border-right: var(--line);
  z-index: 2;
}
.hero-flask {
  position: absolute;
  inset: 30px 0 0;
  width: 100%;
  height: 90%;
  filter: drop-shadow(9px 10px 0 #23427726);
}
.orbit {
  position: absolute;
  border: 1px solid #264d6d33;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  top: 7%;
  left: 5%;
}
.o2 {
  transform: scale(0.75);
}
.star {
  position: absolute;
  font-size: 40px;
}
.s1 {
  left: 35px;
  bottom: 50px;
}
.s2 {
  right: 40px;
  top: 70px;
  font-size: 28px;
}
.bubble-label {
  position: absolute;
  right: 25px;
  top: 35px;
  z-index: 2;
  font-size: 13px;
  background: #fffef8;
  padding: 12px 18px;
  border: var(--line);
  border-radius: 50%;
  transform: rotate(-8deg);
}
.pow {
  position: absolute;
  left: 22px;
  bottom: 42px;
  font: italic 900 29px/0.9 "AWAPHs Arabic", Arial;
  transform: rotate(-13deg);
  color: var(--paper);
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 3px 3px var(--ink);
}
.art-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 7px 13px;
  background: var(--yellow);
  border-top: var(--line);
  border-left: var(--line);
  font-size: 10px;
}
.hero-liquid {
  animation: wave 3s ease-in-out infinite;
  transform-origin: center;
}
.hero-bubble {
  animation: rise 3s infinite;
}
.delay {
  animation-delay: 1s;
}
@keyframes wave {
  50% {
    transform: translateY(6px) rotate(2deg);
  }
}
@keyframes rise {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(-45px);
    opacity: 0;
  }
}
.labs-section {
  padding: 15px 0 50px;
  scroll-margin-top: 25px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.section-heading h2 {
  font-size: 23px;
  margin: 0;
}
.section-heading .eyebrow {
  margin-bottom: 7px;
}
.availability {
  font-size: 10px;
  white-space: nowrap;
}
.availability i {
  background: #4a826d;
  margin: 0 8px 0 0;
}
.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 19px;
}
.lab-card {
  position: relative;
  border: var(--line);
  background: #fcfaf4;
  box-shadow: 4px 4px var(--ink);
  padding: 0;
  text-align: right;
  overflow: hidden;
  transition: transform 0.2s;
}
.lab-card:not(:disabled):hover {
  transform: translateY(-6px);
}
.lab-card:disabled {
  opacity: 1;
  cursor: default;
}
.card-art {
  height: 152px;
  background: var(--card-color);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-bottom: var(--line);
  background-image: radial-gradient(#18203924 1px, transparent 1px);
  background-size: 6px 6px;
}
.card-number {
  position: absolute;
  left: 12px;
  top: 12px;
  font: 10px monospace;
}
.lab-icon {
  height: 106px;
  width: 106px;
  transform: rotate(-8deg);
  transition: transform 0.3s;
}
.lab-card:hover .lab-icon {
  transform: rotate(2deg);
}
.card-state {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 1px solid var(--ink);
  background: #fffdf2;
  padding: 2px 8px;
  font-size: 8px;
}
.card-state.available {
  background: var(--yellow);
}
.card-body {
  padding: 19px 16px;
  min-height: 155px;
}
.card-body small {
  font: 9px monospace;
  color: #5e626b;
  letter-spacing: 0.6px;
}
.card-body h3 {
  font-size: 15px;
  margin: 7px 0 14px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #5d6268;
}
.card-arrow {
  width: 27px;
  height: 27px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 19px;
}
.lab-card.active .card-arrow {
  background: var(--red);
  color: white;
}
.how-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: var(--line);
  border-bottom: var(--line);
  padding: 28px 20px;
  margin: 10px 0 55px;
  background: #ede8dc;
}
.strip-title {
  font-weight: 800;
  font-size: 15px;
}
.how-strip div {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}
.how-strip b {
  font: bold 31px "AWAPHs Arabic", Arial;
  color: var(--blue);
}
.strip-star {
  font-size: 48px;
  color: var(--red);
}
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #19212b40;
  font-size: 9px;
  color: #666;
}
footer p {
  margin: 0;
}
.footer-brand {
  font: bold 18px "AWAPHs Arabic", Arial;
  color: var(--ink);
}
.footer-brand span {
  color: var(--red);
  margin-left: 9px;
}
.text-back {
  font-size: 11px;
  color: #5d6268;
  padding: 0;
  margin: 27px 0;
}
.catalog-head h1 {
  font-size: 40px;
  font-weight: 900;
}
.catalog-head h1 span {
  color: var(--blue);
}
.catalog-head p {
  color: #5c6269;
}
.experiment-card {
  display: grid;
  grid-template-columns: 310px 1fr;
  border: var(--line);
  box-shadow: 6px 6px var(--ink);
  background: #fffdf6;
  margin: 30px 0;
}
.experiment-cover {
  background: var(--red);
  position: relative;
  min-height: 310px;
  border-left: var(--line);
  overflow: hidden;
  background-image: radial-gradient(#19212b44 1px, transparent 1px);
  background-size: 7px 7px;
}
.issue {
  position: absolute;
  top: 20px;
  right: 20px;
  font: 11px "AWAPHs Arabic", Arial;
  background: var(--yellow);
  border: var(--line);
  padding: 8px;
}
.issue b {
  display: block;
  font-size: 35px;
}
.molecule {
  position: absolute;
  left: 50px;
  top: 45px;
  font: 180px "AWAPHs Arabic", Arial;
  color: #fff5de;
  transform: rotate(-15deg);
  text-shadow: 4px 4px var(--ink);
}
.cover-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #fffdf6;
  border: var(--line);
  padding: 5px 16px;
  transform: rotate(4deg);
  font-size: 11px;
}
.experiment-info {
  padding: 35px;
}
.experiment-info h2 {
  font-size: 26px;
  margin-bottom: 8px;
}
.english {
  text-align: right;
  font: 12px monospace;
  color: #5e6770;
}
.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.pills span {
  font-size: 9px;
  padding: 5px 10px;
  border: 1px solid #b7b6ae;
}
.source-note {
  font-size: 11px;
  color: #5e626b;
  margin: 30px 0 60px;
}
.lab-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.lab-heading h1 {
  font-size: 24px;
  margin-bottom: 20px;
}
.lab-heading h1 span {
  display: inline-block;
  font: bold 15px "AWAPHs Arabic", Arial;
  background: var(--yellow);
  border: var(--line);
  padding: 5px;
  transform: rotate(-7deg);
  margin-right: 8px;
}
.lab-tools {
  display: flex;
  gap: 10px;
}
.lab-tools button {
  font-size: 10px;
  padding: 8px 11px;
  border: 1px solid #92958f;
  background: #fffdf6;
}
.steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 10px 0 25px;
  border: var(--line);
  background: #fffdf6;
}
.steps li {
  flex: 1;
  padding: 12px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  border-left: 1px solid #c2bfb4;
}
.steps li:last-child {
  border: 0;
}
.steps li b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #a3a49e;
  border-radius: 50%;
  font: 12px "AWAPHs Arabic", Arial;
}
.steps li.current {
  background: var(--yellow);
  font-weight: 800;
}
.steps li.done {
  background: #e2ebdf;
}
.steps li.done b {
  background: #426c51;
  color: white;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}
.scene-panel {
  border: var(--line);
  background: #e9eef0;
  overflow: hidden;
}
.scene-header {
  padding: 12px 17px;
  background: #fffdf6;
  border-bottom: var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
}
.scene-header > span:last-child {
  font-weight: 400;
  color: #606b75;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  margin-left: 5px;
}
.canvas-wrap {
  position: relative;
  background: #e6edf2;
  aspect-ratio: 900/580;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.scene-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  max-width: 55%;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 13px;
  background: var(--yellow);
  border: var(--line);
  box-shadow: 3px 3px var(--ink);
  transform: rotate(-2deg);
}
.scene-footer {
  padding: 13px 17px;
  background: #fffdf6;
  border-top: var(--line);
  min-height: 95px;
}
.scene-footer span {
  font-size: 11px;
  display: block;
  line-height: 1.9;
}
.scene-footer small {
  display: block;
  font-size: 8px;
  color: #66717a;
  margin-top: 8px;
}
.control-panel {
  border: var(--line);
  background: #fffdf6;
  padding: 23px;
  box-shadow: 4px 4px var(--ink);
}
.step-kicker {
  font: 10px monospace;
  color: var(--red);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.control-panel h2 {
  font-size: 21px;
  margin-bottom: 10px;
}
.control-panel p {
  font-size: 11px;
  color: #59616a;
}
.actions {
  display: grid;
  gap: 9px;
}
.action {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: right;
  padding: 11px;
  border: 1px solid #a6aaa8;
  background: #f5f3ec;
  font-size: 11px;
  min-height: 48px;
}
.action.ready {
  border: 2px solid var(--ink);
  background: #fff2b5;
  box-shadow: 2px 2px var(--ink);
}
.action.complete {
  opacity: 1;
  background: #e7efe5;
  border-color: #7e9b7a;
  color: #396548;
}
.action > span {
  font-size: 18px;
  min-width: 22px;
}
.action:not(:disabled):hover {
  background: var(--yellow);
}
#status {
  font-size: 10px;
  color: #3a674e;
  min-height: 24px;
  margin: 12px 0;
}
.external-note {
  padding: 11px;
  background: #eef0f6;
  border-right: 3px solid var(--blue);
  font-size: 9px;
  line-height: 2;
  margin-bottom: 18px;
}
.external-note b {
  display: block;
  color: var(--blue);
  font-size: 9px;
}
.control-panel > .primary {
  width: 100%;
  font-size: 11px;
  padding: 11px 16px;
}
.timer-panel {
  position: absolute;
  top: 75px;
  left: 16px;
  background: #fffdf2;
  border: var(--line);
  padding: 9px;
  box-shadow: 3px 3px var(--ink);
  font-size: 9px;
  max-width: 170px;
  display: grid;
  gap: 4px;
}
.timer-panel strong {
  font: 700 22px monospace;
}
.timer-panel label {
  font-size: 8px;
}
.timer-panel select {
  display: block;
  width: 100%;
  font-size: 9px;
  background: #f4e8b2;
  border: 1px solid;
  padding: 3px;
  margin: 4px 0;
}
.timer-panel button {
  font-size: 9px;
  text-decoration: underline;
}
.protocol-details {
  margin: 24px 0 45px;
  border: 1px solid #b9bab3;
  padding: 14px 20px;
  font-size: 11px;
  background: #f9f7ef;
}
.protocol-details summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.protocol-details ol {
  padding-right: 20px;
  line-height: 2.2;
}
.protocol-details li {
  margin: 13px 0;
}
.protocol-details a {
  font-size: 10px;
}
.quiz-heading {
  margin: 15px 0 30px;
}
.quiz-heading h1 {
  font-size: 33px;
}
.quiz-heading h1 span {
  color: var(--red);
}
.quiz-heading p {
  color: #5e6670;
  font-size: 12px;
}
.external-tag {
  font-size: 9px;
  color: #56648c;
}
.quiz-card {
  max-width: 790px;
  margin: 0 auto 70px;
  background: #fffdf6;
  border: var(--line);
  padding: 35px;
  box-shadow: 6px 6px var(--ink);
}
.quiz-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6d7378;
}
.quiz-progress {
  height: 6px;
  background: #e6e0d4;
  margin: 14px 0 25px;
}
.quiz-progress span {
  height: 100%;
  display: block;
  background: var(--red);
  transition: width 0.3s;
}
.quiz-card h2 {
  font-size: 21px;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.answer {
  padding: 15px;
  text-align: right;
  background: #f5f1e7;
  border: var(--line);
  font-size: 12px;
}
.answer:hover:not(:disabled) {
  background: var(--yellow);
}
.answer:disabled {
  opacity: 1;
}
.answer.correct {
  background: #dcebdc;
  border-color: #508460;
}
.answer.wrong {
  background: #ffe0dc;
  border-color: #c54843;
}
.feedback {
  margin: 20px 0;
  font-size: 12px;
  line-height: 2;
}
.result {
  text-align: center;
}
.result .score {
  font: 900 80px "AWAPHs Arabic", Arial;
  color: var(--blue);
  margin: 18px;
}
.result .result-icon {
  font-size: 40px;
}
.result-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.secondary {
  border: var(--line);
  padding: 12px 20px;
  font-size: 12px;
  background: var(--yellow);
  box-shadow: 3px 3px var(--ink);
}
dialog {
  width: min(1100px, 94vw);
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 25px;
}
dialog::backdrop {
  background: #19212bcc;
}
dialog img {
  width: 100%;
  display: block;
  margin: 15px 0;
}
dialog p,
dialog a {
  font-size: 12px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head h2 {
  margin: 0;
  font-size: 20px;
}
.dialog-head button {
  font-size: 22px;
}
body.reduced * {
  animation: none !important;
  scroll-behavior: auto !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1450px) {
  .hero {
    gap: 100px;
  }
  .hero h1 {
    font-size: 65px;
  }
}
@media (max-width: 1000px) {
  .page {
    padding: 0 25px;
  }
  .hero {
    gap: 30px;
  }
  .hero h1 {
    font-size: 45px;
  }
  .lab-grid {
    gap: 12px;
  }
  .card-body {
    padding: 15px 10px;
  }
  .card-body h3 {
    font-size: 12px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .control-panel {
    padding: 17px;
  }
  .edition {
    display: none;
  }
  .lab-heading h1 {
    font-size: 21px;
  }
  .lab-tools {
    flex-direction: column;
  }
  footer {
    margin: 0 25px;
  }
}
@media (max-width: 800px) {
  .topbar {
    padding: 17px 20px;
  }
  .brand b {
    font-size: 23px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 23px;
  }
  .brand-mark span {
    top: 13px;
    font-size: 17px;
  }
  nav {
    gap: 10px;
    font-size: 9px;
  }
  nav button:first-child {
    display: none;
  }
  .page {
    padding: 0 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 40px 0;
  }
  .hero-copy {
    text-align: center;
  }
  .hero h1 {
    font-size: 45px;
    line-height: 1.6;
  }
  .hero p {
    font-size: 13px;
  }
  .hero-meta {
    justify-content: center;
    font-size: 8px;
  }
  .hero-art {
    width: 90%;
    max-width: 430px;
    justify-self: center;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .availability {
    display: block;
    margin-top: 10px;
    font-size: 9px;
  }
  .lab-grid {
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .card-art {
    height: 130px;
  }
  .card-body {
    padding: 14px;
    min-height: 145px;
  }
  .card-body h3 {
    font-size: 12px;
  }
  .card-body small {
    font-size: 8px;
  }
  .how-strip {
    padding: 20px 12px;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: start;
  }
  .strip-title {
    width: 100%;
    font-size: 14px;
  }
  .strip-title br {
    display: none;
  }
  .how-strip div {
    font-size: 9px;
    gap: 7px;
  }
  .how-strip b {
    font-size: 23px;
  }
  .strip-star {
    display: none;
  }
  footer {
    flex-wrap: wrap;
    gap: 15px;
  }
  footer > span {
    width: 100%;
  }
  .catalog-head h1 {
    font-size: 30px;
  }
  .experiment-card {
    grid-template-columns: 1fr;
  }
  .experiment-cover {
    min-height: 210px;
    border-left: 0;
    border-bottom: var(--line);
  }
  .molecule {
    font-size: 150px;
    top: 0;
  }
  .experiment-info {
    padding: 23px;
  }
  .experiment-info h2 {
    font-size: 21px;
  }
  .lab-heading {
    display: block;
  }
  .lab-heading h1 {
    font-size: 19px;
  }
  .lab-tools {
    flex-direction: row;
    margin-bottom: 20px;
  }
  .steps li {
    flex-direction: column;
    font-size: 8px;
    gap: 4px;
    padding: 8px 2px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .control-panel {
    padding: 22px;
  }
  .scene-badge {
    font-size: 8px;
    top: 12px;
    right: 12px;
    padding: 5px 8px;
  }
  .scene-header {
    font-size: 9px;
  }
  .scene-footer span {
    font-size: 10px;
  }
  .timer-panel {
    top: 50px;
    left: 8px;
    padding: 5px;
    max-width: 123px;
  }
  .timer-panel strong {
    font-size: 15px;
  }
  .timer-panel label {
    font-size: 7px;
  }
  .timer-panel select,
  .timer-panel button {
    font-size: 8px;
  }
  .quiz-heading h1 {
    font-size: 25px;
  }
  .quiz-card {
    padding: 22px;
  }
  .quiz-card h2 {
    font-size: 17px;
  }
  .answers {
    grid-template-columns: 1fr;
  }
  .quiz-top {
    font-size: 9px;
  }
  .action {
    font-size: 12px;
  }
  .control-panel p {
    font-size: 12px;
  }
}
.scene-badge {
  max-width: 35%;
  font-size: 10px;
}
.timer-panel {
  left: auto;
  right: 14px;
  max-width: 30%;
  top: 105px;
}
@media (max-width: 800px) {
  .scene-badge {
    font-size: 9px;
  }
  .timer-panel {
    right: 10px;
    top: 85px;
  }
  .scene-panel {
    scroll-margin-top: 12px;
  }
}
@media (max-width: 430px) {
  .scene-badge {
    font-size: 7px;
    right: 8px;
    top: 8px;
    padding: 4px 5px;
  }
  .timer-panel {
    top: 55px;
    right: 8px;
    max-width: 30%;
    font-size: 7px;
  }
  .timer-panel strong {
    font-size: 13px;
  }
  .timer-panel select {
    font-size: 7px;
  }
}

.topbar .nav-channel {
  color: var(--blue);
  text-decoration: none;
}
.topbar .nav-channel:hover,
.channel-link:hover {
  text-decoration: underline;
}
footer .channel-link {
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
}
@media (max-width: 740px) {
  nav {
    gap: 9px;
  }
  .topbar .nav-channel {
    font-size: 9px;
  }
  .brand small {
    max-width: 140px;
    line-height: 1.3;
  }
}

.brand-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  flex: none;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
}
.footer-brand span {
  color: var(--ink);
  margin: 0;
}
@media (max-width: 740px) {
  .brand-logo {
    width: 42px;
    height: 42px;
  }
  .brand {
    gap: 8px;
  }
  .brand b {
    font-size: 20px;
  }
  .brand small {
    font-size: 7px;
  }
  .footer-logo {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 740px) {
  .topbar #source-open {
    display: none;
  }
}

.site-home-link {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.site-home-link:hover {
  text-decoration: underline;
}
