.boot {
  margin: 0;
  padding: 24px;
  text-align: center;
  font: 800 22px "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
}

body {
  margin: 0;
  font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  background: #DDF3FF;
}

.jr-play {
  background: #FFF8E7;
}

.play-host,
.play {
  min-block-size: 100%;
  box-sizing: border-box;
}

.play {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 28px;
}

.play-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-back {
  flex: none;
  min-block-size: 48px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #E4D7B0;
}

.play-title {
  margin: 0;
  font-size: 26px;
}

.play-say {
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.play-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.play-choice {
  min-block-size: 64px;
  padding: 12px 16px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 #E7D7A4;
}

.play-choice:active { transform: translateY(3px); }
.play-choice.is-right { background: #2EAD6B; color: #fff; }
.play-choice.is-wrong { background: #F8D0C8; }
.play-choice.is-picked { outline: 4px solid #FFC72C; }
.play-choice.is-used { opacity: 0.35; }

.play-slots,
.play-bank,
.play-match {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.play-match { align-items: flex-start; }
.play-col { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.play-slot {
  min-inline-size: 72px;
  min-block-size: 56px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border-radius: 16px;
  background: #fff;
  border: 3px dashed #E0C98A;
  font-size: 22px;
  font-weight: 900;
}

.play-slot.is-filled { border-style: solid; background: #E7F8EE; }

.jr-mini {
  position: absolute;
  z-index: 4;
  inset-block-start: calc(env(safe-area-inset-top, 0px) + 68px);
  inset-inline-end: 12px;
  inline-size: 132px;
  padding: 6px 8px 8px;
  border-radius: 18px;
  background: #ffffffee;
  box-shadow: 0 4px 0 #d7e4ee, 0 10px 18px #0002;
}
.jr-mini-label {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  color: #1b74a8;
  text-align: center;
}
.jr-mini svg { display: block; inline-size: 100%; block-size: 148px; }
.jr-mini-path { fill: none; stroke: #e7dcc0; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.jr-mini-walked { fill: none; stroke: #ffc72c; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.jr-mini-stop { fill: #fff; stroke: #c9b48a; stroke-width: 2; cursor: pointer; }
.jr-mini-stop.is-here { fill: #ffc72c; stroke: #e0a800; }
.jr-mini-stop.is-done { fill: #2ead6b; stroke: #1f8a52; }
.jr-mini-stop.is-locked { fill: #e6eaee; stroke: #c5cdd4; }
.jr-mini-kid { fill: var(--c, #e8613c); stroke: #fff; stroke-width: 2; }
.jr.is-playing .jr-mini { visibility: hidden; }

@media (max-width: 899px) {
  .jr-mini { inline-size: 104px; }
  .jr-mini svg { block-size: 118px; }
}

.jr.is-flat .jr-canvas,
.jr.is-flat .jr-labels,
.jr.is-flat .jr-arrow { display: none; }
.jr.is-flat .jr-nav { grid-template-columns: 1fr; }

.jr-flat { display: none; }
.jr.is-flat .jr-flat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  z-index: 2;
  inset-block: 84px 210px;
  inset-inline: 16px;
  overflow: auto;
}

.flat-lead { margin: 0; font-size: 22px; font-weight: 900; }
.flat-kids { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flat-kid, .flat-stop {
  min-block-size: 64px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #E4D7B0;
}
.flat-kid { background: var(--c, #FFC72C); color: #fff; }
.flat-stop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-align: start;
}
.flat-mark {
  inline-size: 40px;
  block-size: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #FFF4D6;
}
.flat-stop.is-done .flat-mark { background: #2EAD6B; color: #fff; }
.flat-stop.is-locked { opacity: 0.55; }
.flat-stop.is-next { outline: 4px solid #FFC72C; }
.flat-stop.is-here { box-shadow: 0 4px 0 #1B74A8; }
