:root {
  color-scheme: light;
  --ink: #21334b;
  --paper: #fff6e8;
  --teal: #347d7d;
  --coral: #df7464;
  --butter: #f4cf71;
  --line: #284052;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, #fffdf7 0 11%, transparent 35%),
    var(--paper);
  font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif;
}
button,
a {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: -60px;
  left: 12px;
  padding: 9px;
  background: #fff;
  color: var(--ink);
}
.skip-link:focus {
  top: 10px;
}
.game-bar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px clamp(10px, 3vw, 28px);
  border-bottom: 3px solid var(--line);
  background: #fffdf8;
}
.game-bar strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
}
.home-link,
.auxiliary,
.quiet-button {
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.primary {
  min-height: 48px;
  border: 3px solid var(--line);
  border-radius: 14px;
  padding: 10px 18px;
  color: #fff;
  background: #286fd1;
  font-weight: 900;
  box-shadow: 0 3px 0 #173e72;
}
.primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #173e72;
}
:focus-visible {
  outline: 4px solid #d45145;
  outline-offset: 3px;
}
main {
  width: min(1100px, 100%);
  margin: auto;
  padding: clamp(12px, 3vw, 30px);
}
h1,
h2,
p {
  margin-top: 0;
}
.card {
  border: 3px solid var(--line);
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 7px 0 rgba(33, 51, 75, 0.18);
}
.welcome {
  width: min(650px, 100%);
  margin: clamp(30px, 8vh, 90px) auto;
  padding: clamp(20px, 5vw, 48px);
  text-align: center;
}
.welcome h1 {
  margin-bottom: 10px;
  font-size: clamp(2.25rem, 8vw, 4.3rem);
  line-height: 0.96;
}
.lead {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  line-height: 1.4;
}
.welcome .quiet-button {
  display: block;
  margin: 14px auto 0;
}
.welcome-art {
  position: relative;
  width: 190px;
  height: 105px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 22px 22px 8px 8px;
  background: #347d7d;
}
.welcome-art .shelf {
  position: absolute;
  right: 9px;
  bottom: 13px;
  left: 9px;
  height: 13px;
  border: 3px solid var(--line);
  background: var(--butter);
}
.mini-key,
.mini-shell {
  position: absolute;
  bottom: 28px;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}
