@font-face {
  font-family: ParkRounded;
  src: url(./fonts/Nunito-Latin-Variable.woff2) format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff5db;
  --ink: #3b211a;
  --rim: #a3663b;
  --mint: #a6d4bf;
  --apricot: #ffc491;
  --lilac: #d6bfe8;
  --gold: #f5d685;
  --lime: #d4e08f;
  --white: #fffcf4;
  --tint: var(--paper);
  font-family:
    ui-rounded, ParkRounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  font-synthesis: weight;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
}
button,
select {
  font: inherit;
  color: inherit;
}
button {
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #176f87;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:active:not(:disabled) {
  transform: translateY(2px);
}
img {
  max-width: 100%;
  user-select: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -1.1px;
  font-weight: 850;
}
h2 {
  font-size: 20px;
  line-height: 1.18;
}
h3 {
  font-size: 18px;
}
.icon {
  flex: none;
  vertical-align: middle;
}
#app {
  height: 100dvh;
  padding: max(env(safe-area-inset-top), 0px) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  display: flex;
  flex-direction: column;
}
/* Android supplies the safe content frame around the WebView. */
.android #app {
  padding: 0;
}
.scroll {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
}
.library-inner {
  max-width: 580px;
  margin: auto;
  padding: 20px;
  display: grid;
  gap: 17px;
}
.library-title,
.shelf-tools,
.row,
.top,
.hero-title,
.between {
  display: flex;
  align-items: center;
  gap: 10px;
}
.library-title {
  padding: 6px 0;
}
.library-title svg {
  color: var(--rim);
}
.cover {
  width: 100%;
  height: min(86vw, 44dvh);
  max-height: 370px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid #bd9669;
}
html:not(.android) .library {
  color: #261c43;
  background: #fff8ea;
}
html:not(.android) .library-inner {
  max-width: 1380px;
  padding: 0 clamp(16px, 3.5vw, 48px) 36px;
  gap: clamp(16px, 1.6vw, 24px);
}
.cover-masthead,
.cover-wordmark,
.cover-nav,
.cover-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cover-masthead {
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 2px solid currentColor;
}
.cover-wordmark {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 950;
  letter-spacing: -.045em;
}
.cover-wordmark img {
  filter: contrast(1.4);
  mix-blend-mode: multiply;
}
.cover-nav,
.cover-cta {
  border: 0;
  min-height: 44px;
  font-weight: 850;
}
.cover-nav {
  padding: 0 4px;
  background: transparent;
}
.web-cover {
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  background: #ade0f7;
}
.cover-art,
.cover-copy {
  grid-area: 1 / 1;
}
.cover-art {
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-copy {
  width: 42%;
  padding: clamp(15px, 2vw, 30px) 0 clamp(15px, 2vw, 30px) 4.5%;
  box-sizing: content-box;
}
.cover-copy h1 {
  font-size: clamp(42px, 6.2vw, 90px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 1000;
}
.cover-copy h1 span {
  display: block;
}
.cover-copy p {
  margin: .85em 0 1em;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 750;
  max-width: 92%;
}
.cover-cta {
  padding: 8px 18px;
  border-radius: 12px;
  background: #2c204a;
  color: white;
}
.cover-cta:hover {
  background: #46315e;
}
html:not(.android) .shelf-tools h2 {
  font-size: clamp(23px, 2.3vw, 34px);
  font-weight: 900;
  letter-spacing: -.04em;
  scroll-margin-block-start: 12px;
}
@media (max-width: 650px) {
  .cover-copy,
  .cover-art {
    grid-area: auto;
  }
  .cover-copy {
    grid-row: 1;
    width: auto;
    padding: 20px 20px 14px;
  }
  .cover-copy h1 span {
    display: inline;
  }
  .cover-copy p {
    margin: 8px 0 12px;
  }
  .cover-art {
    aspect-ratio: 2 / 1;
    height: auto;
    object-position: right;
    mask-image: linear-gradient(to bottom, transparent, black 10%);
  }
}
.shelf-tools,
.between {
  justify-content: space-between;
}
.filter,
.plain,
.iconbtn {
  border: 0;
  background: transparent;
  font-weight: 700;
  padding: 0;
  min-height: 44px;
}
.filter {
  font-size: 15px;
}
.filter:before {
  content: "⊜";
  margin-right: 5px;
}
.catalog {
  display: grid;
  gap: 17px;
}
.wood {
  border: 1.5px solid var(--rim);
  box-shadow: 0 3px var(--rim);
  border-radius: 17px;
  background: linear-gradient(
    175deg,
    color-mix(in srgb, var(--tint) 80%, white),
    var(--tint) 72%,
    color-mix(in srgb, var(--tint) 89%, var(--rim))
  );
  font-weight: 700;
  min-height: 46px;
  padding: 8px 12px;
}
.wood:active:not(:disabled) {
  box-shadow: 0 1px var(--rim);
}
.mint {
  --tint: var(--mint);
}
.apricot {
  --tint: var(--apricot);
}
.lilac {
  --tint: var(--lilac);
}
.gold {
  --tint: var(--gold);
}
.lime {
  --tint: var(--lime);
}
.white {
  --tint: var(--white);
}
.game-card {
  display: grid;
  grid-template-columns: 52px 1fr 16px;
  gap: 15px;
  align-items: center;
  text-align: left;
  padding: 14px;
  min-height: 83px;
}
.card-icon {
  border-radius: 15px;
  background: #ffffff8f;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}
.game-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}
.game-card small {
  display: block;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.2;
  margin-top: 4px;
}
.square {
  width: 46px;
  height: 44px;
  min-height: 44px;
  flex: none;
  padding: 0;
}
.activity {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.top {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 52px;
  padding: 4px 16px;
  gap: 10px;
}
.spacer {
  flex: 1;
}
.pill {
  border: 0;
  border-radius: 25px;
  background: var(--tint);
  min-height: 44px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 750;
}
.activity-content {
  width: 100%;
  max-width: 550px;
  margin: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-title {
  justify-content: space-between;
}
.hero-title p {
  color: #925a34;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 3px;
}
.hero-title h1 {
  font-size: 31px;
}
.pair {
  width: 77px;
  height: 52px;
  object-fit: contain;
}
.mission {
  align-self: stretch;
  text-align: left;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 750;
  padding: 4px 0;
}
.mission svg {
  margin-left: 6px;
}
.panel {
  border-radius: 22px;
  border: 1.2px solid #a3663b59;
  padding: 14px;
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--tint) 28%, var(--paper)),
    color-mix(in srgb, var(--tint) 48%, var(--paper))
  );
}
.row > button,
.row > .flex,
.equal > * {
  flex: 1;
  min-width: 0;
}
.row {
  gap: 8px;
}
.stack {
  display: grid;
  gap: 12px;
}
.center {
  text-align: center;
}
.muted {
  font-size: 14px;
}
.score {
  font-size: 21px;
  font-weight: 750;
}
.result {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 15px;
  padding: 18px;
}
.result img {
  height: 108px;
  object-fit: contain;
}
.result button {
  width: 100%;
}
.result h2 {
  font-size: 24px;
}
.hint {
  font-weight: 650;
  font-size: 16px;
}
.menu-item {
  display: block;
  border: 0;
  border-bottom: 1px solid #d6c2ac;
  background: var(--white);
  padding: 12px 16px;
  width: 100%;
  text-align: left;
  font-weight: 650;
}
dialog {
  border: 1px solid var(--rim);
  border-radius: 16px;
  min-width: 215px;
  padding: 3px;
  max-height: 80dvh;
  box-shadow: 0 10px 38px #472b2933;
  color: var(--ink);
  background: var(--white);
}
dialog::backdrop {
  background: #432b2745;
}
.grid {
  display: grid;
  gap: 6px;
}
.dragging {
  pointer-events: none !important;
  position: fixed !important;
  transform: translate(-50%, -50%);
  z-index: 99;
  opacity: 0.8;
}
.drag-source {
  touch-action: none;
}
.game-content {
  display: grid;
  gap: 14px;
}
.pupportrait {
  display: inline-block;
  background-image: url(./art/puppy-pair.png);
  background-repeat: no-repeat;
  background-size: 300% 145%;
  background-position: 25.5% 87%;
  aspect-ratio: 1/1;
}
.pupportrait.curly {
  background-size: 312% 106%;
  background-position: 74% 0;
}
.native-back {
  padding-top: 4px;
}
.mark {
  font-size: 18px;
  color: #347536;
}
.screen {
  height: 100%;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.games-link {
  flex: none;
  font-size: 15px;
  min-height: 44px;
}
.block-menu,
.levels,
.block-game,
.sum-page {
  background: linear-gradient(135deg, #ffddba, var(--paper), #ffe0b6);
}
.levels,
.block-game,
.sum-page.playing {
  background: url(./art/levels-room.jpg) center/100% 100% no-repeat;
}
.block-menu {
  padding: 0 12px 12px;
  gap: 12px;
}
.block-menu .top {
  padding: 0;
}
.block-menu .hero {
  flex: 1;
  min-height: 0;
  object-fit: contain;
  width: calc(100% + 24px);
  max-width: none;
  margin: 0 -12px;
  mask-image: linear-gradient(transparent, #000 2.5%, #000 98%, transparent);
}
.operations,
.lessons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.operations button {
  height: min(88px, 11.2dvh);
  font-size: clamp(18px, 5.7vw, 23px);
  padding: 3px;
}
.operations b {
  font-size: 31px;
  vertical-align: middle;
}
.levels .top {
  min-height: 44px;
  padding: 0 16px;
  gap: 8px;
}
.levels .square {
  width: 44px;
}
.levels .games-link {
  min-width: 99px;
}
.levels .top h2 {
  font-size: 22px;
}
.levels .instructions {
  margin: 8px 0;
  padding: 0 18px;
  font-size: 14px;
  line-height: 18px;
}
.lessons {
  align-items: center;
  padding: 8px 16px 16px;
}
.lessons button {
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
}
.lessons small {
  font-size: 12px;
  line-height: 15px;
}
.lessons button > b {
  font-size: 17px;
  line-height: 22px;
  font-weight: 750;
}
.lessons span {
  font-size: 15px;
  line-height: 18px;
  font-weight: 500;
}
.recommended {
  --tint: var(--mint);
  border-color: #14664a;
  box-shadow:
    inset 0 0 0 1.5px #14664a,
    0 3px var(--rim);
}
.block-game {
  padding: 6px 9px 16dvh;
  gap: 8px;
}
.block-game .top {
  padding: 0;
  gap: 6px;
}
.block-game .badge {
  border-radius: 24px;
  background: var(--apricot);
  padding: 8px 11px;
  font-weight: 750;
  font-size: 15px;
}
.scorepill {
  background: var(--paper) !important;
  white-space: nowrap;
}
.arena {
  position: relative;
  flex: 1;
  min-height: 0;
  border: 2px solid var(--rim);
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.prompt {
  font-size: 46px;
  font-weight: 900;
  background: var(--mint);
  border-radius: 18px;
  min-width: 202px;
  min-height: 66px;
  text-align: center;
  margin: 12px 0 0;
  line-height: 66px;
}
.fallfield {
  position: relative;
  flex: 1;
  align-self: stretch;
  min-height: 0;
  overflow: clip;
  touch-action: none;
}
.shelf-wood {
  width: 100%;
  height: 20px;
  object-fit: fill;
  display: block;
}
.overlay {
  position: absolute;
  inset: 0;
  background: #0005;
  display: grid;
  place-content: center;
  text-align: center;
}
.overlay .panel {
  background: var(--paper);
}
.brick {
  position: absolute;
  display: grid;
  place-items: center;
  font-weight: 850;
  color: var(--ink);
  border: 1.8px solid var(--rim);
  border-radius: 8px;
  background-color: var(--tint);
  padding: 0;
  touch-action: none;
  line-height: 1;
}
.brick:after {
  content: "";
  position: absolute;
  inset: 4px;
  border-top: 2px solid #fff9;
  border-bottom: 2px solid #88513355;
  border-radius: 3px;
}
.brick.dropping:before {
  content: "";
  position: absolute;
  bottom: 100%;
  width: 22px;
  height: 24px;
  background:
    linear-gradient(var(--lilac), var(--lilac)) 0 70% /2px 11px,
    linear-gradient(var(--lilac), var(--lilac)) center 10%/2px 17px,
    linear-gradient(var(--lilac), var(--lilac)) right 80%/2px 8px;
  background-repeat: no-repeat;
}
.brick.obstacle {
  background: repeating-linear-gradient(45deg, #bbb 0 9px, #999 10px 12px);
  border-color: #666;
}
.flash {
  position: absolute;
  z-index: 3;
  font-weight: 800;
  color: #201c16;
  pointer-events: none;
  animation: rise 0.55s forwards;
}
@keyframes rise {
  to {
    transform: translateY(-24px);
    opacity: 0;
  }
}
.two {
  grid-template-columns: 1fr 1fr;
}
.four {
  grid-template-columns: repeat(4, 1fr);
}
.plain-tile {
  border: 1px solid #a3663b77;
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  min-height: 44px;
}
.clean {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}
.tiny {
  font-size: 13px;
}
.sr {
  position: absolute;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
}
@media (min-width: 750px) {
  html:not(.android) .catalog {
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  }
  html:not(.android) .activity-content {
    padding-top: 24px;
  }
  html:not(.android) .screen {
    border-inline: 1px solid #aa866955;
  }
  html:not(.android) .bakery {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
