:root {
  overscroll-behavior-x: none;
  color-scheme: light;
  --ink: #263e37;
  --muted: #53675e;
  --paper: #faf9f4;
  --edge: #dcded2;
  --green: #276349;
  --mint: #d4ebd7;
  --pink: #f6ded3;
  --sun: #f6c34e;
  --round: 26px;
  font-family: 'Nunito', 'Avenir Next', ui-rounded, 'Trebuchet MS', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
button,
input,
summary {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid #236ac1;
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
button:hover:not(:disabled) {
  filter: brightness(0.975);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
.icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}
button svg {
  pointer-events: none;
}
.mast {
  border-bottom: 1px solid var(--edge);
  background: #fffef9;
}
.mast-inner,
.wrap {
  max-width: 1200px;
  padding-inline: clamp(18px, 4.2vw, 54px);
  margin: auto;
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand,
.mast-tools,
.adult-pill,
.section-title,
.primary,
.game-list span,
summary,
.stash,
.stash span {
  display: flex;
  align-items: center;
}
.brand {
  gap: 11px;
  font-size: 29px;
  letter-spacing: -1.6px;
  font-weight: 800;
}
.brand-tail {
  color: var(--green);
}
.paw-mark {
  background: #e7a558;
  color: #533c2d;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 15px;
  transform: rotate(-7deg);
}
.paw-mark svg {
  width: 27px;
  height: 27px;
}
.mast-tools {
  gap: 12px;
}
.icon-btn,
.adult-pill {
  border: 1px solid #d6d9cd;
  background: #fffef9;
  border-radius: 99px;
  min-height: 44px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  font-size: 17px;
}
.adult-pill {
  gap: 8px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 650;
}
.wrap {
  padding-block: 26px 40px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 224px;
  border-radius: var(--round);
  background: #f3e6ce;
}
.hero-copy {
  padding: 30px clamp(22px, 4vw, 54px);
  max-width: 61%;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(40px, 4.35vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 14px;
  font-weight: 700;
  color: #293f33;
}
.hero p {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  margin: 0;
  max-width: 385px;
  color: #495547;
}
.cat-scene {
  position: absolute;
  right: 0;
  inset-block: 0;
  width: 44%;
  overflow: hidden;
}
.cat-scene .cat {
  height: 96%;
  width: 70%;
  position: absolute;
  bottom: -3%;
  left: 11%;
  object-fit: contain;
  filter: drop-shadow(1px 5px 1px #925e3026);
}
.sun-disc {
  position: absolute;
  border-radius: 50%;
  background: #f4c45e;
}
.sun-disc {
  width: 66%;
  aspect-ratio: 1;
  left: 13%;
  top: 12%;
}
.hill {
  position: absolute;
  bottom: -26%;
  height: 50%;
  width: 115%;
  left: 0;
  border-radius: 50%;
  background: #c7d6ac;
  transform: rotate(-8deg);
}
.hill.two {
  bottom: -36%;
  left: -15%;
  background: #9bb89b;
  transform: rotate(9deg);
}
.cat-scene {
  mask-image: linear-gradient(to right, transparent, #000 13%);
}
.scene-stars {
  position: absolute;
  left: 8%;
  top: 26%;
  color: #a67b3c;
  font-size: 30px;
}
.scene-stars.tiny {
  left: auto;
  right: 12%;
  top: 35%;
  font-size: 35px;
}
.cat {
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.parent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(295px, 1fr);
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}
.panel {
  background: #fffefa;
  border: 1px solid var(--edge);
  border-radius: var(--round);
  padding: clamp(20px, 2.2vw, 31px);
  box-shadow: 0 3px 0 #35492e07;
}
.section-title {
  gap: 11px;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.tile-icon {
  background: #e5ecda;
  color: #436647;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 19px;
}
.tile-icon.yellow {
  background: #f9e9c5;
  color: #936726;
}
.alphabet-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 17px 0 13px;
  gap: 5px;
}
.segments {
  display: inline-flex;
  background: #f1f1e9;
  border: 1px solid #e0e2d6;
  border-radius: 11px;
  padding: 3px;
  gap: 3px;
}
.segments button,
.linkbtn {
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 650;
}
.segments button {
  padding: 7px 14px;
  border-radius: 8px;
}
.segments button[aria-pressed='true'] {
  background: #fffefa;
  box-shadow: 0 1px 4px #26332625;
}
.linkbtn {
  color: #536b5c;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 0;
}
.alphabet-keys {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}
.letter {
  border: 1px solid #dcded4;
  border-radius: 10px;
  background: #fafaf5;
  min-height: 40px;
  padding: 2px;
  font-weight: 650;
  font-size: 18px;
}
.letter[aria-pressed='true'] {
  background: #deefdf;
  border-color: #87b79a;
  color: #254f39;
  box-shadow: inset 0 -2px #b3d4b6;
}
details {
  margin-top: 18px;
  border-top: 1px solid var(--edge);
  padding-top: 13px;
}
summary {
  cursor: pointer;
  list-style: none;
  gap: 7px;
  font-weight: 650;
  font-size: 14px;
  min-height: 31px;
}
summary::-webkit-details-marker {
  display: none;
}
summary > .icon:last-child {
  margin-left: auto;
  width: 15px;
}
details[open] > summary > .icon:last-child {
  transform: rotate(180deg);
}
.option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
  cursor: pointer;
}
.option input {
  width: 19px;
  height: 19px;
  accent-color: var(--green);
}
.option small {
  margin-left: auto;
  color: var(--muted);
}
.sample-words {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 19px 0 0;
}
.sample-words figure {
  margin: 0;
  border: 1px solid #e1e1d7;
  background: white;
  border-radius: 14px;
  padding: 5px 4px 9px;
  text-align: center;
}
.word-image {
  object-fit: contain;
  display: block;
  max-width: 100%;
  user-select: none;
}
.sample-words img {
  width: 100%;
  height: clamp(48px, 5vw, 78px);
}
.sample-words figcaption {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.045em;
}
.preview details {
  margin-top: 10px;
  padding: 0;
  border: 0;
}
.preview summary {
  color: var(--green);
  font-size: 13px;
}
.word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 180px;
  overflow: auto;
  padding: 7px 4px;
}
.word-list span {
  background: #f0f1e9;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 13px;
}
.game-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 14px 0;
  padding-top: 12px;
  border-top: 1px solid var(--edge);
  font-weight: 600;
  font-size: 13px;
  color: #526557;
}
.game-list span {
  gap: 4px;
}
.game-list .icon {
  width: 14px;
  color: #438059;
}
.primary {
  background: var(--green);
  border: 1px solid #24573f;
  border-radius: 13px;
  width: 100%;
  min-height: 49px;
  justify-content: center;
  gap: 12px;
  color: white;
  font-weight: 700;
  margin-top: 14px;
}
.hint {
  background: #faf2dd;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}
.kid {
  max-width: 1080px;
  padding-top: clamp(16px, 4vh, 42px);
}
.center {
  display: grid;
  align-content: start;
  justify-items: center;
}
.stash {
  gap: 10px;
  border: 1px solid var(--edge);
  padding: 8px 12px;
  background: white;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
}
.stash span {
  gap: 6px;
}
.fish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fish .icon {
  width: 44px;
  height: 36px;
}
.treat-button .fish .icon {
  width: 48px;
  height: 40px;
}
.hub {
  display: grid;
  grid-template-columns: 0.92fr 1.4fr;
  gap: 19px;
  align-items: stretch;
}
.feeding,
.game-card,
.board {
  position: relative;
  overflow: hidden;
  border-radius: var(--round);
  border: 1px solid var(--edge);
}
.feeding {
  background: #f4e5cb;
  isolation: isolate;
}

.play-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.game-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.game-card {
  padding: 18px;
  min-height: 158px;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 0 #293e3211;
}
.skladani {
  background: #e1ecd9;
}
.obrazky {
  background: #f6e4b6;
}
.pexeso {
  background: #f2dbcf;
}
.pismena {
  background: #dde7eb;
}
.play-dot {
  position: absolute;
  right: 9px;
  bottom: 9px;
  border-radius: 50%;
  background: #fffdf2d9;
  color: #42604d;
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  width: 100%;
  min-height: 86px;
}
.art i {
  font-style: normal;
}
.art .word-image {
  height: 75px;
  width: 75px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.art.build,
.art.match {
  flex-direction: column;
  gap: 3px;
}
.build > span {
  display: flex;
  gap: 3px;
}
.build i,
.match i {
  padding: 3px 7px;
  border-radius: 7px;
  background: #fffdf6;
  box-shadow: 0 2px 0 #65715435;
  font-weight: 800;
}
.build i {
  transform: rotate(-5deg);
}
.build i:nth-child(2) {
  transform: rotate(6deg);
}
.match i {
  letter-spacing: 0.07em;
  font-size: 17px;
}

.board {
  background: #fffefa;
  width: 100%;
  padding: clamp(14px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.dots {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 16px;
}
.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid #a8b5a7;
}
.dots i.done {
  background: #529369;
  border-color: #529369;
}
.dots i.now {
  background: #dab45b;
  border-color: #c7a45a;
}
.prompt-picture {
  height: clamp(94px, 22vh, 190px);
  width: 100%;
}
.prompt-picture img {
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
}
.slots,
.tiles {
  display: flex;
  align-items: center;
  gap: clamp(3px, 1vw, 10px);
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.slot,
.tile {
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: clamp(23px, 4vw, 42px);
  font-weight: 700;
  line-height: 1;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}
.slot {
  width: clamp(34px, 6.8vw, 64px);
  height: clamp(46px, 8vw, 72px);
  border: 2px dashed #aab5a1;
  background: #f9faf3;
}
.slot.placed,
.tile {
  border: 1px solid #c3c9b8;
  background: #fffefa;
  box-shadow: 0 3px 0 #c7cdbb;
}
.tiles {
  margin-top: 8px;
}
.tile {
  width: clamp(45px, 7.5vw, 68px);
  height: clamp(48px, 8vw, 70px);
  touch-action: none;
  background: #edf3de;
}
.tile.used {
  visibility: hidden;
}
.ghost {
  position: fixed;
  transform: translate(-50%, -50%) rotate(-6deg);
  z-index: 100;
  pointer-events: none;
  opacity: 0.9;
}
.slot.drop-here,
.slot.locked {
  background: #e0efdf;
}
.board-foot {
  align-self: stretch;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 44px;
}
.skip {
  color: var(--muted);
}
.prompt-word {
  font-size: clamp(34px, 7vw, 72px);
  font-weight: 750;
  letter-spacing: 0.045em;
  overflow-wrap: anywhere;
  text-align: center;
}
.choice-grid {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 16px);
  flex-wrap: wrap;
  width: 100%;
}
.choice,
.mem-card {
  background: white;
  border: 1.5px solid var(--edge);
  border-radius: 16px;
  box-shadow: 0 3px 0 #dce0d3;
  padding: 5px;
}
.choice {
  width: clamp(82px, 16%, 140px);
  aspect-ratio: 1;
}
.choice img,
.mem-card img {
  width: 100%;
  height: 100%;
}
.memory-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, 1.3vw, 13px);
  width: min(100%, 700px);
}
.mem-card {
  min-width: 0;
  height: clamp(62px, 12vh, 115px);
  display: grid;
  place-items: center;
  container-type: inline-size;
}
.mem-card span {
  font-size: clamp(11px, min(27cqw, calc(144cqw / var(--len))), 38px);
  font-weight: 700;
}
.mem-card img {
  min-height: 0;
}
.mem-card.sel {
  border: 3px solid #659368;
  background: #f4faef;
}
.mem-card.gone {
  visibility: hidden;
}
.spravne,
.reseni {
  background-color: #e1efdd !important;
  border: 2px solid #72a273 !important;
}
.reseni {
  border-style: dashed !important;
}
.chyba {
  animation: shake 0.4s ease;
  background-color: #f8e4d8 !important;
  border-color: #b38170 !important;
}
.pet-cheer {
  margin-right: auto;
  display: flex;
  align-items: start;
  color: #c76c5d;
}
.pet-cheer img {
  height: 44px;
}
.pet-cheer svg {
  width: 16px;
}
.feeding {
  width: min(100%, 550px);
  padding: clamp(16px, 3vw, 26px);
}
.feeding-stage {
  --pet-height: clamp(145px, 36svh, 300px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "pet meter" "food .";
  align-items: center;
  width: min(100%, 430px);
  margin-inline: auto;
  gap: clamp(16px, 3vw, 24px);
}
.feeding-stage .pet-actor {
  grid-area: pet;
  display: grid;
  place-items: center;
  height: var(--pet-height);
}
.feeding-stage .pet-actor::before {
  content: "";
  width: min(90%, var(--pet-height));
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f4c45e;
}
.feeding-stage .treat-button {
  grid-area: food;
  justify-self: center;
}
.growth-meter {
  grid-area: meter;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  row-gap: 4px;
  justify-items: center;
  height: min(var(--pet-height), 248px);
  padding: 8px 6px 10px;
  border-radius: 28px;
  background: #fff8ea;
  border: 2px solid #dcc7a1;
}
.growth-heart .icon {
  display: block;
  color: #c65b57;
  width: 31px;
  height: 31px;
}
.growth-level {
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 28px;
  border-radius: 14px;
  color: #513b24;
  background: #f6da96;
  font-size: 20px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.feeding.upgrade .growth-level { background: #ffc557; }
@media (prefers-reduced-motion: no-preference) {
  .feeding.upgrade .growth-level { animation: level-pop .9s ease-out; }
  @keyframes level-pop {
    45% { transform: scale(1.18); box-shadow: 0 0 0 4px #ffdc914d; }
  }
}
.growth-track {
  overflow: hidden;
  position: relative;
  width: 22px;
  border-radius: 14px;
  background: #e7dcc6;
  box-shadow: inset 0 1px 3px #87684245;
}
.growth-track i {
  position: absolute;
  inset: auto 0 0;
  border-radius: inherit;
  background: linear-gradient(0deg, #d76b59, #ec9c70);
  transition: height .22s ease-out;
}
.choose-game {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 50px;
  padding: 4px;
  background: var(--green);
  color: white;
  border: 2px solid #24573f;
  border-radius: 18px;
  box-shadow: 0 3px 0 #204933;
}
.choose-game .icon { width: 32px; height: 32px; }
.after-feeding { margin-top: 14px; width: 88px; height: 68px; }
.after-feeding .icon { width: 46px; height: 46px; }
@media (orientation: landscape) and (max-height: 500px) {
  .after-feeding { margin-top: 8px; height: 56px; }
  .after-feeding .icon { width: 40px; height: 40px; }
  .feeding { padding-block: 12px; }
  .feeding-stage { --pet-height: clamp(80px, 34svh, 150px); row-gap: 12px; }
  .growth-meter { padding-block: 4px; row-gap: 2px; }
  .growth-heart .icon { width: 24px; height: 24px; }
  .growth-level { height: 24px; font-size: 18px; }
}
.treat-button {
  min-width: 87px;
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid #d5be94;
  background: #fffbef;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 27px;
}
.treat-button b {
  font-size: 19px;
}
.flying,
.feeding-heart {
  position: absolute;
  pointer-events: none;
}
.flying {
  left: 50%;
  top: 75%;
  font-size: 24px;
  animation: throw 0.4s ease-out forwards;
}
.feeding-heart {
  color: #d75c69;
  top: 39%;
  left: 64%;
  opacity: 0;
  z-index: 1;
}
.extra-heart {
  position: absolute;
  left: 56%;
  top: 42%;
  color: #dc5669;
  pointer-events: none;
  z-index: 2;
  animation: heart-from-bite 950ms 220ms ease-out both;
}
.extra-heart .icon { width: 36px; height: 36px; filter: drop-shadow(0 1px 1px #fff5df); }
@keyframes heart-from-bite {
  from { opacity: 0; transform: translate(-50%, 0) scale(.6); }
  18%, 72% { opacity: 1; }
  to { opacity: 0; transform: translate(calc(-50% + var(--stranou)), -64px) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .extra-heart {
    transform: translate(var(--stranou), -12px);
    animation: still-heart 650ms linear both !important;
  }
  @keyframes still-heart {
    0%, 80% { opacity: 1; }
    100% { opacity: 0; }
  }
}
.feeding.upgrade .pet-actor {
  animation: glow 0.9s ease;
}
.feeding.upgrade .pet-actor::before {
  background: #f5c04b;
}
.parent .primary:disabled {
  background: #788477;
}
@keyframes shake {
  25%,
  75% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(4px);
  }
}
@keyframes throw {
  0% {
    transform: translate(-50%, -50%);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--let-x)), calc(-50% + var(--let-y))) scale(.45);
    opacity: 0;
  }
}
@keyframes send-heart {
  0% { opacity: 0; transform: translate(-45%, -55%) scale(.16); }
  20% { opacity: 1; }
  68% { opacity: 1; transform: translate(-77%, -20%) scale(1.04); }
  82% { opacity: 1; transform: translate(-84%, -12%) scale(1.12); }
  100% { opacity: 0; transform: translate(-92%, -4%) scale(1.24); }
}
@keyframes glow {
  50% {
    filter: drop-shadow(0 0 18px #ffe55c);
    transform: scale(1.055);
  }
}
@media (max-width: 850px) {
  .alphabet-keys {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .parent-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(245px, 0.9fr);
    gap: 14px;
  }
  .hub {
    grid-template-columns: 0.8fr 1.4fr;
  }
}
@media (max-width: 650px) {
  .mast-inner {
    height: 62px;
  }
  .brand {
    font-size: 24px;
    gap: 8px;
  }
  .paw-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
  .mast-tools {
    gap: 6px;
  }
  .adult-pill {
    padding: 0 10px;
    font-size: 12px;
  }
  .wrap {
    padding-block: 15px 28px;
  }
  .hero {
    min-height: 158px;
    border-radius: 20px;
  }
  .hero-copy {
    max-width: 66%;
    padding: 20px 16px;
  }
  .hero h1 {
    font-size: clamp(32px, 7.5vw, 44px);
  }
  .hero p {
    font-size: 13px;
    line-height: 1.3;
  }
  .cat-scene {
    width: 36%;
  }
  .cat-scene .cat {
    width: 100%;
    left: -4%;
    height: 80%;
    bottom: 0;
  }
  .sun-disc {
    width: 112%;
    left: 1%;
    top: 23%;
  }
  .scene-stars {
    left: 0;
    font-size: 16px;
  }
  .scene-stars.tiny {
    display: none;
  }
  .parent-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 13px;
  }
  .alphabet-keys {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .panel {
    padding: 18px;
    border-radius: 20px;
  }
  .letter {
    min-height: 40px;
    font-size: 17px;
  }
  .sample-words img {
    height: 60px;
  }
  .hub {
    grid-template-columns: 1fr;
  }

  .game-menu {
    gap: 9px;
  }
  .game-card {
    min-height: 135px;
    padding: 10px;
  }
  .art .word-image {
    height: 60px;
  }
  .memory-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .memory-board.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mem-card {
    height: clamp(59px, 11svh, 90px);
    border-radius: 12px;
  }
  .board {
    gap: 14px;
  }
  .choice-grid .choice {
    width: clamp(68px, 28%, 110px);
  }
  .slot {
    width: min(53px, calc((100% - (var(--n) - 1) * 3px) / var(--n)));
    min-width: 22px;
    font-size: clamp(15px, 5vw, 27px);
    border-radius: 8px;
  }
  .slots {
    gap: 3px;
  }
  .letter {
    padding: 0;
  }
}
@media (max-width: 365px) {
  .alphabet-keys {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .adult-pill {
    border: 0;
    padding: 0;
  }
  .hero-copy {
    max-width: 68%;
  }
  .section-title h2 {
    font-size: 20px;
  }
  .mast-tools .stash {
    gap: 6px;
    padding: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.mini-choices {
  display: flex;
  gap: 3px;
  justify-content: center;
  width: 100%;
  margin-top: 5px;
}
.mini-choices b,
.mini-board i {
  background: #fffdf6;
  border: 1px solid #dbd5c3;
  border-radius: 8px;
  box-shadow: 0 2px 0 #504d3217;
  display: grid;
  place-items: center;
}
.mini-choices b {
  width: clamp(25px, 7vw, 55px);
  aspect-ratio: 1;
}
.mini-choices b:nth-child(2) {
  border: 2px solid #7e9c71;
}
.mini-choices .word-image {
  width: 90%;
  height: 90%;
  object-fit: contain;
}
.art.mini-board {
  display: grid;
  width: min(85%, 160px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  transform: rotate(-4deg);
}
.mini-board i {
  height: 42px;
  font-size: clamp(10px, 1.8vw, 15px);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.mini-board .word-image {
  width: 42px;
  height: 38px;
}

.max-length {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.max-length legend {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 7px;
}
.max-length button {
  background: #fffefa;
  border: 1px solid var(--edge);
  border-radius: 10px;
  min-width: 43px;
  min-height: 44px;
  padding: 5px 10px;
}
.max-length [aria-pressed='true'] {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.pet-home {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  align-self: start;
  padding-top: 12px;
}
.cat-invitation {
  height: clamp(110px, 23vw, 230px);
  width: min(100%, 235px);
}
.bowl-button {
  position: relative;
  display: grid;
  place-items: center;
  border: 2px solid #d3bd8e;
  background: #fff5da;
  border-radius: 40px;
  width: 100px;
  min-height: 55px;
  box-shadow: 0 3px 0 #d9c7a4;
}
.bowl-button .icon {
  width: 48px;
  height: 40px;
}
.bowl-button:not(.has-food) .bowl-fish {
  visibility: hidden;
}
body:has(.level-dialog[open]) .has-food > .icon {
  animation-play-state: paused;
}
.bowl-button.has-food {
  background: #ffedb6;
  border-color: #b18641;
}
@media (prefers-reduced-motion: no-preference) {
  .has-food > .icon {
    animation: offer-food 5s 0.35s infinite;
    transform-origin: 50% 85%;
  }
}
@keyframes offer-food {
  0%,
  18%,
  100% {
    transform: rotate(0);
  }
  5% {
    transform: rotate(-8deg);
  }
  11% {
    transform: rotate(7deg);
  }
}
.slova {
  background: #dbedee;
}
.art.build {
  gap: 10px;
}
.scatter {
  align-items: center;
  min-height: 40px;
}
.scatter i {
  font-size: clamp(16px, 2vw, 23px);
}
.scatter i:nth-child(3) {
  transform: rotate(9deg) translateY(-7px);
}
.mini-slots b {
  border: 1px dashed #91a690;
  border-radius: 4px;
  width: 19px;
  height: 18px;
}
.mini-words {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
}
.mini-words i {
  font-size: clamp(10px, 1.2vw, 14px);
  padding: 4px;
  overflow-wrap: anywhere;
}
.art.reverse > .word-image {
  width: 60px;
  height: 55px;
}
.art.mini-board {
  width: min(100%, 96px);
  aspect-ratio: 1;
  min-height: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  transform: none;
}
.art.mini-board i {
  height: 100%;
  width: 100%;
  font-size: clamp(9px, 1.3vw, 13px);
  line-height: 1;
  overflow: hidden;
}
.art.mini-board img {
  height: 85%;
  width: 85%;
  min-height: 0;
}
.level-dialog,
.reset-dialog,
.parent-gate {
  width: min(calc(100% - 28px), 440px);
  border: 1px solid #c5cebd;
  border-radius: 26px;
  padding: 24px;
  color: var(--ink);
  background: #fffef9;
  box-shadow: 0 15px 70px #273e3440;
  max-height: 90dvh;
  overflow: auto;
}
.level-dialog::backdrop,
.reset-dialog::backdrop,
.parent-gate::backdrop {
  background: #23372d66;
}
.dialog-close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 27px;
}
.selected-game {
  margin: 4px auto 22px;
  border-radius: 18px;
  width: min(62%, 180px);
  min-height: 110px;
  padding: 10px;
  display: grid;
  place-items: center;
}
.level-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.level-option {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-height: 84px;
  border-radius: 18px;
  border: 1px solid #bbcaad;
  box-shadow: 0 3px 0 #ccd3bd;
  background: #eaf1df;
}
.treat-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  place-items: center;
  min-height: 23px;
}
.word-choice {
  background: white;
  border: 1.5px solid var(--edge);
  border-radius: 12px;
  box-shadow: 0 3px 0 #dce0d3;
  min-height: 54px;
  padding: 8px 15px;
  font-size: clamp(19px, 3.2vw, 32px);
  font-weight: 650;
  overflow-wrap: anywhere;
  max-width: 100%;
}
@media (max-width: 650px) {
  .pet-home {
    padding: 0;
  }
  .cat-invitation {
    height: 100px;
  }
  .bowl-button {
    min-height: 44px;
    width: 88px;
  }
  .bowl-button .icon {
    width: 42px;
    height: 33px;
  }
  .game-card {
    padding: 10px 8px 21px;
  }
}

.treat-hint .fish .icon {
  width: clamp(40px, 12vw, 58px);
  height: clamp(38px, 11vw, 54px);
}
.reward-arrival {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.reward-arrival .fish {
  grid-area: 1 / 1;
  opacity: 0;
  animation: fill-bowl 560ms ease-in both;
}
@keyframes fill-bowl {
  0% {
    opacity: 0;
    transform: translate(46px, -48px) rotate(-22deg);
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 1;
    transform: translate(3px, -7px) scale(.75);
  }
  100% {
    opacity: 0;
    transform: translateY(2px) scale(.5);
  }
}
.reset-link {
  display: block;
  margin: 15px auto 0;
  min-height: 44px;
}
.reset-dialog h2,
.parent-gate h2 {
  font-size: 23px;
  margin: 0 0 8px;
}
.reset-dialog p {
  margin: 0;
  line-height: 1.5;
}
.reset-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.reset-actions button {
  padding: 9px 15px;
  min-height: 44px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--paper);
}
.reset-actions [data-action='potvrdit-reset'] {
  border-color: #873c32;
  color: white;
  background: #873c32;
}
.parent-gate label { display: block; margin: 16px 0 6px; }
.parent-gate input {
  width: 8ch;
  padding: 8px 12px;
  font-size: 22px;
  color: var(--ink);
  border: 1px solid var(--muted);
  border-radius: 10px;
}
.parent-gate input[aria-invalid='true'] { border-color: #873c32; }
.parent-gate [role='alert'] { margin: 8px 0 0; color: #873c32; }
.parent-gate [type='submit'] { background: var(--green); color: white; }

.prvni {
  background: #eae3ef;
}
.pet-picker {
  border: 0;
  border-top: 1px solid var(--edge);
  padding: 14px 0 0;
  margin: 20px 0 0;
  min-width: 0;
}
.pet-picker legend {
  font-size: 15px;
  font-weight: 700;
  padding: 0 9px 0 0;
}
.handoff {
  min-height: 66px;
  font-size: clamp(21px, 2.5vw, 25px);
  box-shadow: 0 3px 0 #184330;
}
.first-preview .word-image {
  width: clamp(35px, 10vw, 80px);
  height: auto;
}
.first-preview-rows, .initial-rows {
  display: grid;
  gap: .3em;
  min-width: 0;
}
.first-preview-row, .initial-row {
  display: flex;
  align-items: center;
  background: #fffefa;
  border: 1px solid #cfc6d1;
  border-radius: .4em;
  font-weight: 600;
  line-height: 1.1;
}
.first-preview-row {
  padding: .16em .35em;
  font-size: clamp(12px, 1.8vw, 18px);
}
.word-initial {
  font-weight: 800;
  color: #593b62;
}
.letter-marks {
  display: inline-flex;
  align-items: center;
  gap: .27em;
  padding: 0 .18em 0 .27em;
}
.letter-marks i {
  width: .15em;
  height: .15em;
  border-radius: 50%;
  background: #927d95;
}
.initial-row .letter-marks {
  gap: .55em;
  padding-left: .45em;
}
.initial-row .letter-marks i {
  width: .19em;
  height: .19em;
}
.initial-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(16px, 5vw, 56px);
  width: min(100%, 680px);
}
.initial-picture img {
  width: 100%;
  height: clamp(120px, 25vh, 210px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.initial-rows {
  font-size: clamp(24px, 4.5vw, 36px);
}
.initial-row, .row-placeholder {
  min-height: 1.9em;
}
.initial-row {
  padding: .15em .6em;
  font: inherit;
  line-height: 1.1;
  box-shadow: 0 2px 0 #49305118;
}
.initial-row:is(.spravne, .reseni) .word-initial {
  color: #234f37;
  text-decoration: underline;
  text-underline-offset: .12em;
}
.word-tail {
  color: #446050;
  font-weight: 500;
}
@media (prefers-reduced-motion: no-preference) {
  .word-tail { animation: reveal-tail .35s ease-out; }
  @keyframes reveal-tail {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0); }
  }
}
@media (max-width: 520px) {
  .initial-task {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 290px;
  }
  .initial-picture img { height: clamp(78px, 16svh, 122px); }
  .initial-rows { gap: 6px; }
}
.pet-actor {
  position: relative;
  transform-origin: center 94%;
  pointer-events: none;
}
.pet-actor img {
  position: absolute;
  inset: 0;
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.pet-actor .nuzzle,
.pet-actor .groom {
  opacity: 0;
  transform-origin: 52% 92%;
}
.feeding-heart .icon {
  width: clamp(86px, 20vw, 134px);
  height: clamp(86px, 20vw, 134px);
  filter: drop-shadow(0 2px 0 #fff3df);
}
@media (prefers-reduced-motion: no-preference) {
  .resting .cat { animation: sit-still 16s infinite; }
  .resting .groom { animation: wash-paw 16s infinite; }
  .feeding.eating .pet-actor > .cat { animation: happy-bite .6s ease-in-out; }
  .purring .nuzzle { animation: lean-in 1.45s ease-in-out both; }
  .purring .feeding-heart { animation: send-heart 1.45s ease-out both; }
}
@keyframes sit-still {
  0%, 72%, 89%, 100% { opacity: 1; }
  73%, 88% { opacity: 0; }
}
@keyframes wash-paw {
  0%, 72%, 89%, 100% { opacity: 0; transform: none; }
  73%, 78%, 84%, 88% { opacity: 1; transform: rotate(0deg); }
  75%, 81%, 86% { opacity: 1; transform: rotate(-2deg) scaleY(.985); }
}
.purring .pet-actor .cat { opacity: 0; }
.purring .pet-actor .nuzzle { opacity: 1; }
@keyframes lean-in {
  0% { transform: none; }
  42% { transform: translateY(-1%) rotate(-2deg) scale(1.035); }
  78% { transform: rotate(-1deg) scale(1.018); }
  100% { transform: none; }
}
@keyframes happy-bite {
  0%, 18%, 100% { transform: none; }
  34% { transform: translateY(-6%) rotate(-3deg); }
  48%, 72% { transform: scale(1.035, .965); }
  61%, 86% { transform: translateY(-1%) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .purring .feeding-heart { opacity: 1; transform: translate(-55%, -20%); }
}

.cat-invitation { position: relative; }
.cat-invitation .pet-actor { height: 100%; }
.fish-thought {
  position: absolute;
  right: 0;
  top: 6%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 39px;
  border: 2px solid #cdb990;
  background: #fff9e8;
  border-radius: 50%;
}
.fish-thought::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff9e8;
  border: 1px solid #cdb990;
  border-radius: 50%;
  left: 2px;
  bottom: -8px;
}
.fish-thought .fish .icon { width: 34px; height: 30px; }
.wants-food .bowl-button {
  width: 122px;
  min-height: 60px;
  border-color: #a5762e;
  box-shadow: 0 3px 0 #b89865, 0 0 0 4px #ffe9ab;
}
.wants-food .bowl-button > .icon { width: 54px; height: 44px; }
.guided-home { display: grid; justify-items: center; }
.guided-home .pet-home { width: min(100%, 400px); gap: 16px; }
.guided-home .cat-invitation { width: 100%; height: clamp(170px, 36svh, 300px); }
.guided-home .fish-thought { right: 10%; }
.guided-home .bowl-button, .guide-feed {
  width: 156px;
  min-height: 70px;
  border: 3px solid #b1873e;
  box-shadow: 0 4px 0 #cbaf7b, 0 0 0 6px #ffe9ab;
}
.intro-link { display: block; margin: 12px auto 0; min-height: 44px; }
.intro-board {
  width: min(100%, 520px);
  gap: clamp(16px, 4vh, 34px);
  padding: clamp(20px, 5vw, 40px);
}
.intro-sample {
  display: grid;
  place-items: center;
  min-width: 1.75em;
  min-height: 1.55em;
  font-size: clamp(54px, 10vw, 90px);
  font-weight: 750;
  background: #edf1de;
  color: #345c43;
  border-radius: 20px;
}
.intro-choices, .intro-rewards { display: flex; justify-content: center; gap: 10px; }
.intro-choices button {
  min-width: clamp(60px, 14vw, 88px);
  min-height: 58px;
  font-weight: 700;
}
.intro-fish { display: flex; }
.intro-fish:not(.earned) { filter: grayscale(1); opacity: .25; }
@media (prefers-reduced-motion: no-preference) {
  .guided-home .bowl-button, .guide-feed { animation: invite-feed 1.8s ease-in-out infinite; }
  .new-food .bowl-button { animation: invite-feed 1.8s ease-in-out 3; }
  .wants-food .cat-invitation .pet-actor { animation: ask-for-food 5s ease-in-out infinite; }
  .just-earned { animation: earned-fish .45s ease-out; }
}
@keyframes invite-feed {
  50% { background-color: #ffe89a; box-shadow: 0 4px 0 #b89865, 0 0 0 10px #ffe9ab; }
}
@keyframes ask-for-food {
  0%, 15%, 32%, 100% { transform: none; }
  7%, 23% { transform: translateY(3px) rotate(3deg) scaleY(.97); }
}
@keyframes earned-fish {
  0% { transform: translateY(14px) scale(.65); }
  55% { transform: translateY(-3px) scale(1.15); }
  100% { transform: none; }
}

/* The portrait opens the child's companions from the games menu. */
.pet-switch, .album-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px solid #d5b87e;
  border-radius: 16px;
  background: #fff4d9;
  min-height: 48px;
}
.pet-switch { padding: 2px 7px 2px 4px; }
.pet-switch > .icon { width: 15px; }
.pet-portrait { position: relative; display: inline-grid; place-items: center; }
.pet-portrait > .cat { width: 44px; height: 42px; object-fit: contain; }
.pet-portrait i {
  position: absolute; right: -2px; bottom: 0; font: normal 14px/1 sans-serif;
  padding: 2px; border-radius: 100%; background: #fff1ca;
}
.pet-dialog {
  width: min(420px, calc(100% - 28px)); max-height: 90dvh; overflow: auto;
  padding: 60px 18px 18px; border-radius: 24px; border: 2px solid var(--edge); background: var(--paper);
}
.pet-dialog::backdrop { background: #23372d66; }
.pet-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.pet-choices button, .pet-choices .pet-portrait { min-width: 0; }
.pet-picker .pet-choices b, .transfer .pet-choices b { overflow-wrap: anywhere; }
.pet-choices button {
  display: grid; justify-items: center; align-content: center; gap: 6px;
  border: 2px solid #ded7c5; border-radius: 18px; background: #fffbef; padding: 8px;
}
.pet-choices [aria-pressed="true"] { background: #e3efdc; border-color: var(--green); }
.pet-choices .cat { width: 100%; height: clamp(68px, 19vw, 118px); }
.pet-choices .pet-portrait i { font-size: 23px; }
.transfer { margin: 28px auto; max-width: 580px; }
.transfer h1 { font-size: clamp(24px, 5vw, 32px); margin: 0; }
.transfer p { line-height: 1.5; }
.album-link { margin: 10px auto 0; padding: 6px 14px; color: #38573c; }
.album-link .icon { width: 34px; height: 34px; }
.album-link.has-trip { background: #ffdf8c; border-color: #a86c26; }
.album-board { width: min(100%, 700px); padding: clamp(12px, 3vw, 26px); background: #fffaf0; border: 2px solid #dfceb1; border-radius: 22px; }
.album-heading, .trip-progress, .album-pages { display: flex; gap: 12px; align-items: center; justify-content: center; }
.album-heading > .icon { width: 37px; height: 37px; color: var(--green); }
.trip-progress { margin-block: 16px; }
.trip-progress progress { width: min(42%, 180px); accent-color: var(--green); }
.trip-choices, .postcards { display: grid; gap: clamp(8px, 2vw, 16px); grid-template-columns: repeat(2,minmax(0,1fr)); }
.trip-choices { margin: 16px 0; }
.destination, .saved-card { position: relative; min-width: 0; padding: 5px; background: white; border: 2px solid #c6b89e; border-radius: 12px; }
.destination { border-color: #689276; box-shadow: 0 3px 0 #98ac84; }
.destination > .icon { position: absolute; bottom: 10px; right: 10px; border-radius: 50%; background: #fff8db; width: 33px; height: 33px; padding: 5px; }
.landscape, .postcard { width: 100%; border-radius: 7px; display: block; }
.landscape { aspect-ratio: 1.4; object-fit: cover; }
.postcard { position: relative; overflow: hidden; }
.postcard .cat { position: absolute; width: 50%; height: 64%; object-fit: contain; object-position: bottom; bottom: 1%; left: 4%; }
.postcard .stamp { position: absolute; right: 5%; top: 6%; width: 18%; aspect-ratio: 1; object-fit: contain; background: #fffdf1; border: 2px dashed #937953; transform: rotate(6deg); }
.album-pages:not(:empty) { margin-top: 16px; }
@media (min-width: 650px) { .postcards { grid-template-columns: repeat(3,minmax(0,1fr)); } }

.pokusy { display: inline-flex; gap: 6px; margin-right: auto; align-items: center; }
.pokusy i { width: 15px; height: 15px; border: 2px solid #426d58; border-radius: 50%; background: #609773; }
.pokusy .prazdny { background: transparent; border-color: #ada99e; }
.vyrazena:disabled { position: relative; opacity: .52; }
.vyrazena::after { content: "×"; position: absolute; top: 1px; right: 4px; font: bold 18px/1 sans-serif; }
.treat-hint { max-width: 100%; min-width: 0; }
.treat-hint .fish { flex-shrink: 1; min-width: 0; }
.treat-hint .fish .icon { max-width: 100%; }
.reveal-choice > :not(.reseni) { visibility: hidden; }

.setup { max-width: 840px; }
.setup-flow { display: grid; gap: 16px; }
.privacy-note { margin: 12px 8px 22px; color: #526155; font-size: 14px; line-height: 1.5; }
.setup-hint { margin: 10px 0 18px; color: #526155; line-height: 1.5; }
.setup-handoff h2 { margin: 0; font-size: 23px; }
.setup-handoff .pet-picker { margin-top: 12px; }
.setup-handoff .primary { width: 100%; }
.setup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 12px; }
.setup-actions label { display: inline-flex; align-items: center; gap: 8px; }
.setup-actions button { margin: 0; }
.game-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 3px 12px; min-width: 0; border: 0; border-top: 1px solid var(--edge); padding: 8px 0 0; margin: 20px 0 0; }
.game-picker legend { font-weight: 700; padding: 0 8px 0 0; }
.game-picker label { display: flex; gap: 7px; align-items: center; min-height: 42px; cursor: pointer; }
.game-picker input { width: 18px; height: 18px; accent-color: var(--green); }