.mini-key {
  left: 38px;
  transform: rotate(-12deg);
}
.mini-shell {
  right: 37px;
  color: #f5c989;
}
.eyebrow {
  margin-bottom: 7px;
  color: #756145;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.round-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.round-head h1 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}
.progress {
  margin: 0;
  padding: 7px 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
  white-space: nowrap;
}
.search-layout {
  display: grid;
  grid-template-columns: minmax(272px, 400px) minmax(300px, 1fr);
  align-items: start;
  justify-content: center;
  gap: clamp(12px, 3vw, 30px);
}
.scene-card {
  padding: 8px;
  border: 4px solid var(--line);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(33, 51, 75, 0.18);
}
.scene {
  position: relative;
  aspect-ratio: 4/3;
  min-width: 272px;
  overflow: hidden;
  border-radius: 13px;
  background: #347d7d;
}
.scene-treehouse-shelf {
  background: #427f78;
}
.scene-garden-shed {
  background: #789c72;
}
.scene::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 17%;
  content: "";
  background: #d5af6e;
  border-top: 4px solid var(--line);
}
.scene-props,
.scene-props * {
  position: absolute;
}
.scene-props {
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.scene-props i {
  top: 10%;
  left: 4%;
  width: 27%;
  height: 55%;
  border: 6px solid var(--line);
  border-bottom: 20px solid #f4cf71;
  background: #d87468;
}
.scene-props b {
  top: 8%;
  right: 8%;
  width: 25%;
  height: 70%;
  border: 6px solid var(--line);
  background: #f3cf7d;
}
.scene-props em {
  right: 14%;
  bottom: 11%;
  width: 29%;
  height: 22%;
  border: 5px solid var(--line);
  border-radius: 50%;
  background: #d87567;
}
.scene-props span {
  bottom: 15%;
  left: 19%;
  width: 22%;
  height: 13%;
  border: 4px solid var(--line);
  border-radius: 50%;
  background: #f1b196;
}
.props-treehouse-shelf i {
  background: #95bd96;
}
.props-treehouse-shelf b {
  background: #e1b96a;
}
.props-garden-shed i {
  background: #c96c60;
}
.props-garden-shed b {
  background: #f1c765;
}
.scene-object {
  position: absolute;
  z-index: 2;
  width: 56px;
  height: 56px;
  min-width: 48px;
  min-height: 48px;
  padding: 2px;
  border: 0;
  border-radius: 50%;
  color: var(--line);
  background: transparent;
  transform: translate(-50%, -50%);
}
.scene-object .motif {
  width: 48px;
  height: 48px;
  background: #fffdf8;
  border-radius: 9px;
  filter: drop-shadow(0 2px 0 rgba(33, 51, 75, 0.22));
}
.scene-object:hover,
.scene-object:focus-visible {
  background: #fff4c7;
}
.scene-object.found {
  background: #e9f2d7;
}
.scene-object.found .motif {
  border: 4px solid #426e46;
}
.scene-object.supported-row::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: -55px;
  width: calc(100% + 110px);
  height: 70px;
  content: "";
  border: 3px dashed #fff6c8;
  border-radius: 14px;
  background: rgba(255, 247, 197, 0.28);
  transform: translateY(-50%);
}
.scene-object.supported {
  background: #ffd56d;
  box-shadow: 0 0 0 5px #fff;
}
.found-mark {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: #426e46;
  font-weight: 900;
}
.search-tools {
  min-width: 0;
  padding: clamp(10px, 2vw, 18px);
  border: 3px solid var(--line);
  border-radius: 20px;
  background: #fffdf8;
}
.tray-label {
  margin-bottom: 7px;
  font-weight: 900;
}
.tray {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.target-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 2px;
  align-content: center;
  min-height: 86px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 3px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
}
.target-card .motif {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 46px;
  height: 44px;
  color: var(--line);
}
.target-card.found {
  border-color: #426e46;
  background: #e9f2d7;
}
.target-card b {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  color: #325d3b;
  font-size: 0.9rem;
  line-height: 1;
}
.target-card > span:not(.visually-hidden) {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.feedback {
  min-height: 48px;
  margin: 10px 0;
  padding: 8px 10px;
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  background: #fff3e7;
  line-height: 1.35;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.actions button {
  flex: 1 1 140px;
}
.ending {
  display: grid;
  grid-template-columns: minmax(272px, 400px) 1fr;
  gap: 18px;
  margin-top: 14px;
  padding: 15px;
}
.ending h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}
.postcards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 120px;
  padding: 13px;
  border: 4px solid var(--line);
  border-radius: 14px;
  background: #347d7d;
}
.postcard {
  padding: 9px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: #fff3cf;
  font-weight: 800;
}
.help-dialog {
  width: min(660px, calc(100% - 24px));
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  border: 4px solid var(--line);
  border-radius: 18px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 8px 0 rgba(33, 51, 75, 0.25);
}
.help-dialog::backdrop {
  background: rgba(33, 51, 75, 0.55);
}
.help-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.demo-frame {
  position: relative;
  padding: 20px 8px 8px;
  border: 3px solid var(--line);
  border-radius: 13px;
  background: #f4cf71;
}
.demo-frame > span {
  position: absolute;
  top: 4px;
  left: 7px;
  font-weight: 900;
}
.mini-scene {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 105px;
  border: 3px solid var(--line);
  border-radius: 9px;
  background: #347d7d;
}
.mini-scene button,
.demo-picture {
  position: relative;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 9px;
  color: var(--line);
  background: #fff;
}
.mini-scene .motif,
.demo-picture .motif {
  width: 52px;
  height: 52px;
}
.demo-picture {
  display: grid;
  place-items: center;
  margin: 8px auto 0;
}
.demo-found,
.demo-picture.found {
  outline: 4px solid #426e46;
}
.demo-found b,
.demo-picture b {
  position: absolute;
  right: -8px;
  bottom: -8px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: #fff;
  background: #426e46;
}
.demo-frame:not(.show-find):last-child {
  opacity: 0.65;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.dialog-actions button {
  flex: 1 1 130px;
}
@media (max-width: 620px) {
  .help-dialog {
    width: calc(100% - 24px);
    padding: 10px;
  }
  .help-demo {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .demo-frame,
  .mini-scene {
    min-width: 0;
  }
  .dialog-actions {
    gap: 6px;
    margin-top: 10px;
  }
  .dialog-actions button {
    min-width: 0;
    min-height: 44px;
  }
  .game-bar {
    min-height: 48px;
  }
  .game-bar strong {
    font-size: 0.95rem;
  }
  main {
    padding: 10px;
  }
  .round-head {
    align-items: start;
  }
  .round-head .progress {
    font-size: 0.8rem;
  }
  .search-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .scene-card {
    width: 272px;
    max-width: 100%;
    margin: auto;
    padding: 4px;
  }
  .scene {
    min-width: 0;
  }
  .search-tools {
    padding: 8px;
  }
  .tray {
    gap: 5px;
  }
  .target-card {
    min-height: 66px;
    font-size: 0.63rem;
  }
  .target-card .motif {
    width: 37px;
    height: 34px;
  }
  .feedback {
    min-height: 38px;
    margin: 6px 0;
    padding: 6px;
    font-size: 0.86rem;
  }
  .actions {
    gap: 5px;
  }
  .actions button {
    flex-basis: calc(50% - 5px);
    font-size: 0.82rem;
  }
  .ending {
    grid-template-columns: 1fr;
  }
  .postcards {
    min-height: 0;
  }
  .welcome {
    margin: 30px auto;
  }
}
@media (max-height: 430px) and (orientation: landscape) {
  .game-bar {
    min-height: 42px;
    padding-block: 2px;
  }
  .game-bar a {
    min-height: 36px;
    padding: 6px 10px;
  }
  main {
    padding: 5px;
  }
  .round-head {
    margin-bottom: 4px;
  }
  .round-head h1 {
    font-size: 1.3rem;
  }
  .eyebrow {
    margin: 0;
    font-size: 0.65rem;
  }
  .search-layout {
    grid-template-columns: 320px 1fr;
    gap: 8px;
  }
  .scene-card {
    padding: 3px;
  }
  .search-tools {
    padding: 5px;
  }
  .tray-label {
    display: none;
  }
  .target-card {
    min-height: 48px;
    font-size: 0.55rem;
  }
  .target-card .motif {
    width: 29px;
    height: 25px;
  }
  .feedback {
    min-height: 28px;
    margin: 3px 0;
    padding: 3px;
    font-size: 0.74rem;
  }
  .actions {
    gap: 4px;
  }
  .actions button {
    min-height: 44px;
    padding: 5px;
    font-size: 0.7rem;
  }
  .scene-object {
    width: 48px;
    height: 48px;
  }
  .scene-object .motif {
    width: 42px;
    height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
body[data-phase="finished"] .search-tools .feedback,
body[data-phase="finished"] .search-tools .actions {
  display: none;
}
@media (max-width: 620px) {
  body[data-phase="finished"] .ending {
    margin-top: 8px;
    padding: 10px;
  }
  body[data-phase="finished"] .ending h1 {
    margin-bottom: 6px;
    font-size: 1.5rem;
  }
  body[data-phase="finished"] .ending p {
    margin-bottom: 8px;
  }
}
@media (max-height: 430px) and (orientation: landscape) {
  #play-area .round-head {
    display: none;
  }
  .ending {
    margin-top: 5px;
    padding: 6px;
  }
  .ending .postcards {
    display: none;
  }
}
.opening-preview {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 7px;
  width: min(310px, 100%);
  margin: 0 auto 16px;
  padding: 5px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.opening-scene {
  position: relative;
  min-height: 108px;
  overflow: hidden;
  border-radius: 9px;
  background: #347d7d;
}
.opening-scene .opening-shelf {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  height: 15px;
  border-top: 3px solid var(--line);
  background: #f4cf71;
}
.opening-scene svg {
  position: absolute;
  width: 43px;
  height: 43px;
  color: var(--line);
  fill: #fffdf8;
  stroke: var(--line);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.opening-scene svg:nth-of-type(1) {
  top: 17px;
  left: 12px;
}
.opening-scene svg:nth-of-type(2) {
  right: 28px;
  bottom: 23px;
}
.opening-scene svg:nth-of-type(3) {
  top: 13px;
  right: 8px;
}
.opening-tray {
  display: grid;
  gap: 4px;
}
.opening-tray span {
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
}
.opening-tray svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--line);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scene-object .motif {
  background: transparent !important;
  color: #fff4c9;
  filter: drop-shadow(0 2px 1px #284052) !important;
}
.scene-object:hover,
.scene-object:focus-visible {
  background: rgba(255, 244, 201, 0.38);
}
.ending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ending-actions button {
  flex: 1 1 130px;
}
body[data-phase="finished"] .search-tools .actions {
  display: none;
}
@media (max-height: 430px) and (orientation: landscape) {
  #play-area .round-head {
    display: block;
    position: absolute;
    z-index: 3;
    top: 2px;
    left: 328px;
    margin: 0;
    width: calc(100% - 332px);
  }
  #play-area .round-head .eyebrow {
    display: none;
  }
  #play-area .round-head h1 {
    font-size: 1rem;
    color: var(--ink);
  }
  #play-area .round-head .progress {
    display: none;
  }
  .search-tools {
    padding-top: 35px;
  }
  body[data-phase="finished"] #play-area {
    position: relative;
  }
  body[data-phase="finished"] .search-layout {
    display: block;
    width: 320px;
  }
  body[data-phase="finished"] .ending {
    position: absolute;
    top: 0;
    right: 0;
    left: 328px;
    display: block;
    margin: 0;
    min-height: 240px;
  }
  body[data-phase="finished"] .ending .postcards {
    display: none;
  }
  body[data-phase="finished"] .ending h1 {
    font-size: 1.25rem;
  }
  body[data-phase="finished"] .ending p {
    font-size: 0.75rem;
  }
  .ending-actions {
    display: block;
  }
  .ending-actions button {
    width: 100%;
    margin-top: 4px;
  }
}
@media (max-width: 620px) {
  body[data-phase="finished"] .ending-actions {
    display: flex;
  }
  body[data-phase="finished"] .ending {
    padding: 8px;
  }
}
@media (max-height: 430px) and (orientation: landscape) {
  body[data-phase="finished"] .ending {
    min-height: 112px;
    padding: 4px;
  }
  body[data-phase="finished"] .ending .eyebrow,
  body[data-phase="finished"] .ending p {
    display: none;
  }
  body[data-phase="finished"] .ending h1 {
    margin: 0;
    font-size: 0.95rem;
  }
  body[data-phase="finished"] .ending-actions button {
    min-height: 44px;
    margin-top: 2px;
  }
  body[data-phase="finished"] .search-tools {
    position: absolute;
    top: 118px;
    right: 0;
    left: 328px;
    padding: 4px;
  }
  body[data-phase="finished"] .search-tools .tray-label {
    display: none;
  }
  body[data-phase="finished"] .search-tools .target-card {
    min-height: 48px;
    font-size: 0.5rem;
  }
  body[data-phase="finished"] .search-tools .target-card .motif {
    width: 29px;
    height: 25px;
  }
}

