@font-face {
  font-family: Dunyati;
  src: url("./fonts/PlusJakartaSans-Medium.ttf") format("truetype");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Dunyati;
  src: url("./fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: DunyatiArabic;
  src: url("./fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: DunyatiArabic;
  src: url("./fonts/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}
:root {
  font-family: Dunyati, DunyatiArabic, sans-serif;
  color: #273f3a;
  background: #f7f4e9;
  font-synthesis: none;
  --ink: #273f3a;
  --paper: #fffdf5;
  --accent: #6b9473;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  border-radius: 18px;
  background: #fffdf4;
  transition:
    transform 0.16s,
    background 0.16s;
  touch-action: manipulation;
}
button:hover {
  transform: translateY(-2px);
}
button:active {
  transform: scale(0.97);
}
button:focus-visible,
select:focus-visible {
  outline: 4px solid #d49446;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:disabled:hover {
  transform: none;
}
button svg {
  display: block;
  width: 100%;
  height: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -1.7px;
  line-height: 1.22;
  font-weight: 800;
}
h2 {
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.7;
}
[lang="ar"] {
  font-family: DunyatiArabic, Dunyati, sans-serif;
  letter-spacing: 0;
}
small {
  line-height: 1.6;
}
a {
  color: inherit;
}
.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: #f7f4e9;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid #dfe2d4;
}
.brand {
  font-size: 28px;
  letter-spacing: -1.8px;
  font-weight: 800;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}
.brand-flower {
  font-size: 39px;
  color: #d4804e;
  line-height: 1;
}
.brand-dot {
  color: #d4804e;
  margin-inline-start: -8px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.settings-button {
  width: 48px;
  height: 48px;
  border: 1px solid #d9ddcd;
  background: transparent;
  font-size: 24px;
  border-radius: 50%;
}
.quiet {
  background: rgba(255, 253, 245, 0.85);
  border: 1px solid #dce1d2;
  min-height: 48px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
}
.topbar .quiet {
  background: transparent;
}
.primary {
  background: #2c5b48;
  color: #fffdf4;
  padding: 14px 26px;
  min-height: 56px;
  border-radius: 18px;
  font-weight: 800;
  box-shadow: 0 5px 0 #1a4231;
  font-size: 16px;
}
.primary:hover {
  background: #366a55;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-weight: 800;
  color: #63776a;
  margin-bottom: 12px;
}
.home {
  max-width: 1370px;
  margin: auto;
  padding: 43px 5% 22px;
}
.home-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
  gap: 20px;
}
.home-flower {
  font-size: 80px;
  color: #d89b63;
  line-height: 1;
  padding-inline-end: 20px;
  transform: rotate(-12deg);
}
.world-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 21px;
}
.world-card {
  text-align: start;
  background: var(--paper);
  border-radius: 25px;
  overflow: hidden;
  padding: 0 0 17px;
  box-shadow: 0 2px 0 #dbe0d1;
  border: 1px solid #e0e4d7;
  position: relative;
  display: flex;
  flex-direction: column;
}
.world-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 0 #dbe0d1;
}
.world-preview {
  height: 145px;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--accent);
}
.world-preview > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.world-preview svg {
  display: block;
}
.world-number {
  position: absolute;
  top: 12px;
  inset-inline-start: 13px;
  background: #fffdf5d9;
  color: #355648;
  padding: 4px 7px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
}
.card-arrow {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 11px;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  background: #fffdf5e0;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.world-card h2 {
  font-size: 17px;
  padding: 14px 15px 3px;
  letter-spacing: -0.5px;
}
.world-card p {
  font-size: 11px;
  line-height: 1.5;
  padding: 0 15px;
  color: #718078;
  min-height: 33px;
}
.skill-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #7a887e;
  margin: 11px 15px 0;
  padding-top: 8px;
  border-top: 1px solid #e9ecdf;
  display: block;
}
.home footer {
  font-size: 10px;
  color: #7e8b7d;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
}
.world-shell {
  position: relative;
  min-height: calc(100svh - 86px);
  isolation: isolate;
  overflow: hidden;
  background: #e3edcf;
}
.immersive-scenery {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.immersive-scenery > svg {
  width: 100%;
  height: 100%;
  display: block;
}
.world-heading {
  position: relative;
  padding: 30px 5% 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.world-heading h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  text-shadow: 0 2px 20px #fff9;
}
.world-heading .eyebrow {
  color: #365b46;
}
.world-badges {
  display: flex;
  gap: 8px;
  align-items: start;
  flex-wrap: wrap;
  justify-content: end;
}
.world-badges span {
  background: #fffdf4bb;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 10px;
  white-space: nowrap;
  box-shadow: 0 1px 0 #ffffff66;
}
.actor-stage {
  position: absolute;
  inset: 17% 0 7%;
  z-index: 0;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.actor-stage > svg {
  width: 100% !important;
  max-height: 100%;
  display: block;
}
.actor-stage [data-layer="backdrop"],
.actor-stage [data-layer="ambience-sky"],
.actor-stage [data-layer="ambience"] {
  opacity: 0;
}
.world-invitation {
  position: absolute;
  bottom: 115px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  min-width: 300px;
}
.world-invitation p {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 17px;
  background: #fffdf4e5;
  padding: 8px 18px;
  border-radius: 13px;
  box-shadow: 0 3px 0 #d5dcc066;
}
.focus-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  justify-content: center;
}
.magnify {
  font-size: 26px;
  line-height: 1;
}
.world-bottom {
  position: absolute;
  bottom: 20px;
  left: 5%;
  right: 5%;
  z-index: 6;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.world-bottom small {
  background: #fffdf4df;
  border-radius: 8px;
  padding: 8px;
  max-width: 400px;
  font-size: 10px;
}
.phase-focus .actor-stage,
.phase-activity .actor-stage {
  opacity: 0.36;
  filter: blur(1px);
  transform: scale(1.15);
  pointer-events: none;
}
.focus-object {
  position: relative;
  z-index: 4;
  max-width: 600px;
  margin: 35px auto 110px;
  text-align: center;
}
.focus-prompt {
  font-weight: 700;
  background: #fffdf3e6;
  padding: 12px 20px;
  display: inline-block;
  border-radius: 17px;
  margin-bottom: 12px;
}
.openable {
  background: transparent;
  display: block;
  margin: auto;
  width: min(450px, 90vw);
  height: 340px;
  position: relative;
  filter: drop-shadow(0 12px 15px #355c4422);
}
.openable > svg {
  width: 100%;
  height: 290px;
}
.openable > span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fffdf1;
  border: 2px solid #d2ad6e;
  padding: 13px 24px;
  border-radius: 16px;
  font-weight: 800;
  box-shadow: 0 4px 0 #bf985c;
}
.openable b {
  font-size: 24px;
  color: #7b683e;
}
.activity-object {
  position: relative;
  z-index: 4;
  max-width: 700px;
  background: #fffdf0;
  border: 9px solid #d8b78b;
  border-bottom-width: 16px;
  border-radius: 30px;
  box-shadow:
    0 18px 0 #8d6d4c33,
    0 30px 65px #334a3c22;
  margin: 30px auto 110px;
  padding: 22px 25px;
  animation: reveal 0.4s ease-out;
}
.activity-content {
  position: relative;
  z-index: 1;
}
.activity-object h2 {
  font-size: 21px;
  text-align: center;
  max-width: 550px;
  margin: auto;
}
.open-lid {
  height: 0;
  overflow: visible;
  position: absolute;
  left: 50%;
  width: 230px;
  top: -55px;
  transform: translateX(-50%);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}
.open-lid svg {
  width: 230px;
  height: 110px;
  animation: hinge 0.7s ease both;
  transform-origin: center bottom;
}
.activity-options {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin: 20px 0;
}
.activity-options > button {
  flex: 1;
  max-width: 190px;
  background: #f0eddf;
  border: 2px solid transparent;
  border-bottom-width: 5px;
  min-height: 128px;
  padding: 12px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
}
.activity-options > button.selected {
  border-color: #779e72;
  background: #e8efda;
}
.option-art {
  font-size: 40px;
  line-height: 1.15;
  color: #5b7f64;
}
.activity-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 17px;
  flex-wrap: wrap;
}
.activity-actions .primary {
  min-height: 50px;
  font-size: 14px;
}
.outcome {
  padding: 15px 18px;
  background: #e8efda;
  border-radius: 18px;
  margin-top: 15px;
  text-align: center;
}
.outcome p {
  font-size: 13px;
}
.outcome h3 {
  margin-top: 12px;
  font-size: 12px;
}
.outcome-art {
  font-size: 36px;
  display: block;
  margin-bottom: 6px;
}
.retry {
  font-size: 13px;
  text-align: center;
  background: #f7e7c8;
  padding: 10px;
  border-radius: 12px;
}
.apple-basket {
  margin: 20px auto 0;
  background: linear-gradient(#faf2d4, #e2be80);
  border-radius: 15px 15px 40px 40px;
  border-bottom: 8px solid #c6a16a;
  max-width: 400px;
  padding: 14px;
}
.apple-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  min-height: 84px;
}
.apple-row svg {
  width: 58px;
  height: 65px;
}
.empty-basket {
  font-size: 70px;
  color: #c5a979;
  line-height: 1;
}
.count-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.count-controls button {
  font-size: 26px;
  width: 48px;
  box-shadow: 0 3px 0 #bca16b;
}
.count-controls output {
  font-size: 27px;
  min-width: 25px;
  text-align: center;
}
.sharing > p {
  text-align: center;
  font-size: 12px;
  margin: 15px;
}
.plates {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.plates button {
  width: 30%;
  background: #e9ebdf;
  padding: 10px;
  border: 2px solid #d7dccb;
  min-height: 110px;
  border-radius: 50%;
}
.plate-dates {
  font-size: 22px;
  display: block;
  min-height: 44px;
}
.plates small {
  font-size: 11px;
  display: block;
}
.sequence-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  direction: ltr;
}
.sequence-line span {
  border: 2px dashed #c5cdb5;
  border-radius: 13px;
  min-width: 65px;
  height: 60px;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: #7d917b;
}
.sequence-line b {
  color: #9aa78f;
}
.breathing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
}
.breath-flower {
  font-size: 70px;
  color: #d7945e;
  background: transparent;
  line-height: 1;
  height: 80px;
  width: 80px;
}
.breathing p {
  font-size: 13px;
}
.breathe-active {
  animation: breath 7s ease-in-out;
}
.breathing + .activity-options > button {
  min-height: 95px;
}
.quran-object {
  padding: 38px 28px;
  text-align: center;
  max-width: 760px;
  background: #fffdf1;
  border-color: #b8c7a1;
}
.quran-verse {
  font-size: clamp(29px, 4.3vw, 48px);
  font-family: DunyatiArabic, serif;
  line-height: 2.2;
  margin: 25px 0;
  color: #2f5847;
}
.quran-verse span {
  font-size: 20px;
  color: #8c794e;
}
.verse-meaning {
  font-size: 16px;
  max-width: 540px;
  margin: auto;
}
.quran-note {
  font-size: 11px;
  color: #7c8877;
  margin-top: 24px;
}
.verse-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 20px 0;
}
.quran-object > small {
  font-size: 9px;
  color: #7c8877;
}
.settings-panel {
  max-width: 850px;
  margin: 35px auto 70px;
  padding: 0 28px;
}
.settings-panel h1 {
  font-size: 32px;
}
.settings-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.settings-heading > button {
  font-size: 25px;
  background: #e8ecdf;
}
.settings-panel h2 {
  font-size: 23px;
  margin-top: 32px;
  margin-bottom: 9px;
}
.settings-panel p {
  font-size: 13px;
  color: #687a6b;
}
.language-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 17px;
}
.language-selects label {
  font-size: 12px;
  font-weight: 800;
}
.language-selects select {
  display: block;
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
  border: 1px solid #cfd7c5;
  background: #fffdf4;
  border-radius: 14px;
  padding: 12px;
  font-size: 16px;
}
.core-status {
  padding: 12px 16px;
  background: #e6ecd9;
  border-radius: 12px;
  margin-top: 14px;
}
.pack-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.pack-row {
  border: 1px solid #dce2d2;
  border-radius: 18px;
  padding: 18px 20px;
  background: #fffdf5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.pack-row h3 {
  font-size: 15px;
}
.pack-row small {
  font-size: 11px;
  color: #7f897c;
}
.pack-row p {
  font-size: 11px;
}
.pack-row button {
  background: #e6ecda;
  font-size: 12px;
  padding: 10px 16px;
}
.release {
  display: block;
  font-size: 10px;
  color: #8a9382;
  border-top: 1px solid #dde2d5;
  margin-top: 25px;
  padding-top: 20px;
  overflow-wrap: anywhere;
}
.word-bubble {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 36%;
  transform: translateX(-50%);
  padding: 16px 32px;
  background: #fffdf4;
  border-radius: 20px;
  box-shadow: 0 5px 0 #d8c296;
  font-size: 26px;
  font-weight: 800;
  pointer-events: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@keyframes breath {
  0%,
  100% {
    transform: scale(0.8);
  }
  43% {
    transform: scale(1.4);
  }
  95% {
    transform: scale(0.8);
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hinge {
  from {
    transform: perspective(500px) rotateX(80deg);
  }
  to {
    transform: perspective(500px) rotateX(0);
  }
}
@media (min-width: 1450px) {
  .world-preview {
    height: 180px;
  }
  .world-card h2 {
    font-size: 19px;
  }
}
@media (max-width: 1000px) {
  .world-grid {
    gap: 15px;
  }
  .world-preview {
    height: 120px;
  }
  .world-card h2 {
    font-size: 14px;
    padding: 12px 10px 3px;
  }
  .world-card p {
    padding: 0 10px;
    font-size: 10px;
  }
  .skill-label {
    margin: 10px 10px 0;
    font-size: 8px;
  }
  .home {
    padding-top: 28px;
  }
  .home-intro {
    margin-bottom: 25px;
  }
  .home-intro h1 {
    font-size: 34px;
  }
  .home-flower {
    font-size: 60px;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 74px;
    padding: 0 6%;
  }
  .brand {
    font-size: 25px;
  }
  .brand-flower {
    font-size: 32px;
  }
  .top-actions {
    gap: 8px;
  }
  .topbar .quiet {
    padding: 8px 12px;
  }
  .topbar .quiet span {
    display: none;
  }
  .settings-button {
    font-size: 22px;
  }
  .home {
    padding: 27px 6% 18px;
  }
  .home-intro {
    align-items: start;
    margin-bottom: 24px;
  }
  .home-intro h1 {
    font-size: 32px;
    letter-spacing: -1.1px;
    max-width: 270px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
    margin-bottom: 9px;
  }
  .home-flower {
    font-size: 45px;
    padding-inline-end: 0;
    margin-top: 13px;
  }
  .world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
  }
  .world-card {
    border-radius: 21px;
    padding-bottom: 14px;
  }
  .world-preview {
    height: 124px;
  }
  .world-card h2 {
    font-size: 15px;
    padding: 12px 12px 4px;
    line-height: 1.4;
  }
  .world-card p {
    padding: 0 12px;
    font-size: 10px;
    min-height: 33px;
  }
  .skill-label {
    font-size: 8px;
    margin: 9px 12px 0;
    padding-top: 7px;
  }
  .home footer {
    display: block;
    text-align: center;
    font-size: 9px;
    line-height: 1.7;
    margin-top: 22px;
  }
  .world-shell {
    min-height: calc(100svh - 74px);
  }
  .world-heading {
    padding: 26px 6% 0;
    display: block;
  }
  .world-heading h1 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .world-heading .eyebrow {
    font-size: 9px;
  }
  .world-badges {
    justify-content: start;
    margin-top: 14px;
  }
  .world-badges span {
    font-size: 9px;
    padding: 6px 9px;
  }
  .actor-stage {
    inset: 26% -35% 19%;
    min-height: 280px;
  }
  .world-invitation {
    bottom: 120px;
    width: 86%;
    min-width: 0;
  }
  .world-invitation p {
    font-size: 13px;
  }
  .world-bottom {
    left: 6%;
    right: 6%;
    bottom: 18px;
    gap: 8px;
  }
  .world-bottom .quiet {
    font-size: 11px;
    padding: 8px 12px;
  }
  .focus-object {
    margin: 40px auto 110px;
  }
  .focus-prompt {
    font-size: 13px;
    max-width: 85%;
    padding: 10px 15px;
  }
  .openable {
    width: 90%;
    height: 330px;
  }
  .openable > svg {
    height: 260px;
  }
  .openable > span {
    font-size: 13px;
    padding: 12px 17px;
    gap: 8px;
  }
  .activity-object {
    margin: 28px 5% 100px;
    padding: 20px 14px;
    border-width: 6px;
    border-bottom-width: 12px;
    border-radius: 25px;
  }
  .activity-object h2 {
    font-size: 17px;
  }
  .activity-options {
    gap: 8px;
    margin: 16px 0;
  }
  .activity-options > button {
    padding: 10px 5px;
    font-size: 11px;
    min-height: 114px;
    border-radius: 14px;
  }
  .option-art {
    font-size: 32px;
  }
  .activity-actions {
    gap: 9px;
  }
  .activity-actions .primary {
    font-size: 12px;
    padding: 11px 22px;
    min-height: 49px;
  }
  .activity-actions .quiet {
    font-size: 11px;
    padding: 9px 12px;
  }
  .apple-row svg {
    width: 45px;
    height: 51px;
  }
  .apple-basket {
    margin-top: 16px;
    padding: 12px;
  }
  .outcome {
    padding: 11px;
    margin-top: 12px;
  }
  .outcome p {
    font-size: 12px;
  }
  .outcome-art {
    font-size: 28px;
  }
  .plates {
    gap: 9px;
  }
  .plates button {
    min-height: 95px;
    width: 32%;
    padding: 8px;
  }
  .plate-dates {
    font-size: 17px;
    min-height: 33px;
  }
  .plates small {
    font-size: 9px;
  }
  .sequence-line {
    gap: 9px;
    margin-top: 16px;
  }
  .sequence-line span {
    min-width: 50px;
    height: 49px;
    font-size: 22px;
  }
  .breathing {
    gap: 14px;
    margin: 10px 0;
  }
  .breath-flower {
    font-size: 54px;
    height: 60px;
    width: 60px;
  }
  .breathing p {
    font-size: 11px;
  }
  .breathing + .activity-options > button {
    min-height: 93px;
  }
  .quran-object {
    padding: 26px 15px;
  }
  .quran-verse {
    font-size: 31px;
    margin: 18px 0;
  }
  .verse-meaning {
    font-size: 13px;
  }
  .verse-controls {
    gap: 10px;
  }
  .verse-controls .primary {
    font-size: 12px;
    padding: 11px 16px;
  }
  .settings-panel {
    margin: 25px auto 50px;
    padding: 0 6%;
  }
  .settings-panel h1 {
    font-size: 27px;
    max-width: 240px;
  }
  .language-selects {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .pack-row {
    padding: 15px;
    gap: 10px;
  }
  .pack-row h3 {
    font-size: 13px;
  }
  .pack-row button {
    font-size: 11px;
    padding: 8px 11px;
    flex-shrink: 0;
  }
  .settings-panel h2 {
    font-size: 22px;
  }
  .phase-activity .world-heading {
    padding-top: 18px;
  }
  .phase-activity .world-heading h1 {
    font-size: 25px;
  }
  .phase-activity .world-badges {
    display: none;
  }
  .phase-activity .world-heading .eyebrow {
    display: none;
  }
}
@media (max-height: 500px) and (min-width: 651px) {
  .topbar {
    height: 60px;
  }
  .brand {
    font-size: 24px;
  }
  .brand-flower {
    font-size: 30px;
  }
  .world-shell {
    min-height: calc(100svh - 60px);
  }
  .world-heading {
    padding-top: 15px;
  }
  .world-heading h1 {
    font-size: 25px;
  }
  .world-heading .eyebrow {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .actor-stage {
    inset: 10% 0 0;
    min-height: 0;
  }
  .world-invitation {
    bottom: 72px;
    min-width: 260px;
  }
  .world-invitation p {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 10px;
  }
  .world-invitation .primary {
    min-height: 48px;
    padding: 8px 20px;
    font-size: 13px;
  }
  .world-bottom {
    bottom: 10px;
  }
  .world-bottom .quiet {
    min-height: 48px;
    font-size: 11px;
    padding: 8px 12px;
  }
  .focus-object {
    margin: 0 auto 70px;
    width: 390px;
  }
  .focus-prompt {
    position: absolute;
    inset-inline-start: -170px;
    top: 50px;
    max-width: 170px;
    font-size: 11px;
  }
  .openable {
    height: 220px;
    width: 280px;
  }
  .openable > svg {
    height: 175px;
  }
  .openable > span {
    font-size: 11px;
    min-height: 40px;
    padding: 7px 15px;
  }
  .phase-activity .world-heading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding-top: 14px;
  }
  .phase-activity .world-heading h1 {
    font-size: 19px;
  }
  .phase-activity .world-heading .eyebrow,
  .phase-activity .world-badges {
    display: none;
  }
  .activity-object {
    margin: 60px auto 70px;
    max-width: 620px;
    padding: 14px 18px;
    border-width: 6px;
    border-bottom-width: 10px;
  }
  .activity-object h2 {
    font-size: 15px;
  }
  .activity-options {
    margin: 10px 0;
    gap: 10px;
  }
  .activity-options > button {
    min-height: 78px;
    font-size: 11px;
    padding: 8px;
    gap: 4px;
  }
  .option-art {
    font-size: 25px;
  }
  .activity-actions {
    margin-top: 10px;
    gap: 10px;
  }
  .activity-actions .primary {
    min-height: 48px;
    font-size: 12px;
    padding: 8px 22px;
  }
  .activity-actions .quiet {
    min-height: 48px;
    font-size: 11px;
  }
  .outcome {
    padding: 10px;
    margin-top: 8px;
  }
  .outcome p {
    font-size: 11px;
  }
  .outcome h3 {
    font-size: 11px;
    margin-top: 6px;
  }
  .outcome-art {
    font-size: 25px;
    margin-bottom: 3px;
  }
  .apple-basket {
    margin-top: 10px;
    padding: 6px;
    max-width: 350px;
  }
  .apple-row {
    min-height: 43px;
  }
  .apple-row svg {
    height: 40px;
    width: 38px;
  }
  .count-controls {
    gap: 20px;
  }
  .count-controls button {
    min-height: 48px;
    width: 40px;
    font-size: 22px;
  }
  .count-controls output {
    font-size: 22px;
  }
  .empty-basket {
    font-size: 35px;
  }
  .plates button {
    min-height: 70px;
    padding: 7px;
    width: 120px;
  }
  .plate-dates {
    font-size: 17px;
    min-height: 26px;
  }
  .sharing > p {
    font-size: 10px;
    margin: 8px;
  }
  .plates small {
    font-size: 9px;
  }
  .sequence-line {
    margin-top: 10px;
    gap: 10px;
  }
  .sequence-line span {
    min-width: 43px;
    height: 36px;
    font-size: 19px;
  }
  .breathing {
    position: absolute;
    inset-inline-start: -140px;
    top: 20px;
    flex-direction: column;
    gap: 5px;
    max-width: 110px;
  }
  .breath-flower {
    font-size: 50px;
    height: 55px;
    width: 55px;
  }
  .breathing p {
    font-size: 10px;
    text-align: center;
  }
  .quran-object {
    margin-top: 55px;
    padding: 16px 24px;
  }
  .quran-verse {
    font-size: 27px;
    line-height: 1.8;
    margin: 10px 0;
  }
  .verse-meaning {
    font-size: 12px;
  }
  .quran-note {
    font-size: 9px;
    margin-top: 10px;
  }
  .verse-controls {
    margin: 12px 0;
    gap: 12px;
  }
  .verse-controls .primary {
    font-size: 11px;
    min-height: 48px;
    padding: 8px 17px;
  }
  .quran-object .eyebrow {
    font-size: 9px;
    margin-bottom: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.experiment-art {
  width: 100%;
  max-height: 140px;
  display: block;
  margin: 10px auto;
}
.evidence-step {
  margin-top: 15px;
  padding: 15px;
  background: #e9ecdd;
  border-radius: 15px;
}
.evidence-step h3 {
  font-size: 14px;
  text-align: center;
}
.evidence-options {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.evidence-options > button {
  flex: 1;
  background: #fffdf4;
  border: 2px solid transparent;
  padding: 10px;
  font-size: 12px;
}
.evidence-options > button.selected {
  border-color: #5b8a65;
  background: #dbe9ca;
}
.care-reaction,
.reading-sentence {
  text-align: center;
  font-size: 14px;
  background: #eef0e2;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
}
.phase-activity {
  overflow: hidden;
}
.phase-activity .immersive-scenery {
  overflow: hidden;
}
.phase-activity .world-bottom {
  position: relative;
  margin: 20px 0;
  bottom: auto;
  left: auto;
  right: auto;
  padding: 0 5%;
}
.phase-activity .activity-object {
  margin-bottom: 30px;
}
.phase-activity .world-shell {
  min-height: 100%;
}
@media (max-width: 650px) {
  .experiment-art {
    max-height: 105px;
  }
  .evidence-step {
    padding: 12px;
    margin-top: 12px;
  }
  .evidence-step h3 {
    font-size: 12px;
  }
  .evidence-options {
    gap: 7px;
    margin-top: 10px;
  }
  .evidence-options > button {
    font-size: 10px;
    padding: 8px;
  }
  .care-reaction,
  .reading-sentence {
    font-size: 12px;
    padding: 10px;
  }
}
@media (max-height: 500px) and (min-width: 651px) {
  .experiment-art {
    max-height: 90px;
  }
  .evidence-step {
    padding: 10px;
    margin-top: 10px;
  }
  .evidence-step h3 {
    font-size: 12px;
  }
  .evidence-options > button {
    font-size: 10px;
    min-height: 48px;
  }
  .care-reaction,
  .reading-sentence {
    font-size: 11px;
    padding: 8px;
    margin: 8px 0;
  }
}
.option-art > svg {
  width: 65px;
  height: 65px;
  max-width: 100%;
  display: block;
}
.outcome-art > svg {
  width: 50px;
  height: 50px;
  margin: auto;
}
.quiet > svg,
.primary > svg {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  margin-inline-end: 6px;
}
.plate-dates {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.plate-dates > svg {
  width: 21px;
  height: 30px;
}
.toy-choices > button {
  background: transparent;
  max-width: 260px;
  border-radius: 25px;
  min-height: 180px;
}
.toy-choices > button .option-art {
  width: 100%;
  display: block;
}
.toy-choices > button .option-art > svg {
  width: 140px;
  height: 130px;
  display: block;
  margin: auto;
}
.toy-choices > button .option-art > .experiment-art {
  width: 100%;
  height: 115px;
}
.toy-choices > button.selected {
  background: #e7edda88;
  border: 2px dashed #799770;
  border-bottom-width: 2px;
}
.open-lid {
  display: none;
}
@media (min-width: 1001px) {
  .home {
    padding-top: 30px;
  }
  .home-intro {
    margin-bottom: 26px;
  }
  .world-preview {
    height: 130px;
  }
  .world-card {
    padding-bottom: 13px;
  }
  .world-card p {
    font-size: 10px;
  }
}
@media (max-width: 650px) {
  .toy-choices > button {
    min-height: 150px;
    padding: 7px;
  }
  .toy-choices > button .option-art > svg {
    width: 105px;
    height: 100px;
  }
  .toy-choices > button .option-art > .experiment-art {
    height: 88px;
  }
  .option-art > svg {
    width: 48px;
    height: 48px;
  }
  .outcome-art > svg {
    width: 36px;
    height: 36px;
  }
}
@media (max-height: 500px) and (min-width: 651px) {
  .toy-choices > button {
    min-height: 130px;
  }
  .toy-choices > button .option-art > svg {
    height: 80px;
    width: 85px;
  }
  .toy-choices > button .option-art > .experiment-art {
    height: 75px;
  }
  .option-art > svg {
    width: 40px;
    height: 40px;
  }
}
.word-shelf {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}
.word-chip {
  background: #fffdf2;
  border: 1px solid #d1d9c3;
  font-size: 14px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 13px;
}
.meaning-label {
  font-size: 10px;
  color: #7d8d76;
  margin-bottom: 7px;
}
.world-bottom .word-shelf {
  order: 4;
}
.phase-world:has(.word-shelf) .world-invitation {
  bottom: 175px;
}
.activity-object {
  animation: none;
}
.activity-object.entering {
  animation: reveal 0.4s ease-out;
}
.quran-object > small {
  display: block;
  overflow-wrap: anywhere;
}
.sequence-line > span > svg {
  width: 45px;
  height: 45px;
}
.teaching-notes {
  margin-top: 25px;
  padding: 15px 18px;
  border: 1px solid #d5ddcb;
  border-radius: 13px;
  background: #fffdf4;
}
.teaching-notes summary {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: 30px;
}
.teaching-notes p {
  margin-top: 13px;
}

/* Dunyati launch and parent account share the authored paper-and-garden palette. */
.intro-screen {
  min-height: min(78vh, 760px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 28px;
  margin: 8px 18px 24px;
  background: #dce9dc;
}
.intro-scenery {
  position: absolute;
  inset: 0;
  opacity: 0.76;
}
.intro-scenery svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intro-copy {
  position: relative;
  max-width: 620px;
  padding: clamp(24px, 5vw, 64px);
  background: linear-gradient(90deg, #fffdf5f5 65%, #fffdf500);
}
[dir="rtl"] .intro-copy {
  background: linear-gradient(270deg, #fffdf5f5 65%, #fffdf500);
}
.intro-copy h1 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.12;
  margin: 16px 0;
}
.intro-play {
  font-size: 24px;
  padding: 18px 38px;
  margin: 20px 0 12px;
}
.intro-free,
.account-note {
  font-size: 14px;
  line-height: 1.7;
}
.account-dialog {
  border: 1px solid #c5d3c4;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  padding: 24px;
  width: min(92vw, 540px);
  max-height: 90vh;
  overflow: auto;
}
.account-dialog::backdrop {
  background: #163329a8;
}
.account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.account-heading h2 {
  font-size: 24px;
}
.account-dialog p {
  line-height: 1.7;
}
.account-dialog button {
  min-height: 48px;
  margin: 6px 4px;
  padding: 10px 16px;
}
.account-dialog form {
  display: grid;
  gap: 12px;
}
.account-dialog input {
  width: 100%;
  min-height: 48px;
  border: 2px solid #718d7c;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: white;
  color: var(--ink);
}
.account-dialog [role="alert"] {
  color: #852e24;
}
.plan-grid {
  display: grid;
  gap: 8px;
}
.plan {
  border: 2px solid #42624b;
  background: #e6efe3;
  font-weight: bold;
}
.access-active {
  background: #dbeed4;
  padding: 12px;
  border-radius: 12px;
}
.world-card[data-locked="true"] .world-preview {
  opacity: 0.65;
}
@media (max-width: 600px) {
  .top-actions {
    gap: 4px;
  }
  .top-actions .quiet {
    font-size: 12px;
    padding: 8px;
  }
  .intro-copy {
    padding: 24px;
  }
}

.intro-screen .intro-actors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  transform: none;
}
.intro-screen .intro-actors > svg {
  width: 100%;
  height: 100%;
}
.intro-copy {
  pointer-events: none;
}
.intro-copy button {
  pointer-events: auto;
}
