:root {
  color-scheme: light;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
  color: #1d274c;
  background: #eff3ff;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
[hidden] { display: none !important; }
.landing {
  width: min(100% - 6rem, 72rem);
  margin: auto;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-content: center;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 4rem 0;
}
.intro { min-width: 0; }
.status {
  margin: 0 0 1.15rem;
  font: 650 .84rem/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #45599a;
}
h1 {
  margin: 0;
  font-size: clamp(3.5rem, 7.6vw, 7rem);
  font-weight: 840;
  letter-spacing: -.079em;
  line-height: .99;
}
.game {
  position: relative;
  aspect-ratio: 3 / 2;
  min-width: 0;
  container-type: inline-size;
  border: 3px solid #293657;
  border-radius: 18px;
  box-shadow: 4px 6px 0 #aab8e5;
  background: #cfebeb;
  overflow: hidden;
  isolation: isolate;
}
.garden { position: absolute; inset: 0; width: 100%; height: 100%; }
.garden, .hedgehog, .berry { image-rendering: pixelated; user-select: none; -webkit-user-drag: none; }
.hedgehog { position: absolute; left: 13%; bottom: 22%; width: 50%; height: auto; pointer-events: none; }
.contact { position: absolute; inset: 0; pointer-events: none; }
.contact i { position: absolute; left: 39.56%; height: .79%; transform: translateX(-50%); }
.contact i:nth-child(1) { width: 19.8%; top: 75.65%; background: #5e8769; }
.contact i:nth-child(2) { width: 30.21%; top: 76.44%; background: #709973; }
.contact i:nth-child(3) { width: 25%; top: 77.22%; background: #82a678; }
.one { --x: 59%; --y: 78%; }
.two { --x: 75%; --y: 84%; }
.three { --x: 90%; --y: 76%; }
.berry, .berry-target { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.berry { width: 8.8%; height: auto; pointer-events: none; }
.berry-target { width: max(44px, 13%); height: max(44px, 20%); background: none; border: 0; padding: 0; border-radius: 12px; }
.berry-target:focus-visible, .hint:focus-visible { outline: 3px solid #2836b8; outline-offset: 2px; }
.hint, .speech {
  position: absolute;
  background: #fffdee;
  color: #1a2447;
  border: 2px solid #333b5c;
  font-weight: 730;
}
.hint { left: 3%; top: 4%; min-height: 44px; padding: .3rem .65rem; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: clamp(.75rem, 2.5cqw, .9rem); }
.speech {
  top: 6%; left: 46%; right: 4%; padding: .5em .65em;
  width: max-content; max-width: 50%; border-radius: 5px; font-size: clamp(.8125rem, 3.3cqw, 1.2rem); line-height: 1.18;
  box-shadow: 2px 2px 0 #333b5c; pointer-events: none;
}
.speech:empty { border: 0; padding: 0; box-shadow: none; }
.speech:not(:empty)::after { content:""; position:absolute; left: 11%; bottom: -.35em; width: .5em; height: .5em; background: #fffdee; border-right: 2px solid #333b5c; border-bottom: 2px solid #333b5c; transform: rotate(45deg); }
@media (max-width: 50rem) {
  .landing { width: min(100% - 3rem, 34rem); grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  h1 { font-size: clamp(3.4rem, 14vw, 5.6rem); }
  .status { margin-bottom: .7rem; }
}
@media (max-width: 23rem) {
  .landing { width: calc(100% - 2rem); gap: 1.5rem; }
  .game { border-radius: 12px; }
}
@media (forced-colors: active) {
  .game, .hint, .speech { border-color: CanvasText; }
  .berry-target:focus-visible, .hint:focus-visible { outline-color: Highlight; }
}
.crumb { position: absolute; pointer-events: none; background: #d6e0ff; }
.crumb:nth-last-child(2) { background: #a3adfc; }
.crumb:last-child { background: #6370db; }