/* Compact play keeps the complete scene and its controls inside real phone viewports. */
@media (max-width: 620px) {
  main {
    padding: 8px;
  }
  .round-head {
    margin-bottom: 7px;
  }
  .round-head .eyebrow {
    display: none;
  }
  .search-layout {
    gap: 7px;
  }
  .search-tools {
    padding: 7px;
  }
  .target-card {
    min-height: 62px;
  }
  .feedback {
    min-height: 34px;
    margin: 5px 0;
    padding: 5px;
    font-size: 0.8rem;
  }
  .actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .actions button {
    min-height: 44px;
    padding: 4px;
    font-size: 0.72rem;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  main {
    position: relative;
  }
  .search-layout {
    grid-template-columns: 300px 1fr;
  }
  #play-area .round-head {
    left: 308px;
    width: calc(100% - 312px);
  }
  .actions button {
    padding: 4px;
    font-size: 0.68rem;
  }
  body[data-phase="finished"] .search-layout {
    width: 300px;
  }
  body[data-phase="finished"] .ending,
  body[data-phase="finished"] .search-tools {
    left: 308px;
  }
}

/* Keep compact controls at their authored touch target minima. */
@media (max-height: 430px) and (orientation: landscape) {
  .game-bar a {
    min-height: 44px;
  }
  .actions button.primary,
  .ending-actions button.primary,
  #play-again.primary {
    min-height: 48px;
  }
}

