/* Scoped to the new embed: leave the rest of abckk.dev untouched. */
#harvest-game.abc-harvest-embed {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  height: var(--abc-harvest-height, clamp(560px, calc(100svh - 144px), 680px));
  min-height: 0;
  margin: 0;
  padding: 0;
  align-self: start;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #303c40;
  border-radius: 10px;
  background: #101719;
  scroll-margin-top: 100px;
}
#abc-harvest-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  color-scheme: dark;
}
#abc-harvest-start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font: inherit;
  text-decoration: none;
}
#abc-harvest-start:focus-visible {
  outline: 2px solid #ff9855;
  outline-offset: 5px;
}
/* The site has a fixed global 3D toolbar. The game provides its own controls
   while focused, so keep that toolbar from covering the harvesting buttons. */
body:has(#abc-harvest-frame:focus) #motion-controls,
body:has(#abc-harvest-frame:focus-within) #motion-controls {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 800px) {
  #harvest-game.abc-harvest-embed {
    /* The site's shell has 24px margins. Keep room for two 44px pads at 320px. */
    width: calc(100% + 24px);
    margin: 16px -12px 0;
    height: var(--abc-harvest-mobile-height, 640px);
  }
}

@media print {
  #harvest-game.abc-harvest-embed { display: none; }
}
