:root {
  --ink: #333b31;
  --green: #245b50;
  --teal: #377c69;
  --cream: #fbf6e8;
  --paper: #fffaf0;
  --gold: #ffd16b;
  --coral: #ef926d;
  --line: #c6beaa;
  --mono: 'Avenir Next', Verdana, system-ui, sans-serif;
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: weight;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background-color: var(--cream);
  background-image: radial-gradient(#8d81671b 0.8px, transparent 0.9px);
  background-size: 6px 6px;
}
button {
  font: inherit;
  font-weight: 750;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:focus-visible {
  outline: 3px solid #a84624;
  outline-offset: 4px;
}
button:active {
  translate: 0 1px;
}
button[hidden],
[hidden] {
  display: none !important;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.symbols,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
h1,
h2,
h3,
p {
  margin: 0;
}
.topbar {
  border-bottom: 1.5px solid #bcb6a2;
  background: #faf6eae8;
}
.top-inner {
  max-width: 1360px;
  margin: auto;
  padding: 0 clamp(24px, 4.8vw, 78px);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand-symbol {
  border: 2px solid var(--ink);
  border-radius: 11px 12px 10px 12px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 42px;
  background: #76ad93;
  color: #fff3cb;
  box-shadow: 1.5px 2px 0 var(--ink);
  transform: rotate(-7deg);
}
.brand-symbol svg {
  width: 30px;
  height: 30px;
}
.brand b {
  display: block;
  font-weight: 950;
  font-size: 21px;
  letter-spacing: 1px;
  line-height: 1.15;
}
.brand small {
  display: block;
  font: 800 8px/1.4 var(--mono);
  letter-spacing: 2.1px;
  margin-top: 4px;
}
.top-inner nav {
  display: flex;
  gap: 12px;
}
.utility,
.mobile-route {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  min-height: 38px;
  font-size: 13px;
  box-shadow: 0 2px 0 #484b3d;
}
.utility svg {
  width: 17px;
  height: 17px;
}
.utility:hover,
.mobile-route:hover {
  background: #efe8d4;
}
.layout {
  width: min(1192px, calc(100% - 92px));
  position: relative;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) clamp(350px, calc((100svh - 246px) * 0.8), 442px) minmax(
      216px,
      0.95fr
    );
  gap: clamp(30px, 4.2vw, 74px);
  align-items: center;
  padding: 34px 0 27px;
  z-index: 1;
}
.intro {
  align-self: center;
  max-width: 295px;
  padding: 0 1px;
}
.collection {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 850;
  color: #456c5b;
  width: max-content;
  transform: rotate(-2deg);
  margin: 0 0 13px 10px;
}
.collection span {
  width: 18px;
  height: 2px;
  background: #72917a;
  position: relative;
}
.collection span::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 2px;
  top: -4px;
  left: 6px;
  background: #72917a;
  rotate: 28deg;
}
.collection span:last-child::after {
  rotate: -28deg;
}
h1 {
  width: min(100%, 285px);
  margin-left: -6px;
  transform: rotate(-3deg);
}
h1 img {
  width: 100%;
  height: auto;
  display: block;
}
.tagline {
  margin-top: 19px;
  font-weight: 900;
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: 0.7px;
}
.blurb {
  font-size: 14px;
  color: #55594d;
  line-height: 1.95;
  margin: 9px 0 22px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 4px 0 var(--ink);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
  min-height: 55px;
  padding: 9px 21px;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.primary:hover {
  background: #ffdc83;
  transform: translateY(-1px);
  box-shadow: 3px 5px 0 var(--ink);
}
.primary:active {
  transform: translate(1px, 2px);
  box-shadow: 1px 2px 0 var(--ink);
}
.primary svg {
  width: 18px;
  height: 18px;
}
.primary .arrow {
  margin-left: auto;
  width: 22px;
  height: 22px;
}
.desktop-action {
  width: min(100%, 249px);
  justify-content: flex-start;
}
.mascots {
  position: relative;
  width: 230px;
  height: 91px;
  margin-top: 22px;
}
.mascots img {
  position: absolute;
  object-fit: contain;
  bottom: 0;
  z-index: 1;
}
.mascot-a {
  height: 83px;
  left: 15px;
  transform: rotate(-5deg);
}
.mascot-b {
  height: 49px;
  left: 89px;
  transform: rotate(2deg);
}
.mascots .ground {
  position: absolute;
  bottom: 0;
  left: 9px;
  width: 174px;
  height: 10px;
  background: #d3ccb1;
  border-radius: 50%;
}
.mascots i {
  position: absolute;
  left: 189px;
  bottom: 14px;
  color: #c99c43;
  font-size: 21px;
}
.cat-call {
  position: absolute;
  left: 115px;
  top: 1px;
  border: 1.3px solid #76786a;
  border-radius: 45% 54% 43% 51%;
  font-size: 11px;
  font-weight: 800;
  color: #4b6253;
  background: var(--paper);
  padding: 2px 8px;
  transform: rotate(8deg);
}
.cat-call:after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--paper);
  left: 8px;
  bottom: -3px;
  border-bottom: 1px solid #76786a;
  border-right: 1px solid #76786a;
  rotate: 45deg;
}
.game-col {
  position: relative;
  min-width: 0;
}
.console {
  border: 2.5px solid var(--ink);
  border-radius: 19px;
  background: var(--paper);
  box-shadow: 4px 6px 0 #424b3c;
  overflow: hidden;
}
.console-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #367561;
  color: #fff9df;
  padding: 10px 16px;
  min-height: 50px;
  border-bottom: 2px solid var(--ink);
}
.console-head h2 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 1px;
  font-weight: 900;
}
.lv-label {
  background: #ffe19b;
  color: #353d30;
  font: 900 13px/1 var(--mono);
  letter-spacing: 1px;
  border: 1.5px solid #313e33;
  border-radius: 6px;
  padding: 6px 8px;
  box-shadow: 0 1.5px 0 #303c30;
  transform: rotate(-2deg);
}
.difficulty {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-left: auto;
  height: 18px;
}
.difficulty i {
  width: 5px;
  background: #2a594b;
  border: 1px solid #8eaf95;
  border-radius: 2px;
}
.difficulty i.on {
  background: #ffdc8e;
  border-color: #ffdc8e;
}
.map {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #a7cbbc;
  user-select: none;
  -webkit-user-select: none;
}
.scene,
#targets {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.scene {
  object-fit: fill;
  pointer-events: none;
}
.map-label,
.map-pause {
  position: absolute;
  top: 12px;
  z-index: 3;
  background: #fff7dbf5;
  border: 1.4px solid var(--ink);
  box-shadow: 1.5px 2px 0 #38433670;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.map-label {
  left: 12px;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 850;
}
.map-label svg {
  width: 14px;
  height: 14px;
}
.map-pause {
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.map-pause svg {
  width: 15px;
  height: 15px;
}
.reward {
  position: absolute;
  pointer-events: none;
  color: #fff7d7;
  background: #305c48;
  border: 1px solid #fbeac0;
  padding: 4px 7px;
  white-space: nowrap;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 850;
  transform: translate(-50%, -100%);
  animation: up 0.85s ease-out forwards;
  z-index: 4;
}
.reward.miss {
  background: #fff5da;
  color: var(--ink);
  border-color: var(--ink);
}
@keyframes up {
  0% {
    opacity: 0;
    margin-top: 6px;
  }
  15%,
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    margin-top: -17px;
  }
}
.toast {
  position: absolute;
  pointer-events: none;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #2c4d40f2;
  color: var(--paper);
  border: 1px solid #fff0c5;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  padding: 8px 14px;
  opacity: 0;
  transition: opacity 0.18s;
}
.toast.show {
  opacity: 1;
}
.hud {
  border-top: 2px solid var(--ink);
  height: 78px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  align-items: center;
  background: #fff7de;
}
.stat {
  position: relative;
  text-align: center;
}
.stat + .stat:before {
  content: '';
  position: absolute;
  left: 0;
  top: 13%;
  height: 75%;
  border-left: 1px dashed #beaf8f;
}
.stat > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 750;
  color: #575b4b;
}
.stat svg {
  width: 15px;
  height: 15px;
}
.stat strong {
  font: 850 26px/1.22 var(--mono);
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
  color: #354538;
}
.stat small {
  font:
    750 12px/1 system-ui,
    sans-serif;
}
.stat:last-child strong,
.stat:last-child svg {
  color: #9a543a;
}
.stat .urgent {
  color: #ac452c;
}
.map-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  color: #657869;
}
.map-caption svg {
  width: 12px;
  height: 12px;
}
.map-caption b {
  font: 800 9px/1 var(--mono);
  letter-spacing: 2.1px;
}
.map-caption span {
  height: 1px;
  width: 24px;
  background: #b5b6a0;
}
.guide {
  max-width: 285px;
  align-self: center;
}
.route-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 0 13px;
  border-bottom: 1.5px dashed #c2b89e;
  margin-bottom: 12px;
}
.route-heading h2 {
  font-size: 20px;
  letter-spacing: 1px;
  font-weight: 900;
}
.route-icon {
  display: grid;
  place-items: center;
  color: var(--green);
}
.route-icon svg {
  width: 23px;
  height: 23px;
}
.route-count {
  margin-left: auto;
  background: #ede8d6;
  border: 1px solid #bcb59d;
  border-radius: 30px;
  padding: 3px 9px;
  font: 800 11px var(--mono);
  color: #5d6150;
}
.levels {
  display: grid;
  gap: 8px;
}
.level {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 7px 12px 7px 8px;
  background: #fffbef;
  border: 1.4px solid #a8a48e;
  border-radius: 11px;
  min-height: 62px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.level:hover {
  background: #f2edda;
  transform: translateX(2px);
}
.level.selected {
  background: #deead1;
  border: 2px solid #345e4e;
  box-shadow: 2px 2px 0 #355945;
  padding: 6.4px 11.4px 6.4px 7.4px;
}
.thumb {
  display: block;
  width: 48px;
  height: 44px;
  object-fit: cover;
  border: 1.2px solid #5c6250;
  border-radius: 6px;
  flex-shrink: 0;
}
.level-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.level-copy small {
  font: 850 9px/1.15 var(--mono);
  letter-spacing: 1.6px;
  color: #697060;
}
.level-copy b {
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 850;
}
.level-mark {
  margin-left: auto;
  color: #5c6e59;
}
.level-mark svg {
  width: 17px;
  height: 17px;
  display: block;
}
.selected .level-mark {
  color: var(--green);
}
.level:not(.selected) .chevron {
  font: 600 21px/1 var(--mono);
  color: #898a75;
}
.note {
  margin: 27px 3px 0;
  padding: 17px 18px 18px;
  background: #fbecb3;
  border: 1.4px solid #a49a70;
  border-radius: 3px 6px 4px 7px;
  box-shadow: 2px 3px 0 #c4b78f;
  transform: rotate(1.4deg);
  position: relative;
}
.tape {
  position: absolute;
  top: -7px;
  left: 40%;
  width: 49px;
  height: 14px;
  background: repeating-linear-gradient(125deg, #8eaf8e9c 0 4px, #bad0a89c 4px 7px);
  transform: rotate(-5deg);
  clip-path: polygon(
    0 3%,
    98% 0,
    100% 26%,
    97% 43%,
    100% 60%,
    97% 77%,
    100% 100%,
    1% 98%,
    3% 80%,
    0 64%,
    3% 45%,
    0 23%
  );
}
.note h3 {
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
}
.note h3 svg {
  width: 17px;
  height: 17px;
}
.note p {
  position: relative;
  z-index: 1;
  font-size: 12px;
  line-height: 1.85;
  color: #555344;
  margin-top: 6px;
  padding-right: 9px;
}
.note-paw {
  position: absolute;
  bottom: 7px;
  right: 8px;
  width: 28px;
  height: 28px;
  color: #dac991;
  transform: rotate(-18deg);
}
.shore {
  position: relative;
  height: 54px;
  overflow: hidden;
  flex-shrink: 0;
  pointer-events: none;
}
.shoreline,
.water {
  position: absolute;
  left: 0;
  width: 100%;
}
.shoreline {
  top: 0;
  height: 25px;
  background: radial-gradient(ellipse 32px 10px at 32px 0, transparent 95%, #b1cfc0 100%) 0 0 / 64px 25px
    repeat-x;
}
.water {
  top: 14px;
  bottom: 0;
  background-color: #b1cfc0;
  background-image: url("data:image/svg+xml,%3Csvg width='132' height='36' viewBox='0 0 132 36' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 11q5 4 10 0 4 3 8 0m52 16q5 3 10 0 4 3 9 0' fill='none' stroke='%237ba997' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.mobile-title,
.mobile-action {
  display: none;
}
dialog {
  padding: 0;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  width: min(360px, calc(100% - 36px));
  max-height: 88svh;
  overflow: auto;
  box-shadow: 5px 6px 0 #31483d;
}
dialog::backdrop {
  background: #1c352dd1;
}
.dialog-inner {
  padding: 27px 24px 24px;
  position: relative;
}
.dialog-x {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.dialog-x svg {
  width: 18px;
  height: 18px;
}
.dialog-kicker {
  color: #497463;
  font: 850 10px var(--mono);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
dialog h2 {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 4px 0 12px;
}
dialog p {
  font-size: 14px;
  line-height: 1.75;
  color: #54594b;
}
dialog ol {
  padding-left: 22px;
  margin: 12px 0 20px;
  font-size: 14px;
  line-height: 1.8;
}
dialog li + li {
  margin-top: 7px;
}
.dialog-cta,
.dialog-alt {
  width: 100%;
  min-height: 45px;
  border: 1.7px solid var(--ink);
  border-radius: 10px;
  font-weight: 850;
  font-size: 16px;
}
.dialog-cta {
  background: var(--gold);
  box-shadow: 2px 3px 0 var(--ink);
  margin-top: 18px;
}
.dialog-alt {
  background: #fff9e9;
  margin-top: 10px;
}
.dialog-cat {
  width: 80px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}
.result {
  text-align: center;
}
.result-stats {
  display: flex;
  padding: 12px 0;
  margin: 15px 0 4px;
  border-block: 1px dashed #b6b299;
}
.result-stats > div {
  flex: 1;
  display: grid;
  gap: 4px;
}
.result-stats small {
  font-size: 12px;
  color: #606859;
}
.result-stats b {
  font-size: 18px;
  color: var(--green);
}
.modal-levels {
  margin: 16px 0 2px;
}
.dlg-tip {
  background: #f1ecd5;
  padding: 10px;
  border-radius: 8px;
  margin: 12px 0 0;
  font-size: 13px;
}
@media (min-width: 1450px) {
  .layout {
    gap: 80px;
  }
}
@media (max-width: 1050px) and (min-width: 821px) {
  .layout {
    width: calc(100% - 48px);
    gap: 25px;
    grid-template-columns: minmax(170px, 1fr) minmax(315px, 1.5fr) minmax(173px, 0.85fr);
  }
  .guide .level {
    gap: 7px;
  }
  .thumb {
    width: 38px;
    height: 36px;
  }
  .blurb {
    font-size: 13px;
  }
  .collection {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .mascots {
    width: 190px;
  }
  .route-heading h2 {
    font-size: 18px;
  }
  .note {
    padding-inline: 12px;
  }
}
@media (max-width: 820px) {
  .top-inner {
    height: 60px;
    padding: 0 20px;
  }
  .brand-symbol {
    width: 35px;
    height: 35px;
    border-radius: 9px;
  }
  .brand-symbol svg {
    width: 25px;
    height: 25px;
  }
  .brand {
    gap: 9px;
  }
  .brand b {
    font-size: 17px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.5px;
    margin-top: 2px;
  }
  .top-inner nav {
    gap: 8px;
  }
  .utility {
    min-height: 33px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .layout {
    display: block;
    width: min(462px, calc(100% - 32px));
    margin: 0 auto auto;
    padding: 15px 0 19px;
  }
  .intro,
  .guide {
    display: none;
  }
  .mobile-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 11px;
  }
  .mobile-title h2 {
    font-size: 23px;
    font-weight: 1000;
    letter-spacing: -0.7px;
    color: #354d3e;
  }
  .mobile-route {
    background: transparent;
    box-shadow: none;
    color: #3e6053;
    border: 0;
    padding: 4px 0 4px 8px;
    min-height: 32px;
    font-size: 13px;
  }
  .mobile-route svg {
    width: 16px;
    height: 16px;
  }
  .mobile-action {
    display: flex;
    width: 100%;
    margin: 14px 0 0;
    min-height: 49px;
    font-size: 18px;
  }
  .mobile-action .arrow {
    margin: 0 0 0 7px;
  }
  .console {
    border-radius: 15px;
    box-shadow: 3px 4px 0 #424b3c;
  }
  .console-head {
    min-height: 44px;
    padding: 8px 13px;
    gap: 9px;
  }
  .console-head h2 {
    font-size: 17px;
  }
  .hud {
    height: 65px;
  }
  .stat strong {
    font-size: 23px;
  }
  .map-caption {
    margin-top: 15px;
  }
  .shore {
    height: 30px;
  }
  .layout.playing .mobile-action {
    display: none;
  }
  .layout.playing .map-caption {
    margin-top: 15px;
  }
  .route-count {
    font-size: 10px;
  }
}
@media (max-width: 820px) and (max-height: 775px) {
  .layout {
    width: min(calc(100% - 28px), max(288px, calc((100svh - 237px) * 0.8)));
    padding-top: 8px;
  }
  .mobile-title {
    margin-bottom: 6px;
  }
  .map-caption {
    display: none;
  }
  .top-inner {
    height: 54px;
  }
  .shore {
    height: 22px;
  }
}
@media (max-width: 365px) {
  .top-inner {
    padding-inline: 13px;
  }
  .utility {
    padding: 6px 8px;
  }
  .blurb {
    font-size: 13px;
  }
  .top-inner nav {
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reward {
    animation: none;
  }
  .primary,
  .level,
  .toast {
    transition: none;
  }
}
/* Keep the whole board in sight on shorter landscape displays. */
@media (min-width: 821px) and (max-height: 790px) {
  .top-inner {
    height: 61px;
  }
  .layout {
    padding: 19px 0 17px;
    grid-template-columns: minmax(168px, 1fr) clamp(310px, calc((100svh - 249px) * 0.8), 403px) minmax(
        175px,
        0.95fr
      );
  }
  .console-head {
    min-height: 44px;
    padding-block: 7px;
  }
  .hud {
    height: 63px;
  }
  .map-caption {
    margin-top: 10px;
  }
  .intro h1 {
    width: min(100%, 240px);
  }
  .mascots {
    height: 66px;
    margin-top: 15px;
  }
  .mascot-a {
    height: 66px;
  }
  .mascot-b {
    height: 42px;
    left: 75px;
  }
  .cat-call {
    left: 105px;
    top: -5px;
  }
  .collection {
    margin-bottom: 7px;
  }
  .blurb {
    margin-bottom: 16px;
  }
  .tagline {
    margin-top: 12px;
  }
  .shore {
    height: 31px;
  }
}
@media (max-width: 820px) and (max-height: 740px) {
  .layout {
    width: min(calc(100% - 24px), max(258px, calc((100svh - 224px) * 0.8)));
    padding: 5px 0 10px;
  }
  .top-inner {
    height: 47px;
  }
  .mobile-title {
    margin-bottom: 4px;
  }
  .mobile-title h2 {
    font-size: 19px;
  }
  .console-head {
    min-height: 36px;
    padding: 4px 10px;
  }
  .console-head h2 {
    font-size: 15px;
  }
  .hud {
    height: 51px;
  }
  .stat strong {
    font-size: 19px;
  }
  .stat > span {
    font-size: 10px;
  }
  .mobile-action {
    min-height: 43px;
    margin-top: 10px;
    font-size: 16px;
  }
  .shore {
    height: 15px;
  }
}
.eggs {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.eggs i {
  position: absolute;
  width: 9px;
  height: 13px;
  border-radius: 50% 50% 46% 46% / 62% 62% 39% 39%;
  border: 1.4px solid #654b2e;
  background: #ffe195;
  box-shadow: inset 2px 2px 0 #fff7d6;
  animation: egg-left 0.58s ease-out forwards;
}
.eggs i + i {
  animation-name: egg-right;
}
@keyframes egg-left {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  15% {
    opacity: 1;
  }
  70% {
    transform: translate(-19px, -19px) rotate(-24deg);
  }
  100% {
    opacity: 0;
    transform: translate(-24px, -8px) rotate(-48deg);
  }
}
@keyframes egg-right {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  15% {
    opacity: 1;
  }
  70% {
    transform: translate(15px, -24px) rotate(24deg);
  }
  100% {
    opacity: 0;
    transform: translate(20px, -12px) rotate(48deg);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .mascot-a {
    animation: mascot-breathe 3.5s ease-in-out infinite;
    transform-origin: 50% 100%;
  }
  @keyframes mascot-breathe {
    50% {
      transform: rotate(-3deg) scale(1.015, 0.98);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .eggs {
    display: none;
  }
}
.mobile-title h2 img {
  display: block;
  width: 148px;
  height: auto;
}
@media (max-width: 820px) and (max-height: 740px) {
  .mobile-title h2 img {
    width: 125px;
  }
}
@media (max-width: 820px) and (max-height: 600px) {
  .layout {
    width: min(calc(100% - 24px), max(245px, calc((100svh - 250px) * 0.8)));
  }
  .shore {
    height: 10px;
  }
}

/* Only the illustrated world moves. Controls stay within the portrait console. */
.map {
  overflow: clip;
}
.world,
#foreground {
  position: absolute;
  inset: 0 auto 0 0;
  width: 333.333333%;
  height: 100%;
  will-change: transform;
}
#targets {
  pointer-events: none;
}
#canopy,
#rim {
  position: absolute;
  inset: 0;
  z-index: 650;
  pointer-events: none;
  background-size: 100% 100%;
}
#foreground {
  z-index: 1;
  pointer-events: none;
}
#foreground img {
  position: absolute;
  transform: translateX(-50%);
  pointer-events: none;
  filter: brightness(0.86) saturate(0.86);
}
#foreground .near-edge {
  bottom: -9%;
}
#foreground .overhang {
  top: -10%;
}
.map-pause {
  width: 44px;
  height: 44px;
}
.map:focus-visible {
  outline: 3px solid #fff2be;
  outline-offset: -4px;
}
.toast {
  z-index: 5;
  max-width: 96%;
  text-align: center;
  white-space: normal;
  width: max-content;
}
.hideout,
#ranger {
  position: absolute;
  transform: translate(-50%, -100%);
  transform-origin: center bottom;
  line-height: 0;
}
.hideout {
  border: 0;
  background: transparent;
  padding: 0;
  display: block;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
}
.hideout:active {
  translate: none;
}
.hideout:disabled {
  cursor: default;
}
.hideout::before {
  content: '';
  position: absolute;
  min-width: 32px;
  min-height: 32px;
  inset: -3px;
  margin: auto;
}
.hideout::after,
#ranger::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 86%;
  height: 11%;
  bottom: -1%;
  left: 8%;
  background: #4b341f47;
  border-radius: 50%;
  transform: skewX(-20deg);
  filter: blur(0.75px);
}
.hideout:focus-visible {
  outline: 2px dashed #fff5c6;
  outline-offset: 1px;
  box-shadow: 0 0 0 3px #214b3c;
  border-radius: 15%;
}
.cover {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  transform-origin: 80% 94%;
}
.clue,
.revealed {
  position: absolute;
  pointer-events: none;
}
.clue.ears {
  width: 29%;
  left: 24%;
  top: 12%;
}
.hamper .clue.ears {
  left: 29%;
  top: -7%;
}
.tub .clue.ears {
  left: 40%;
  top: -2%;
}
.clue.tail {
  width: 30%;
  right: -13%;
  bottom: 15%;
  transform: rotate(71deg);
}
.flowers .clue.tail {
  right: -9%;
  bottom: 12%;
}
.clue.paw {
  width: 18%;
  left: 32%;
  bottom: -7%;
}
.bench .clue.paw {
  left: 35%;
  bottom: 11%;
}
.board .clue.paw {
  left: 39%;
  bottom: 6%;
}
.revealed {
  width: 69%;
  max-height: 100%;
  object-fit: contain;
  left: 6%;
  bottom: 0;
}
.opened .cover {
  transition: transform 0.19s ease-out;
}
.opened.lift .cover {
  transform: translate(13%, -53%) rotate(9deg);
}
.opened.tip .cover {
  transform: translate(14%, -9%) rotate(37deg);
}
.opened.slide .cover {
  transform: translate(55%, -10%) rotate(6deg);
}
#ranger {
  pointer-events: none;
}
#ranger img {
  height: 100%;
  width: auto;
  display: block;
  transform: scaleX(var(--face, 1));
  transform-origin: center 95%;
}
#ranger.walking img {
  animation: walk-stride 0.3s ease-in-out infinite alternate;
}
@keyframes walk-stride {
  from {
    transform: scaleX(var(--face)) rotate(-2deg);
  }
  to {
    transform: translateY(-3%) scaleX(var(--face)) rotate(2deg);
  }
}
.walk-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 5px 10px;
  background: #f6ebcf;
  border-top: 2px solid var(--ink);
}
.direction-pad {
  display: flex;
  gap: 8px;
}
.walk-controls button {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1.5px solid #384a3d;
  border-radius: 9px;
  color: #304a3d;
  background: #fff9e8;
  box-shadow: 0 2px 0 #405044;
}
.direction-pad button {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.direction-pad svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.4;
}
.reverse {
  transform: scaleX(-1);
}
.walk-controls button:active,
.walk-controls button.pressed {
  background: #e3dfbe;
  box-shadow: none;
  transform: translateY(1px);
}
#inspect {
  min-width: 98px;
  padding: 0 10px;
  margin-left: auto;
  background: #ffda81;
  font-size: 13px;
}
#inspect svg {
  width: 16px;
  height: 16px;
}
.route-meter {
  position: relative;
  flex: 1;
  max-width: 96px;
  height: 3px;
  margin: 0 auto;
  background: repeating-linear-gradient(90deg, #93896b 0 3px, transparent 3px 6px);
}
.route-meter i {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #346a56;
  box-shadow: 0 0 0 2px #f6ebcf;
}
@media (prefers-reduced-motion: reduce) {
  #ranger.walking img {
    animation: none;
  }
  .opened .cover {
    transition: none;
  }
}
.world {
  transform-origin: left top;
}
.crate .clue.ears {
  width: 31%;
  top: 0;
  left: 31%;
}
.cooler .clue.paw {
  left: 42%;
  bottom: -6%;
}
#ranger.over-object img {
  opacity: 0.67;
}
#rim {
  opacity: 0.86;
}
#canopy {
  z-index: 210;
  opacity: 0.65;
}
#foreground.deep-lane .overhang {
  opacity: 0.48;
}

#foreground.near-ground .near-edge {
  opacity: 0.52;
}
@media (prefers-reduced-motion: no-preference) {
  #foreground img,
  #ranger img {
    transition: opacity 0.2s ease;
  }
}