.actions button.primary,
.ending-actions button.primary,
#play-again.primary {
  min-height: 48px;
}

/* Keep the three-scene completion strip, the final scene, and replay in view. */
@media (max-width: 620px) {
  body[data-phase="finished"] .ending {
    gap: 6px;
    margin-top: 7px;
    padding: 6px;
    min-width: 0;
  }
  body[data-phase="finished"] .ending > * {
    min-width: 0;
  }
  body[data-phase="finished"] .postcards {
    flex-direction: row;
    min-height: 42px;
    padding: 4px;
    gap: 4px;
  }
  body[data-phase="finished"] .postcard {
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
    padding: 3px;
    font-size: 0.68rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  body[data-phase="finished"] .ending h1 {
    margin: 0 0 4px;
    font-size: 1.2rem;
  }
  body[data-phase="finished"] .ending p {
    display: none;
  }
  body[data-phase="finished"] .ending-actions {
    gap: 4px;
  }
  body[data-phase="finished"] .ending-actions button {
    min-width: 0;
    flex: 1 1 0;
    min-height: 48px;
    padding: 5px;
    font-size: 0.78rem;
  }
}
@media (max-height: 430px) and (orientation: landscape) {
  body[data-phase="finished"] .ending-actions {
    display: flex;
    gap: 4px;
  }
  body[data-phase="finished"] .ending-actions button {
    flex: 1 1 0;
    width: auto;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  .search-tools {
    padding: 28px 4px 4px;
  }
  .target-card {
    min-height: 42px;
    padding: 1px;
  }
  .target-card span:not(.visually-hidden) {
    display: none;
  }
  .target-card b {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  .target-card .motif {
    width: 32px;
    height: 32px;
  }
  .feedback {
    min-height: 0;
    margin: 2px 0;
    padding: 2px;
    font-size: 0.7rem;
  }
}

/* Short landscape starts with the preview beside the instructions, so the
   playable action keeps its 48px target without falling below the viewport. */
@media (max-height: 390px) and (min-width: 600px) and (orientation: landscape) {
  main {
    padding: 4px 10px;
  }
  #welcome {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    width: min(760px, 100%);
    margin: 4px auto;
    padding: 10px 14px;
    text-align: left;
  }
  .opening-preview {
    grid-row: 1 / span 5;
    width: 210px;
    margin: 0 auto;
  }
  .opening-scene {
    min-height: 98px;
  }
  #welcome > :not(.opening-preview) {
    grid-column: 2;
  }
  #welcome .eyebrow {
    margin-bottom: 3px;
    font-size: 0.66rem;
  }
  #welcome h1 {
    margin-bottom: 5px;
    font-size: 2rem;
  }
  .lead {
    margin-bottom: 7px;
    font-size: 0.88rem;
    line-height: 1.25;
  }
  #welcome .primary,
  #welcome .quiet-button {
    justify-self: start;
  }
  #welcome .primary {
    min-width: 220px;
  }
  #welcome .quiet-button {
    margin: 4px 0 0;
  }
  .help-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    margin: 6px auto;
    padding: 8px;
  }
  .help-dialog .eyebrow {
    margin-bottom: 2px;
    font-size: 0.66rem;
  }
  .help-dialog h2 {
    margin-bottom: 4px;
    font-size: 1.1rem;
  }
  .help-demo {
    gap: 5px;
  }
  .demo-frame {
    min-width: 0;
    padding: 16px 5px 5px;
  }
  .mini-scene {
    min-height: 82px;
  }
  .mini-scene button,
  .demo-picture {
    width: 44px;
    height: 44px;
  }
  .mini-scene .motif,
  .demo-picture .motif {
    width: 42px;
    height: 42px;
  }
  .demo-picture {
    margin-top: 5px;
  }
  .dialog-actions {
    gap: 4px;
    margin-top: 6px;
  }
}
